Class RunCommand

  • All Implemented Interfaces:
    io.typeflows.util.Renderable

    
    public final class RunCommand
    extends BaseRun
                        

    A workflow step that executes an inline shell command.

    RunCommand provides a simple way to execute shell commands directly within a workflow step. The command is specified as a string and executed in the runner's default shell environment. This is ideal for simple commands, one-liners, or when the command logic is straightforward enough to be defined inline within the workflow configuration.

    • Constructor Detail

    • Method Detail

      • create

        @JvmOverloads() final static RunCommand create(String command, String name, Configure<BaseRun.DSL> step)

        Creates and configures a RunCommand instance.

        Parameters:
        command - The shell command to execute
        name - Optional name for the step (for logging and identification)
        step - Configuration lambda to customize the step
        Returns:

        Configured RunCommand instance

      • create

        @JvmOverloads() final static RunCommand create(String command, String name)

        Creates and configures a RunCommand instance.

        Parameters:
        command - The shell command to execute
        name - Optional name for the step (for logging and identification)
        Returns:

        Configured RunCommand instance

      • create

        @JvmOverloads() final static RunCommand create(String command)

        Creates and configures a RunCommand instance.

        Parameters:
        command - The shell command to execute
        Returns:

        Configured RunCommand instance