struct Command
- Command
- CommandMessage
- Struct
- Value
- Object
Defined in:
command_processor.crConstructors
- .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)
Instance Method Summary
- #args : Array(String)
- #clone
- #command : String
- #copy_with(command _command = @command, args _args = @args, env _env = @env, input _input = @input, output _output = @output, error _error = @error, dir _dir = @dir)
- #dir : String | Nil
- #env : Hash(String, String | Nil)
- #error : Bool
- #input : String | Nil
- #output : Bool
Constructor methods inherited from struct CommandMessage
new(pull : JSON::PullParser)
new
Constructor Detail
def self.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)
#
Instance Method Detail
def copy_with(command _command = @command, args _args = @args, env _env = @env, input _input = @input, output _output = @output, error _error = @error, dir _dir = @dir)
#