You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitProject1/src/cloudfunctions/ARDemo/cloud-functions-tools/bin/svrkit-utils

24 lines
730 B

#!/usr/bin/env node
const path = require('path')
const yargs = require('yargs')
yargs
.usage('Usage: $0 -c [config] -o [output]')
.example('$0 -c ./svrkit.config.js -o ./svrkit-utils.js')
.alias('c', 'config')
.describe('c', 'svrkit config js file path')
.alias('o', 'output')
.describe('o', 'svrkit-utils output file path, defaults to svrkit-utils.js under the same folder of svrkit config file')
.describe('--keep-case', 'keeps field casing instead of converting to camcel case')
.demandOption(['c'])
.help('h')
.alias('h', 'help')
.argv
const cli = require(path.join(__dirname, '../cli/svrkit-utils.js'))
const ret = cli.main(process.argv.slice(2))
if (typeof ret === 'number') {
process.exit(ret)
}