Package madgraph :: Package interface :: Module extended_cmd :: Class BasicCmd
[hide private]
[frames] | no frames]

Class BasicCmd

source code

 object --+    
          |    
OriginalCmd --+
              |
             BasicCmd
Known Subclasses:

Simple extension for the readline

Instance Methods [hide private]
 
set_readline_completion_display_matches_hook(self)
This has been refactorized here so that it can be called when another program called by MG5 (such as MadAnalysis5) changes this attribute of readline
source code
 
preloop(self)
Hook method executed once when the cmdloop() method is called.
source code
 
deal_multiple_categories(self, dico, formatting=True, forceCategory=False)
convert the multiple category in a formatted list understand by our specific readline parser
source code
 
print_suggestions(*args, **opt)
print auto-completions by category
source code
 
getTerminalSize(self) source code
 
complete(self, text, state)
Return the next possible completion for 'text'.
source code

Inherited from OriginalCmd: __init__, cmdloop, columnize, complete_help, completedefault, completenames, default, do_help, emptyline, get_names, onecmd, parseline, postcmd, postloop, precmd, print_topics

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
split_arg(line)
Split a line of arguments
source code
 
list_completion(text, list, line='')
Propose completions of text in list
source code
 
path_completion(text, base_dir=None, only_dirs=False, relative=True)
Propose completions of text to compose a valid path
source code
Class Variables [hide private]

Inherited from OriginalCmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

preloop(self)

source code 

Hook method executed once when the cmdloop() method is called.

Overrides: OriginalCmd.preloop
(inherited documentation)

print_suggestions(*args, **opt)

source code 

print auto-completions by category

Decorators:
  • @debug()

complete(self, text, state)

source code 

Return the next possible completion for 'text'. If a command has not been entered, then complete against command list. Otherwise try to call complete_<command> to get list of completions.

Overrides: OriginalCmd.complete