Click or drag to resize

CommandLineType Class

Class that represents the Command Line object. All commands are added to this object. This object parses user commands and routes execution to the appropriate command object event handlers.
Inheritance Hierarchy

Namespace:  us.FreeWill.CommandLine
Assembly:  CommandLine (in CommandLine.dll) Version: 2.0.2341.22284
public class CommandLineType

The CommandLineType type exposes the following members.

Public methodCommandLineType
Initializes a new instance of the CommandLineType class
Public methodCommandLineType(String)
Constructor that takes a command name.
Public methodCommandLineType(String, String)
Constructor that takes a command name and a display prompt.
Public methodCommandLineType(String, String, CommandType)
Constructor that takes a command name, a display prompt, and an exit command object.
Public propertyInputStream
The TextReader that accepts user input. You can assign your own TextReader here to capture the user's entries.
Public propertyOutputStream
All output is pumped through this object. You can capture it by assigning your TextWriter here.
Public methodAddCommand
Add a command to the command line, auto-setting it's owner to this.
Protected methodAddHistory
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecCommand
Allows processing of a command manually from your code without calling the CommandLineType.Execute() method.
Public methodExecDosCommand
Tage arguments passed in from the OS console command and process them.
Public methodExecute
For a Console app, this initiates the command line. Call this and it handles everything until the user enters the exit command.
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetCommand
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrintCommands
Pump the formatted help text from all the commands and parameters through the output TextWriter.
Public methodRemoveCommand
Removes a command from the command list.
Public methodResetOutputStream
Restore the output stream to what it was.
Public methodSetExitCommand
Overrides the built in Exit command with your own.
Public methodSetHelpCommand
Overrites the built in help command with your own.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also