Generates source code for an autocompletion bash script for the specified picocli-based application,
and writes this script to the specified out file, and optionally writes an invocation script
to the specified command file.

Methods inherited from class java.lang.Object

Method Detail

main

public static void main(java.lang.String... args)

Generates a bash completion script for the specified command class.

Parameters:

args - command line options. Specify at least the commandLineFQCN mandatory parameter, which is
the fully qualified class name of the annotated @Command class to generate a completion script for.
Other parameters are optional. Specify -h to see details on the available options.

bash

Generates source code for an autocompletion bash script for the specified picocli-based application,
and writes this script to the specified out file, and optionally writes an invocation script
to the specified command file.

Parameters:

scriptName - the name of the command to generate a bash autocompletion script for

commandLine - the CommandLine instance for the command line application

out - the file to write the autocompletion bash script source code to

command - the file to write a helper script to that invokes the command, or null if no helper script file should be written

Throws:

java.io.IOException - if a problem occurred writing to the specified files