class Run::Command
- Run::Command
- Reference
- Object
Defined in:
run/command.crConstructors
-
.new(command : String, *nameless, **named)
Initializes a command with context attributes.
-
.new(name : Symbol, *nameless, **named)
Initializes a command with context attributes.
Instance Method Summary
-
#context : Context
Returns this context.
-
#exec(**attrs)
Executes this command with additional context attributes.
-
#parent : CommandGroup
Returns this parent group.
-
#parent=(parent : CommandGroup)
Sets a parent group.
-
#parent? : CommandGroup | Nil
Returns this parent group.
-
#run(**attrs) : Process
Run this command with additional context attributes.
Constructor Detail
def self.new(command : String, *nameless, **named)
#
Initializes a command with context attributes.
For more information about the arguments, see Context#set
.
def self.new(name : Symbol, *nameless, **named)
#
Initializes a command with context attributes.
For more information about the arguments, see Context#set
.
Instance Method Detail
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.