mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) add --cache cli option
This commit is contained in:
parent
f248e29405
commit
dd60a3e43f
5 changed files with 16 additions and 2 deletions
4
HELP.md
4
HELP.md
|
|
@ -95,6 +95,7 @@ Cloud Commander supports command line parameters:
|
|||
| `--vim` | enable vim hot keys
|
||||
| `--keys-panel` | show keys panel
|
||||
| `--columns` | set visible columns
|
||||
| `--cache` | enable cache
|
||||
| `--no-server` | do not start server
|
||||
| `--no-auth` | disable authorization
|
||||
| `--no-online` | load scripts from local server
|
||||
|
|
@ -113,6 +114,7 @@ Cloud Commander supports command line parameters:
|
|||
| `--no-vim` | disable vim hot keys
|
||||
| `--no-keys-panel` | hide keys panel
|
||||
| `--no-columns` | set visible default columns
|
||||
| `--no-cache` | disable cache
|
||||
|
||||
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.
|
||||
|
|
@ -365,7 +367,7 @@ Here is description of options:
|
|||
"dirStorage" : true, /* store directory listing to localStorage */
|
||||
"online" : true, /* load js files from cdn or local path */
|
||||
"open" : false /* open web browser when server started */
|
||||
"cache" : true, /* add cache-control */
|
||||
"cache" : true, /* enable cache */
|
||||
"keysPanel" : true, /* show classic panel with buttons of keys */
|
||||
"port" : 8000, /* http port */
|
||||
"ip" : null, /* ip or null(default) */
|
||||
|
|
|
|||
5
app.json
5
app.json
|
|
@ -111,6 +111,11 @@
|
|||
"description": "confirm move",
|
||||
"value": "true",
|
||||
"required": false
|
||||
},
|
||||
"CLOUDCMD_CACHE": {
|
||||
"description": "enable cache",
|
||||
"value": "true",
|
||||
"required": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ const args = require('minimist')(argv.slice(2), {
|
|||
],
|
||||
boolean: [
|
||||
'auth',
|
||||
'cache',
|
||||
'repl',
|
||||
'save',
|
||||
'server',
|
||||
|
|
@ -56,6 +57,7 @@ const args = require('minimist')(argv.slice(2), {
|
|||
server : true,
|
||||
name : choose(env('name'), config('name')),
|
||||
auth : choose(env('auth'), config('auth')),
|
||||
cache : choose(env.bool('cache'), config('cache')),
|
||||
port : config('port'),
|
||||
online : config('online'),
|
||||
open : config('open'),
|
||||
|
|
@ -113,6 +115,7 @@ function main() {
|
|||
|
||||
config('name', args.name);
|
||||
config('auth', args.auth);
|
||||
config('cache', args.cache);
|
||||
config('online', args.online);
|
||||
config('open', args.open);
|
||||
config('username', args.username);
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
"--vim ": "enable vim hot keys",
|
||||
"--columns ": "set visible columns",
|
||||
"--keys-panel ": "show keys panel",
|
||||
"--cache ": "enable cache",
|
||||
"--no-server ": "do not start server",
|
||||
"--no-auth ": "disable authorization",
|
||||
"--no-online ": "load scripts from local server",
|
||||
|
|
@ -46,5 +47,6 @@
|
|||
"--no-terminal ": "disable terminal",
|
||||
"--no-vim ": "disable vim hot keys",
|
||||
"--no-keys-panel ": "hide keys panel",
|
||||
"--no-columns ": "set default visible columns"
|
||||
"--no-columns ": "set default visible columns",
|
||||
"--no-cache ": "disable cache"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ programs in browser from any computer, mobile or tablet device.
|
|||
--vim enable vim hot keys
|
||||
--columns set visible columns
|
||||
--keys-panel show keys panel
|
||||
--cache enable cache
|
||||
--no-auth disable authorization
|
||||
--no-server do not start server
|
||||
--no-online load scripts from local server
|
||||
|
|
@ -70,6 +71,7 @@ programs in browser from any computer, mobile or tablet device.
|
|||
--no-vim disable vim hot keys
|
||||
--no-columns set visible default columns
|
||||
--no-keys-panel hide keys panel
|
||||
--no-cache disable cache
|
||||
|
||||
.SH RESOURCES AND DOCUMENTATION
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue