Skip to content

Commit cc1205f

Browse files
committed
feature(cloudcmd) add support of CLOUDCMD_ONE_PANEL_MODE (#64)
1 parent 98609fd commit cc1205f

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

HELP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ Some config options can be overridden with `environment variables` such:
347347
- `CLOUDCMD_USERNAME` - set username
348348
- `CLOUDCMD_PASSWORD` - set password
349349
- `CLOUDCMD_ROOT` - set root directory
350+
- `CLOUDCMD_ONE_PANEL_MODE` - set one panel mode
350351

351352
Menu
352353
---------------

app.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
"description": "set root dir",
7272
"value": "",
7373
"required": false
74+
},
75+
"CLOUDCMD_ONE_PANEL_MODE": {
76+
"description": "set one panel mode",
77+
"value": "false",
78+
"required": false
7479
}
7580
}
7681
}

bin/cloudcmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const args = require('minimist')(argv.slice(2), {
6666

6767
'terminal-path': env('terminal_path') || config('terminalPath'),
6868
'config-dialog': choose(env.bool('config_dialog'), config('configDialog')),
69-
'one-panel-mode': config('onePanelMode'),
69+
'one-panel-mode': choose(env.bool('one_panel_mode'), config('onePanelMode')),
7070
'html-dialogs': config('htmlDialogs')
7171
},
7272
alias: {

0 commit comments

Comments
 (0)