mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) show root directory when used flag --root
This commit is contained in:
parent
ab407b22bd
commit
d00f60f40e
1 changed files with 8 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue