Class BashCompletion
java.lang.Object
com.github.rvesse.airline.examples.cli.commands.BashCompletion
- All Implemented Interfaces:
ExampleRunnable
@Command(name="generate-completions",
description="Generates a Bash completion script, the file can then be sourced to provide completion for this CLI")
public class BashCompletion
extends Object
implements ExampleRunnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
run()
Runs the command and returns an exit code that the application should return
-
Field Details
-
global
-
includeHidden
@Option(name="--include-hidden", description="When set hidden commands and options are shown in help", hidden=true) private boolean includeHidden
-
-
Constructor Details
-
BashCompletion
public BashCompletion()
-
-
Method Details
-
run
public int run()Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-