|
|
|
|
|
__init__(self,
question,
allow_arg=[],
default=None,
mother_interface=None,
*arg,
**opt)
Instantiate a line-oriented interpreter framework. |
source code
|
|
|
|
| __call__(self,
question,
reprint_opt=True,
**opts) |
source code
|
|
|
|
completenames(self,
text,
line,
*ignored)
Method called to complete an input line when no command-specific
complete_*() method is available. |
source code
|
|
|
|
completedefault(self,
text,
line,
*ignored)
Method called to complete an input line when no command-specific
complete_*() method is available. |
source code
|
|
|
|
|
|
|
onecmd(self,
line,
**opt)
catch all error and stop properly command accordingly 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
|
|
|
|
cmdloop(self,
intro=None)
Repeatedly issue a prompt, accept input, parse an initial prefix off
the received input, and dispatch to action methods, passing them the
remainder of the line as argument. |
source code
|
|
|
Inherited from BasicCmd:
complete,
deal_multiple_categories,
getTerminalSize,
print_suggestions,
set_readline_completion_display_matches_hook
Inherited from OriginalCmd:
columnize,
parseline,
postloop,
precmd,
print_topics
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|