1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00
OpenSTF/lib/cli/index.js

40 lines
1.2 KiB
JavaScript

var yargs = require('yargs')
var Promise = require('bluebird')
Promise.longStackTraces()
var _argv = yargs.usage('Usage: $0 <command> [options]')
.strict()
.command(require('./api'))
.command(require('./app'))
.command(require('./auth-ldap'))
.command(require('./auth-mock'))
.command(require('./auth-oauth2'))
.command(require('./auth-openid'))
.command(require('./auth-saml2'))
.command(require('./device'))
.command(require('./doctor'))
.command(require('./generate-fake-device'))
.command(require('./local'))
.command(require('./log-rethinkdb'))
.command(require('./migrate'))
.command(require('./notify-hipchat'))
.command(require('./notify-slack'))
.command(require('./poorxy'))
.command(require('./processor'))
.command(require('./provider'))
.command(require('./reaper'))
.command(require('./storage-plugin-apk'))
.command(require('./storage-plugin-image'))
.command(require('./storage-s3'))
.command(require('./storage-temp'))
.command(require('./triproxy'))
.command(require('./websocket'))
.demand(1, 'Must provide a valid command.')
.help('h', 'Show help.')
.alias('h', 'help')
.version('V', 'Show version.', function() {
return require('../../package').version
})
.alias('V', 'version')
.argv