pastepipe

Created: 2012-03-21 04:53
Updated: 2014-10-13 15:03
License: gpl-3.0

README.md

Deprecation warning: I am no longer actively maintaining pastepipe because I don't have time to keep it from bitrotting. If anyone would like to take it over, please let me know. I'm also happy to apply pull requests that address issues/add documented features.

A CLI for lpaste.net.

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
  --user=USER             Your user name (default is taken from $USER)
  -l --language=LANGUAGE  The language used for syntax highlighting (default=haskell)
  -t --title=TITLE        The title of the snippet
  -u --uri=URL            The URI of the lpaste instance to post to (default=http://lpaste.net/)
     --test               Prevents PastePipe from actually posting content, just echos the configuration and input

It will auto-detect your local username, but --user 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
  • Mateusz Kowalczyk
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more