Skip to content

Commit b232d4c

Browse files
committed
feature(cloudcmd) add support of env variable CLOUDCMD_CONSOLE
1 parent a5656d1 commit b232d4c

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

HELP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ Some config options can be overridden with `environment variables` such:
340340
- `CLOUDCMD_EDITOR` - set editor
341341
- `CLOUDCMD_CONTACT` - enable contact
342342
- `CLOUDCMD_CONFIG_DIALOG` - enable config dialog
343+
- `CLOUDCMD_CONSOLE` - enable console
343344
- `CLOUDCMD_TERMINAL` - enable terminal
344345
- `CLOUDCMD_TERMINAL_PATH` - set terminal path
345346
- `CLOUDCMD_AUTH` - enable authentication

app.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@
2727
"value": "true",
2828
"required": false
2929
},
30+
"CLOUDCMD_CONFIG_DIALOG": {
31+
"description": "show config dialog",
32+
"value": "false",
33+
"required": false
34+
},
35+
"CLOUDCMD_CONSOLE": {
36+
"description": "enable console",
37+
"value": "true",
38+
"required": false
39+
},
3040
"CLOUDCMD_TERMINAL": {
3141
"description": "enable terminal",
3242
"value": "true",
@@ -37,11 +47,6 @@
3747
"value": "gritty",
3848
"required": false
3949
},
40-
"CLOUDCMD_CONFIG_DIALOG": {
41-
"description": "show config dialog",
42-
"value": "false",
43-
"required": false
44-
},
4550
"CLOUDCMD_NAME": {
4651
"description": "set tab name in web browser",
4752
"value": "",

bin/cloudcmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const args = require('minimist')(argv.slice(2), {
6060
root : config('root'),
6161
prefix : config('prefix'),
6262
progress : config('progress'),
63-
console : config('console'),
63+
console : choose(env.bool('console'), config('console')),
6464
contact : choose(env.bool('contact'), config('contact')),
6565
terminal : choose(env.bool('terminal'), config('terminal')),
6666

0 commit comments

Comments
 (0)