seq
2.0.0
|
Adapts cmd.Cmd class to handle asynchronous callbacks. More...
Public Member Functions | |
def | __init__ (self, loop, completekey='tab', stdin=None, stdout=None) |
def | cb (self, f, arg, future) |
def | exc_handler (self, exc) |
def | onecmd (self, line) |
Interpret the argument as though it had been typed in response to the prompt. More... | |
Public Attributes | |
use_rawinput | |
loop | |
repl_future | |
lastcmd | |
Adapts cmd.Cmd class to handle asynchronous callbacks.
def cli.seqcmd.AsyncCmd.__init__ | ( | self, | |
loop, | |||
completekey = 'tab' , |
|||
stdin = None , |
|||
stdout = None |
|||
) |
Reimplemented in cli.seqsh.SeqShell, and cli.seqobx.SeqInterpreter.
def cli.seqcmd.AsyncCmd.cb | ( | self, | |
f, | |||
arg, | |||
future | |||
) |
def cli.seqcmd.AsyncCmd.exc_handler | ( | self, | |
exc | |||
) |
Reimplemented in cli.seqobx.SeqInterpreter.
def cli.seqcmd.AsyncCmd.onecmd | ( | self, | |
line | |||
) |
Interpret the argument as though it had been typed in response to the prompt.
This may be overridden, but should not normally need to be; see the precmd() and postcmd() methods for useful execution hooks. The return value is a flag indicating whether interpretation of commands by the interpreter should stop.
cli.seqcmd.AsyncCmd.lastcmd |
cli.seqcmd.AsyncCmd.loop |
cli.seqcmd.AsyncCmd.repl_future |
cli.seqcmd.AsyncCmd.use_rawinput |