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

omero load --glob #137

Closed manics closed 4 years ago

manics commented 4 years ago

Closes https://github.com/ome/omero-py/issues/120

For example, omero load --glob /opt/omero/server/config/*.omero will sort files /opt/omero/server/config/*.omero before loading them

joshmoore commented 4 years ago

LGTM. Merging. The only feature I can imagine is that the commands that are being loaded could also show up under self.ctx.dbg:

(omero-virtualenv) bash-4.2$ head t/0*
==> t/01.omero <==
version

==> t/02.omero <==
admin ice server pid Blitz-0

==> t/03.omero <==
config get
(omero-virtualenv) bash-4.2$ bin/omero -d1 load --glob t/*.omero
Loading file t/01.omero
5.6.dev8
Loading file t/02.omero
Executing: ['icegridadmin', '--Ice.Config=/home/omero/workspace/OMERO-test-integration/src/dist/etc/internal.cfg', '-e', 'server pid Blitz-0']
36717
Loading file t/03.omero
omero.data.dir=/home/omero/workspace/OMERO-test-integration/data