Skip to content
This repository
Browse code

All command names are symbols so they look pretty in editors

  • Loading branch information...
commit 3c89781714d616d99ad8b890874af9103c13f47a 1 parent 3a12586
Dr Nic Williams authored November 05, 2009

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  lib/commands/commands.rb
5  lib/commands/commands.rb
@@ -37,7 +37,6 @@
37 37
   helper.open "http://github.com/#{arg}"
38 38
 end
39 39
 
40  
-
41 40
 desc "Info about this project."
42 41
 command :info do
43 42
   puts "== Info for #{helper.project}"
@@ -162,7 +161,7 @@
162 161
 
163 162
 desc "Generate the text for a pull request."
164 163
 usage "github pull-request [user] [branch]"
165  
-command 'pull-request' do |user, branch|
  164
+command :'pull-request' do |user, branch|
166 165
   if helper.project
167 166
     die "Specify a user for the pull request" if user.nil?
168 167
     user, branch = user.split('/', 2) if branch.nil?
@@ -227,7 +226,7 @@
227 226
 
228 227
 desc "Create a new GitHub repository from the current local repository"
229 228
 flags :private => 'Create private repository'
230  
-command 'create-from-local' do
  229
+command :'create-from-local' do
231 230
   cwd = sh "pwd"
232 231
   repo = File.basename(cwd)
233 232
   is_repo = !git("status").match(/fatal/)

0 notes on commit 3c89781

Please sign in to comment.
Something went wrong with that request. Please try again.