A pastebincl(1) clone written in Rust.
To install from source, you have to clone this repository and cd into it.
After that, run:
cargo install --path .
This will install the binary in your $PATH ($HOME/.cargo/bin).
USAGE:
copybin [OPTIONS] [input]
ARGS:
<input> Input [file|stdin]
OPTIONS:
-e, --expire-date <expire-date> Specify expiration time of the paste [default: 10M]
-f, --format <format> Language format of the file (syntax highlighting) [default:
auto]
-h, --help Print help information
-p, --private <private> Set publicity of the paste [default: 0] [possible values: 0,
1, 2]
-t, --title <title> Title of the paste [default: Untitled]
-V, --version Print version information
$ copybin -p 0 -t "Hello World" -f rust hello.rs
This will create a paste with the title "Hello World" and the language format "rust".
$ cat hello.rs | copybin -p 0 -t "Hello World" -f rust
You can also pipe the content of a file to the command.