Class CliSpec<CliFlagsT extends CliFlags>


  • public class CliSpec<CliFlagsT extends CliFlags>
    extends java.lang.Object
    A spec to build CLI.
    • Method Detail

      • newBuilder

        public static <T extends CliFlagsCliSpec.Builder<T> newBuilder()
        Create a new builder to build the cli spec.
        Returns:
        a new builder to build the cli spec.
      • newBuilder

        public static <T extends CliFlagsCliSpec.Builder<T> newBuilder​(CliSpec<T> spec)
        Create a new builder to build the cli spec from an existing spec.
        Parameters:
        spec - cli spec
        Returns:
        a new builder to build the cli spec from an existing spec.
      • category

        public java.lang.String category()
      • name

        public java.lang.String name()
      • parent

        public java.lang.String parent()
      • usage

        public java.lang.String usage()
      • argumentsUsage

        public java.lang.String argumentsUsage()
      • description

        public java.lang.String description()
      • commands

        public java.util.Set<Command> commands()
      • tailer

        public java.lang.String tailer()
      • runFunc

        public java.util.function.Function<CliFlagsT,​java.lang.Boolean> runFunc()
      • console

        public java.io.PrintStream console()
      • isCommandGroup

        public boolean isCommandGroup()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object