Permalink
Browse files

All command names are symbols so they look pretty in editors

  • Loading branch information...
1 parent 3a12586 commit 3c89781714d616d99ad8b890874af9103c13f47a @drnic drnic committed Nov 5, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/commands/commands.rb
@@ -37,7 +37,6 @@
helper.open "http://github.com/#{arg}"
end
-
desc "Info about this project."
command :info do
puts "== Info for #{helper.project}"
@@ -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?
@@ -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/)

0 comments on commit 3c89781

Please sign in to comment.