| Crates.io | repo2file-cli |
| lib.rs | repo2file-cli |
| version | 0.1.2 |
| created_at | 2024-06-05 08:47:28.417306+00 |
| updated_at | 2024-07-25 10:37:54.321775+00 |
| description | A blazing fast CLI tool written in rust to turn a code repository into a single text file. |
| homepage | |
| repository | https://github.com/mbbrainz/repo2file-cli |
| max_upload_size | |
| id | 1262561 |
| size | 60,852 |
repo2file-cli is a command-line tool designed to consolidate a code repository into a single text file. This can be useful for archiving, analysis, or sharing purposes.
To install repo2file-cli, you need to have Rust installed. If you don't have Rust installed, you can get it from rustup.rs.
Once you have Rust, you can install the repo2file-cli using cargo:
cargo install repo2file-cli
To use repo2file-cli, you can run the following command:
repo2file-cli <input> [OPTIONS]
<input>: The directory or Git URL of the repository you want to process.--ignore-files <FILES>: Comma-separated list of files to ignore.--ignore-dirs <DIRS>: Comma-separated list of directories to ignore.--include-files <FILES>: Comma-separated list of files to include exclusively (cannot be used with --ignore-files or --ignore-dirs).--output <OUTPUT>: The output file. Defaults to a file named after the current directory.repo2file-cli /path/to/repository --output output.txt
repo2file-cli https://github.com/username/repo --output output.txt
repo2file-cli /path/to/repository --ignore-files *.md,*.json --ignore-dirs node_modules,.git
repo2file-cli /path/to/repository --include-files *.rs,*.toml
We welcome contributions! Please follow these steps to contribute:
git checkout -b feature-branch).git commit -am 'Add new feature').git push origin feature-branch).To set up your development environment, follow these steps:
git clone https://github.com/yourusername/repo2file-cli.git
cd repo2file-cli
You can run the tests using the following command:
cargo test
you can install the binary from source while youre devin'
cargo install --path .
This project is licensed under the MIT License - see the LICENSE file for details.