You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(creds): Add edit credentials command
* ensure EDITOR env var is checked
* Edit the entire credential set instead of picking each one
* fix spaces in EDITOR not opening editor correctly, e.g. using code.exe --wait
* add test, change editor to use context.CommandBuilder so it works
* add test for windows editor path
* Changes from feedback:
- shift editor into separate package, get it through editor.New()
- embed the context struct into editor directly
- use context.FileSystem instead of ioutil/os calls
- fix editor to split on spaces, add comment on why and examples
- remove "tempStrategy" stuff, edit the actual credentials directly
- shift windows-specific check into conditional compilation
with editor_windows.go, editor_nix.go etc
* fix parsing of editor command, pass this to the shell to do it for us
* fix tests
* remove restriction on editing an empty credential set (it's possible)
* use yaml extension for temp credential file for editor syntax, colors etc
* minor variable naming, use Wrap instead of Wrapf, and unnecessary byte casting
* minor tweaks to comment
* validate source keys are correct after editing credentials
* use multierrors for validation errors
* Adding tests for CredentialStorage.Validate
* show some slightly friendlier errors
0 commit comments