Permalink
Browse files

Added runner and binary file.

  • Loading branch information...
1 parent c2f7f2a commit f31b0b15457670f284ef77740372de80472c395e @jingweno committed Jan 24, 2011
Showing with 28 additions and 0 deletions.
  1. +5 −0 bin/jh
  2. +23 −0 lib/jekyll_and_hyde/runner.rb
View
5 bin/jh
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+# -*- mode: ruby -*-
+
+require 'jekyll_and_hyde'
+JekyllAndHyde::Runner.start
View
23 lib/jekyll_and_hyde/runner.rb
@@ -0,0 +1,23 @@
+$thor_runner = true
+
+class JekyllAndHyde::Runner < Thor
+ desc "new [APP_PATH]", "Generate a skeletal jekyll_and_hyde installation in [APP_PATH]"
+ method_options :force => :boolean
+ def new(name)
+
+ end
+
+ desc "generate GENERATOR [args] [options]", "Generate new code using a GENERATOR"
+
+
+ desc "version", "Show jekyll_and_hyde version"
+ def version
+ say "JekyllAndHyde #{JekyllAndHyde::VERSION}"
+ end
+
+ private
+
+ def self.banner(task, all = false, subcommand = false)
+ "#{basename} #{task.formatted_usage(self, all, subcommand)}"
+ end
+end

0 comments on commit f31b0b1

Please sign in to comment.