From 8e3ca1d64444408677c93721c198908de43fa417 Mon Sep 17 00:00:00 2001 From: Daniel Beauchamp Date: Mon, 13 Aug 2012 23:40:43 -0400 Subject: Added more descriptive thor task descriptions. --- bin/dashing | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/dashing b/bin/dashing index a9e6022..e363ee2 100755 --- a/bin/dashing +++ b/bin/dashing @@ -44,13 +44,13 @@ module Dashing File.expand_path('../../templates', __FILE__) end - desc "new PROJECT_NAME", "Sets up ALL THE THINGS needed for your dashboard project structure." + desc "new PROJECT_NAME", "Sets up ALL THE THINGS needed for your dashboard project." def new(name) @name = Thor::Util.snake_case(name) directory :project, @name end - desc "generate GENERATOR NAME", "Creates a new wigdget, dashboard, or job." + desc "generate (widget/dashboard/job) NAME", "Creates a new widget, dashboard, or job." def generate(type, name) send("generate_#{type}".to_sym, name) rescue NoMethodError => e @@ -68,7 +68,7 @@ module Dashing end map "s" => :start - desc "job JOB_NAME AUTH_TOKEN(optional)", "Runs the specified job." + desc "job JOB_NAME AUTH_TOKEN(optional)", "Runs the specified job. Make sure to supply your auth token if you have one set." def job(name, auth_token = "") Dir[File.join(Dir.pwd, 'lib/**/*.rb')].each {|file| require file } self.class.auth_token = auth_token -- cgit v1.2.3