pcdshub / happi

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

Add `happi rename` and also fix happi edit of 'name' field #328

Open klauer opened 1 year ago

klauer commented 1 year ago

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:

Possible Solution

Add new rename command and fix up happi edit The backends may need a corresponding function for renaming