Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CLI client in ruby for friendpaste.com
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
LICENSE
README.md
Rakefile
VERSION

README.md

What's this about?

Cliff is a CLI-Client for friendpaste.com. You can paste stuff to Friendpaste by piping it to cliff or fetch contents of a existing paste. It's not yet finished but should work fine. Currently only getting existing and creating new snippets is supported. Updates, Diffs, Versioning, etc. will soon follow!

And btw: friendpaste.com is powered by CouchDB :)

Installation

gem install cliff

Usage

cliff [--help | --list-languages | --refresh]

--help should be pretty self-explanatory. --list-languages prints a list of all available languages for syntax highlighting from friendpaste. --refresh fetches a new list from friendpaste.com and stores it in $HOME/.friendpaste_languages.

cliff [FILE] [LANGUAGE]
cliff [SOME_EXISTING_SNIPPET_ID]

Upload stuff from stdin

echo "Hello world!" | cliff

Upload contents from file

cliff < file.txt
cliff myrubyscript.rb rb

Fetch a paste

cliff SOME_SNIPPET_ID > output.txt

Notes

When creating a new snippet, the complete URL is copied to your clipboard for direct usage on IRC and co.

This CLI-Tool is heavily inspired by http://github.com/defunkt/gist.

Something went wrong with that request. Please try again.