Skip to content

Commit

Permalink
feature(cloudcmd) add ability to override editor with CLOUDCMD_EDITOR…
Browse files Browse the repository at this point in the history
… environment variable
  • Loading branch information
coderaiser committed May 10, 2017
1 parent c71d087 commit 958973b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ Here is description of options:

Some config options can be overridden with `environment variables` such:

- `CLOUDCMD_EDITOR` - set editor
- `CLOUDCMD_TERMINAL` - enable terminal
- `CLOUDCMD_TERMINAL_PATH` - set terminal path
- `CLOUDCMD_CONFIG_DIALOG` - enable config dialog
Expand Down
5 changes: 5 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"value": "false",
"required": false
},
"CLOUDCMD_EDITOR": {
"description": "set editor",
"value": "edward",
"required": false
},
"CLOUDCMD_TERMINAL": {
"description": "enable terminal",
"value": "true",
Expand Down
2 changes: 1 addition & 1 deletion bin/cloudcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const args = require('minimist')(argv.slice(2), {
minify : config('minify'),
online : config('online'),
open : config('open'),
editor : config('editor') || 'edward',
editor : choose(env('editor'), config('editor')) || 'edward',
packer : config('packer') || 'tar',
zip : config('zip'),
username : config('username'),
Expand Down

0 comments on commit 958973b

Please sign in to comment.