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