Initial commit

This commit is contained in:
Daniel Scalzi committed 2019-07-28 13:55:51 -04:00
commit 68e09fbac7
9 files changed
+817

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import yargs from 'yargs'
import { resolve } from 'path'
yargs
.scriptName('')
.coerce({
root: resolve
})
.command({
command: 'generate <root>',
aliases: ['g'],
describe: 'Generate a distribution.json',
builder: (yargs) => {
return yargs.positional('root', {
describe: 'File structure root',
type: 'string'
})
},
handler: (argv) => {
console.log(`got generate with root=${argv.root}`)
}
})
.demandCommand()
.help()
.argv