class FilesToPrompt::App

Defined in:

files-to-prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def binary_file?(file_path, chunk_size = 8192) : Bool #

Checks if a file is binary


[View source]
def config : ProcessingConfig #

[View source]
def config=(config : ProcessingConfig) #

[View source]
def convert_notebook_external(file_path : String, config : ProcessingConfig) #

Converts a Jupyter Notebook file to the specified format using external conversion.


[View source]
def convert_notebook_internal(file_path : String, config : ProcessingConfig) #

Converts a Jupyter Notebook file to the specified format using internal conversion.


[View source]
def convert_to_asciidoc(ipynb_data : JSON::Any) : String #

Converts a Jupyter Notebook file to AsciiDoc format.


[View source]
def convert_to_markdown(ipynb_data : JSON::Any) : String #

Converts a Jupyter Notebook file to Markdown format.


[View source]
def error(*args) #

Output error to console or stderr file


[View source]
def output(*args) #

Output to console or stdout file


[View source]
def output_config : OutputConfig #

[View source]
def output_config=(output_config : OutputConfig) #

[View source]
def parse_file_paths_from_stdin(stdin_data : String) : Array(String) #

Parses the file paths from the stdin input.


[View source]
def parse_file_paths_from_stdin_bak(stdin_data) #

Parses file paths from stdin


[View source]
def paths_to_process : Array(String) #

[View source]
def paths_to_process=(paths_to_process : Array(String)) #

[View source]
def process_file(file_path : String, config : ProcessingConfig) #

Processes a single file.


[View source]
def process_path(path_to_process, config) #

Processes a file or directory path


[View source]
def read_gitignore(dir_path) #

Reads .gitignore rules


[View source]
def read_stdin : String #

Reads the input from stdin.


[View source]
def run(args) #

[View source]
def should_ignore?(file_path, config) #

Checks if a file should be ignored


[View source]