Update secrets edit
to dynamically find the preferred editor
#277
Labels
development
Standard development
secrets edit
to dynamically find the preferred editor
#277
Specification
This issue is a continuation of #266 (ENG-398). In the previous issue, support for creating a file if it doesn't already exist in the vault was added. To finish off this issue, we need to identify the preferred editor of each platform and use that, instead of relying on
$EDITOR
.Each platform has their own preferences for file editor. As such, identify and launch the corresponding file editor to edit the secret. Windows would have
notepad.exe
, and MacOS and Linux editors would require to be inferred from environment. To ensure everything is working smoothly, integration tests need to be done on all the given platforms.The behaviour of
secrets edit
command shouldn't be what is simplest. It should be what makes the most sense.Additional context
pk secrets *
#32 (ENG-115)pk secrets *
#32 (comment)secrets edit
command #266 (ENG-398)Tasks
The text was updated successfully, but these errors were encountered: