From d00f60f40e0d3dc353d1dfcb302501914733155f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 8 Apr 2015 04:37:29 -0400 Subject: [PATCH] feature(cloudcmd) show root directory when used flag --root --- bin/cloudcmd.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index cf45114d..0cc311cf 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -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');