| java.lang.Object org.naturalcli.NaturalCLI
NaturalCLI | public class NaturalCLI (Code) | | A set of commands understood by the CLI
author: Ferran Busquets |
Method Summary | |
public void | execute(String[] args, int first) Runs a command based on the arguments. | public void | execute(String args, int first) Runs a command based on the arguments. | public void | execute(String[] args) Runs a command based on the arguments. | public void | execute(String args) Runs a command based on the arguments in the string. |
NaturalCLI | public NaturalCLI(Set<Command> commands, ParameterValidator pv)(Code) | | Creates a new instance.
Parameters: commands - the set of commands that can be executed. Parameters: pv - the parameter validator. |
NaturalCLI | public NaturalCLI(Set<Command> commands)(Code) | | Creates a new instance with the default parameter validator.
Parameters: commands - the set of commands that can be executed. |
execute | public void execute(String[] args, int first) throws ExecutionException(Code) | | Runs a command based on the arguments.
Parameters: args - the arguments to be parsed Parameters: first - the index on args of the first string for the arguments. throws: ExecutionException - |
|
|