#paste #pastebin #haste #hastebin

app upaste

Simple cli pasting client for paste.rs, hastebin, or any general pasting service

10 releases

Uses old Rust 2015

0.3.0 Dec 3, 2020
0.2.7 Nov 11, 2017
0.2.5 Jul 6, 2017
0.2.4 May 20, 2017
0.1.0 Mar 18, 2017

#1384 in Command line utilities

49 downloads per month

MIT license

14KB
275 lines

upaste Build Status crates.io

paste.rs / hastebin / general pasting client

Simple client for uploading to paste.rs, hastebin.com, or any site that accepts posting and viewing pastes

Also see the personal server upaste-server and the companion vim-plugin vim-upaste

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 <file>
# ->  ** Success! Content available at: https://hastebin.com/<some-key>

# raw
cat file | upaste --raw
upaste --file <file> --raw
# ->  ** Success! Content available at: https://hastebin.com/raw/<some-key>

# custom paste/read locations
upaste --file <file> --paste-root https://hastebin.com/documents --read-root https://hastebin.com
# ->  ** Success! Content available at: <read-root>/<some-key>

# Or specify your alternate roots as ENV vars
UPASTE_PASTEROOT=https://paste.rs
UPASTE_READROOT=https://paste.rs
upaste --file <file>
# ->  ** Success! Content available at: <UPASTE_READROOT>/<some-key>

# specifying a range of lines (start at line 15, read 30 lines)
upaste --file <file> --start 15 --lines 30

# pulling existing paste into file
upaste --pull <key> > <file>

Dependencies

~4–5MB
~120K SLoC

L_