mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-07-08 04:54:14 -05:00
21 lines
580 B
TypeScript
21 lines
580 B
TypeScript
import { program as baseProgram } from 'commander';
|
|
import { taskCmd } from './tasks.cmd';
|
|
import { fileCmd } from './files.cmd';
|
|
import { appCmd } from './apps.cmd';
|
|
import { importCmd } from './import.cmd';
|
|
|
|
const program = baseProgram
|
|
.name('BOSS')
|
|
.description('CLI to manage and view BOSS data')
|
|
.option('--json', 'Output as JSON')
|
|
.addCommand(appCmd)
|
|
.addCommand(taskCmd)
|
|
.addCommand(importCmd)
|
|
.addCommand(fileCmd);
|
|
|
|
program.parseAsync(process.argv)
|
|
.catch(console.error)
|
|
.then(() => {
|
|
process.exit(0); // forcibly close as GRPC channels keep process going
|
|
});
|