Package picocli

Class AutoComplete.GenerateCompletion

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    AutoComplete

    public static class AutoComplete.GenerateCompletion
    extends java.lang.Object
    implements java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenerateCompletion

        public GenerateCompletion()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable