Skip to content

Commit

Permalink
Fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
philnash committed Apr 14, 2011
2 parents 67d84e1 + 211575f commit 3bb995e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/powder
Expand Up @@ -4,15 +4,17 @@ require 'rubygems'
require 'thor'
require 'fileutils'
require 'net/https'
require 'powder/version'

class Powder < Thor
class PowderCLI < Thor
include Thor::Actions
default_task :link

map '-r' => 'restart'
map '-l' => 'list'
map '-L' => 'link'
map '-o' => 'open'
map '-v' => 'version'

POWPATH = "#{`echo ~`.chomp}/.pow"

Expand Down Expand Up @@ -63,6 +65,11 @@ class Powder < Thor
def uninstall
%x{curl get.pow.cx/uninstall.sh | sh}
end

desc "version", "Shows the version"
def version
say "powder #{Powder::VERSION}"
end

private

Expand Down Expand Up @@ -109,4 +116,4 @@ class Powder < Thor
end
end
end
Powder.start
PowderCLI.start

0 comments on commit 3bb995e

Please sign in to comment.