Skip to content

Commit

Permalink
feature(cloudcmd) remove --progress option, make always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 21, 2019
1 parent e0df785 commit 6e4bedc
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Cloud Commander supports the following command-line parameters:
| `--prefix` | set url prefix
| `--prefix-socket` | set prefix for url connection
| `--port` | set port number
| `--progress` | show progress of file operations
| `--confirm-copy` | confirm copy
| `--confirm-move` | confirm move
| `--open` | open web browser when server starts
Expand Down Expand Up @@ -117,7 +116,6 @@ Cloud Commander supports the following command-line parameters:
| `--no-name` | set default tab name in web browser
| `--no-keys-panel` | hide keys panel
| `--no-one-file-panel` | show two file panels
| `--no-progress` | do not show progress of file operations
| `--no-confirm-copy` | do not confirm copy
| `--no-confirm-move` | do not confirm move
| `--no-config-dialog` | disable config dialog
Expand Down Expand Up @@ -398,7 +396,6 @@ Here's a description of all options:
"root" : "/", // root directory
"prefix" : "", // url prefix
"prefixSocket" : "", // prefix for socket connection
"progress" : true, // show progress of file operations
"confirmCopy" : true, // confirm copy
"confirmMove" : true, // confirm move
"showConfig" : false, // show config at startup
Expand Down
3 changes: 0 additions & 3 deletions bin/cloudcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const args = require('minimist')(argv.slice(2), {
'server',
'online',
'open',
'progress',
'config-dialog',
'config-auth',
'console',
Expand Down Expand Up @@ -94,7 +93,6 @@ const args = require('minimist')(argv.slice(2), {
'username' : env('username') || config('username'),
'root' : choose(env('root'), config('root')),
'prefix' : config('prefix'),
'progress' : config('progress'),
'console' : choose(env.bool('console'), config('console')),
'contact' : choose(env.bool('contact'), config('contact')),
'terminal' : choose(env.bool('terminal'), config('terminal')),
Expand Down Expand Up @@ -159,7 +157,6 @@ function main() {
config('online', args.online);
config('open', args.open);
config('username', args.username);
config('progress', args.progress);
config('console', args.console);
config('syncConsolePath', args['sync-console-path']);
config('showFileName', args['show-file-name']);
Expand Down
2 changes: 1 addition & 1 deletion client/modules/operation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports.init = promisify((callback) => {
exec.series([
DOM.loadSocket,
async (callback) => {
if (!config('progress') || config('dropbox'))
if (config('dropbox'))
return callback();

const {
Expand Down
1 change: 0 additions & 1 deletion json/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"root": "/",
"prefix": "",
"prefixSocket": "",
"progress": true,
"contact": true,
"confirmCopy": true,
"confirmMove": true,
Expand Down
2 changes: 0 additions & 2 deletions json/help.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"--prefix ": "set url prefix",
"--prefix-socket ": "set prefix for socket connection",
"--port ": "set port number",
"--progress ": "show progress of file operations",
"--confirm-copy ": "confirm copy",
"--confirm-move ": "confirm move",
"--open ": "open web browser when server started",
Expand Down Expand Up @@ -51,7 +50,6 @@
"--no-one-file-panel ": "show two file panels",
"--no-keys-panel ": "hide keys panel",
"--no-one-file-panel ": "show two file panels",
"--no-progress ": "do not show progress of file operations",
"--no-confirm-copy ": "do not confirm copy",
"--no-confirm-move ": "do not confirm move",
"--no-config-dialog ": "disable config dialog",
Expand Down
2 changes: 0 additions & 2 deletions man/cloudcmd.1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ programs in browser from any computer, mobile or tablet device.
--prefix set url prefix
--prefix-socket set prefix for socket connection
--port set port number
--progress show progress of file operations
--confirm-copy confirm copy
--confirm-move confirm move
--open open web browser when server started
Expand Down Expand Up @@ -73,7 +72,6 @@ programs in browser from any computer, mobile or tablet device.
--no-name set default tab name in web browser
--no-one-file-panel show two file panels
--no-keys-panel hide keys panel
--no-progress do not show progress of file operations
--no-confirm-copy do not confirm copy
--no-confirm-move do not confirm move
--no-contact disable contact
Expand Down
6 changes: 0 additions & 6 deletions tmpl/config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@
<input data-name="js-confirmMove" type="checkbox" {{ confirmMove }}>
Confirm Move
</label>
</li>
<li>
<label>
<input data-name="js-progress" type="checkbox" {{ progress }}>
Progress
</label>
</li>
<li>
<label>
Expand Down

0 comments on commit 6e4bedc

Please sign in to comment.