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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRunCommand.Companion
-
Field Summary
Fields Modifier and Type Field Description public final Stringshellpublic final IntegertimeoutMinutespublic final BooleancontinueOnErrorpublic final StringworkingDirectorypublic final Map<String, Object>envprivate final Stringnamepublic final Stringidpublic final Expressionconditionpublic final Map<String, Object>extrapublic final static RunCommand.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringgetName()final static RunCommandcreate(String command, String name, Configure<BaseRun.DSL> step)Creates and configures a RunCommand instance. final static RunCommandcreate(String command, String name)Creates and configures a RunCommand instance. final static RunCommandcreate(String command)Creates and configures a RunCommand instance. -
-
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 executename- 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 executename- 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
-
-
-
-