endorama / devid

Securely manage your developer personas
Apache License 2.0
2 stars 0 forks source link

Print allowed `EDITOR` when an invalid one is found #16

Closed endorama closed 1 week ago

endorama commented 3 months ago

When running new cmd, it will automatically open EDITOR to edit the created file. As a security measure the available values for EDITOR are restricted to an allow list. When a value not in the list is found this is the error:

❯ devid new wiki
$EDITOR environment variable value is not allowed (nvim)

A nice UX improvement would be to print the available values to avoid leaving the user in the dark about the possible values.