Skip to content
Browse files

Add readme, license and homepage link.

  • Loading branch information...
1 parent 57e13a3 commit d547c52442f831d14c2dd9733c461cf5179fd257 @bobthecow committed May 6, 2011
Showing with 104 additions and 12 deletions.
  1. +22 −0 LICENSE
  2. +51 −0 README.markdown
  3. +31 −12 coda
View
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2011 Justin Hileman
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
View
51 README.markdown
@@ -0,0 +1,51 @@
+coda-cli -- Shell integration for Coda
+======================================
+
+http://justinhileman.info/coda-cli
+
+
+`coda` makes Panic's Coda a first-class *nix citizen
+----------------------------------------------------
+
+This tool provides shell integration for [Coda](http://panic.com/coda). You can
+now open files and directories from a terminal:
+
+ coda foo.html
+ coda foo.html bar.css
+ coda ./
+
+If `foo.html` or `bar.css` doesn't exist, `coda` will create it automatically
+for you.
+
+You can also edit a file and wait for it to close (`-w` or `--wait`). This is
+really important if you plan on making `coda` your default `$EDITOR`. Now you
+can use Coda for writing Git or SVN commit messages. Simply add this line to
+your `.bash_profile` or `.bashrc` or `.zshrc`:
+
+ export EDITOR='coda -w'
+
+In addition to knowing how to wait, `coda` plays nice with pipes. You can use
+it just like any other POSIX utility... Invoke it from the command line and pass
+the output from any command to Coda, or from Coda to another command. Try a
+couple of these:
+
+ echo 'foo' | coda
+ echo 'bar' | coda >> out.txt
+ coda >> somefile.html
+ find . -name "*.css" | xargs coda
+ coda < config.yaml > config_new.yaml
+
+Note that piping output from coda implies `--wait`.
+
+
+Usage
+-----
+
+ coda --help
+
+
+License
+-------
+
+ * Copyright 2011 [Justin Hileman](http://justinhileman.com)
+ * Distributed under the [MIT License](http://creativecommons.org/licenses/MIT/)
View
43 coda
@@ -1,34 +1,53 @@
#!/usr/bin/env python
-#
-# Copyright 2011 Justin Hileman - http://justinhileman.com
-#
"""
-coda - CLI integration for Panic's Coda
+coda-cli -- Shell integration for Coda
-This tool provides CLI integration for Coda. You can open files and directories:
+http://justinhileman.info/coda-cli
+
+
+`coda` makes Panic's Coda a first-class *nix citizen.
+
+This tool provides shell integration for Coda. You can now open files and
+directories from a terminal:
coda foo.html
- coda foo.html bar.html
+ coda foo.html bar.css
coda ./
-You can edit a file and wait for it to close (-w/--wait)... This is really
-important if you plan on making coda your default $EDITOR. Now you can use
-Coda for writing Git or SVN commit messages:
+If `foo.html` or `bar.css` doesn't exist, `coda` will create it automatically
+for you.
+
+You can also edit a file and wait for it to close (`-w` or `--wait`). This is
+really important if you plan on making `coda` your default `$EDITOR`. Now you
+can use Coda for writing Git or SVN commit messages. Simply add this line to
+your `.bash_profile` or `.bashrc` or `.zshrc`:
export EDITOR='coda -w'
-In addition to knowing how to wait, coda plays nice with pipes. You can do
-interesting things like this:
+In addition to knowing how to wait, `coda` plays nice with pipes. You can use
+it just like any other POSIX utility... Invoke it from the command line and pass
+the output from any command to Coda, or from Coda to another command. Try a
+couple of these:
echo 'foo' | coda
echo 'bar' | coda >> out.txt
coda >> somefile.html
+ find . -name "*.css" | xargs coda
+ coda < config.yaml > config_new.yaml
+
+Note that piping output from coda implies `--wait`.
-Note that piping output from coda implies --wait.
Usage:
coda --help
+
+
+License:
+
+ Copyright 2011 Justin Hileman - http://justinhileman.com
+ Distributed under the MIT License - http://creativecommons.org/licenses/MIT/
+
"""
import sys, os, time, commands, optparse, signal
from tempfile import mkstemp

0 comments on commit d547c52

Please sign in to comment.
Something went wrong with that request. Please try again.