class Shell

Defined in:

shell.cr

Constructors

Macro Summary

Instance Method Summary

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

[View source]

Macro Detail

macro run(*args, **options) #

[View source]

Instance Method Detail

def cmd : String #

[View source]
def exit_code(*args, **options) #

[View source]
def exit_code(*args, **options, &) #

[View source]
def fail #

[View source]
def fail_on_error=(fail_on_error : Bool) #

[View source]
def fail_on_error? : Bool #

[View source]
def failed? : Bool #

[View source]
def run : String #

[View source]
def should_fail? : Bool #

[View source]
def status : Process::Status #

[View source]
def stderr #

[View source]
def stdout #

[View source]
def success?(*args, **options) #

[View source]
def success?(*args, **options, &) #

[View source]