| Home | Trees | Index | Help |
|
|---|
| Package lyntin :: Module commandmanager :: Class CommandManager |
|
Manager --+
|
CommandManager
The CommandManager holds a series of _CommandData objects and methods to manipulate and use them. Lyntin developers can add their own commands to Lyntin.
There should be one instance of the CommandManager and the engine should have it. All CommandManager interaction should be done through the exported module.| Method Summary | |
|---|---|
__init__(self,
e)
| |
Registers a command. | |
| None or string |
Takes in user command lines and handles commands that start with a Lyntin command character. |
| ArgParser instance |
Returns the arguments parser for a given command name. |
| function |
Returns the function for a given command name. |
| list of strings |
Returns a list of the commands we have registered. |
| boolean |
Removes a command (and the help text) for whatever reasons. |
| Inherited from Manager | |
Tells the manager to create a new session based on another session. | |
Removes everything the manager was managing--essentially reinitializes it. | |
| string |
Returns information managed by this class. |
| list of mappings |
Returns a list of maps of parameter name -> value that represents all the info this manager is managing for this session. |
| list of strings |
Returns a list of the items that this manager manages. |
| list of tuples |
Returns a list of tuples of the parameters we're storing in this manager and the description of each parameter. |
| string |
Returns a one-liner status of the state of this manager for a given session. |
Tells the manager to remove information regarding the session. | |
| Method Details |
|---|
addCommand(self, name, func, arguments=None, argoptions=None, helptext='')Registers a command.
|
filter(self, args)Takes in user command lines and handles commands that start with a Lyntin command character.
|
getArgParser(self, name)Returns the arguments parser for a given command name.
|
getCommand(self, name)Returns the function for a given command name.
|
getCommands(self)Returns a list of the commands we have registered.
|
removeCommand(self, name)Removes a command (and the help text) for whatever reasons.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 9 09:17:42 2004 | http://epydoc.sf.net |