Closed joshmoore closed 3 years ago
This pull request has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/line-breaks-in-descriptions-via-cli/49236/6
Tested the two commands suggested in https://github.com/ome/openmicroscopy/pull/6265 against a CI server with this fix included. Everything works as expected and multi-line descriptions render as multi-line.
The omero obj update Dataset:123 description=$'A\nB'
syntax is not very intuitive so I don't know whether this should be captured in the help or whether the expectation is simply that someone trying to update a field with the CLI will naturally use the second form.
Otherwise LGTM
Yeah, it'll be dependent on someone's shell, etc etc.
Tested locally. 👍
The regex used for capturing the string after the = symbol currently stops at the first newline. This passes
re
flags to allow capturing the multiline.More tests are needed.
see: https://forum.image.sc/t/line-breaks-in-descriptions-via-cli/49236/4