@ShellComponent public class Help extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Help.Command
Marker interface for beans providing help functionality to the shell.
|
Constructor and Description |
---|
Help(List<ParameterResolver> parameterResolvers) |
Modifier and Type | Method and Description |
---|---|
CharSequence |
help(String command) |
void |
setCommandRegistry(CommandRegistry commandRegistry) |
void |
setValidatorFactory(javax.validation.ValidatorFactory validatorFactory) |
@Autowired public Help(List<ParameterResolver> parameterResolvers)
@Autowired public void setCommandRegistry(CommandRegistry commandRegistry)
@Autowired(required=false) public void setValidatorFactory(javax.validation.ValidatorFactory validatorFactory)
@ShellMethod(value="Display help about available commands.", prefix="-") public CharSequence help(@ShellOption(defaultValue="__NULL__",valueProvider=CommandValueProvider.class,value={"-C","--command"},help="The command to obtain help for.") String command) throws IOException
IOException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.