Skip to content

Commit

Permalink
All command names are symbols so they look pretty in editors
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Nov 5, 2009
1 parent 3a12586 commit 3c89781
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/commands/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
helper.open "http://github.com/#{arg}"
end


desc "Info about this project."
command :info do
puts "== Info for #{helper.project}"
Expand Down Expand Up @@ -162,7 +161,7 @@

desc "Generate the text for a pull request."
usage "github pull-request [user] [branch]"
command 'pull-request' do |user, branch|
command :'pull-request' do |user, branch|
if helper.project
die "Specify a user for the pull request" if user.nil?
user, branch = user.split('/', 2) if branch.nil?
Expand Down Expand Up @@ -227,7 +226,7 @@

desc "Create a new GitHub repository from the current local repository"
flags :private => 'Create private repository'
command 'create-from-local' do
command :'create-from-local' do
cwd = sh "pwd"
repo = File.basename(cwd)
is_repo = !git("status").match(/fatal/)
Expand Down

0 comments on commit 3c89781

Please sign in to comment.