Skip to content

brianhv/pastepipe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI for pasting to hpaste.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%