struct

Fluxion::Executor::Command

Inherits Struct < Value < Object

One process Fluxion intends to run.

Constructors

new(argv : Array(String), env : Hash(String, String) = {} of String => String, working_dir : String | Nil = nil, timeout : Time::Span = 10.minutes, success_codes : Set(Int32) = Set {0}, sensitive : Array(ShellEnvironmentVariable) = [] of ShellEnvironmentVariable)
Source

Instance methods

argv
Source
preview

Safe for display: control sequences stripped, secrets masked.

Source
sensitive

Sensitive values to mask out of anything this command emits.

Source
success?(exit_code : Int32) : Bool
Source
success_codes

Exit codes that count as success. Defaults to {0}; dnf check-update and friends override it.

Source
timeout
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
working_dir
Source