mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) add progress-of-copying
This commit is contained in:
parent
546a44f216
commit
b0ee5b5f35
2 changed files with 25 additions and 19 deletions
36
HELP.md
36
HELP.md
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue