invoke

operator fun invoke(command: String, name: String? = null, step: RunCommand.() -> Unit = {}): RunCommand

Creates and configures a RunCommand instance with Kotlin DSL syntax.

Return

Configured 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