CommandLineType Class |
Namespace: us.FreeWill.CommandLine
public class CommandLineType
The CommandLineType type exposes the following members.
Name | Description | |
---|---|---|
![]() | CommandLineType | Initializes a new instance of the CommandLineType class |
![]() | CommandLineType(String) |
Constructor that takes a command name.
|
![]() | CommandLineType(String, String) |
Constructor that takes a command name and a display prompt.
|
![]() | CommandLineType(String, String, CommandType) |
Constructor that takes a command name, a display prompt, and an exit command object.
|
Name | Description | |
---|---|---|
![]() | InputStream |
The TextReader that accepts user input. You can assign your own TextReader here to capture the user's entries.
|
![]() | OutputStream |
All output is pumped through this object. You can capture it by assigning your TextWriter here.
|
Name | Description | |
---|---|---|
![]() | AddCommand |
Add a command to the command line, auto-setting it's owner to this.
|
![]() | AddHistory | |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | ExecCommand |
Allows processing of a command manually from your code without calling the CommandLineType.Execute() method.
|
![]() | ExecDosCommand |
Tage arguments passed in from the OS console command and process them.
|
![]() | Execute |
For a Console app, this initiates the command line. Call this and it handles everything until the user enters the exit command.
|
![]() | Finalize | (Overrides ObjectFinalize.) |
![]() | GetCommand | |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PrintCommands |
Pump the formatted help text from all the commands and parameters through the output TextWriter.
|
![]() | RemoveCommand |
Removes a command from the command list.
|
![]() | ResetOutputStream |
Restore the output stream to what it was.
|
![]() | SetExitCommand |
Overrides the built in Exit command with your own.
|
![]() | SetHelpCommand |
Overrites the built in help command with your own.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |