Interface Command

    • Method Detail

      • create

        static Command create​(Vertx vertx,
                              Class<? extends AnnotatedCommand> clazz)
        Create a command from a Java class, annotated with Vert.x Core CLI annotations.
        Parameters:
        vertx - the vertx instance
        clazz - the class of the command
        Returns:
        the command object
      • name

        default String name()
        Returns:
        the command name
      • cli

        default CLI cli()
        Returns:
        the command line interface, can be null
      • createProcess

        default Process createProcess()
        Create a new process with empty arguments.
        Returns:
        the process
      • createProcess

        Process createProcess​(List<CliToken> args)
        Create a new process with the passed arguments.
        Parameters:
        args - the process arguments
        Returns:
        the process