Class CliGlobalUsageSummaryGenerator<T>
java.lang.Object
com.github.rvesse.airline.help.common.AbstractUsageGenerator
com.github.rvesse.airline.help.common.AbstractGlobalUsageGenerator<T>
com.github.rvesse.airline.help.common.AbstractPrintedGlobalUsageGenerator<T>
com.github.rvesse.airline.help.cli.CliGlobalUsageSummaryGenerator<T>
- All Implemented Interfaces:
GlobalUsageGenerator<T>
-
Field Summary
FieldsFields inherited from class AbstractUsageGenerator
DEFAULT_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionCliGlobalUsageSummaryGenerator(boolean includeHidden) CliGlobalUsageSummaryGenerator(int columnSize) CliGlobalUsageSummaryGenerator(int columnSize, boolean includeHidden) CliGlobalUsageSummaryGenerator(int columnSize, Comparator<? super HelpHint> hintComparator, Comparator<? super OptionMetadata> optionComparator, Comparator<? super CommandMetadata> commandComparator, Comparator<? super CommandGroupMetadata> commandGroupComparator, boolean includeHidden) -
Method Summary
Modifier and TypeMethodDescriptionprotected CliUsageHelpercreateHelper(Comparator<? super OptionMetadata> optionComparator, boolean includeHidden) protected voidoutputCommandList(UsagePrinter out, GlobalMetadata<T> global) Outputs a documentation section listing the common commands and groupsprotected voidoutputFooter(UsagePrinter out, GlobalMetadata<T> global) Outputs a documentation section detailing how to get more helpprotected voidoutputSynopsis(UsagePrinter out, GlobalMetadata<T> global) Outputs a documentation section with a brief synopsis of usagevoidusage(GlobalMetadata<T> global, UsagePrinter out) Generate the help and output is using the providedUsagePrinterMethods inherited from class AbstractPrintedGlobalUsageGenerator
createUsagePrinter, usageMethods inherited from class AbstractGlobalUsageGenerator
findHelpSections, sortCommandGroups, usageMethods inherited from class AbstractUsageGenerator
getCommandComparator, getOptionComparator, htmlize, includeHidden, sortArgumentsRestrictions, sortCommands, sortOptionRestrictions, sortOptions, toDefaultCommand, toDescription, toDescription, toSynopsisUsage, toUsage, toUsage
-
Field Details
-
helper
-
-
Constructor Details
-
CliGlobalUsageSummaryGenerator
public CliGlobalUsageSummaryGenerator() -
CliGlobalUsageSummaryGenerator
public CliGlobalUsageSummaryGenerator(boolean includeHidden) -
CliGlobalUsageSummaryGenerator
public CliGlobalUsageSummaryGenerator(int columnSize) -
CliGlobalUsageSummaryGenerator
public CliGlobalUsageSummaryGenerator(int columnSize, boolean includeHidden) -
CliGlobalUsageSummaryGenerator
public CliGlobalUsageSummaryGenerator(int columnSize, Comparator<? super HelpHint> hintComparator, Comparator<? super OptionMetadata> optionComparator, Comparator<? super CommandMetadata> commandComparator, Comparator<? super CommandGroupMetadata> commandGroupComparator, boolean includeHidden)
-
-
Method Details
-
createHelper
protected CliUsageHelper createHelper(Comparator<? super OptionMetadata> optionComparator, boolean includeHidden) -
usage
Description copied from class:AbstractPrintedGlobalUsageGeneratorGenerate the help and output is using the providedUsagePrinter- Specified by:
usagein classAbstractPrintedGlobalUsageGenerator<T>- Parameters:
global- Global Metadataout- Usage printer to output with- Throws:
IOException- Thrown if there is a problem generating usage output
-
outputCommandList
Outputs a documentation section listing the common commands and groups- Parameters:
out- Usage printerglobal- Global meta-data- Throws:
IOException
-
outputSynopsis
Outputs a documentation section with a brief synopsis of usage- Parameters:
out- Usage printerglobal- Global meta-data- Throws:
IOException
-