yaq-project / yaqd-control

Command line tools for inspecting and controlling yaq daemons.
https://control.yaq.fyi
GNU Lesser General Public License v3.0
2 stars 3 forks source link

warn users on edit-config if name has strange characters. #4

Closed ddkohler closed 1 year ago

ddkohler commented 2 years ago

Give users a notice if e.g. dash/space is in the device name

ksunden commented 2 years ago

yaq itself is actually mostly fine with any string, but we may wish to specify a lowest common denominator so we work well with things like happi which expect names to be valid (python or otherwise) identifiers following some regex e.g. [a-zA-z_][a-zA-z0-9_]* (python is a bit broader, allowing "letterlike" unicode characters, but such a regex may guarantee interoperability with a wider array of other tools.