Compare commits
2 Commits
99a3a25131
...
3328009af6
| Author | SHA1 | Date | |
|---|---|---|---|
| 3328009af6 | |||
| c12d60119f |
|
|
@ -53,17 +53,25 @@ program
|
||||||
// Apps
|
// Apps
|
||||||
|
|
||||||
program
|
program
|
||||||
.command('list')
|
.command('status')
|
||||||
.helpGroup('Apps:')
|
.helpGroup('Apps:')
|
||||||
.description('List all apps')
|
.description('Show status of all apps, or details for a specific app')
|
||||||
|
.argument('[name]', 'app name (uses current directory if omitted)')
|
||||||
|
.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('list', { hidden: true })
|
||||||
.option('-t, --tools', 'show only tools')
|
.option('-t, --tools', 'show only tools')
|
||||||
.option('-a, --apps', 'show only apps (exclude tools)')
|
.option('-a, --apps', 'show only apps (exclude tools)')
|
||||||
.action(listApps)
|
.action(listApps)
|
||||||
|
|
||||||
program
|
program
|
||||||
.command('info')
|
.command('info', { hidden: true })
|
||||||
.helpGroup('Apps:')
|
|
||||||
.description('Show info for an app')
|
|
||||||
.argument('[name]', 'app name (uses current directory if omitted)')
|
.argument('[name]', 'app name (uses current directory if omitted)')
|
||||||
.action(infoApp)
|
.action(infoApp)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user