mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(cloudcmd) rm username
This commit is contained in:
parent
2beeb3b7e9
commit
b27c9c589a
1 changed files with 7 additions and 11 deletions
|
|
@ -30,10 +30,11 @@
|
|||
'repl',
|
||||
'save'],
|
||||
default: {
|
||||
'auth' : config('auth'),
|
||||
'port' : config('port'),
|
||||
'online': config('online'),
|
||||
'server': true
|
||||
server : true,
|
||||
auth : config('auth'),
|
||||
port : config('port'),
|
||||
online : config('online'),
|
||||
username : config('username'),
|
||||
},
|
||||
alias: {
|
||||
v: 'version',
|
||||
|
|
@ -54,12 +55,12 @@
|
|||
if (args.repl)
|
||||
repl();
|
||||
|
||||
password(args.password);
|
||||
username(args.username);
|
||||
port(args.port);
|
||||
password(args.password);
|
||||
|
||||
config('auth', args.auth);
|
||||
config('online', args.online);
|
||||
config('username', args.username);
|
||||
|
||||
if (args.save)
|
||||
config.save(start);
|
||||
|
|
@ -89,11 +90,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
function username(name) {
|
||||
if (name)
|
||||
config('username', name);
|
||||
}
|
||||
|
||||
function port(arg) {
|
||||
var number = parseInt(arg, 10);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue