Add hidden status command for listing and inspecting apps

This commit is contained in:
Chris Wanstrath 2026-03-17 19:22:46 -07:00
parent 99a3a25131
commit c12d60119f

View File

@ -92,6 +92,16 @@ program
.argument('[name]', 'app name (uses current directory if omitted)') .argument('[name]', 'app name (uses current directory if omitted)')
.action(openApp) .action(openApp)
program
.command('status', { hidden: true })
.argument('[name]', 'app name')
.option('-t, --tools', 'show only tools')
.option('-a, --apps', 'show only apps (exclude tools)')
.action((name?: string, options?: { apps?: boolean; tools?: boolean }) => {
if (name) return infoApp(name)
return listApps(options ?? {})
})
program program
.command('rename') .command('rename')
.helpGroup('Apps:') .helpGroup('Apps:')