public interface CommandLineParser<C extends Command>
Modifier and Type | Method and Description |
---|---|
void |
addChildParser(CommandLineParser<? extends Command> childParser) |
void |
clear() |
List<CommandLineParser<? extends Command>> |
getAllChildParsers() |
List<String> |
getAllNames() |
CommandLineParser<? extends Command> |
getChildParser(String name) |
C |
getCommand() |
CommandPopulator |
getCommandPopulator() |
CommandLineCompletionParser |
getCompletionParser() |
ProcessedCommand<C> |
getProcessedCommand() |
boolean |
isGroupCommand() |
CommandLine<? extends Command> |
parse(AeshLine line,
boolean ignoreRequirements) |
CommandLine<? extends Command> |
parse(List<String> lines,
boolean ignoreRequirements)
Parse a command line with the defined command as base of the rules.
|
CommandLine<? extends Command> |
parse(String line)
Parse a command line with the defined command as base of the rules.
|
CommandLine<? extends Command> |
parse(String line,
boolean ignoreRequirements)
Parse a command line with the defined command as base of the rules.
|
String |
printHelp()
Returns a usage String based on the defined command and options.
|
void |
setChild(boolean b) |
ProcessedCommand<C> getProcessedCommand()
C getCommand()
CommandLineCompletionParser getCompletionParser()
CommandLineParser<? extends Command> getChildParser(String name)
name
- commandvoid addChildParser(CommandLineParser<? extends Command> childParser)
List<CommandLineParser<? extends Command>> getAllChildParsers()
CommandPopulator getCommandPopulator()
String printHelp()
CommandLine<? extends Command> parse(String line)
CommandLine
object where
they can be queried after.line
- inputCommandLine<? extends Command> parse(String line, boolean ignoreRequirements)
CommandLine
object where
they can be queried after.line
- inputignoreRequirements
- if we should ignoreCommandLine<? extends Command> parse(AeshLine line, boolean ignoreRequirements)
CommandLine<? extends Command> parse(List<String> lines, boolean ignoreRequirements)
lines
- inputignoreRequirements
- if we should ignorevoid clear()
boolean isGroupCommand()
void setChild(boolean b)
Copyright © 2022 JBoss by Red Hat. All rights reserved.