mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(config) rm option: cache
This commit is contained in:
parent
28892b3933
commit
58c10e201a
7 changed files with 2 additions and 23 deletions
6
HELP.md
6
HELP.md
|
|
@ -96,7 +96,6 @@ Cloud Commander supports command line parameters:
|
||||||
| `--terminal-path` | set terminal path
|
| `--terminal-path` | set terminal path
|
||||||
| `--vim` | enable vim hot keys
|
| `--vim` | enable vim hot keys
|
||||||
| `--columns` | set visible columns
|
| `--columns` | set visible columns
|
||||||
| `--cache` | enable cache
|
|
||||||
| `--no-server` | do not start server
|
| `--no-server` | do not start server
|
||||||
| `--no-auth` | disable authorization
|
| `--no-auth` | disable authorization
|
||||||
| `--no-online` | load scripts from local server
|
| `--no-online` | load scripts from local server
|
||||||
|
|
@ -116,7 +115,6 @@ Cloud Commander supports command line parameters:
|
||||||
| `--no-terminal` | disable terminal
|
| `--no-terminal` | disable terminal
|
||||||
| `--no-vim` | disable vim hot keys
|
| `--no-vim` | disable vim hot keys
|
||||||
| `--no-columns` | set visible default columns
|
| `--no-columns` | set visible default columns
|
||||||
| `--no-cache` | disable cache
|
|
||||||
|
|
||||||
If no parameters given Cloud Commander reads information from `~/.cloudcmd.json` and use
|
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.
|
port from it (`8000` default). if port variables `PORT` or `VCAP_APP_PORT` isn't exist.
|
||||||
|
|
@ -136,7 +134,7 @@ re-install it:
|
||||||
npm install cloudcmd -g
|
npm install cloudcmd -g
|
||||||
```
|
```
|
||||||
|
|
||||||
Then start it again, clear cache of your browser and reload page.
|
Then start it again and reload the page.
|
||||||
|
|
||||||
Hot keys
|
Hot keys
|
||||||
---------------
|
---------------
|
||||||
|
|
@ -369,7 +367,6 @@ Here is description of options:
|
||||||
"dirStorage" : true, /* store directory listing */
|
"dirStorage" : true, /* store directory listing */
|
||||||
"online" : true, /* load js files from cdn or local path */
|
"online" : true, /* load js files from cdn or local path */
|
||||||
"open" : false /* open web browser when server started */
|
"open" : false /* open web browser when server started */
|
||||||
"cache" : true, /* enable cache */
|
|
||||||
"onePanelMode" : false, /* show one file panel (deprecated) */
|
"onePanelMode" : false, /* show one file panel (deprecated) */
|
||||||
"oneFilePanel" : false, /* show one file panel */
|
"oneFilePanel" : false, /* show one file panel */
|
||||||
"keysPanel" : true, /* show classic panel with buttons of keys */
|
"keysPanel" : true, /* show classic panel with buttons of keys */
|
||||||
|
|
@ -416,7 +413,6 @@ Some config options can be overridden with `environment variables` such:
|
||||||
- `CLOUDCMD_VIM` - enable vim hot keys
|
- `CLOUDCMD_VIM` - enable vim hot keys
|
||||||
- `CLOUDCMD_CONFIRM_COPY` - confirm copy
|
- `CLOUDCMD_CONFIRM_COPY` - confirm copy
|
||||||
- `CLOUDCMD_CONFIRM_MOVE` - confirm move
|
- `CLOUDCMD_CONFIRM_MOVE` - confirm move
|
||||||
- `CLOUDCMD_CACHE` - enable cache
|
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
---------------
|
---------------
|
||||||
|
|
|
||||||
5
app.json
5
app.json
|
|
@ -121,11 +121,6 @@
|
||||||
"description": "confirm move",
|
"description": "confirm move",
|
||||||
"value": "true",
|
"value": "true",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
|
||||||
"CLOUDCMD_CACHE": {
|
|
||||||
"description": "enable cache",
|
|
||||||
"value": "true",
|
|
||||||
"required": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ const args = require('minimist')(argv.slice(2), {
|
||||||
],
|
],
|
||||||
boolean: [
|
boolean: [
|
||||||
'auth',
|
'auth',
|
||||||
'cache',
|
|
||||||
'repl',
|
'repl',
|
||||||
'save',
|
'save',
|
||||||
'server',
|
'server',
|
||||||
|
|
@ -61,7 +60,6 @@ const args = require('minimist')(argv.slice(2), {
|
||||||
server : true,
|
server : true,
|
||||||
name : choose(env('name'), config('name')),
|
name : choose(env('name'), config('name')),
|
||||||
auth : choose(env('auth'), config('auth')),
|
auth : choose(env('auth'), config('auth')),
|
||||||
cache : choose(env.bool('cache'), config('cache')),
|
|
||||||
port : config('port'),
|
port : config('port'),
|
||||||
online : config('online'),
|
online : config('online'),
|
||||||
open : config('open'),
|
open : config('open'),
|
||||||
|
|
@ -120,7 +118,6 @@ function main() {
|
||||||
|
|
||||||
config('name', args.name);
|
config('name', args.name);
|
||||||
config('auth', args.auth);
|
config('auth', args.auth);
|
||||||
config('cache', args.cache);
|
|
||||||
config('online', args.online);
|
config('online', args.online);
|
||||||
config('open', args.open);
|
config('open', args.open);
|
||||||
config('username', args.username);
|
config('username', args.username);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
"dirStorage": false,
|
"dirStorage": false,
|
||||||
"online": true,
|
"online": true,
|
||||||
"open": false,
|
"open": false,
|
||||||
"cache": true,
|
|
||||||
"keysPanel": true,
|
"keysPanel": true,
|
||||||
"port": 8000,
|
"port": 8000,
|
||||||
"ip": null,
|
"ip": null,
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,6 @@ programs in browser from any computer, mobile or tablet device.
|
||||||
--terminal-path set terminal path
|
--terminal-path set terminal path
|
||||||
--vim enable vim hot keys
|
--vim enable vim hot keys
|
||||||
--columns set visible columns
|
--columns set visible columns
|
||||||
--cache enable cache
|
|
||||||
--no-auth disable authorization
|
--no-auth disable authorization
|
||||||
--no-server do not start server
|
--no-server do not start server
|
||||||
--no-online load scripts from local server
|
--no-online load scripts from local server
|
||||||
|
|
@ -72,7 +71,6 @@ programs in browser from any computer, mobile or tablet device.
|
||||||
--no-terminal disable terminal
|
--no-terminal disable terminal
|
||||||
--no-vim disable vim hot keys
|
--no-vim disable vim hot keys
|
||||||
--no-columns set visible default columns
|
--no-columns set visible default columns
|
||||||
--no-cache disable cache
|
|
||||||
|
|
||||||
.SH RESOURCES AND DOCUMENTATION
|
.SH RESOURCES AND DOCUMENTATION
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ function listen(prefix, socket) {
|
||||||
|
|
||||||
function cloudcmd(prefix, plugins, modules) {
|
function cloudcmd(prefix, plugins, modules) {
|
||||||
const online = apart(config, 'online');
|
const online = apart(config, 'online');
|
||||||
const cache = apart(config, 'cache');
|
const cache = false;
|
||||||
const diff = apart(config, 'diff');
|
const diff = apart(config, 'diff');
|
||||||
const zip = apart(config, 'zip');
|
const zip = apart(config, 'zip');
|
||||||
const dir = DIR_ROOT;
|
const dir = DIR_ROOT;
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,6 @@
|
||||||
<option {{ zip-selected }}>zip</option>
|
<option {{ zip-selected }}>zip</option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<label>
|
|
||||||
<input data-name="js-cache" type="checkbox" {{ cache }} >
|
|
||||||
Cache
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
<input data-name="js-onePanelMode" type="checkbox" {{ onePanelMode }}>
|
<input data-name="js-onePanelMode" type="checkbox" {{ onePanelMode }}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue