Complete CLI help coverage for every dispatchable area
Areas handled by the dispatcher (`service`, `stop`, `server`) had no help registry entry, so their `--help` threw "Unknown command" and exited 2 even though the commands themselves run. Add registry entries for the service lifecycle and the stop shortcut, and alias `server` to the mcp help. Global help was a hand-maintained duplicate of HELP_REGISTRY and had already drifted: it omitted `rules lint/pull/push` and the second `corps bind-test` usage form. Generate it from the registry instead, which removes ~120 lines of duplicated usage text and makes the registry the single source of truth. Only advertise "Run 'seal-use <area> <command> --help'" for areas that actually have named subcommands, and resolve the `config status` / `config test-enterprises-dir` aliases. Add a coverage test that walks KNOWN_AREAS so a future area cannot ship without a help entry.
This commit is contained in:
1 parent
72b61819a1
commit
b00ba57313
3 files changed
+131
-127
No files matched your search
+1
-1
@@ -53,7 +53,7 @@ import {
|
||||
import type { CliResult, CliRunOptions, CliRuntime } from "./types.js";
|
||||
|
||||
const DEFAULT_APP_ROOT = dirname(dirname(dirname(fileURLToPath(import.meta.url))));
|
||||
const KNOWN_AREAS = new Set([
|
||||
export const KNOWN_AREAS = new Set([
|
||||
"config",
|
||||
"service",
|
||||
"stop",
|
||||
|
||||
Reference in new issue
Block a user