public interface CommandService
This interface isn't intended to be implemented by plugins. It is rather a representation of the contract from the CLI environment to plugins. You can inject this component to your code by using this interface.
Bees CLI implements CommandService to encapsulate automatic plugin discovery logic.
| Modifier and Type | Method and Description |
|---|---|
ACommand |
getCommand(String name)
Resolves a command to its implementation.
|
ACommand getCommand(String name) throws IOException, AbortException
name - Name of the command, such as "app:deploy", "help", or "foo:bar".IOException - If a fatal error occurs during the retrieval of the command implementation.AbortException - If an anticipated problem happens, this exception is thrown. The caller must
handle this exception without reporting a stack trace.Copyright © 2011-2013. All Rights Reserved.