Crates.io | file_aggregator |
lib.rs | file_aggregator |
version | 0.2.0 |
source | src |
created_at | 2024-07-23 16:42:49.589547 |
updated_at | 2024-07-24 17:40:41.887947 |
description | File Aggregator is a utility for aggregating and distributing file contents. It allows you to combine file contents from a specified directory into a single text, which is copied to the clipboard. You can also distribute file contents from the clipboard back to their respective files based on the relative paths. |
homepage | |
repository | https://github.com/bornacvitanic/file_aggregator |
max_upload_size | |
id | 1312986 |
size | 48,477 |
File Aggregator is a utility for aggregating and distributing file contents. It allows you to combine file contents from a specified directory into a single text, which is copied to the clipboard. You can also distribute file contents from the clipboard back to their respective files based on the relative paths.
thiserror
or anyhow
.log
or env_logger
to provide more insight into the tool's operations, especially for debugging and user feedback.rayon
crate to improve performance.Clone the repository:
git clone https://github.com/bornacvitanic/file_aggregator.git
cd file_aggregator
Build the project:
cargo build --release
fileagg [COMMAND]
aggregate
: Aggregates file contents.distribute
: Distributes file contents.help
: Print this message or the help of the given subcommand(s).-p, --path <PATH>
: The path to use for the operation. If not specified, defaults to the current directory.-e, --extensions <EXTENSIONS>
: A comma-separated list of file extensions to include. If not specified, all files are included.Aggregate file contents:
fileagg aggregate --path "/path/to/directory" --extensions "rs,txt,md"
Distribute file contents:
fileagg distribute --path "/path/to/directory"
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.