Uses of Class
com.github.rvesse.airline.model.CommandMetadata
-
-
Uses of CommandMetadata in com.github.rvesse.airline
Fields in com.github.rvesse.airline declared as CommandMetadata Modifier and Type Field Description private CommandMetadataHelpOption. commandMetadataprivate CommandMetadataSingleCommand. commandMetadataMethods in com.github.rvesse.airline that return CommandMetadata Modifier and Type Method Description CommandMetadataSingleCommand. getCommandMetadata()Gets the command metadata -
Uses of CommandMetadata in com.github.rvesse.airline.examples.userguide.help.sections
Fields in com.github.rvesse.airline.examples.userguide.help.sections declared as CommandMetadata Modifier and Type Field Description private CommandMetadataDiscussed. metadataprivate CommandMetadataExternalHelp. metadata -
Uses of CommandMetadata in com.github.rvesse.airline.help
Fields in com.github.rvesse.airline.help with type parameters of type CommandMetadata Modifier and Type Field Description static java.util.Comparator<CommandMetadata>UsageHelper. DEFAULT_COMMAND_COMPARATORDefault comparator for commandsMethods in com.github.rvesse.airline.help with parameters of type CommandMetadata Modifier and Type Method Description static voidHelp. help(CommandMetadata command)Displays plain text format help for the given command to standard outstatic voidHelp. help(CommandMetadata command, boolean includeHidden)Displays plain text format help for the given command to standard outstatic voidHelp. help(CommandMetadata command, boolean includeHidden, java.io.OutputStream out)Displays plain text format help or the given command to the given output streamstatic voidHelp. help(CommandMetadata command, java.io.OutputStream out)Displays plain text format help or the given command to the given output stream<T> voidCommandUsageGenerator. usage(CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream output)Generates the help output to the provided output stream<T> voidCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig)Generate the help and output it on standard out<T> voidCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream output)Generate the help and output it to the stream -
Uses of CommandMetadata in com.github.rvesse.airline.help.cli
Methods in com.github.rvesse.airline.help.cli with parameters of type CommandMetadata Modifier and Type Method Description protected voidCliGlobalUsageGenerator. outputCommandDescription(UsagePrinter out, CommandGroupMetadata group, CommandMetadata command)Outputs the description for a commandprotected voidCliCommandUsageGenerator. outputDescription(UsagePrinter out, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a documentation section describing the commandprotected <T> voidCliCommandUsageGenerator. outputOptionsAndArguments(UsagePrinter out, CommandMetadata command, java.util.List<OptionMetadata> options, ArgumentsMetadata arguments, ParserMetadata<T> parserConfig)Outputs a documentation section detailing options and their usagesprotected java.util.List<OptionMetadata>CliCommandUsageGenerator. outputSynopsis(UsagePrinter out, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a documentation section with a synopsis of command usage<T> voidCliCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, UsagePrinter out) -
Uses of CommandMetadata in com.github.rvesse.airline.help.cli.bash
Methods in com.github.rvesse.airline.help.cli.bash with parameters of type CommandMetadata Modifier and Type Method Description private voidBashCompletionGenerator. generateCommandCompletionFunction(java.io.Writer writer, GlobalMetadata<T> global, CommandGroupMetadata group, CommandMetadata command)private voidBashCompletionGenerator. writeCommandCase(java.io.Writer writer, GlobalMetadata<T> global, CommandGroupMetadata group, CommandMetadata command, int indent, boolean isNestedFunction)private voidBashCompletionGenerator. writeCommandFunctionCall(java.io.Writer writer, GlobalMetadata<T> global, CommandGroupMetadata group, CommandMetadata command, int indent)private voidBashCompletionGenerator. writeCommandFunctionName(java.io.Writer writer, GlobalMetadata<T> global, CommandGroupMetadata group, CommandMetadata command, boolean declare) -
Uses of CommandMetadata in com.github.rvesse.airline.help.common
Fields in com.github.rvesse.airline.help.common with type parameters of type CommandMetadata Modifier and Type Field Description private java.util.Comparator<? super CommandMetadata>AbstractUsageGenerator. commandComparatorMethods in com.github.rvesse.airline.help.common that return types with arguments of type CommandMetadata Modifier and Type Method Description protected java.util.Comparator<? super CommandMetadata>AbstractUsageGenerator. getCommandComparator()protected java.util.List<CommandMetadata>AbstractUsageGenerator. sortCommands(java.util.List<CommandMetadata> commands)Sorts the commands assuming a non-null comparator was provided at instantiation timeMethods in com.github.rvesse.airline.help.common with parameters of type CommandMetadata Modifier and Type Method Description protected voidAbstractCommandUsageGenerator. findHelpSections(CommandMetadata command, java.util.List<HelpSection> preSections, java.util.List<HelpSection> postSections)Finds the help sections<T> voidAbstractCommandUsageGenerator. usage(CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream output)<T> voidAbstractCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig)abstract <T> voidAbstractPrintedCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, UsagePrinter out)Generate the help and output it using the providedUsagePrinter<T> voidAbstractPrintedCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream out)Method parameters in com.github.rvesse.airline.help.common with type arguments of type CommandMetadata Modifier and Type Method Description protected java.util.List<CommandMetadata>AbstractUsageGenerator. sortCommands(java.util.List<CommandMetadata> commands)Sorts the commands assuming a non-null comparator was provided at instantiation time -
Uses of CommandMetadata in com.github.rvesse.airline.help.html
Methods in com.github.rvesse.airline.help.html with parameters of type CommandMetadata Modifier and Type Method Description protected voidHtmlCommandUsageGenerator. outputDescription(java.io.Writer writer, java.lang.String programName, java.lang.String[] groupNames, CommandMetadata command)Outputs a documentation section with the name and description of the commandprotected voidHtmlCommandUsageGenerator. outputPageHeader(java.io.Writer writer, java.lang.String programName, java.lang.String[] groupNames, CommandMetadata command)Outputs a page headerprotected java.util.List<OptionMetadata>HtmlCommandUsageGenerator. outputSynopsis(java.io.Writer writer, java.lang.String programName, java.lang.String[] groupNames, CommandMetadata command)Outputs a documentation section with a synopsis of the command<T> voidHtmlCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream output) -
Uses of CommandMetadata in com.github.rvesse.airline.help.man
Methods in com.github.rvesse.airline.help.man with parameters of type CommandMetadata Modifier and Type Method Description protected java.io.FileOutputStreamManMultiPageGlobalUsageGenerator. createCommandFile(GlobalMetadata<T> global, java.lang.String[] groupNames, CommandMetadata command)protected java.lang.StringManGlobalUsageGenerator. getCommandName(GlobalMetadata<T> global, java.lang.String[] groupNames, CommandMetadata command)Gets the display name for a commandprotected <T> voidManCommandUsageGenerator. outputOptions(TroffPrinter printer, CommandMetadata command, java.util.List<OptionMetadata> options, ParserMetadata<T> parserConfig)Outputs a documentation section detailing the options and their usagesprotected java.util.List<OptionMetadata>ManCommandUsageGenerator. outputSynopsis(TroffPrinter printer, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a synopsis section for the documentation showing how to use a commandprotected voidManCommandUsageGenerator. outputTitle(TroffPrinter printer, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a title section for the document<T> voidManCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, java.io.OutputStream output) -
Uses of CommandMetadata in com.github.rvesse.airline.help.markdown
Methods in com.github.rvesse.airline.help.markdown with parameters of type CommandMetadata Modifier and Type Method Description protected java.io.FileOutputStreamMarkdownMultiPageGlobalUsageGenerator. createCommandFile(GlobalMetadata<T> global, java.lang.String[] groupNames, CommandMetadata command)protected java.lang.StringMarkdownMultiPageGlobalUsageGenerator. getCommandName(GlobalMetadata<T> global, java.lang.String[] groupNames, CommandMetadata command)protected voidMarkdownGlobalUsageGenerator. outputCommandDescription(UsagePrinter out, CommandGroupMetadata group, CommandMetadata command)Outputs the description for a commandprotected voidMarkdownCommandUsageGenerator. outputDescription(UsagePrinter out, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a documentation section describing the commandprotected <T> voidMarkdownCommandUsageGenerator. outputOptionsAndArguments(UsagePrinter out, CommandMetadata command, java.util.List<OptionMetadata> options, ArgumentsMetadata arguments, ParserMetadata<T> parserConfig)Outputs a documentation section detailing options and their usagesprotected java.util.List<OptionMetadata>MarkdownCommandUsageGenerator. outputSynopsis(UsagePrinter out, java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command)Outputs a documentation section with a synopsis of command usage<T> voidMarkdownCommandUsageGenerator. usage(java.lang.String programName, java.lang.String[] groupNames, java.lang.String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, UsagePrinter out) -
Uses of CommandMetadata in com.github.rvesse.airline.help.suggester
Fields in com.github.rvesse.airline.help.suggester declared as CommandMetadata Modifier and Type Field Description CommandMetadataCommandSuggester. command -
Uses of CommandMetadata in com.github.rvesse.airline.model
Fields in com.github.rvesse.airline.model declared as CommandMetadata Modifier and Type Field Description private CommandMetadataCommandGroupMetadata. defaultCommandprivate CommandMetadataGlobalMetadata. defaultCommandFields in com.github.rvesse.airline.model with type parameters of type CommandMetadata Modifier and Type Field Description private java.util.List<CommandMetadata>CommandGroupMetadata. commandsprivate java.util.List<CommandMetadata>GlobalMetadata. defaultGroupCommandsMethods in com.github.rvesse.airline.model that return CommandMetadata Modifier and Type Method Description CommandMetadataCommandGroupMetadata. getDefaultCommand()Gets the default command for the groupCommandMetadataGlobalMetadata. getDefaultCommand()Gets the default command for the CLIstatic CommandMetadataMetadataLoader. loadCommand(java.lang.Class<?> commandType, ParserMetadata<?> parserConfig)Loads command meta-datastatic CommandMetadataMetadataLoader. loadCommand(java.lang.Class<?> commandType, java.util.Map<java.lang.String,HelpSection> baseHelpSections, ParserMetadata<?> parserConfig)Loads command meta-dataMethods in com.github.rvesse.airline.model that return types with arguments of type CommandMetadata Modifier and Type Method Description java.util.List<CommandMetadata>CommandGroupMetadata. getCommands()Gets the commands for the groupjava.util.List<CommandMetadata>GlobalMetadata. getDefaultGroupCommands()Gets the default group of commands for the CLI i.e.static <T> java.util.List<CommandMetadata>MetadataLoader. loadCommands(java.lang.Iterable<java.lang.Class<? extends T>> defaultCommands, java.util.Map<java.lang.String,HelpSection> baseHelpSections, ParserMetadata<?> parserConfig)Loads command meta-dataMethods in com.github.rvesse.airline.model with parameters of type CommandMetadata Modifier and Type Method Description voidCommandGroupMetadata. addCommand(CommandMetadata command)Adds a command to the groupprivate static voidGlobalMetadata. checkForSuppressedCommands(java.util.List<CommandMetadata> commands, CommandMetadata defaultCommand, java.lang.String groupName)static CommandGroupMetadataMetadataLoader. loadCommandGroup(java.lang.String name, java.lang.String description, boolean hidden, java.lang.Iterable<CommandGroupMetadata> subGroups, CommandMetadata defaultCommand, java.lang.Iterable<CommandMetadata> commands)Loads command group meta-datastatic <C> GlobalMetadata<C>MetadataLoader. loadGlobal(java.lang.String name, java.lang.String description, CommandMetadata defaultCommand, java.lang.Iterable<CommandMetadata> defaultGroupCommands, java.lang.Iterable<CommandGroupMetadata> groups, java.lang.Iterable<GlobalRestriction> restrictions, java.lang.Iterable<HelpSection> baseHelpSections, ParserMetadata<C> parserConfig)Loads global meta-dataprivate static voidGlobalMetadata. suppressedCommand(java.lang.Class<?> cls, CommandMetadata cmd, java.lang.String groupName)Method parameters in com.github.rvesse.airline.model with type arguments of type CommandMetadata Modifier and Type Method Description private static voidGlobalMetadata. checkForSuppressedCommands(java.util.List<CommandMetadata> commands, CommandMetadata defaultCommand, java.lang.String groupName)private static voidMetadataLoader. createGroupsFromAnnotations(java.util.List<CommandMetadata> allCommands, java.util.List<CommandMetadata> newCommands, java.util.List<CommandGroupMetadata> commandGroups, java.util.List<CommandMetadata> defaultCommandGroup, java.util.Map<java.lang.String,HelpSection> baseHelpSections, ParserMetadata<?> parserConfig)static voidMetadataLoader. loadCommandsIntoGroupsByAnnotation(java.util.List<CommandMetadata> allCommands, java.util.List<CommandGroupMetadata> commandGroups, java.util.List<CommandMetadata> defaultCommandGroup, java.util.Map<java.lang.String,HelpSection> baseHelpSections, ParserMetadata<?> parserConfig)static <C> GlobalMetadata<C>MetadataLoader. loadGlobal(java.lang.String name, java.lang.String description, CommandMetadata defaultCommand, java.lang.Iterable<CommandMetadata> defaultGroupCommands, java.lang.Iterable<CommandGroupMetadata> groups, java.lang.Iterable<GlobalRestriction> restrictions, java.lang.Iterable<HelpSection> baseHelpSections, ParserMetadata<C> parserConfig)Loads global meta-dataConstructors in com.github.rvesse.airline.model with parameters of type CommandMetadata Constructor Description CommandGroupMetadata(java.lang.String name, java.lang.String description, boolean hidden, java.lang.Iterable<OptionMetadata> options, java.lang.Iterable<CommandGroupMetadata> subGroups, CommandMetadata defaultCommand, java.lang.Iterable<CommandMetadata> commands)GlobalMetadata(java.lang.String name, java.lang.String description, java.lang.Iterable<OptionMetadata> options, CommandMetadata defaultCommand, java.lang.Iterable<CommandMetadata> defaultGroupCommands, java.lang.Iterable<CommandGroupMetadata> commandGroups, java.lang.Iterable<GlobalRestriction> restrictions, java.lang.Iterable<HelpSection> baseHelpSections, ParserMetadata<T> parserConfig) -
Uses of CommandMetadata in com.github.rvesse.airline.parser
Fields in com.github.rvesse.airline.parser declared as CommandMetadata Modifier and Type Field Description private CommandMetadataParseState. commandMethods in com.github.rvesse.airline.parser that return CommandMetadata Modifier and Type Method Description CommandMetadataParseState. getCommand()Methods in com.github.rvesse.airline.parser with parameters of type CommandMetadata Modifier and Type Method Description protected ParseState<T>AbstractCommandParser. parseCommandOptionsAndArguments(org.apache.commons.collections4.iterators.PeekingIterator<java.lang.String> tokens, ParseState<T> state, CommandMetadata command)protected ParseState<T>AbstractCommandParser. tryParse(ParserMetadata<T> parserConfig, CommandMetadata command, java.lang.Iterable<java.lang.String> args)Tries to parse the argumentsParseState<T>ParseState. withCommand(CommandMetadata command)Constructors in com.github.rvesse.airline.parser with parameters of type CommandMetadata Constructor Description ParseState(GlobalMetadata<T> global, ParserMetadata<T> parserConfig, CommandGroupMetadata group, CommandMetadata command, java.util.List<org.apache.commons.lang3.tuple.Pair<OptionMetadata,java.lang.Object>> parsedOptions, java.util.Map<OptionMetadata,java.lang.Integer> optionsCount, java.util.List<Context> locationStack, java.util.List<java.lang.Object> parsedArguments, OptionMetadata currentOption, java.util.List<java.lang.String> unparsedInput) -
Uses of CommandMetadata in com.github.rvesse.airline.parser.command
Methods in com.github.rvesse.airline.parser.command with parameters of type CommandMetadata Modifier and Type Method Description TSingleCommandParser. parse(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, java.lang.Iterable<GlobalRestriction> restrictions, java.lang.Iterable<java.lang.String> args)ParseResult<T>SingleCommandParser. parseWithResult(ParserMetadata<T> parserConfig, CommandMetadata commandMetadata, java.lang.Iterable<GlobalRestriction> restrictions, java.lang.Iterable<java.lang.String> args) -
Uses of CommandMetadata in com.github.rvesse.airline.utils.predicates.parser
Methods in com.github.rvesse.airline.utils.predicates.parser with parameters of type CommandMetadata Modifier and Type Method Description booleanCommandFinder. evaluate(CommandMetadata command)booleanCommandTypeFinder. evaluate(CommandMetadata command)protected booleanAbbreviatedCommandFinder. isExactNameMatch(java.lang.String value, CommandMetadata item)protected booleanAbbreviatedCommandFinder. isPartialNameMatch(java.lang.String value, CommandMetadata item)Constructor parameters in com.github.rvesse.airline.utils.predicates.parser with type arguments of type CommandMetadata Constructor Description AbbreviatedCommandFinder(java.lang.String cmd, java.util.Collection<CommandMetadata> commands)
-