pcdshub / happi

Heuristic Access to Positions of Photon Instruments
https://pcdshub.github.io/happi/master
Other
13 stars 29 forks source link

ENH: add new cli command edit-config #313

Closed untzag closed 1 year ago

untzag commented 1 year ago

Description

Adds new command-line syntax happi edit-config, which opens the config file in $EDITOR. This way people don't have to remember or care where the config file is. On Windows falls back to notepad, elsewise vi.

Motivation and Context

In conjunction with #312, I'm trying to make happi more end-user friendly, especially on Windows and non-managed machines. I personally like this pattern and yaq users are used to "... edit-config".

How Has This Been Tested?

Works on my machine :smile:. If y'all want tests let me know.

Where Has This Been Documented?

Click's magic means it shows up under happi --help

Pre-merge checklist