Interface ICommandRepository
The repository handles retrieving of commands from the entire DNN installation.
Namespace: DotNetNuke.Abstractions.Prompt
Assembly: DotNetNuke.Abstractions.dll
Syntax
public interface ICommandRepository
Methods
| Improve this Doc View SourceGetCommand(String)
Get the command. Returns null if no command found for the name.
Declaration
IConsoleCommand GetCommand(string commandName)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | Name of the command (commonly in verb-noun format). |
Returns
Type | Description |
---|---|
IConsoleCommand | An IConsoleCommand or null. |
GetCommandHelp(IConsoleCommand)
Get help for the specified command.
Declaration
ICommandHelp GetCommandHelp(IConsoleCommand consoleCommand)
Parameters
Type | Name | Description |
---|---|---|
IConsoleCommand | consoleCommand | Command to get help for. |
Returns
Type | Description |
---|---|
ICommandHelp | ICommandHelp class that can be used by the client to compile a help text. |
GetCommands()
Gets a list of all found commands.
Declaration
IEnumerable<ICommand> GetCommands()
Returns
Type | Description |
---|---|
IEnumerable<ICommand> | List of ICommand. |