// Check for requirements such as OS version and nginx install. Throw and exit if requirements not found. #Roadmap: Add ability to satisfy any possible requirements.
requirements();// Comment in development and uncomment this line in production. This should check whether the OS is compatible with this version of `up`
program
.version('0.1.5')
.arguments('<cmd> [options]')
.action(function(cmd){
varcmdValue=cmd;
});
.version('0.1.5');
program
.command('static <domain> [outPort]')
@ -67,9 +65,9 @@ program
});
program
.command('*')// This picks invalid commands, but doesn't pick empty commands, yet.
.command('*')// This should pick invalid commands, but it doesn't, yet.
.action(function(){
console.log("\n Invalid command. Type "+chalk.cyan('up --help')+" for help.\n");
console.log("Invalid command. Type "+chalk.cyan('up --help')+" for help.");
});
// Adds custom help text to the automatically generated help.
@ -86,9 +84,4 @@ program.on('--help', function () {
});
// Parses commands passed to `up` and chooses one of the above commands.