struct

Fluxion::ShellCommandItem

Inherits Fluxion::ShellItemFields < Struct < Value < Object

One command inside a shell-command step.

A shell string and a direct argv vector stay distinct all the way through: previews, redaction, and the execution boundary all need to know which one they are looking at, because only one of them involves a shell parser.

Constructors

new(name : String, shell_command : String | Nil = nil, argv : Array(String) | Nil = nil, shell : String = "/bin/bash", working_dir : String | Nil = nil, environment : Array(ShellEnvironmentVariable) = [] of ShellEnvironmentVariable, sudo : Bool = false, allowed_exit_codes : Array(Int32) = [] of Int32, creates : String | Nil = nil, unless_command : String | Nil = nil, confirm : String | Nil = nil, timeout : Time::Span = ShellItemFields::DEFAULT_TIMEOUT, condition : Condition | Nil = nil)
Source
shell(command : String, shell : String = "/bin/bash", working_dir : String | Nil = nil) : self

A convenience for the stable schema, where every command is a bare shell string and the item name is the command itself.

Source

Instance methods

argv
Source
command
Source
direct?
Source
shell
Source
shell_command
Source