C# Class cmdR.CmdRExtensions

Afficher le fichier Open project: theouteredge/cmdR

Méthodes publiques

Свойство Type Description
COMMAND_SEPARATOR string
ESCAPE_CHAR string

Méthodes publiques

Méthode Description
AutoRegisterCommands ( this cmdR ) : void

Uses Reflection to loads and constructs all the ICmdRModules and ICmdRCommands from all the loaded assemblies and initalises them. This will also Register all Routes using CmdRouteAttributes

ConstructMultipleCommands ( this cmdR, string args ) : List

Constructs a list of commands using the COMMAND_SEPARATOR to split commands

Private Methods

Méthode Description
EscapeEscapeChar ( IEnumerable args ) : IEnumerable
EscapeKeywords ( IEnumerable args ) : IEnumerable
FindAllTypesImplementingICmdRCommand ( ) : IEnumerable
GetICmdRModuleClasses ( ) : IEnumerable
RegisterCommandModules ( CmdR cmdR ) : void
RegisterSingleCommands ( CmdR cmdR, IEnumerable commands ) : void

Method Details

AutoRegisterCommands() public static méthode

Uses Reflection to loads and constructs all the ICmdRModules and ICmdRCommands from all the loaded assemblies and initalises them. This will also Register all Routes using CmdRouteAttributes
public static AutoRegisterCommands ( this cmdR ) : void
cmdR this
Résultat void

ConstructMultipleCommands() public static méthode

Constructs a list of commands using the COMMAND_SEPARATOR to split commands
public static ConstructMultipleCommands ( this cmdR, string args ) : List
cmdR this
args string The parts of the commands
Résultat List

Property Details

COMMAND_SEPARATOR public_oe static_oe property

public static string COMMAND_SEPARATOR
Résultat string

ESCAPE_CHAR public_oe static_oe property

public static string ESCAPE_CHAR
Résultat string