class

Hwaro::Utils::CommandRunner

Inherits Reference / Object

Class methods

run(command : String, working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Result

Execute a single command and return the result

Source
run_all(commands : Array(String), working_dir : String | Nil = nil, label : String = "hook", env : Hash(String, String) | Nil = nil) : Bool

Execute multiple commands sequentially Returns true if all commands succeed, false otherwise

Source
run_post_hooks(commands : Array(String), working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Bool

Execute post-build hooks

Source
run_pre_hooks(commands : Array(String), working_dir : String | Nil = nil, env : Hash(String, String) | Nil = nil) : Bool

Execute pre-build hooks

Source

Nested types