struct ACP::Protocol::ReadTextFileParams

Overview

Request parameters for fs/read_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, line : Int32 | Nil = nil, limit : Int32 | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

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

[View source]

Instance Method Detail

def limit : Int32 | Nil #

Optional maximum number of lines to read.


[View source]
def limit=(limit : Int32 | Nil) #

Optional maximum number of lines to read.


[View source]
def line : Int32 | Nil #

Optional line number to start reading from (1-based).


[View source]
def line=(line : Int32 | Nil) #

Optional line number to start reading from (1-based).


[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 read (required).


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

Absolute path to the file to read (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]