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)
SourceInstance methods
args
The list of arguments passed to the command.
clone
Sourcecommand
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)
Sourcedir
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.