feature(cloudcmd) show root directory when used flag --root

This commit is contained in:
coderaiser 2015-04-08 04:37:29 -04:00
parent ab407b22bd
commit d00f60f40e

View file

@ -62,7 +62,7 @@
config('auth', args.auth);
config('online', args.online);
config('username', args.username);
config('root', args.root);
root(args.root)
readConfig(args.config);
@ -138,6 +138,13 @@
console.log('\nGeneral help using Cloud Commander: <%s>', url);
}
function root(dir) {
if (dir) {
config('root', dir);
console.log('root:', dir);
}
}
function repl() {
console.log('REPL mode enabled (telnet localhost 1337)');
require(DIR_LIB + '/server/repl');