-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Specification
The secrets edit command has never had a Windows implementation. As such, this command is currently defunct for Windows. This is a major usability issue and this must be addressed before multiplatform tests can be added onto the CI.
Windows -
VISUAL,EDITOR, get the.txtfile association first, then default tonotepad.exeand wait for it to finish. Windows never had a default terminal text editor.If the defaults cannot be found, you need to error out, indicating that no default editor could be found, and users can instead choose to set
VISUAL,EDITORor pass in the"editor"program with--edor something.Furthermore it is important that the temporary being created can only be edited by the same user as the user who ran
polykey secrets edit, otherwise it can be intercepted. The file should have a limitedumask, like 700 equivalent for Windows.
Additional context
- Relevant discussion about
secrets editcommand in Polykey-CLI#277
Tasks
- Implement
secrets editfor Windows - Make sure all the
secrets edittests are passing on Windows