Enum Class CompletionBehaviour

java.lang.Object
java.lang.Enum<CompletionBehaviour>
com.github.rvesse.airline.help.cli.bash.CompletionBehaviour
All Implemented Interfaces:
Serializable, Comparable<CompletionBehaviour>, Constable

public enum CompletionBehaviour extends Enum<CompletionBehaviour>
Possible completion behaviour for options/arguments
  • Enum Constant Details

    • NONE

      public static final CompletionBehaviour NONE
      None, either this is a flag option i.e. arity zero or you want to limit completions to those specified by the option meta-data
    • FILENAMES

      public static final CompletionBehaviour FILENAMES
      Filenames, use standard filename completion if no other completions apply
    • DIRECTORIES

      public static final CompletionBehaviour DIRECTORIES
      Directories, use standard directory name completion if no other completions apply
    • AS_FILENAMES

      public static final CompletionBehaviour AS_FILENAMES
      Use the completions from the option meta-data (if any) but treat them as if they were filenames for additional completion
    • AS_DIRECTORIES

      public static final CompletionBehaviour AS_DIRECTORIES
      Use the completions from the option meta-data (if any) but treat them as if they were directory names for additional completion
    • CLI_COMMANDS

      public static final CompletionBehaviour CLI_COMMANDS
      Commands from the CLI for which we are providing completions
    • SYSTEM_COMMANDS

      public static final CompletionBehaviour SYSTEM_COMMANDS
      OS System commands
  • Constructor Details

    • CompletionBehaviour

      private CompletionBehaviour()
  • Method Details

    • values

      public static CompletionBehaviour[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompletionBehaviour valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null