Trees | Indices | Help |
|
---|
|
Command tool for editing the config file.
Note that although we don't do saves after remove, the current ConfigWriter code does that; so we can't prevent someone from actually breaking the config with this tool. It's the users' responsibility to know what they're doing.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|
|||
prompt = "(/) "
|
|||
Inherited from |
|
Constructor for the ConfigShell object. The optional cfg_file argument will be used to load a config file at startup.
|
Empty line handling. Note that the default will re-run the last command. We don't want that, and just ignore the empty line.
|
Computes the list of subdirs and files in the given object. This, depending on the passed object entry, look at each logical child of the object and decides if it's a container or a simple object. Based on this, it computes the list of subdir and files. |
Precmd hook to prevent commands in invalid states. This will prevent everything except load and quit when no configuration is loaded.
|
Postcmd hook to update the prompt. We show the current location in the prompt and this function is used to update it; this is only needed after cd and load, but we update it anyway.
|
Load function. Syntax: load [/path/to/config/file] This will load a new configuration, discarding any existing data (if any). If no argument has been passed, it will use the default config file location. |
List the current entry. This will show directories with a slash appended and files normally. |
Changes the current path. Valid arguments: either .., /, "" (no argument) or a child of the current object. |
Shows the current path. This duplicates the prompt functionality, but it's reasonable to have. |
Shows the contents of the given file. This will display the contents of the given file, which must be a child of the current path (as shows by `ls`). |
Verify the configuration. This verifies the contents of the configuration file (and not the in-memory data, as every modify operation automatically saves the file). |
Saves the configuration data. Note that is redundant (all modify operations automatically save the data), but it is good to use it as in the future that could change. |
Removes an instance or a node. This function works only on instances or nodes. You must be in either `/nodes` or `/instances` and give a valid argument. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:32 2012 | http://epydoc.sourceforge.net |