struct
ACP::Protocol::CreateTerminalParams
- ACP::Protocol::CreateTerminalParams
- Struct
- Value
- Object
Overview
Request parameters for terminal/create.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/client_methods.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#args : Array(String) | Nil
Array of command arguments.
-
#args=(args : Array(String) | Nil)
Array of command arguments.
-
#command : String
The command to execute (required).
-
#command=(command : String)
The command to execute (required).
-
#cwd : String | Nil
Working directory for the command (absolute path).
-
#cwd=(cwd : String | Nil)
Working directory for the command (absolute path).
-
#env : Array(JSON::Any) | Nil
Environment variables for the command.
-
#env=(env : Array(JSON::Any) | Nil)
Environment variables for the command.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#output_byte_limit : Int64 | Nil
Maximum number of output bytes to retain.
-
#output_byte_limit=(output_byte_limit : Int64 | Nil)
Maximum number of output bytes to retain.
-
#session_id : String
The session ID for this request (required).
-
#session_id=(session_id : String)
The session ID for this request (required).
Constructor Detail
Instance Method Detail
Environment variables for the command.
Each variable has name and value fields.
Environment variables for the command.
Each variable has name and value fields.
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.
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.