Method | Description | |
---|---|---|
FindContextualAction ( string firstToken, CommandLineArgumentsDefinition def = null ) : CommandLineAction |
Finds the action that matches the given token in the given definition
|
|
FindContextualArgument ( string previousToken, CommandLineAction contextualAction, CommandLineArgumentsDefinition def = null ) : System.CommandLineArgument |
A helper that detects the argument represented by the current token given a definition.
|
|
FindCurrentTokenArgument ( CommandLineAction contextualAction, string currentToken, bool &expectMatchingArg, CommandLineArgumentsDefinition def = null ) : System.CommandLineArgument |
A helper that detects the argument represented by the current token given a definition.
|
|
FindPreviousNonWhitespaceToken ( |
Searches the reader's tokens for a non whitespace token that preceeds the current token
|
|
PowerArgsRichCommandLineReader ( CommandLineArgumentsDefinition definition, List |
Configures the reader for the given definition and history information.
|
|
TryTabComplete ( |
Implementation of tab completion that leverages tab completion sources that are registered with the target definition.
|
Method | Description | |
---|---|---|
ConvertContext ( CommandLineArgumentsDefinition definition, |
||
FindNewTabCompletionHooks ( CommandLineArgumentsDefinition definition ) : IEnumerable |
||
FindOldTabCompletionHooks ( CommandLineArgumentsDefinition definition ) : IEnumerable |
||
InitHighlighters ( ) : void | ||
PassThroughOrTryGetAmbientDefinition ( CommandLineArgumentsDefinition def ) : CommandLineArgumentsDefinition |
public static FindContextualAction ( string firstToken, CommandLineArgumentsDefinition def = null ) : CommandLineAction | ||
firstToken | string | the token to test. If you pass null you will get null back. |
def | CommandLineArgumentsDefinition | The definition to inspect. If null, the ambient definition will be used. If there is no ambient definition and null is passed then this method throws a NullReferenceException. |
return | CommandLineAction |
public static FindContextualArgument ( string previousToken, CommandLineAction contextualAction, CommandLineArgumentsDefinition def = null ) : System.CommandLineArgument | ||
previousToken | string | The token to inspect. If you pass null you will get null back. |
contextualAction | CommandLineAction | An action to inspect for a match if the current token does not match a global argument. Pass null to only check global arguments. |
def | CommandLineArgumentsDefinition | The definition to inspect. If null, the ambient definition will be used. If there is no ambient definition and null is passed then this method throws a NullReferenceException. |
return | System.CommandLineArgument |
public static FindCurrentTokenArgument ( CommandLineAction contextualAction, string currentToken, bool &expectMatchingArg, CommandLineArgumentsDefinition def = null ) : System.CommandLineArgument | ||
contextualAction | CommandLineAction | An action to inspect for a match if the current token does not match a global argument. Pass null to only check global arguments. |
currentToken | string | The token to inspect. If you pass null you will get null back. |
expectMatchingArg | bool | This will be set to true if the current token starts with a '-' or a '/' meaning that the token was an argument indicator, even if it didn't match an argument in the definition. |
def | CommandLineArgumentsDefinition | The definition to inspect. If null, the ambient definition will be used. If there is no ambient definition and null is passed then this method throws a NullReferenceException. |
return | System.CommandLineArgument |
public static FindPreviousNonWhitespaceToken ( |
||
readerContext | the reader context to inspect | |
highlighterContext | the highlighter context to inspect | |
return | string |
public PowerArgsRichCommandLineReader ( CommandLineArgumentsDefinition definition, List |
||
definition | CommandLineArgumentsDefinition | The definition to use to configure the reader |
history | List |
previous command line values that the end user will be able to cycle through using the up and down arrows |
return | System |
public TryTabComplete ( |
||
cliContext | cintext used internally | |
return | bool |