mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) add dangle-comma
This commit is contained in:
parent
4447d43c89
commit
ea08b92e8b
69 changed files with 242 additions and 242 deletions
|
|
@ -126,11 +126,11 @@ const args = require('minimist')(argv.slice(2), {
|
|||
u: 'username',
|
||||
s: 'save',
|
||||
a: 'auth',
|
||||
c: 'config'
|
||||
c: 'config',
|
||||
},
|
||||
unknown: (cmd) => {
|
||||
exit('\'%s\' is not a cloudcmd option. See \'cloudcmd --help\'.', cmd);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
if (args.version)
|
||||
|
|
@ -266,7 +266,7 @@ function readConfig(name) {
|
|||
const forEachKey = require('for-each-key');
|
||||
|
||||
const readjsonSync = (name) => jju.parse(fs.readFileSync(name, 'utf8'), {
|
||||
mode: 'json'
|
||||
mode: 'json',
|
||||
});
|
||||
|
||||
const [error, data] = tryCatch(readjsonSync, name);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function main(callback) {
|
|||
replaceVersion('HELP.md', version, versionNew, () => {
|
||||
const historyNew = history + rendy(template, {
|
||||
date : shortdate(),
|
||||
version : versionNew
|
||||
version : versionNew,
|
||||
});
|
||||
|
||||
replaceVersion('HELP.md', history, historyNew, callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue