feat(mosaic): alphabetize and group mosaic --help output (#402)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline failed

This commit was merged in pull request #402.
This commit is contained in:
2026-04-05 05:12:32 +00:00
parent 651426cf2e
commit 2446593fff
3 changed files with 23 additions and 2 deletions

View File

@@ -33,7 +33,23 @@ try {
const program = new Command(); const program = new Command();
program.name('mosaic').description('Mosaic Stack CLI').version(CLI_VERSION); program
.name('mosaic')
.description('Mosaic Stack CLI')
.version(CLI_VERSION)
.configureHelp({ sortSubcommands: true })
.addHelpText(
'after',
`
Command Groups:
Runtime: tui, login, sessions
Gateway: gateway
Framework: agent, bootstrap, coord, doctor, init, launch, mission, prdy, seq, sync, upgrade, wizard, yolo
Platform: update
Runtimes: claude, codex, opencode, pi
`,
);
// ─── runtime launchers + framework commands ──────────────────────────── // ─── runtime launchers + framework commands ────────────────────────────
@@ -214,7 +230,10 @@ program
// ─── sessions ─────────────────────────────────────────────────────────── // ─── sessions ───────────────────────────────────────────────────────────
const sessionsCmd = program.command('sessions').description('Manage active agent sessions'); const sessionsCmd = program
.command('sessions')
.description('Manage active agent sessions')
.configureHelp({ sortSubcommands: true });
sessionsCmd sessionsCmd
.command('list') .command('list')

View File

@@ -30,6 +30,7 @@ export function registerGatewayCommand(program: Command): void {
.option('-h, --host <host>', 'Gateway host', 'localhost') .option('-h, --host <host>', 'Gateway host', 'localhost')
.option('-p, --port <port>', 'Gateway port', '14242') .option('-p, --port <port>', 'Gateway port', '14242')
.option('-t, --token <token>', 'Admin API token') .option('-t, --token <token>', 'Admin API token')
.configureHelp({ sortSubcommands: true })
.action(() => { .action(() => {
gw.outputHelp(); gw.outputHelp();
}); });

View File

@@ -47,6 +47,7 @@ export function registerMissionCommand(program: Command) {
.option('--update <idOrName>', 'Update a mission') .option('--update <idOrName>', 'Update a mission')
.option('--project <idOrName>', 'Scope to project') .option('--project <idOrName>', 'Scope to project')
.argument('[id]', 'Show mission detail by ID') .argument('[id]', 'Show mission detail by ID')
.configureHelp({ sortSubcommands: true })
.action( .action(
async ( async (
id: string | undefined, id: string | undefined,