mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-05 15:31:37 +00:00
25 lines
660 B
TypeScript
25 lines
660 B
TypeScript
import { program } from 'commander'
|
|
import { syncRushFiles } from './sync'
|
|
import { createTemplate } from './template'
|
|
|
|
console.info('Anticrm Platform Manager')
|
|
|
|
program.version('0.6.0')
|
|
|
|
program
|
|
.command('rush-sync <root>')
|
|
.description('Synchronized rush.js files with platform.')
|
|
.action(async (root: string, cmd) => {
|
|
await syncRushFiles(process.cwd(), root)
|
|
})
|
|
|
|
program
|
|
.command('template-apply <root>')
|
|
.description('Create necessary startup packages')
|
|
.requiredOption('--root <root>', 'user password', 'platform')
|
|
.action(async (root: string, cmd) => {
|
|
await createTemplate(process.cwd(), root)
|
|
})
|
|
|
|
program.parse(process.argv)
|