| Crates.io | cr-prep |
| lib.rs | cr-prep |
| version | 0.2.0 |
| created_at | 2025-03-27 10:33:48.615234+00 |
| updated_at | 2025-03-27 10:37:53.911425+00 |
| description | A CLI tool for collecting code files for code review |
| homepage | |
| repository | https://github.com/kyuki3rain/cr-prep |
| max_upload_size | |
| id | 1607793 |
| size | 20,409 |
A CLI tool for collecting code files for code review. This tool recursively searches through a specified directory and outputs the content of code files (.rs, .ts, .js, .py, .go) in a format suitable for code review.
You can install cr-prep using cargo:
cargo install cr-prep
Or build from source:
git clone https://github.com/yourusername/cr-prep
cd cr-prep
cargo build --release
Basic usage:
# Output to stdout
cr-prep --path /path/to/your/project
# Output to a file
cr-prep --path /path/to/your/project --output review.txt
-p, --path <DIRECTORY>: Directory to search for code files (required)-o, --output <FILE>: Output file path (optional, defaults to stdout)// src/main.rs
fn main() {
println!("Hello, world!");
}
// src/lib.rs
pub fn add(a: i32, b: i32) -> i32 {
a + b
}
.rs).ts).js).py).go)This project is licensed under the MIT License - see the LICENSE file for details.