struct

Command

Inherits CommandMessage < JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
new(command : String, args : Array(String) = [] of String, env : Hash(String, String | Nil) = {} of String => String | Nil, input : String | Nil = nil, output : Bool = false, error : Bool = false, dir : String | Nil = nil)
Source

Instance methods

args

The list of arguments passed to the command.

clone
Source
command

The command name.

copy_with(command _command = @command, args _args = @args, env _env = @env, input _input = @input, output _output = @output, error _error = @error, dir _dir = @dir)
Source
dir

Sets the working directory for the child process.

env

The list of environment variables passed to the command.

error

Captures stderr stream.

input

Configures stdin data.

output

Captures stdout stream.