struct Command

Defined in:

command_processor.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct CommandMessage

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

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) #

[View source]

Instance Method Detail

def args : Array(String) #

def clone #

[View source]
def command : String #

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

[View source]
def dir : String | Nil #

def env : Hash(String, String | Nil) #

def error : Bool #

def input : String | Nil #

def output : Bool #