Class MarkdownMultiPageGlobalUsageGenerator<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.markdown.MarkdownGlobalUsageGenerator<T>
com.github.rvesse.airline.help.markdown.MarkdownMultiPageGlobalUsageGenerator<T>
- All Implemented Interfaces:
GlobalUsageGenerator<T>
-
Field Summary
FieldsFields inherited from class MarkdownGlobalUsageGenerator
commandUsageGeneratorFields inherited from class AbstractUsageGenerator
DEFAULT_COLUMNS -
Constructor Summary
ConstructorsModifierConstructorDescriptionMarkdownMultiPageGlobalUsageGenerator(boolean includeHidden) MarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden) protectedMarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden, AbstractPrintedCommandUsageGenerator commandUsageGenerator, File baseDirectory) MarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden, File baseDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprotected FileOutputStreamcreateCommandFile(GlobalMetadata<T> global, String[] groupNames, CommandMetadata command) protected StringgetCommandName(GlobalMetadata<T> global, String[] groupNames, CommandMetadata command) protected voidoutputDefaultGroupCommandUsages(UsagePrinter printer, GlobalMetadata<T> global) Outputs the command usages for the commands in the default groupprotected voidoutputGroupCommandUsages(UsagePrinter printer, GlobalMetadata<T> global, List<CommandGroupMetadata> groups) Outputs the command usages for the commands in the given groupprotected voidoutputReferenceToSuite(OutputStream output, GlobalMetadata<T> global) Methods inherited from class MarkdownGlobalUsageGenerator
createHelper, outputCommandDescription, outputCommandList, outputCommandUsages, outputDescription, outputGroupCommandsList, outputSynopsis, outputUserAliases, usageMethods 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
-
baseDirectory
-
-
Constructor Details
-
MarkdownMultiPageGlobalUsageGenerator
public MarkdownMultiPageGlobalUsageGenerator() -
MarkdownMultiPageGlobalUsageGenerator
public MarkdownMultiPageGlobalUsageGenerator(boolean includeHidden) -
MarkdownMultiPageGlobalUsageGenerator
public MarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden) -
MarkdownMultiPageGlobalUsageGenerator
public MarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden, File baseDirectory) -
MarkdownMultiPageGlobalUsageGenerator
protected MarkdownMultiPageGlobalUsageGenerator(int columns, boolean includeHidden, AbstractPrintedCommandUsageGenerator commandUsageGenerator, File baseDirectory)
-
-
Method Details
-
outputGroupCommandUsages
protected void outputGroupCommandUsages(UsagePrinter printer, GlobalMetadata<T> global, List<CommandGroupMetadata> groups) throws IOException Description copied from class:MarkdownGlobalUsageGeneratorOutputs the command usages for the commands in the given group- Overrides:
outputGroupCommandUsagesin classMarkdownGlobalUsageGenerator<T>- Parameters:
printer- Usage printerglobal- Global Meta-datagroups- Groups Meta-data- Throws:
IOException- Thrown if there is a problem generating usage output
-
outputReferenceToSuite
protected void outputReferenceToSuite(OutputStream output, GlobalMetadata<T> global) throws IOException - Throws:
IOException
-
createCommandFile
protected FileOutputStream createCommandFile(GlobalMetadata<T> global, String[] groupNames, CommandMetadata command) throws FileNotFoundException - Throws:
FileNotFoundException
-
outputDefaultGroupCommandUsages
protected void outputDefaultGroupCommandUsages(UsagePrinter printer, GlobalMetadata<T> global) throws IOException Description copied from class:MarkdownGlobalUsageGeneratorOutputs the command usages for the commands in the default group- Overrides:
outputDefaultGroupCommandUsagesin classMarkdownGlobalUsageGenerator<T>- Parameters:
printer- Usage printerglobal- Global meta-data- Throws:
IOException- Thrown if there is a problem generating usage output
-
getCommandName
protected String getCommandName(GlobalMetadata<T> global, String[] groupNames, CommandMetadata command)
-