struct
ACP::Protocol::WaitForTerminalExitResult
- ACP::Protocol::WaitForTerminalExitResult
- Struct
- Value
- Object
Overview
Response for terminal/wait_for_exit.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/client_methods.crConstructors
- .new(pull : JSON::PullParser)
- .new(exit_code : Int32 | Nil = nil, signal : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#exit_code : Int32 | Nil
The process exit code (may be nil if terminated by signal).
-
#exit_code=(exit_code : Int32 | Nil)
The process exit code (may be nil if terminated by signal).
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#signal : String | Nil
The signal that terminated the process (may be nil if exited normally).
-
#signal=(signal : String | Nil)
The signal that terminated the process (may be nil if exited normally).
-
#signaled? : Bool
Returns true if the command was terminated by a signal.
-
#success? : Bool
Returns true if the command exited successfully (exit code 0).
Constructor Detail
def self.new(exit_code : Int32 | Nil = nil, signal : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def exit_code=(exit_code : Int32 | Nil)
#
The process exit code (may be nil if terminated by signal).
def signal=(signal : String | Nil)
#
The signal that terminated the process (may be nil if exited normally).