• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

GetCommand(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetCommands()

Gets a list of all found commands.

Declaration
IEnumerable<ICommand> GetCommands()
Returns
Type Description
IEnumerable<ICommand>

List of ICommand.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS