update to use better command recognition

This commit is contained in:
2017-07-27 14:20:56 +02:00
parent 1c0331524d
commit a8571827b9
14 changed files with 98 additions and 82 deletions

View File

@@ -12,9 +12,9 @@ smartcli.addVersion(npmciInfo.version)
// build
smartcli.addCommand('build')
.then(async (argv) => {
.then(async (argvArg) => {
let modBuild = await npmciMods.modBuild.load()
await modBuild.build(argv._[1])
await modBuild.build(argvArg)
NpmciEnv.configStore()
}).catch(err => {
console.log(err)
@@ -90,7 +90,7 @@ smartcli.addCommand('publish')
smartcli.addCommand('test')
.then(async (argv) => {
let modTest = await npmciMods.modTest.load()
await modTest.test(argv._[1])
await modTest.test(argv)
await NpmciEnv.configStore()
}).catch(err => {
console.log(err)