Crates.io | combiner |
lib.rs | combiner |
version | 0.2.2 |
source | src |
created_at | 2024-06-24 19:08:00.086485 |
updated_at | 2024-08-19 15:57:57.704125 |
description | Combiner is a Rust-based command-line tool that processes text files in a given directory, combining their contents into a single output file. |
homepage | |
repository | https://github.com/Jesalx/combiner |
max_upload_size | |
id | 1282451 |
size | 46,006 |
Combiner is a Rust-based command-line tool that processes text files in a given directory, combining their contents into a single output file. This tool is particularly useful for providing context to Large Language Models (LLMs) about the files in a project, streamlining the process of getting debugging advice or a project overview.
Clone the repository:
git clone https://github.com/jesalx/combiner.git
cd combiner
Build the project:
cargo build --release
The binary will be available at target/release/combiner
Alternatively, you can use install combiner using cargo:
cargo install combiner
Basic usage:
combiner -d <directory> -o <output> -t <tokenizer>
For more options:
combiner --help
-d, --directory <directory>
: Input directory to process (default: current directory)-o, --output <output>
: Output file path/name-t, --tokenizer <tokenizer>
: Tokenizer to use (default: p50k_base)The program generates a single output file containing the contents of all processed text files. Each file's content is preceded by its file path and separated by a line of dashes.
The program also prints a summary table showing: