Package visgraph :: Module cli :: Class GraphCli
[hide private]
[frames] | no frames]

Class GraphCli

source code

cmd.Cmd --+
          |
         GraphCli

Instance Methods [hide private]
 
__init__(self, graph=None)
Instantiate a line-oriented interpreter framework.
source code
 
do_addnode(self, line)
Add a node with the given key=value properties on the CLI.
source code
 
do_quit(self, line)
Exit the visgraph cli....
source code

Inherited from cmd.Cmd: cmdloop, columnize, complete, complete_help, completedefault, completenames, default, do_help, emptyline, get_names, onecmd, parseline, postcmd, postloop, precmd, preloop, print_topics

Class Variables [hide private]

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Method Details [hide private]

__init__(self, graph=None)
(Constructor)

source code 

Instantiate a line-oriented interpreter framework.

The optional argument 'completekey' is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used.

Overrides: cmd.Cmd.__init__
(inherited documentation)

do_addnode(self, line)

source code 

Add a node with the given key=value properties on the CLI. (the property nid is special and MUST be an integer)