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