struct ACP::Protocol::WriteTextFileParams

Overview

Request parameters for fs/write_text_file.

Included Modules

Defined in:

acp/protocol/client_methods.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session_id : String, path : String, content : String, meta : Hash(String, JSON::Any) | Nil = nil) #

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

[View source]

Instance Method Detail

def content : String #

The text content to write to the file (required).


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

The text content to write to the file (required).


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

Absolute path to the file to write (required).


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

Absolute path to the file to write (required).


[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]