rpki.cli.Cmd Class Reference
Inherits cmd::Cmd.
Inherited by rpki.myrpki.main.
List of all members.
Detailed Description
Customized subclass of Python cmd module.
Definition at line 29 of file cli.py.
Member Function Documentation
def rpki.cli.Cmd.__init__ |
( |
|
self, |
|
|
|
argv = None | |
|
) |
| | |
Better command loop, with history file and tweaked readline
completion delimiters.
Definition at line 132 of file cli.py.
def rpki.cli.Cmd.complete_help |
( |
|
self, |
|
|
|
args | |
|
) |
| | |
Better completion function for help command arguments.
Definition at line 119 of file cli.py.
def rpki.cli.Cmd.completenames |
( |
|
self, |
|
|
|
text, |
|
|
|
ignored | |
|
) |
| | |
Command name completion handler, with hack to restore what I
consider the normal (bash-like) behavior when one hits the
completion key and there's only one match.
Definition at line 101 of file cli.py.
def rpki.cli.Cmd.do_EOF |
( |
|
self, |
|
|
|
arg | |
|
) |
| | |
def rpki.cli.Cmd.do_exit |
( |
|
self, |
|
|
|
arg | |
|
) |
| | |
def rpki.cli.Cmd.emptyline |
( |
|
self |
) |
|
Handle an empty line. cmd module default is to repeat the last
command, which I find to be violation of the principal of least
astonishment, so my preference is that an empty line does nothing.
Definition at line 77 of file cli.py.
def rpki.cli.Cmd.filename_complete |
( |
|
self, |
|
|
|
text, |
|
|
|
line, |
|
|
|
begidx, |
|
|
|
endidx | |
|
) |
| | |
Filename completion handler, with hack to restore what I consider
the normal (bash-like) behavior when one hits the completion key
and there's only one match.
Definition at line 86 of file cli.py.
def rpki.cli.Cmd.help_help |
( |
|
self |
) |
|
Type "help [topic]" for help on a command,
or just "help" for a list of commands.
Definition at line 112 of file cli.py.
def rpki.cli.Cmd.onecmd |
( |
|
self, |
|
|
|
line | |
|
) |
| | |
Wrap error handling around cmd.Cmd.onecmd(). Might want to do
something kinder than showing a traceback, eventually.
Definition at line 49 of file cli.py.
Member Data Documentation
The documentation for this class was generated from the following file: