Add hidden status command for listing and inspecting apps
This commit is contained in:
parent
99a3a25131
commit
c12d60119f
|
|
@ -92,6 +92,16 @@ program
|
|||
.argument('[name]', 'app name (uses current directory if omitted)')
|
||||
.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
|
||||
.command('rename')
|
||||
.helpGroup('Apps:')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user