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
- #config : ProcessingConfig
- #config=(config : ProcessingConfig)
-
#convert_notebook_external(file_path : String, config : ProcessingConfig)
Converts a Jupyter Notebook file to the specified format using external conversion.
-
#convert_notebook_internal(file_path : String, config : ProcessingConfig)
Converts a Jupyter Notebook file to the specified format using internal conversion.
-
#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
-
#output(*args)
Output to console or stdout file
- #output_config : OutputConfig
- #output_config=(output_config : OutputConfig)
-
#parse_file_paths_from_stdin(stdin_data : String) : Array(String)
Parses the file paths from the stdin input.
-
#parse_file_paths_from_stdin_bak(stdin_data)
Parses file paths from stdin
- #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_path(path_to_process, config)
Processes a file or directory path
-
#read_gitignore(dir_path)
Reads .gitignore rules
-
#read_stdin : String
Reads the input from stdin.
- #run(args)
-
#should_ignore?(file_path, config)
Checks if a file should be ignored
Constructor Detail
Instance Method Detail
Converts a Jupyter Notebook file to the specified format using external conversion.
Converts a Jupyter Notebook file to the specified format using internal conversion.
Converts a Jupyter Notebook file to AsciiDoc format.
Converts a Jupyter Notebook file to Markdown format.
Parses the file paths from the stdin input.