Project

cliff

0.0
No commit activity in last 3 years
No release in over 3 years
Cliff is a CLI client written in ruby for friendpaste.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0
 Project Readme

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.