Project

refh

0.0
No commit activity in last 3 years
No release in over 3 years
A command-line application for pasting to https://refheap.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1.0
~> 1.6.4
>= 0

Runtime

~> 1.3
~> 0.1.2
~> 1.16.2
 Project Readme

refh

This is a sexy little command line client for refheap. It can do amazingly awesome things like create pastes for you.

How it works

penumbra:refh raynes$ refh -?
refh v0.1.0

args [OPTIONS]

Common flags:
  -u --username=ITEM
  -t --token=ITEM   
  -c --copy           True by default. If true, copy resulting link to
                      clipboard.
  -l --language=ITEM  Must be exactly as the language name appears on
                      refheap's dropdown.
  -a --anon           Paste anonymously regardless of username and token
                      settings.
  -f --file=ITEM      Paste from this file instead of stdin. If extension is
                      present, use it to determine language.
  -p --private        False by default. If true, make paste private.
  -? --help           Display help message
  -V --version        Print version information

If a file isn't passed to -f, refh expects the body of the paste to be passed to its stdin. The rest should be pretty straightforward.

Installing

This is a Haskell program. If you happen to have Haskell and cabal-install installed, you can install it with that

cabal install refh

If not, I'll put together some binaries for the various platforms. I don't have access to Windows though, so unless someone contributes it, I can't produce binaries for that. Check here for binaries.