@ShellComponent public class Help extends AbstractShellComponent
Modifier and Type | Class and Description |
---|---|
static interface |
Help.Command
Marker interface for beans providing help functionality to the shell.
|
Constructor and Description |
---|
Help() |
Modifier and Type | Method and Description |
---|---|
CharSequence |
help(String command) |
void |
setShowGroups(boolean showGroups)
Sets if groups should be shown in a listing, defaults to true.
|
void |
setValidatorFactory(javax.validation.ValidatorFactory validatorFactory) |
afterPropertiesSet, getApplicationContext, getCommandRegistry, getParameterResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, setApplicationContext, setResourceLoader
@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
public void setShowGroups(boolean showGroups)
showGroups
- the flag to show groupsCopyright © 2022. All rights reserved.