class Run::Command

Defined in:

run/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : String, *nameless, **named) #

Initializes a command with context attributes.

For more information about the arguments, see Context#set.


[View source]
def self.new(name : Symbol, *nameless, **named) #

Initializes a command with context attributes.

For more information about the arguments, see Context#set.


[View source]

Instance Method Detail

def context : Context #

Returns this context.


[View source]
def exec(**attrs) #

Executes this command with additional context attributes.

It executes this commmand with C exec. So, the current process is replaced with the executing process.


[View source]
def parent : CommandGroup #

Returns this parent group.


[View source]
def parent=(parent : CommandGroup) #

Sets a parent group.


[View source]
def parent? : CommandGroup | Nil #

Returns this parent group.


[View source]
def run(**attrs) : Process #

Run this command with additional context attributes.


[View source]