CSharpTest.Net
CommandInterpreter Class Members
See Also  Properties  Methods  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Commands Namespace : CommandInterpreter Class


Glossary Item Box

The following tables list the members exposed by CommandInterpreter.

Public Constructors

 NameDescription
Public ConstructorCommandInterpreter ConstructorOverloaded.   
Top

Public Properties

 NameDescription
Public PropertyCommandsLists all the commands that have been added to the interpreter  
Public PropertyErrorLevelGets/sets the exit code of the operation/process  
Public PropertyFilterPrecedenceDefines the filter precedence by appearance order of key character  
Public PropertyFiltersLists all the filters that have been added to the interpreter  
Public PropertyOptionsLists all the options that have been added to the interpreter, use the set/get commands to modify their values.  
Public PropertyPromptGets/sets the prompt, use "$(OptionName)" to reference options  
Public PropertyReadNextCharacterReads a keystroke, not from the std:in stream, rather from the console or ui.  
Top

Public Methods

 NameDescription
Public MethodAddCommandManually adds a command  
Public MethodAddFilterAdds a command 'filter' that is called for every command invoked enabling custom processing of arguments and pre/post processing.  
Public MethodAddGlobalArgumentAttributeAdds the specified attribute to every command argument by the given name.  
Public MethodAddHandlerOverloaded. Adds the static methods to the command list, and static properties to the list of global options (used with commands set/get)  
Public MethodAddOptionManually adds an option  
Public MethodExpandOptionsExpands '$(OptionName)' within the input string to the named option's value.  
Public MethodGetCommand to get an option value  
Public MethodGetHtmlHelpReturns the Help as HTML text  
Public Methodstatic (Shared in Visual Basic)GetHttpPrefixesReturns the list of HTTP prefixes that will be used for servicing the hosthttp command.  
Public MethodHelpOverloaded. Display the Help text to Console.Out  
Public MethodHostHttpStarts a HttpListener for hosting the commands available on this instance over http/REST  
Public MethodRemoveCommandManually remove a command  
Public MethodRunOverloaded. Run the command whos name is the first argument with the remaining arguments provided to the command as needed.  
Public MethodSetOverloaded. Command to set the value of an option  
Public MethodTryGetCommandReturns true if the command was found and cmd output parameter is set.  
Public MethodTryGetOptionReturns true if the command was found and cmd output parameter is set.  
Top

Protected Methods

 NameDescription
Protected MethodOnErrorcalled to handle error events durring processing  
Top

See Also

Generated with Document! X 2011 by Innovasys