upaste

hastebin / general pasting client
Simple client for uploading to hastebin.com or any site that accepts posting and viewing pastes
Installation
Binary releases available for linux & osx. See releases.
For installation on other platforms use cargo:
cargo install upaste
Usage
```
simple
cat file | upaste
upaste -f
-> ** Success! Content available at: https://hastebin.com/
raw
cat file | upaste --raw
upaste --file --raw
-> ** Success! Content available at: https://hastebin.com/raw/
custom paste/read locations
upaste --file --paste-root https://hastebin.com/documents --read-root https://hastebin.com
-> ** Success! Content available at: /
Or specify your alternate roots as ENV vars
UPASTEPASTEROOT=https://mypasteservice.com/new
UPASTEREADROOT=https://mypasteservice.com
upaste --file
-> ** Success! Content available at: /
specifying a range of lines (start at line 15, read 30 lines)
upaste --file --start 15 --lines 30
pulling existing paste into file
upaste --pull >
```
#
```
$ upaste -h
upaste 0.2.2
James K. james.kominick@gmail.com
* CLI pasting client -- defaults to https://hastebin.com
* Reads from stdin or a specified file:
cat file.txt | upaste
upaste -f file.txt
USAGE:
upaste [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-r, --raw return link to raw version
-V, --version Prints version information
OPTIONS:
-f, --file file to upload
-l, --lines number of lines to read
--paste-root Host url to upload to. Defaults to https://hastebin.com/documents or $UPASTEPASTEROOT
-p, --pull pull an existing paste to stdout
--read-root Host url-root to use when linking to and pulling down posts. Defaults to https://hastebin.com/ or
$UPASTEREADROOT
-s, --start line number to start reading at (1 being the first)
```