Class AutoComplete.GenerateCompletion

java.lang.Object
nz.org.riskscape.picocli.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 parent command (which should be the 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 generate-completion)
  

Since:
4.1
  • Constructor Details

    • GenerateCompletion

      public GenerateCompletion()
  • Method Details

    • run

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