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
|
|
|
|
|
postloop(self)
Hook method executed once when the cmdloop() method is about to
return. |
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
|
|
|
completedefault(self,
*args)
Method called to complete an input line when no command-specific
complete_*() method is available. |
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={})
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 cmd.Cmd :
cmdloop ,
columnize ,
complete ,
complete_help ,
default ,
do_help ,
emptyline ,
get_names ,
parseline ,
precmd ,
preloop ,
print_topics
Inherited from Context :
add_login ,
dbg ,
err ,
get ,
input ,
out ,
parser_init ,
post_process ,
pub ,
pythonpath ,
safePrint ,
set ,
sleep ,
userdir
|