class Shell
- Shell
- Reference
- Object
Defined in:
shell.crConstructors
Macro Summary
Instance Method Summary
- #cmd : String
- #exit_code(*args, **options)
- #exit_code(*args, **options, &)
- #fail
- #fail_on_error=(fail_on_error : Bool)
- #fail_on_error? : Bool
- #failed? : Bool
- #run : String
- #should_fail? : Bool
- #status : Process::Status
- #stderr
- #stdout
- #success?(*args, **options)
- #success?(*args, **options, &)
Constructor Detail
def self.new(cmd : String, args : Array(String) | Nil = nil, stdout : Process::Stdio = IO::Memory.new, stderr : Process::Stdio = IO::Memory.new, stdin : Process::Stdio = Process::Redirect::Close, chdir : String | Nil = nil, env : Process::Env = nil, clear_env : Bool = false, fail_on_error : Bool = true)
#