Class ManMultiPageGlobalUsageGenerator<T>
java.lang.Object
com.github.rvesse.airline.help.common.AbstractUsageGenerator
com.github.rvesse.airline.help.common.AbstractGlobalUsageGenerator<T>
com.github.rvesse.airline.help.man.ManGlobalUsageGenerator<T>
com.github.rvesse.airline.help.man.ManMultiPageGlobalUsageGenerator<T>
- All Implemented Interfaces:
GlobalUsageGenerator<T>
-
Field Summary
FieldsFields inherited from class ManGlobalUsageGenerator
commandUsageGenerator, helper, manSectionFields inherited from class AbstractUsageGenerator
DEFAULT_COLUMNS -
Constructor Summary
ConstructorsModifierConstructorDescriptionManMultiPageGlobalUsageGenerator(int manSection) ManMultiPageGlobalUsageGenerator(int manSection, boolean includeHidden) protectedManMultiPageGlobalUsageGenerator(int manSection, boolean includeHidden, CommandUsageGenerator commandUsageGenerator, File baseDir) ManMultiPageGlobalUsageGenerator(int manSection, boolean includeHidden, File baseDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprotected FileOutputStreamcreateCommandFile(GlobalMetadata<T> global, String[] groupNames, CommandMetadata command) protected voidoutputCommandUsages(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global) Outputs the command usages for all groupsprotected voidoutputDefaultGroupCommandUsages(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global) Outputs the command usages for the commands in the default groupprotected voidoutputGroupCommandUsages(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global, List<CommandGroupMetadata> groups) Outputs the command usages for the commands in the given groupprotected voidoutputReferenceToSuite(TroffPrinter printer, GlobalMetadata<T> global) Methods inherited from class ManGlobalUsageGenerator
createHelper, getCommandName, outputCommandList, outputGroupCommandsList, outputGroupList, outputSynopsis, outputTitle, toDescription, usageMethods inherited from class AbstractGlobalUsageGenerator
findHelpSections, sortCommandGroups, usageMethods inherited from class AbstractUsageGenerator
getCommandComparator, getOptionComparator, htmlize, includeHidden, sortArgumentsRestrictions, sortCommands, sortOptionRestrictions, sortOptions, toDefaultCommand, toDescription, toSynopsisUsage, toUsage, toUsage
-
Field Details
-
baseDirectory
-
-
Constructor Details
-
ManMultiPageGlobalUsageGenerator
public ManMultiPageGlobalUsageGenerator() -
ManMultiPageGlobalUsageGenerator
public ManMultiPageGlobalUsageGenerator(int manSection) -
ManMultiPageGlobalUsageGenerator
public ManMultiPageGlobalUsageGenerator(int manSection, boolean includeHidden) -
ManMultiPageGlobalUsageGenerator
-
ManMultiPageGlobalUsageGenerator
protected ManMultiPageGlobalUsageGenerator(int manSection, boolean includeHidden, CommandUsageGenerator commandUsageGenerator, File baseDir)
-
-
Method Details
-
outputCommandUsages
protected void outputCommandUsages(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global) throws IOException Description copied from class:ManGlobalUsageGeneratorOutputs the command usages for all groups- Overrides:
outputCommandUsagesin classManGlobalUsageGenerator<T>- Parameters:
output- Output streamprinter- Writerglobal- Global meta-data- Throws:
IOException- Thrown if there is a problem generating usage output
-
outputGroupCommandUsages
protected void outputGroupCommandUsages(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global, List<CommandGroupMetadata> groups) throws IOException Description copied from class:ManGlobalUsageGeneratorOutputs the command usages for the commands in the given group- Overrides:
outputGroupCommandUsagesin classManGlobalUsageGenerator<T>- Parameters:
output- Outputprinter- Writerglobal- Global Meta-datagroups- Groups Meta-data- Throws:
IOException- Thrown if there is a problem generating usage output
-
outputReferenceToSuite
protected void outputReferenceToSuite(TroffPrinter printer, 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(OutputStream output, TroffPrinter printer, GlobalMetadata<T> global) throws IOException Description copied from class:ManGlobalUsageGeneratorOutputs the command usages for the commands in the default group- Overrides:
outputDefaultGroupCommandUsagesin classManGlobalUsageGenerator<T>- Parameters:
output- Outputprinter- Writerglobal- Global meta-data- Throws:
IOException- Thrown if there is a problem generating usage output
-