Handle missing $EDITOR in abra app ... config #41

Closed
opened 2020-11-17 21:59:34 +00:00 by 3wordchant · 1 comment
Owner

Currently, if $EDITOR isn't set, abra ... config fails:

/home/xxx/.local/bin/abra: line 616: /home/xxx/.abra/servers/swarm.autonomic.zone/domain.tld.env: Permission denied

At minimum we should give a more helpful error message.

Even better would be to ask for which editor to use, and maybe try and auto-detect some installed editors to offer suggestions.

Currently, if `$EDITOR` isn't set, `abra ... config` fails: `/home/xxx/.local/bin/abra: line 616: /home/xxx/.abra/servers/swarm.autonomic.zone/domain.tld.env: Permission denied` At minimum we should give a more helpful error message. Even better would be to ask for which editor to use, and maybe try and auto-detect some installed editors to offer suggestions.
decentral1se added the
enhancement
label 2020-12-29 13:06:48 +00:00
decentral1se added
bug
and removed
enhancement
labels 2020-12-29 15:32:02 +00:00
Author
Owner
WARNING: $EDITOR not set; which text editor would you like to use?
1) vi
2) vim
#? 1
SUCCESS: Using 'vi'; Add 'export EDITOR=vi' to your ~/.bashrc to set as default

(It also checks for nano, pico and emacs which I don't have installed)

```$ abra app customhtml_foo_bar_com config WARNING: $EDITOR not set; which text editor would you like to use? 1) vi 2) vim #? 1 SUCCESS: Using 'vi'; Add 'export EDITOR=vi' to your ~/.bashrc to set as default ``` (It also checks for `nano`, `pico` and `emacs` which I don't have installed)
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#41
No description provided.