fix: close CLI term gaps — workspace rejection, stale types, quiet, placebo, help
This commit is contained in:
@@ -54,9 +54,9 @@ function getCommandHelp(command: string): string {
|
||||
apophis init [options]
|
||||
|
||||
${pc.dim('Options:')}
|
||||
--preset <name> Preset name (e.g. safe-ci, full)
|
||||
--force Overwrite existing files
|
||||
--noninteractive Skip all prompts, require explicit flags
|
||||
--preset, -p <name> Preset name (e.g. safe-ci, full)
|
||||
--force, -f Overwrite existing files
|
||||
--noninteractive Skip all prompts, require explicit flags
|
||||
|
||||
${pc.dim('Examples:')}
|
||||
apophis init --preset safe-ci
|
||||
@@ -116,9 +116,11 @@ function getCommandHelp(command: string): string {
|
||||
|
||||
${pc.dim('Options:')}
|
||||
--artifact <path> Path to failure artifact
|
||||
--route <filter> Select failure by route pattern
|
||||
|
||||
${pc.dim('Examples:')}
|
||||
apophis replay --artifact reports/apophis/failure-*.json
|
||||
apophis replay --artifact failure-1.json --route "POST /users"
|
||||
`,
|
||||
doctor: `
|
||||
${pc.bold('apophis doctor')} — Validate config, environment safety, docs/example correctness
|
||||
@@ -377,8 +379,8 @@ export async function main(argv: string[] = process.argv.slice(2)): Promise<numb
|
||||
const commandSpecificFlags: Record<string, Set<string>> = {
|
||||
init: new Set(['--preset', '-p', '--force', '-f', '--noninteractive']),
|
||||
verify: new Set(['--profile', '--routes', '--seed', '--changed', '--workspace']),
|
||||
observe: new Set(['--profile', '--check-config', '--workspace']),
|
||||
qualify: new Set(['--profile', '--seed', '--workspace', '--changed']),
|
||||
observe: new Set(['--profile', '--check-config']),
|
||||
qualify: new Set(['--profile', '--seed', '--changed']),
|
||||
replay: new Set(['--artifact', '--route']),
|
||||
doctor: new Set(['--mode', '--strict', '--workspace']),
|
||||
migrate: new Set(['--check', '--dry-run', '--write']),
|
||||
|
||||
Reference in New Issue
Block a user