Module cli
source code
Python driver for OMERO
Provides access to various OMERO.blitz server- and client-side
utilities, including starting and stopping servers, running analyses,
configuration, and more.
Usable via the ./omero script provided with the distribution as well
as from python via "import omero.cli; omero.cli.argv()"
Arguments are taken from (in order of priority): the run method
arguments, sys.argv, and finally from standard in using the
cmd.Cmd.cmdloop method.
Josh Moore, josh at glencoesoftware.com Copyright (c) 2007, Glencoe
Software, Inc. See LICENSE for details.
|
NonZeroReturnCode
|
|
Arguments
Wrapper for arguments in all controls.
|
|
Context
Simple context used for default logic.
|
|
BaseControl
Controls get registered with a CLI instance on loadplugins().
|
|
HelpControl
Defined here since the background loading might be too slow to have
all help available
|
|
CLI
Command line interface class.
|
|
argv(args=sys.argv)
Main entry point for the OMERO command-line interface. |
source code
|
|
|
sys = __import__("sys")
|
|
VERSION = omero_version
|
|
DEBUG = True
|
|
TEXT = ...
|
|
OMEROCLI = path(__file__).expand().dirname()
|
|
OMERODIR = OMEROCLI.dirname().dirname().dirname()
|
|
COMMENT = re.compile("^\s*#")
|
|
RELFILE = re.compile("^\w")
|
|
LINEWSP = re.compile("^\s*\w+\s+")
|
Imports:
cmd,
string,
re,
os,
subprocess,
socket,
exceptions,
traceback,
glob,
platform,
time,
pyshlex,
Exc,
Thread,
Lock,
omero_version,
path
Main entry point for the OMERO command-line interface. First loads all
plugins by passing them the classes defined here so they can register
their methods.
Then the case where arguments are passed on the command line are
handled.
Finally, the cli enters a command loop reading from standard in.
|
TEXT
- Value:
"""
OMERO Python Shell. Version %s
Type "help" for more information, "quit" or Ctrl-D to exit
""" % str(VERSION)
|
|