Skip to content

wtommyw/haste-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haste-cli

Tests Coverage

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.

Requirements

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.

Building

git clone https://github.com/wtommyw/haste-cli.git
cd haste-cli
cargo build --release

Executable will end up in ./target/release/

Usage

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>

Testing

You can run test with:

cargo test