feature(cloudcmd) add progress-of-copying

This commit is contained in:
coderaiser 2015-05-28 05:07:44 -04:00
parent 546a44f216
commit b0ee5b5f35
2 changed files with 25 additions and 19 deletions

36
HELP.md
View file

@ -56,23 +56,25 @@ cloudcmd
Cloud Commander supports command line parameters:
|Parameter |Operation
|:----------------------|:--------------------------------------------
| `-h, --help` | display help and exit
| `-v, --version` | display version and exit
| `-s, --save` | save configuration
| `-o, --online` | load scripts from remote servers
| `-a, --auth` | enable authorization
| `-u, --username` | set username
| `-p, --password` | set password
| `-c, --config` | configuration file path
| `--editor` | set editor: "dword" or "edward"
| `--root` | set root directory
| `--port` | set port number
| `--no-auth` | disable authorization
| `--no-server` | do not start server
| `--no-online` | load scripts from local server
| `--minify` | enable minification
| `--no-minify` | disable minification
|:--------------------------|:--------------------------------------------
| `-h, --help` | display help and exit
| `-v, --version` | display version and exit
| `-s, --save` | save configuration
| `-o, --online` | load scripts from remote servers
| `-a, --auth` | enable authorization
| `-u, --username` | set username
| `-p, --password` | set password
| `-c, --config` | configuration file path
| `--editor` | set editor: "dword" or "edward"
| `--root` | set root directory
| `--port` | set port number
| `--no-auth` | disable authorization
| `--no-server` | do not start server
| `--no-online` | load scripts from local server
| `--minify` | enable minification
| `--no-minify` | disable minification
| `--progress-of-copying` | show progress of copying
| `--no-progress-of-copying`| do not show progress of copying
If no parameters given Cloud Commander reads information from `~/.cloudcmd.json` and use
port from it (`8000` default). if port variables `PORT` or `VCAP_APP_PORT` isn't exist.

View file

@ -30,7 +30,8 @@
'save',
'server',
'online',
'minify'
'minify',
'progress-of-copying'
],
default: {
server : true,
@ -40,7 +41,9 @@
online : config('online'),
editor : config('editor') || 'edward',
username : config('username'),
root : config('root') || '/'
root : config('root') || '/',
'progress-of-copying': config('progressOfCopying')
},
alias: {
v: 'version',
@ -72,6 +75,7 @@
config('online', args.online);
config('minify', args.minify);
config('username', args.username);
config('progressOfCopying', args['progress-of-copying']);
root(args.root);
editor(args.editor);