client(options, argv.basic, argv.bearer).compositions.deploy(composition, argv.overwrite, argv.debug, argv.kind, argv.timeout, argv.memory, argv.logsize) .then(actions => { const names = actions.map(action => action.name) console.log(`ok: created action${actions.length > 1 ? 's' : ''} ${names}`) }) .catch(error => { error.statusCode = error.statusCode || 500 console.error(error) process.exit(error.statusCode - 256) })
static interpretArguments(argv) { let args = require('minimist')(argv); require("../log/logger").log('info', 'interpretArguments()', JSON.stringify(args)); if (args.autoConnect) { Config.autoConnect = args.autoConnect; } if (args.reconnectTimeout) { Config.reconnectTimeout = args.reconnectTimeout; } if (args.hostname) { Config.hostname = args.hostname; } if (args.port) { Config.port = args.port; } if (args.debug) { Config.debug = args.debug; } }