struct ACP::Protocol::TerminalExitStatus

Included Modules

Defined in:

acp/protocol/tool_call_content.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(exit_code : Int32 | Nil = nil, signal : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def exit_code : Int32 | Nil #

The process exit code (may be nil if terminated by signal).


[View source]
def exit_code=(exit_code : Int32 | Nil) #

The process exit code (may be nil if terminated by signal).


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def signal : String | Nil #

The signal that terminated the process (may be nil if exited normally).


[View source]
def signal=(signal : String | Nil) #

The signal that terminated the process (may be nil if exited normally).


[View source]
def signaled? : Bool #

Returns true if the command was terminated by a signal.


[View source]
def success? : Bool #

Returns true if the command exited successfully (exit code 0).


[View source]