mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactor(cloudcmd) readConfig
This commit is contained in:
parent
554996eac2
commit
b7452ae846
1 changed files with 4 additions and 4 deletions
|
|
@ -47,10 +47,12 @@
|
|||
function start(params) {
|
||||
var cloudcmd = require('../cloudcmd');
|
||||
|
||||
readConfig(function(config) {
|
||||
readConfig(function(msg, config) {
|
||||
if (params && params.test)
|
||||
config.test = params.test;
|
||||
|
||||
Util.log(msg);
|
||||
|
||||
cloudcmd.start(config);
|
||||
});
|
||||
}
|
||||
|
|
@ -72,9 +74,7 @@
|
|||
|
||||
msg = CloudFunc.formatMsg('read', 'config', status);
|
||||
|
||||
Util.log(msg);
|
||||
|
||||
callback(config);
|
||||
callback(msg, config);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue