#!/usr/bin/env ruby lib = File.expand_path(File.dirname(__FILE__) + '/../lib') $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib) require 'rubygems' require 'caboodle' require 'caboodle/command' args = ARGV.dup ARGV.clear command = args.shift.strip rescue 'help' git_path = `which git` if git_path.blank? puts "Sorry - you don't appear to have git installed or in your path" puts "Please set up git and try again: http://github.com" else Caboodle::Command.run(command, args) end