[Bps-public-commit] r15991 - sd/trunk/lib/App/SD/CLI

jesse at bestpractical.com jesse at bestpractical.com
Mon Sep 15 19:03:41 EDT 2008


Author: jesse
Date: Mon Sep 15 19:03:40 2008
New Revision: 15991

Modified:
   sd/trunk/lib/App/SD/CLI/Dispatcher.pm

Log:
* Adding some more dispatcher rules for great justice / better runtime help


Modified: sd/trunk/lib/App/SD/CLI/Dispatcher.pm
==============================================================================
--- sd/trunk/lib/App/SD/CLI/Dispatcher.pm	(original)
+++ sd/trunk/lib/App/SD/CLI/Dispatcher.pm	Mon Sep 15 19:03:40 2008
@@ -9,7 +9,11 @@
 
 # 'sd about' -> 'sd help about', 'sd copying' -> 'sd help copying'
 on qr'^(about|copying)$' => sub { run('help '.$1, @_); last_rule;};
-on qr'^help (push|pull|publish|server)$' => sub { run('help sync', @_); last_rule;};
+on qr'^help (?:push|pull|publish|server)$' => sub { run('help sync', @_); last_rule;};
+on qr'^help (?:env)$' => sub { run('help environment', @_); last_rule;};
+on qr'^help (?:ticket)$' => sub { run('help tickets', @_); last_rule;};
+on qr'^help ticket (list|search|find)$' => sub { run('help search', @_); last_rule;};
+on qr'^help (?:list|find)$' => sub { run('help search', @_); last_rule;};
 
 # allow type to be specified via primary commands, e.g.
 # 'sd ticket display --id 14' -> 'sd display --type ticket --id 14'



More information about the Bps-public-commit mailing list