23 lines
567 B
JavaScript
Executable File
23 lines
567 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict';
|
|
|
|
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 program = new Command();
|
|
|
|
program
|
|
.name('vitruvio')
|
|
.description('Ferramentas de linha de comando para repositórios Vitruvio')
|
|
.version(pkg.version);
|
|
|
|
initCmd.register(program);
|
|
updateRepoCmd.register(program);
|
|
updateBaseCmd.register(program);
|
|
|
|
program.parse(process.argv);
|