Class BashCompletionGenerator<T>
java.lang.Object
com.github.rvesse.airline.help.common.AbstractUsageGenerator
com.github.rvesse.airline.help.common.AbstractGlobalUsageGenerator<T>
com.github.rvesse.airline.help.cli.bash.BashCompletionGenerator<T>
- All Implemented Interfaces:
GlobalUsageGenerator<T>
-
Field Summary
Fields inherited from class AbstractUsageGenerator
DEFAULT_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionBashCompletionGenerator(boolean includeHidden, boolean enableDebugging) Creates a new completion generator -
Method Summary
Modifier and TypeMethodDescriptionprotected BashCompletiongetCompletionData(ArgumentsMetadata arguments) Gets the completion info for argumentsprotected BashCompletiongetCompletionData(OptionMetadata option) Gets the completion info for an optionprotected BashCompletiongetCompletionData(Collection<Accessor> accessors) voidusage(GlobalMetadata<T> global, OutputStream output) Generate the help and output it to the streamMethods 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
-
Constructor Details
-
BashCompletionGenerator
public BashCompletionGenerator() -
BashCompletionGenerator
public BashCompletionGenerator(boolean includeHidden, boolean enableDebugging) Creates a new completion generator- Parameters:
enableDebugging- Whether to enable debugging, when true the generated script will doset -o xtracein its functions andset +o xtraceat the end of its functions
-
-
Method Details
-
usage
Description copied from interface:GlobalUsageGeneratorGenerate the help and output it to the stream- Parameters:
global- Global metadataoutput- Stream to output to- Throws:
IOException- Thrown if there is a problem generating usage output
-
getCompletionData
Gets the completion info for an option- Parameters:
option- Option- Returns:
- Completion data,
nullif none specified
-
getCompletionData
Gets the completion info for arguments- Parameters:
arguments- Arguments- Returns:
- Completion data,
nullif none specified
-
getCompletionData
-