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>".
|
|
|
|
|
|
|
precmd(self,
input)
Hook method executed just before the command line is interpreted, but
after the input prompt is generated and issued. |
source code
|
|
|
onecmd(self,
line)
Interpret the argument as though it had been typed in response to the
prompt. |
source code
|
|
|
postcmd(self,
stop,
line)
Hook method executed just after a command dispatch is finished. |
source code
|
|
|
|
|
parseline(self,
line)
Overrides the parseline functionality of cmd.py in order to take
command line parameters without shlex'ing and unshlex'ing them. |
source code
|
|
|
default(self,
arg)
Called on an input line when the command prefix is not recognized. |
source code
|
|
|
|
|
|
|
do_start(self,
args)
Alias for "node start" |
source code
|
|
|
|
|
|
|
pub(self,
args)
Publishes the command, using the first argument as routing
information, i.e. |
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
|
|
|
|
|
|
|
|
|
initData(self,
properties={})
Uses "omero prefs" to create an Ice.InitializationData(). |
source code
|
|
|
conn(self,
properties={},
profile=None)
Either creates or returns the exiting omero.client instance. |
source code
|
|
|
register(self,
name,
Control)
This method is added to the globals when execfile() is called on each
plugin. |
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 ,
completedefault ,
do_help ,
get_names ,
postloop ,
preloop ,
print_topics
Inherited from Context :
dbg ,
err ,
input ,
out ,
pythonpath ,
safePrint ,
setdebug ,
userdir
|