struct
ACP::Protocol::TerminalOutputResult
- ACP::Protocol::TerminalOutputResult
- Struct
- Value
- Object
Overview
Response for terminal/output.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/client_methods.crConstructors
- .new(pull : JSON::PullParser)
- .new(output : String, truncated : Bool = false, exit_status : TerminalExitStatus | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#exit_status : TerminalExitStatus | Nil
Exit status if the command has completed.
-
#exit_status=(exit_status : TerminalExitStatus | Nil)
Exit status if the command has completed.
-
#exited? : Bool
Returns true if the command has exited.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#output : String
The terminal output captured so far (required).
-
#output=(output : String)
The terminal output captured so far (required).
-
#truncated : Bool
Whether the output was truncated due to byte limits (required).
-
#truncated=(truncated : Bool)
Whether the output was truncated due to byte limits (required).
Constructor Detail
def self.new(output : String, truncated : Bool = false, exit_status : TerminalExitStatus | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def exit_status : TerminalExitStatus | Nil
#
Exit status if the command has completed. Nil if still running.
def exit_status=(exit_status : TerminalExitStatus | Nil)
#
Exit status if the command has completed. Nil if still running.