Permalink
Browse files

Add cli..kind of.

  • Loading branch information...
1 parent 08bb5e9 commit 3b2b2c27f460b20258620ebd245cbf6dada365c3 @partheseas committed Dec 23, 2011
Showing with 19 additions and 0 deletions.
  1. +16 −0 Library/cli.js
  2. +3 −0 package.json
View
@@ -0,0 +1,16 @@
+#!/usr/bin/env node
+
+var data, path, trailer;
+
+path = require( "path" )
+trailer = require( "trailer" )
+
+data = {
+ // configuration: parseTrailerConfiguration( where ever )
+}
+
+data.configuration ? trailer.hitch( data.configuration ) : console.error( "No configuration file. :c" )
+
+
+
+
View
@@ -10,6 +10,9 @@
"url": "git://github.com/tylermwashburn/trailer.git"
},
"main": "Library/trailer.js",
+ "bin": {
+ "trailer": "Library/cli.js"
+ },
"engines": {
"node": "0.6 || 0.8"
},

0 comments on commit 3b2b2c2

Please sign in to comment.