mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) rendy -> %s
This commit is contained in:
parent
c17b1add9e
commit
99796d4f55
1 changed files with 3 additions and 10 deletions
|
|
@ -10,11 +10,8 @@
|
|||
DIR_SERVER = DIR_LIB + 'server/',
|
||||
|
||||
config = require(DIR_SERVER + 'config'),
|
||||
rendy = require('rendy'),
|
||||
createPass = require(DIR_SERVER + 'password'),
|
||||
|
||||
HOME_PAGE = 'General help using Cloud Commander: <{{ url }}>',
|
||||
|
||||
argv = process.argv,
|
||||
args = require('minimist')(argv.slice(2), {
|
||||
string: [
|
||||
|
|
@ -127,20 +124,16 @@
|
|||
function help() {
|
||||
var bin = require('../json/bin'),
|
||||
usage = 'Usage: cloudcmd [options]',
|
||||
|
||||
site = rendy(HOME_PAGE, {
|
||||
url: Info.homepage
|
||||
});
|
||||
url = Info.homepage;
|
||||
|
||||
console.log(usage);
|
||||
console.log('Options:');
|
||||
|
||||
Object.keys(bin).forEach(function(name) {
|
||||
var line = ' ' + name + ' ' + bin[name];
|
||||
console.log(line);
|
||||
console.log(' %s %s', name, bin[name]);
|
||||
});
|
||||
|
||||
console.log('\n' + site);
|
||||
console.log('\nGeneral help using Cloud Commander: <%s>', url);
|
||||
}
|
||||
|
||||
function repl() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue