Command line interface class. Supports various styles of executing the
registered plugins. Each plugin is given the chance to update this class
by adding methods of the form "do_<plugin name>".
|
__init__(self,
prog=sys.argv [0])
Also sets the "_client" field for this instance to None. |
source code
|
|
|
|
|
invoke(self,
line,
strict=False,
previous_args=None)
Copied from cmd.py |
source code
|
|
|
|
|
|
|
|
|
postcmd(self,
stop,
line)
Checks interrupt_loop for True and return as much which will end the
call to cmdloop. |
source code
|
|
|
execute(self,
line,
previous_args)
String/list handling as well as EOF and comment handling. |
source code
|
|
|
|
|
completenames(self,
text,
line,
begidx,
endidx) |
source code
|
|
|
|
|
|
|
_env(self)
Configure environment with PYTHONPATH as setup by bin/omero |
source code
|
|
|
|
|
call(self,
args,
strict=True,
cwd=None)
Calls the string in a subprocess and dies if the return value is not
0 |
source code
|
|
|
popen(self,
args,
cwd=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
**kwargs) |
source code
|
|
|
|
|
|
|
initData(self,
properties=None)
Uses "omero prefs" to create an Ice.InitializationData(). |
source code
|
|
|
|
|
|
|
|
|
register_only(self,
name,
Control,
help)
This method is added to the globals when execfile() is called on each
plugin. |
source code
|
|
|
configure_plugins(self)
Run to instantiate and configure all plugins which were registered
via register_only() |
source code
|
|
|
|
|
loadplugins(self)
Finds all plugins and gives them a chance to register themselves with
the CLI instance. |
source code
|
|
|
|
Inherited from Context :
dbg ,
err ,
get ,
input ,
out ,
parser_init ,
post_process ,
pub ,
pythonpath ,
safePrint ,
set ,
sleep ,
userdir
|