Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaemk/upaste
CLI Pasting Client -- paste.rs / hastebin.com / upaste-server
https://github.com/jaemk/upaste
hastebin hastebin-client paste paste-client pasting
Last synced: about 1 month ago
JSON representation
CLI Pasting Client -- paste.rs / hastebin.com / upaste-server
- Host: GitHub
- URL: https://github.com/jaemk/upaste
- Owner: jaemk
- License: mit
- Created: 2017-03-18T01:48:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T01:52:38.000Z (almost 4 years ago)
- Last Synced: 2024-09-15T04:06:02.852Z (2 months ago)
- Topics: hastebin, hastebin-client, paste, paste-client, pasting
- Language: Rust
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## upaste [![Build Status](https://travis-ci.org/jaemk/upaste.svg?branch=master)](https://travis-ci.org/jaemk/upaste) [![crates.io](https://img.shields.io/crates/v/upaste.svg)](https://crates.io/crates/upaste)
> paste.rs / hastebin / general pasting clientSimple client for uploading to paste.rs, hastebin.com, or any site that accepts posting and viewing pastes
Also see the personal server [upaste-server](https://github.com/jaemk/upaste-server) and the companion vim-plugin [vim-upaste](https://github.com/jaemk/vim-upaste)
## Installation
Binary releases available for linux & osx. See [releases](https://github.com/jaemk/upaste/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
UPASTE_PASTEROOT=https://paste.rs
UPASTE_READROOT=https://paste.rs
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 >
```