feat(update): refactored updates to work as a single command
This commit is contained in:
+2
-6
@@ -5,11 +5,9 @@ var { Command } = require('commander');
|
||||
var pkg = require('../package.json');
|
||||
|
||||
var initCmd = require('../src/commands/init');
|
||||
var updateRepoCmd = require('../src/commands/update-repo');
|
||||
var updateBaseCmd = require('../src/commands/update-base');
|
||||
var updateCmd = require('../src/commands/update');
|
||||
var docsCmd = require('../src/commands/docs');
|
||||
var updateIdeCmd = require('../src/commands/update-ide');
|
||||
var updateCliCmd = require('../src/commands/update-cli');
|
||||
|
||||
var program = new Command();
|
||||
|
||||
@@ -19,10 +17,8 @@ program
|
||||
.version(pkg.version);
|
||||
|
||||
initCmd.register(program);
|
||||
updateRepoCmd.register(program);
|
||||
updateBaseCmd.register(program);
|
||||
updateCmd.register(program);
|
||||
docsCmd.register(program);
|
||||
updateIdeCmd.register(program);
|
||||
updateCliCmd.register(program);
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
Reference in New Issue
Block a user