ifw-core  5.0.0-pre2
Namespaces | Classes | Functions | Variables
acli Namespace Reference

Namespaces

 daq_async_commands
 
 daq_commands
 
 logger
 
 mal_client
 
 shell_base
 
 std_async_commands
 
 std_commands
 

Classes

class  CustomCompleter
 Prompt toolkit Custom Completer class. More...
 

Functions

def class_meta_data (class_name)
 Build metadata dictionary to be used by CustomCompleter class. More...
 
def interactive_shell (history, prompt, cmdobj, cmdif)
 Implements Prompt Toolkit asynchronous shell. More...
 
def main (module, class_name, class_args, prompt, history_file, log_level)
 Asynchronouos shell for interactive communication with servers. More...
 

Variables

 parse = None
 
 style
 
 log = logging.getLogger(__name__)
 

Function Documentation

◆ class_meta_data()

def acli.class_meta_data (   class_name)

Build metadata dictionary to be used by CustomCompleter class.

Parameters
class_nameClass name
Returns
Class metadata dictionary

This function inquiry command class and retrieve the meta information of its methods such as arguments and their descriptions.

◆ interactive_shell()

def acli.interactive_shell (   history,
  prompt,
  cmdobj,
  cmdif 
)

Implements Prompt Toolkit asynchronous shell.

Parameters
historyPrompt Toolkit file history object
promptPrompt string
cmdobjGeneric command shell object
cmdifClass instance implementing CLI commands

◆ main()

def acli.main (   module,
  class_name,
  class_args,
  prompt,
  history_file,
  log_level 
)

Asynchronouos shell for interactive communication with servers.

Variable Documentation

◆ log

acli.log = logging.getLogger(__name__)

◆ parse

acli.parse = None

◆ style

acli.style
Initial value:
1 = Style.from_dict(
2  {
3  'pygments.comment': '#888888 bold',
4  'pygments.keyword': '#ff88ff bold',
5  'pygments.literal.string': '#88aaaa',
6  "pygments.literal.string.doc": "#88aaaa",
7  "pygments.literal.string.interpol": "bold #88aaaa",
8  "pygments.literal.string.escape": "bold #88aaaa",
9  "pygments.literal.string.regex": "#88aaaa",
10  "pygments.literal.string.symbol": "#88aaaa",
11  "pygments.literal.string.other": "#88aaaa",
12  "completion-menu.completion": "bg:#008888 #ffffff",
13  "completion-menu.completion.current": "bg:#00aaaa #000000",
14  "scrollbar.background": "bg:#88aaaa",
15  "scrollbar.button": "bg:#222222",
16  }
17 )