|
|
|
@ -53,13 +53,13 @@ if(command === "now"){ |
|
|
|
if(subcommand){ |
|
|
|
dogapi[command].handleCli(subcommand, args, function(err, res){ |
|
|
|
if(err){ |
|
|
|
console.error(err); |
|
|
|
console.error(JSON.stringify(err, null, ' ')); |
|
|
|
process.exit(1); |
|
|
|
} else { |
|
|
|
if(res === ""){ |
|
|
|
res = "success"; |
|
|
|
} |
|
|
|
console.log(res); |
|
|
|
console.log(JSON.stringify(res, null, ' ')); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
|