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
[x] Code works interactively
[x] Code contains descriptive docstrings, including context and API
[x] New/changed functions and methods are covered in the test suite where possible
[x] Test suite passes locally
[x] Test suite passes on GitHub Actions
[x] Ran docs/pre-release-notes.sh and created a pre-release documentation page
[x] Pre-release docs include context, functional descriptions, and contributors as appropriate
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
docs/pre-release-notes.sh
and created a pre-release documentation page