struct ACP::Protocol::CreateTerminalParams

Overview

Request parameters for terminal/create.

Included Modules

Defined in:

acp/protocol/client_methods.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session_id : String, command : String, args : Array(String) | Nil = nil, env : Array(JSON::Any) | Nil = nil, cwd : String | Nil = nil, output_byte_limit : Int64 | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def args : Array(String) | Nil #

Array of command arguments.


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

Array of command arguments.


[View source]
def command : String #

The command to execute (required).


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

The command to execute (required).


[View source]
def cwd : String | Nil #

Working directory for the command (absolute path).


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

Working directory for the command (absolute path).


[View source]
def env : Array(JSON::Any) | Nil #

Environment variables for the command. Each variable has name and value fields.


[View source]
def env=(env : Array(JSON::Any) | Nil) #

Environment variables for the command. Each variable has name and value fields.


[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_byte_limit : Int64 | Nil #

Maximum number of output bytes to retain. Once exceeded, earlier output is truncated to stay within this limit. The Client MUST ensure truncation happens at a character boundary.


[View source]
def output_byte_limit=(output_byte_limit : Int64 | Nil) #

Maximum number of output bytes to retain. Once exceeded, earlier output is truncated to stay within this limit. The Client MUST ensure truncation happens at a character boundary.


[View source]
def session_id : String #

The session ID for this request (required).


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

The session ID for this request (required).


[View source]