mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(package) add for-each-key from npm
This commit is contained in:
parent
f694857e63
commit
11c249c8f0
5 changed files with 4 additions and 64 deletions
|
|
@ -210,7 +210,7 @@ function readConfig(name) {
|
|||
const fs = require('fs');
|
||||
const tryCatch = require('try-catch');
|
||||
const jju = require('jju');
|
||||
const forEachKey = require('../common/for-each-key');
|
||||
const forEachKey = require('for-each-key');
|
||||
|
||||
const readjsonSync = (name) => jju.parse(fs.readFileSync(name, 'utf8'), {
|
||||
mode: 'json'
|
||||
|
|
@ -228,7 +228,7 @@ function readConfig(name) {
|
|||
|
||||
function help() {
|
||||
const bin = require('../json/help');
|
||||
const forEachKey = require('../common/for-each-key');
|
||||
const forEachKey = require('for-each-key');
|
||||
const currify = require('currify/legacy');
|
||||
const usage = 'Usage: cloudcmd [options]';
|
||||
const url = Info.homepage;
|
||||
|
|
@ -236,7 +236,6 @@ function help() {
|
|||
|
||||
console.log(usage);
|
||||
console.log('Options:');
|
||||
|
||||
forEachKey(log(' %s %s'), bin);
|
||||
console.log('\nGeneral help using Cloud Commander: <%s>', url);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue