Skip to content

Commit 689dd03

Browse files
committed
feature(cloudcmd) add ability to set packer with: --packer: "tar" or "zip"
1 parent a4d8c19 commit 689dd03

File tree

23 files changed

+235
-41
lines changed

23 files changed

+235
-41
lines changed

HELP.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Cloud Commander supports command line parameters:
6969
| `-p, --password` | set password
7070
| `-c, --config` | configuration file path
7171
| `--editor` | set editor: "dword", "edward" or "deepword"
72+
| `--packer` | set packer: "tar" or "zip"
7273
| `--root` | set root directory
7374
| `--prefix` | set url prefix
7475
| `--port` | set port number
@@ -236,6 +237,7 @@ Here is description of options:
236237
"password" : "toor", /* password hash in sha-1 for authentication*/
237238
"algo" : "sha512WithRSAEncryption", /* cryptographic algorithm */
238239
"editor" : "edward", /* default, could be "dword" or "edward" */
240+
"packer" : "tar", /* default, could be "tar" or "zip" */
239241
"diff" : true, /* when save - send patch, not whole file */
240242
"zip" : true, /* zip text before send / unzip before save */
241243
"notifications" : false, /* show notifications when tab is not active*/

bin/cloudcmd.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const args = require('minimist')(argv.slice(2), {
1818
'username',
1919
'config',
2020
'editor',
21+
'packer',
2122
'root',
2223
'prefix'
2324
],
@@ -42,6 +43,8 @@ const args = require('minimist')(argv.slice(2), {
4243
online : config('online'),
4344
open : config('open'),
4445
editor : config('editor') || 'edward',
46+
packer : config('packer') || 'tar',
47+
zip : config('zip'),
4548
username : config('username'),
4649
root : config('root') || '/',
4750
prefix : config('prefix') || '',
@@ -96,6 +99,7 @@ if (args.version) {
9699
const options = {
97100
root: args.root,
98101
editor: args.editor,
102+
packer: args.packer,
99103
prefix: args.prefix
100104
};
101105

img/screen/config.png

11.2 KB
Loading

img/screen/console.png

-108 Bytes
Loading

img/screen/edit.png

-108 Bytes
Loading

img/screen/menu.png

15.9 KB
Loading

img/screen/one-panel-mode.png

-3.11 KB
Loading

img/screen/view.png

68.5 KB
Loading

json/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"password": "2b64f2e3f9fee1942af9ff60d40aa5a719db33b8ba8dd4864bb4f11e25ca2bee00907de32a59429602336cac832c8f2eeff5177cc14c864dd116c8bf6ca5d9a9",
55
"algo": "sha512WithRSAEncryption",
66
"editor": "edward",
7+
"packer": "tar",
78
"diff": true,
89
"zip" : true,
910
"notifications": false,

json/help.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"-p, --password ": "set password",
99
"-c, --config ": "configuration file path",
1010
"--editor ": "set editor: \"dword\" or \"edward\"",
11+
"--packer ": "set packer: \"tar\" or \"zip\"",
1112
"--root ": "set root directory",
1213
"--prefix ": "set url prefix",
1314
"--port ": "set port number",

0 commit comments

Comments
 (0)