Crates.io | kpy |
lib.rs | kpy |
version | 0.1.0-alpha |
source | src |
created_at | 2021-08-22 16:44:31.107454 |
updated_at | 2021-08-22 16:44:31.107454 |
description | A reimplentation of linux's cp in rust |
homepage | https://gitlab.com/NamingThingsIsHard/linux/kpy |
repository | |
max_upload_size | |
id | 440763 |
size | 60,595 |
A reimplementation of cp
in rust.
USAGE:
kpy [FLAGS] [OPTIONS] <paths>...
FLAGS:
-h, --help Prints help information
-l, --link Make hard links instead of copying
-s, --symbolic-link Make symbolic links instead of copying
-V, --version Prints version information
OPTIONS:
--parents-stripped <parents-stripped>
Remove X components from the parent and tack onto destination (use as prefix)
ARGS:
<paths>... FILE DIRECTORY | DIRECTORY DIRECTORY | FILE1 FILE2 ... DIRECTORY
Process finished with exit code 0
I needed --parents-stripped
in the original cp
but couldn't find it.
It's something I use more often and I don't want to keep writing a script with awk
, sed
, cut
or whatever
in order to achieve what a CLI option could do.
Additionally, it has a limited scope and is a nice way to learn rust.
Install Rust (which will include cargo
).
cargo build --bin kpy
cargo run kpy