struct ACP::Protocol::TerminalOutputResult

Overview

Response for terminal/output.

Included Modules

Defined in:

acp/protocol/client_methods.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(output : String, truncated : Bool = false, exit_status : TerminalExitStatus | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def exit_status : TerminalExitStatus | Nil #

Exit status if the command has completed. Nil if still running.


[View source]
def exit_status=(exit_status : TerminalExitStatus | Nil) #

Exit status if the command has completed. Nil if still running.


[View source]
def exited? : Bool #

Returns true if the command has exited.


[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 output : String #

The terminal output captured so far (required).


[View source]
def output=(output : String) #

The terminal output captured so far (required).


[View source]
def truncated : Bool #

Whether the output was truncated due to byte limits (required).


[View source]
def truncated=(truncated : Bool) #

Whether the output was truncated due to byte limits (required).


[View source]