class
FilesToPrompt::App
- FilesToPrompt::App
- Reference
- Object
Defined in:
files-to-prompt.crConstructors
Instance Method Summary
-
#binary_file?(file_path, chunk_size = 8192) : Bool
Checks if a file is binary
-
#build_file_output_string(file_path : String, content : String, config : ProcessingConfig) : String
Builds file content as a string (for concurrent processing)
-
#collect_files(path_to_process, config, files = [] of String) : Array(String)
Collects all files to process from a path (chooses method based on config)
-
#collect_files_concurrent(path_to_process, config) : Array(String)
Collects all files to process from a path (concurrent version)
-
#collect_files_sequential(path_to_process, config, files = [] of String) : Array(String)
Collects all files to process from a path (sequential version)
-
#config
Convenience accessors
- #config_manager : ConfigManager
- #config_manager=(config_manager : ConfigManager)
-
#convert_notebook_external(file_path : String, config : ProcessingConfig)
Converts a Jupyter Notebook file to the specified format using external conversion.
-
#convert_notebook_external_to_string(file_path : String, config : ProcessingConfig) : String | Nil
Converts a Jupyter Notebook file to the specified format using external conversion and returns the content as a string.
-
#convert_notebook_internal(file_path : String, config : ProcessingConfig)
Converts a Jupyter Notebook file to the specified format using internal conversion.
-
#convert_notebook_internal_to_string(file_path : String, config : ProcessingConfig) : String | Nil
Converts a Jupyter Notebook file to the specified format using internal conversion and returns the content as a string.
-
#convert_to_asciidoc(ipynb_data : JSON::Any) : String
Converts a Jupyter Notebook file to AsciiDoc format.
-
#convert_to_markdown(ipynb_data : JSON::Any) : String
Converts a Jupyter Notebook file to Markdown format.
-
#error(*args)
Output error to console or stderr file (for error messages)
-
#output(*args)
Output to console or stdout file (for normal output)
- #output_config
- #paths_to_process : Array(String)
- #paths_to_process=(paths_to_process : Array(String))
-
#process_file(file_path : String, config : ProcessingConfig)
Processes a single file.
-
#process_files_concurrently(files : Array(String), config : ProcessingConfig)
Processes files concurrently using worker pool
-
#process_path(path_to_process, config)
Processes a file or directory path
-
#read_gitignore(dir_path)
Reads .gitignore rules
-
#read_paths_from_stdin(use_null_separator : Bool = false, input_io : IO = STDIN) : Array(String)
Reads paths from stdin, matching Python's read_paths_from_stdin behavior
- #run(args, stdin_io : IO | Nil = nil)
-
#should_ignore_dir?(dir_path, config, gitignore_rules = config.gitignore_rules)
Checks if a directory should be ignored based on ignore patterns (unless ignore_files_only)
-
#should_ignore_file?(file_path, config, gitignore_rules = config.gitignore_rules)
Checks if a file should be ignored based on gitignore and ignore patterns
-
#should_include_by_extension?(file_path, config)
Checks if a file should be included based on extensions
Constructor Detail
Instance Method Detail
Builds file content as a string (for concurrent processing)
Collects all files to process from a path (chooses method based on config)
Collects all files to process from a path (concurrent version)
Collects all files to process from a path (sequential version)
Converts a Jupyter Notebook file to the specified format using external conversion.
Converts a Jupyter Notebook file to the specified format using external conversion and returns the content as a string.
Converts a Jupyter Notebook file to the specified format using internal conversion.
Converts a Jupyter Notebook file to the specified format using internal conversion and returns the content as a string.
Converts a Jupyter Notebook file to AsciiDoc format.
Converts a Jupyter Notebook file to Markdown format.
Processes files concurrently using worker pool
Reads paths from stdin, matching Python's read_paths_from_stdin behavior
Checks if a directory should be ignored based on ignore patterns (unless ignore_files_only)
Checks if a file should be ignored based on gitignore and ignore patterns
Checks if a file should be included based on extensions