Reimplementation of the cp command in Rust.
A Rust implementation of a cp-like command with progress output, vibe coded.
- Copy files
- Copy directories recursively (
-r) - Archive mode (
-a) with metadata preservation - Progress display in bytes or percent (
-p) - Overwrite controls (
-f,-i,-n) - Verbose output (
-v) - Preserve source path structure under destination (
--parents) - Symlink handling (
-L,-P,-d) - Remove destination before writing (
--remove-destination) - Built-in help and version flags (
--help,--version)
copy source.txt destination.txt
copy -r src_dir dst_dir
copy -a -p src_dir backup_dir
copy -n -v file.txt existing.txt
copy --parents ./path/to/file.txt ./out
copy -P symlink.txt copied_link.txt
copy --remove-destination new.txt existing.txt