Skip to content
CLI for pasting to hpaste.org
Haskell
Find file
Pull request Compare This branch is 10 commits behind creswick:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
LICENSE
PastePipe.cabal
README.md
Setup.hs
pastepipe.hs

README.md

A CLI for Hpaste.org.

Pastepipe reads from stdin, posting to hpaste, and prints out the resulting url (the last line of output). Parameters control various hpaste form fields:

$ pastepipe --help
PastePipe v1.4, (C) Rogan Creswick 2009--2012

pastepipe [FLAG]

  -? --help[=FORMAT]      Show usage information (optional format)
  -V --version            Show version information
  -v --verbose            Higher verbosity
  -q --quiet              Lower verbosity
  -u --user=USER          Your user name (default=rogue)
  -l --language=LANGUAGE  The language used for syntax highlighting (default=haskell)
  -t --title=TITLE        The title of the snippet
     --uri=URL            The URI of the hpaste instance to post to (default=http://hpaste.org/fastcgi/hpaste.fcgi/)
     --test               Prevents PastePipe from actually posting content, just echos the configuration and input

It will auto-detect your local username, but -u overrides this detection.

Parameters can come in any order, but only the first of duplicate entries will be used. So, if you have an alias to send to a local hpaste uri, then that alias should effectively disable the --uri switch. It is not possible to "disable" the --test or --help switches in this way, so you can always add --test to a command line to disable the actual sending of content.

Installation

PastePipe is available on hackage (http://hackage.haskell.org/package/PastePipe) , so you can cabal install it, if you have a working cabal-install.

Authors / contributors

  • Rogan Creswick
  • Brian Victor
Something went wrong with that request. Please try again.