Open klauer opened 1 year ago
Add CLI entrypoint for easy renaming: $ happi rename at2l0 at2l0_foobar or perhaps $ happi rename at2l0=at2l0_foobar at1k4=at1k4_foobar
$ happi rename at2l0 at2l0_foobar
$ happi rename at2l0=at2l0_foobar at1k4=at1k4_foobar
This would update the 'name' field, the internal '_id', and the parent JSON db key for that backend
I believe this is how it'll work as-is, but correct me if not:
happi edit
happi repair
Add new rename command and fix up happi edit The backends may need a corresponding function for renaming
rename
Expected Behavior
Add CLI entrypoint for easy renaming:
$ happi rename at2l0 at2l0_foobar
or perhaps$ happi rename at2l0=at2l0_foobar at1k4=at1k4_foobar
This would update the 'name' field, the internal '_id', and the parent JSON db key for that backend
Current Behavior
I believe this is how it'll work as-is, but correct me if not:
happi edit
happi repair
(post #327) will reset the name to the id in the case of the JSON backendPossible Solution
Add new
rename
command and fix uphappi edit
The backends may need a corresponding function for renaming