public interface CommandRegistry
Modifier and Type | Method and Description |
---|---|
Command |
createCommand(String scope,
String name,
List<String> argValues,
Map<String,String> optionValues)
Instantiates a
Command object given a scope, a name and a list of arguments and options. |
List<Argument> |
getArgumentsInfo(String scope,
String name)
Retrieves the argument list of a command.
|
CommandDefinition |
getCommandInfo(String scope,
String name)
Retrieves the command definition.
|
Set<String> |
getCommandList()
Retrieves list of all registered commands.
|
List<Option> |
getOptionsInfo(String scope,
String name)
Retrieves the options list of a command.
|
Set<String> getCommandList()
List<Option> getOptionsInfo(String scope, String name)
scope
- the command scope.name
- the command name.Option
.List<Argument> getArgumentsInfo(String scope, String name)
scope
- the command scope.name
- the command name.Argument
.CommandDefinition getCommandInfo(String scope, String name)
scope
- the command scope.name
- the command name.CommandDefinition
object.Command createCommand(String scope, String name, List<String> argValues, Map<String,String> optionValues)
Command
object given a scope, a name and a list of arguments and options.scope
- the command scope.name
- the command name.argValues
- the argument values.optionValues
- the option values.Command
object, already initialized and injected with corresponding values.Copyright © 2013-2018–2019 SeedStack. All rights reserved.