A small command line application to post the content of a file to a hastebin server. (Default: https://pastie.io/). Built because I needed it and I wanted to improve in Rust and TDD.
You should have Rust-lang installed.
You shuold have OpenSSL 1.0.1, 1.0.2, or 1.1.0 with headers installed if you're using linux.
git clone https://github.com/wtommyw/haste-cli.git
cd haste-cli
cargo build --release
Executable will end up in ./target/release/
Upload a file to a haste-server, uses https://pastie.io/documents by default
haste <file> [url]
Download a file from any haste-server url
haste <url> <output filename>
You can run test with:
cargo test