ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
22 stars 32 forks source link

Extend output of 'omero version' #176

Closed joshmoore closed 4 years ago

joshmoore commented 4 years ago

Intent is to clarify that different version numbers that a user may need to be aware of. omero_version remains the main output (on stdout) but reference is made on stderr to "OMERO.py" and if OMERODIR is accessible, then a version is also printed for OMERO.server.

joshmoore commented 4 years ago

e.g.

$ omero version
OMERO.py version:
5.6.1.dev1
OMERO.server version:
5.6.1-ice36-SNAPSHOT
manics commented 4 years ago

Probably fine for interactive users. Not so great if this is intended to be parsed. If this goes in now are further changes possible or would that be considered breaking?

joshmoore commented 4 years ago

I'd think for the parsing-user, we'd introduce a new flag and/or command, e.g. omero version --json, since I don't think there's a way that we can make this parseable without already being breaking.

joshmoore commented 4 years ago

Cheers. Merging. Leaving someone else to drive a release if it's wanted/needed.