RPKI Engine
1.0
|
Public Member Functions | |
def | __init__ |
def | cmdloop_with_history |
def | complete_help |
def | completenames |
def | do_EOF |
def | do_exit |
def | emptyline |
def | filename_complete |
def | help_help |
def | onecmd |
Static Public Attributes | |
cmdloop_with_history = cmd.Cmd.cmdloop | |
do_quit = do_exit | |
emptyline_repeats_last_command = False | |
EOF_exits_command_loop = True | |
histfile = None | |
string | identchars = "/-." |
def rpki::cli::Cmd::__init__ | ( | self, | |
argv = None |
|||
) |
Definition at line 42 of file cli.py.
References cmdloop_with_history, and onecmd().
def rpki::cli::Cmd::cmdloop_with_history | ( | self | ) |
Better command loop, with history file and tweaked readline completion delimiters.
Definition at line 132 of file cli.py.
References cmdloop_with_history, histfile, and identchars.
def rpki::cli::Cmd::complete_help | ( | self, | |
args | |||
) |
def rpki::cli::Cmd::completenames | ( | self, | |
text, | |||
ignored | |||
) |
def rpki::cli::Cmd::do_EOF | ( | self, | |
arg | |||
) |
Exit program.
Definition at line 61 of file cli.py.
References EOF_exits_command_loop, and rpki::myrpki::main::prompt.
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.
References emptyline_repeats_last_command.
def rpki::cli::Cmd::filename_complete | ( | self, | |
text, | |||
line, | |||
begidx, | |||
endidx | |||
) |
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.
References help_help().
Referenced by help_help().
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.
Referenced by __init__().
rpki::cli::Cmd::cmdloop_with_history = cmd.Cmd.cmdloop [static] |
Definition at line 153 of file cli.py.
Referenced by __init__(), and cmdloop_with_history().
rpki::cli::Cmd::do_quit = do_exit [static] |
rpki::cli::Cmd::emptyline_repeats_last_command = False [static] |
Definition at line 34 of file cli.py.
Referenced by emptyline().
rpki::cli::Cmd::EOF_exits_command_loop = True [static] |
rpki::cli::Cmd::histfile = None [static] |
Reimplemented in rpki::myrpki::main.
Definition at line 40 of file cli.py.
Referenced by cmdloop_with_history().
string rpki::cli::Cmd::identchars = "/-." [static] |
Definition at line 38 of file cli.py.
Referenced by cmdloop_with_history().