codepad

A Command line interface for codepad.org


License
BSD-3-Clause
Install
pip install codepad==0.1

Documentation

Codepad CLI

This project is a simple command line interface to the codepad.org website.

How to use it

Code can be piped in, passed as a file, or typed in stdin. Examples:

$ codepad < file.txt

You can specify that the codepad should be private:

$ echo "psst, this is private" | codepad -p

You can also specify the language that the code is it:

$ echo "print 'hello world!'" | codepad -l py

If you pass in a file, the language will be inferred from the file extension:

$ codepad script.rb

You can ask codepad the run the code:

$ codepad script.py -r

And if you pass in -, it will read from stdin:

$ codepad -
this is a bunch of text!
^D

Installing

You can clone this repo and run python setup.py install or use pip to do this, running pip install codepad.

What next?

Fork it! Send pull requests or open issues when you find one. Remember to create a new branch on your forked repo and send the pull request from there. This way your history will be kept instact.

Enjoy!

Dalton Barreto