| Crates.io | fcpy |
| lib.rs | fcpy |
| version | 0.0.1 |
| created_at | 2025-06-05 02:57:46.168665+00 |
| updated_at | 2025-06-05 02:57:46.168665+00 |
| description | Fast command-line file concatenator with smart filtering, recursive scanning, and clipboard integration. |
| homepage | |
| repository | https://github.com/thomasalmeida/fcpy |
| max_upload_size | |
| id | 1701029 |
| size | 610,794 |
A high-performance command-line file concatenator written in Rust, designed to safely aggregate text files while automatically ignoring binary and media files. Features clipboard integration and smart filtering.
cargo install fcpy
# Download latest release
curl -LO https://github.com/thomasalmeida/fcpy/releases/latest/download/fcpy-linux-amd64
chmod +x fcpy-linux-amd64
sudo mv fcpy-linux-amd64 /usr/local/bin/fcpy
# Clone repository
git clone https://github.com/thomasalmeida/fcpy
cd fcpy
# Build and install
make install
# Build the release binary
cargo build --release
# Copy to a directory in your PATH (Linux/macOS)
sudo cp target/release/fcpy /usr/local/bin/
# Now you can run:
fcpy --help
fcpy [PATHS]... [OPTIONS]
Options:
-o, --output [FILE]
Save output to file (default: paste.txt when -o is used without value)
-i, --ignore <PATTERN>...
Ignore files/directories matching glob patterns
-h, --help
Show help
-V, --version
Show version
# Concatenate all .rs files, ignoring .git and target directories
fcpy src/*.rs -i .git target *.lock
# Combine multiple directories and patterns, output to log.txt
fcpy docs/ examples/ -i "**/node_modules/**" "*.zip" -o log.txt
# Process multiple files and directories
fcpy README.md LICENSE src/ -i "*.exe" "*.bin"
Run unit and integration tests:
cargo test
Use more specific patterns for better performance:
# Good
fcpy . -i target "*.log"
# Better (specific directory exclusion)
fcpy . -i "**/node_modules/**" "*.zip"
Contributions are welcome! To propose changes:
git checkout -b feature-name)git commit -m "Add feature")This project is licensed under the MIT License – see the LICENSE file for details.