C# Class ManyConsole.ConsoleModeCommand

Inheritance: ManyConsole.ConsoleCommand
Mostrar archivo Open project: lysannschlegel/RDAExplorer Class Usage Examples

Public Properties

Property Type Description
FriendlyContinuePrompt string

Public Methods

Method Description
ConsoleModeCommand ( TextWriter outputStream = null, TextReader inputStream = null, OptionSet options = null ) : System
GetNextCommands ( ) : IEnumerable

Runs to get the next available commands

Run ( string remainingArguments ) : int
SetConsoleRedirectionDetection ( IConsoleRedirectionDetection consoleRedirectionDetection ) : void
WritePromptForCommands ( ) : void

Writes to the console to prompt the user for their next command. Is skipped if commands are being ran without user interaction.

Private Methods

Method Description
ConsoleModeCommand ( Func commandSource, TextWriter outputStream = null, TextReader inputStream = null, string friendlyContinueText = null, OptionSet options = null ) : System

Method Details

ConsoleModeCommand() public method

public ConsoleModeCommand ( TextWriter outputStream = null, TextReader inputStream = null, OptionSet options = null ) : System
outputStream System.IO.TextWriter
inputStream System.IO.TextReader
options OptionSet
return System

GetNextCommands() public method

Runs to get the next available commands
public GetNextCommands ( ) : IEnumerable
return IEnumerable

Run() public method

public Run ( string remainingArguments ) : int
remainingArguments string
return int

SetConsoleRedirectionDetection() public method

public SetConsoleRedirectionDetection ( IConsoleRedirectionDetection consoleRedirectionDetection ) : void
consoleRedirectionDetection IConsoleRedirectionDetection
return void

WritePromptForCommands() public method

Writes to the console to prompt the user for their next command. Is skipped if commands are being ran without user interaction.
public WritePromptForCommands ( ) : void
return void

Property Details

FriendlyContinuePrompt public_oe static_oe property

public static string FriendlyContinuePrompt
return string