Class DefaultCommandHelpProvider
Default implementation of ICommandHelpProvider.
public class DefaultCommandHelpProvider : ICommandHelpProvider
- Inheritance
-
DefaultCommandHelpProvider
- Implements
- Inherited Members
Constructors
DefaultCommandHelpProvider(ICommandRegistry)
Initializes a new instance of the DefaultCommandHelpProvider class with the specified command registry.
public DefaultCommandHelpProvider(ICommandRegistry registry)
Parameters
registryICommandRegistryThe command registry to provide help information for.
Methods
GetAllCommands()
Gets all available commands.
public IEnumerable<CommandDefinition> GetAllCommands()
Returns
GetCommandGroups()
Gets all available command groups.
public IEnumerable<CommandGroup> GetCommandGroups()
Returns
GetCommandsInGroup(CommandGroup)
Gets all commands in a specific group.
public IEnumerable<CommandDefinition> GetCommandsInGroup(CommandGroup group)
Parameters
groupCommandGroup
Returns
SearchCommands(string)
Searches for commands matching a query.
public IEnumerable<CommandDefinition> SearchCommands(string query)
Parameters
querystring