seq  2.0.0
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cli.seqobx.SeqInterpreter Class Reference

Command interprete. More...

Inheritance diagram for cli.seqobx.SeqInterpreter:
cli.seqcmd.AsyncCmd

Public Member Functions

def __init__ (self, loop, evt, json_output=False, log_level=logging.INFO)
 cto More...
 
def json_reply (self, cmd, d)
 Produces a json reply. More...
 
def exc_handler (self, exc)
 Exception handler. More...
 
def emptyline (self)
 do not break the loop on empty line More...
 
def q_waiter (self)
 
def do_init (self, arg="")
 init command More...
 
def do_quit (self, line)
 
def do_EOF (self, line)
 
def do_load (self, line)
 
def do_modules (self, arg)
 modules command More...
 
def do_tree (self, arg)
 
def tpl_done_cb (self, task)
 done callback More...
 
def do_run (self, arg)
 Executes all loaded modules. More...
 
def do_retry (self, arg)
 
def do_continue (self, arg)
 
def do_load_module (self, line)
 
def do_nodes (self, arg)
 
def do_resume (self, arg)
 
def do_save (self, arg)
 save command More...
 
def do_session (self, arg)
 session command More...
 
def do_node (self, arg)
 node command More...
 
def do_skip (self, arg)
 skip command More...
 
def do_unskip (self, arg)
 unskip command More...
 
def do_pause (self, arg)
 pause command More...
 
def do_flip (self, arg)
 
def do_ob (self, arg)
 
def do_lsob (self, arg)
 
def do_lsvar (self, arg)
 
def do_setvar (self, arg)
 set variable More...
 
def do_err (self, arg)
 forces an exception More...
 
def do_err2 (self, arg)
 
def do_json (self, arg)
 json output command More...
 
- Public Member Functions inherited from cli.seqcmd.AsyncCmd
def cb (self, f, arg, future)
 
def onecmd (self, line)
 Interpret the argument as though it had been typed in response to the prompt. More...
 

Public Attributes

 quit_event
 
 queue_task
 
 json_output
 
 s_json
 
- Public Attributes inherited from cli.seqcmd.AsyncCmd
 use_rawinput
 
 loop
 
 repl_future
 
 lastcmd
 

Static Public Attributes

bool use_rawinput = False
 
 current_task = None
 
 session = Session()
 
 modules_json = None
 
 ob = None
 
dictionary s_json = {}
 
dictionary tree = {}
 
string prompt = "(Core)> "
 
bool json_output = False
 
 log_level = logging.INFO
 

Detailed Description

Command interprete.

Constructor & Destructor Documentation

◆ __init__()

def cli.seqobx.SeqInterpreter.__init__ (   self,
  loop,
  evt,
  json_output = False,
  log_level = logging.INFO 
)

cto

Reimplemented from cli.seqcmd.AsyncCmd.

Member Function Documentation

◆ do_continue()

def cli.seqobx.SeqInterpreter.do_continue (   self,
  arg 
)
continue command

◆ do_EOF()

def cli.seqobx.SeqInterpreter.do_EOF (   self,
  line 
)
EOF handler

◆ do_err()

def cli.seqobx.SeqInterpreter.do_err (   self,
  arg 
)

forces an exception

◆ do_err2()

def cli.seqobx.SeqInterpreter.do_err2 (   self,
  arg 
)
foces another exception

◆ do_flip()

def cli.seqobx.SeqInterpreter.do_flip (   self,
  arg 
)
flip command

◆ do_init()

def cli.seqobx.SeqInterpreter.do_init (   self,
  arg = "" 
)

init command

◆ do_json()

def cli.seqobx.SeqInterpreter.do_json (   self,
  arg 
)

json output command

◆ do_load()

def cli.seqobx.SeqInterpreter.do_load (   self,
  line 
)
load command

◆ do_load_module()

def cli.seqobx.SeqInterpreter.do_load_module (   self,
  line 
)
N/a

◆ do_lsob()

def cli.seqobx.SeqInterpreter.do_lsob (   self,
  arg 
)
list loaded OBs

◆ do_lsvar()

def cli.seqobx.SeqInterpreter.do_lsvar (   self,
  arg 
)
list variables

◆ do_modules()

def cli.seqobx.SeqInterpreter.do_modules (   self,
  arg 
)

modules command

◆ do_node()

def cli.seqobx.SeqInterpreter.do_node (   self,
  arg 
)

node command

◆ do_nodes()

def cli.seqobx.SeqInterpreter.do_nodes (   self,
  arg 
)
nodes command

◆ do_ob()

def cli.seqobx.SeqInterpreter.do_ob (   self,
  arg 
)
Loads OB file (json)

◆ do_pause()

def cli.seqobx.SeqInterpreter.do_pause (   self,
  arg 
)

pause command

◆ do_quit()

def cli.seqobx.SeqInterpreter.do_quit (   self,
  line 
)
quit command

◆ do_resume()

def cli.seqobx.SeqInterpreter.do_resume (   self,
  arg 
)
resume command

◆ do_retry()

def cli.seqobx.SeqInterpreter.do_retry (   self,
  arg 
)
retry command

◆ do_run()

def cli.seqobx.SeqInterpreter.do_run (   self,
  arg 
)

Executes all loaded modules.

◆ do_save()

def cli.seqobx.SeqInterpreter.do_save (   self,
  arg 
)

save command

◆ do_session()

def cli.seqobx.SeqInterpreter.do_session (   self,
  arg 
)

session command

◆ do_setvar()

def cli.seqobx.SeqInterpreter.do_setvar (   self,
  arg 
)

set variable

◆ do_skip()

def cli.seqobx.SeqInterpreter.do_skip (   self,
  arg 
)

skip command

◆ do_tree()

def cli.seqobx.SeqInterpreter.do_tree (   self,
  arg 
)
tree command

◆ do_unskip()

def cli.seqobx.SeqInterpreter.do_unskip (   self,
  arg 
)

unskip command

◆ emptyline()

def cli.seqobx.SeqInterpreter.emptyline (   self)

do not break the loop on empty line

◆ exc_handler()

def cli.seqobx.SeqInterpreter.exc_handler (   self,
  exc 
)

Exception handler.

Reimplemented from cli.seqcmd.AsyncCmd.

◆ json_reply()

def cli.seqobx.SeqInterpreter.json_reply (   self,
  cmd,
  d 
)

Produces a json reply.

   writes to stdout

◆ q_waiter()

def cli.seqobx.SeqInterpreter.q_waiter (   self)
Monitors ob queue where node state changes are reported.

◆ tpl_done_cb()

def cli.seqobx.SeqInterpreter.tpl_done_cb (   self,
  task 
)

done callback

Member Data Documentation

◆ current_task

cli.seqobx.SeqInterpreter.current_task = None
static

◆ json_output [1/2]

bool cli.seqobx.SeqInterpreter.json_output = False
static

◆ json_output [2/2]

cli.seqobx.SeqInterpreter.json_output

◆ log_level

cli.seqobx.SeqInterpreter.log_level = logging.INFO
static

◆ modules_json

cli.seqobx.SeqInterpreter.modules_json = None
static

◆ ob

cli.seqobx.SeqInterpreter.ob = None
static

◆ prompt

string cli.seqobx.SeqInterpreter.prompt = "(Core)> "
static

◆ queue_task

cli.seqobx.SeqInterpreter.queue_task

◆ quit_event

cli.seqobx.SeqInterpreter.quit_event

◆ s_json [1/2]

dictionary cli.seqobx.SeqInterpreter.s_json = {}
static

◆ s_json [2/2]

cli.seqobx.SeqInterpreter.s_json

◆ session

cli.seqobx.SeqInterpreter.session = Session()
static

◆ tree

dictionary cli.seqobx.SeqInterpreter.tree = {}
static

◆ use_rawinput

bool cli.seqobx.SeqInterpreter.use_rawinput = False
static

The documentation for this class was generated from the following file: