1 unstable release

Uses old Rust 2015

0.2.0 Jun 13, 2017

#19 in #sites

MIT license

13KB
261 lines

pasty - a client for hastebin-like sites

Pasty is a CLI client for hastebin.com and other similar services written in Rust. Currently, it only supports uploading of files. You can optionally open newly opened files in a new browser window using --open.

Supported services

Currently, hastebin and GitHub gist are supported. By default, Hastebin is used, but you can specify the service using the --service option.

Example Usage

pasty upload ./file.txt --open

The command above uploads ./file.txt to Hastebin and uploads the newly created haste in a new browser window.

Installing

If you don't want to build from source, head over to the releases page and grab the latest binary build. If there isn't one available for your platform, you'll have to build from source - instructions for that are below.

Building from source

  1. Make sure you have Rust installed.
  2. Clone the repo.
  3. Enter the directory and run cargo install
  4. You're done! Optionally, add the following to your vim config file to create a custom command to upload the currently open file.
:command Haste :w !pasty upload --open 

Dependencies

~8–19MB
~283K SLoC