Class CommandProcess

java.lang.Object
io.vertx.mutiny.ext.shell.term.Tty
io.vertx.mutiny.ext.shell.command.CommandProcess
All Implemented Interfaces:
MutinyDelegate

public class CommandProcess extends Tty implements MutinyDelegate
The command process provides interaction with the process of the command provided by Vert.x Shell.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • CommandProcess

      public CommandProcess(io.vertx.ext.shell.command.CommandProcess delegate)
    • CommandProcess

      public CommandProcess(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.shell.command.CommandProcess getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class Tty
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Tty
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Tty
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Tty
    • vertx

      public Vertx vertx()
      Returns:
      the current Vert.x instance
    • argsTokens

      public List<CliToken> argsTokens()
      Returns:
      the unparsed arguments tokens
    • args

      public List<String> args()
      Returns:
      the actual string arguments of the command
    • commandLine

      public CommandLine commandLine()
      Returns:
      the command line object or null
    • session

      public Session session()
      Returns:
      the shell session
    • isForeground

      public boolean isForeground()
      Returns:
      true if the command is running in foreground
    • stdinHandler

      public CommandProcess stdinHandler(Consumer<String> handler)
      Overrides:
      stdinHandler in class Tty
      Parameters:
      handler - the standard input
      Returns:
    • interruptHandler

      public CommandProcess interruptHandler(Runnable handler)
      Parameters:
      handler - the interrupt handler
      Returns:
    • suspendHandler

      public CommandProcess suspendHandler(Runnable handler)
      Parameters:
      handler - the interrupt handler
      Returns:
    • resumeHandler

      public CommandProcess resumeHandler(Runnable handler)
      Parameters:
      handler - the interrupt handler
      Returns:
    • endHandler

      public CommandProcess endHandler(Runnable handler)
      Parameters:
      handler - the end handler
      Returns:
    • write

      public CommandProcess write(String data)
      Overrides:
      write in class Tty
      Parameters:
      data - the text
      Returns:
      a reference to this, so the API can be used fluently
    • backgroundHandler

      public CommandProcess backgroundHandler(Runnable handler)
      Parameters:
      handler - the background handler
      Returns:
    • foregroundHandler

      public CommandProcess foregroundHandler(Runnable handler)
      Parameters:
      handler - the foreground handler
      Returns:
    • resizehandler

      public CommandProcess resizehandler(Runnable handler)
      Overrides:
      resizehandler in class Tty
      Parameters:
      handler - the resize handler
      Returns:
    • end

      public void end()
    • end

      public void end(int status)
      Parameters:
      status - the exit status.
    • newInstance

      public static CommandProcess newInstance(io.vertx.ext.shell.command.CommandProcess arg)