forked from defunkt/toes
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)')
|
.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:')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user