Module info.picocli
Package picocli

Class AutoComplete.GenerateCompletion

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    AutoComplete

    public static class AutoComplete.GenerateCompletion
    extends Object
    implements Runnable
    Command that generates a Bash/ZSH completion script for its top-level command.

    This class can be used as a subcommand for the top-level command in your application. Users can then install completion for the top-level command by running the following command:

     source <(top-level-command [sub-command] generate-completion)
     
    Since:
    4.1
    • Constructor Detail

      • GenerateCompletion

        public GenerateCompletion()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable