[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 0981189b99ef9599b4a16287188e20129e4df78c

jesse jesse at bestpractical.com
Tue Feb 17 18:14:42 EST 2009


The branch, master has been updated
       via  0981189b99ef9599b4a16287188e20129e4df78c (commit)
       via  a1bda7e8a3c7cf87d95b97d546da491858af0821 (commit)
      from  8a68a5f9a68b2fce26793b87565e300c5a101c75 (commit)

Summary of changes:
 lib/App/SD/CLI/Command/Ticket/Attachment/Create.pm |    2 +-
 lib/App/SD/CLI/Command/Ticket/Comment/Create.pm    |    2 +-
 lib/App/SD/CLI/Command/Ticket/Create.pm            |    2 +-
 lib/App/SD/CLI/Command/Ticket/Search.pm            |    2 +-
 lib/App/SD/CLI/Command/Ticket/Show.pm              |    4 ++--
 lib/App/SD/CLI/Command/Ticket/Update.pm            |    2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit a1bda7e8a3c7cf87d95b97d546da491858af0821
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Feb 17 16:58:20 2009 -0500

     port to current prophet convention to arg translations

diff --git a/lib/App/SD/CLI/Command/Ticket/Attachment/Create.pm b/lib/App/SD/CLI/Command/Ticket/Attachment/Create.pm
index 2530dba..d40b6cf 100644
--- a/lib/App/SD/CLI/Command/Ticket/Attachment/Create.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Attachment/Create.pm
@@ -2,7 +2,7 @@ package App::SD::CLI::Command::Ticket::Attachment::Create;
 use Any::Moose;
 extends 'App::SD::CLI::Command::Attachment::Create';
 
-__PACKAGE__->register_arg_translations( f => 'file' );
+around ARG_TRANSLATIONS => sub { shift->(),  f => 'file'  };
 
 # override args to feed in that ticket's uuid as an argument to the comment
 sub run {
diff --git a/lib/App/SD/CLI/Command/Ticket/Comment/Create.pm b/lib/App/SD/CLI/Command/Ticket/Comment/Create.pm
index 1ef2d0c..3365826 100644
--- a/lib/App/SD/CLI/Command/Ticket/Comment/Create.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Comment/Create.pm
@@ -5,7 +5,7 @@ extends 'Prophet::CLI::Command::Create';
 with 'App::SD::CLI::Model::TicketComment';
 with 'App::SD::CLI::Command';
 
-__PACKAGE__->register_arg_translations( f => 'file', m => 'content' );
+around ARG_TRANSLATIONS => sub { shift->(),  f => 'file', m => 'content'  };
 
 # override args to feed in that ticket's uuid as an argument to the comment
 sub run {
diff --git a/lib/App/SD/CLI/Command/Ticket/Create.pm b/lib/App/SD/CLI/Command/Ticket/Create.pm
index ac1b4c4..521727b 100644
--- a/lib/App/SD/CLI/Command/Ticket/Create.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Create.pm
@@ -7,7 +7,7 @@ with 'App::SD::CLI::Model::Ticket';
 with 'App::SD::CLI::Command';
 with 'Prophet::CLI::TextEditorCommand';
 
-__PACKAGE__->register_arg_translations( e => 'edit' );
+around ARG_TRANSLATIONS => sub { shift->(),  e => 'edit'  };
 
 # we want to launch an $EDITOR window to grab props and a comment if no
 # props are specified on the commandline
diff --git a/lib/App/SD/CLI/Command/Ticket/Search.pm b/lib/App/SD/CLI/Command/Ticket/Search.pm
index ae3998f..306a20f 100644
--- a/lib/App/SD/CLI/Command/Ticket/Search.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Search.pm
@@ -3,7 +3,7 @@ use Any::Moose;
 extends 'Prophet::CLI::Command::Search';
 with 'App::SD::CLI::Command';
 
-__PACKAGE__->register_arg_translations( s => 'sort', g => 'group' );
+around ARG_TRANSLATIONS => sub { shift->(),  s => 'sort', g => 'group'  };
 
 # frob the sort routine before running prophet's search command
 sub run {
diff --git a/lib/App/SD/CLI/Command/Ticket/Update.pm b/lib/App/SD/CLI/Command/Ticket/Update.pm
index 2bb183b..1d96e23 100644
--- a/lib/App/SD/CLI/Command/Ticket/Update.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Update.pm
@@ -7,7 +7,7 @@ with 'App::SD::CLI::Model::Ticket';
 with 'App::SD::CLI::Command';
 with 'Prophet::CLI::TextEditorCommand';
 
-__PACKAGE__->register_arg_translations( a => 'all-props' );
+around ARG_TRANSLATIONS => sub { shift->(),  a => 'all-props'  };
 
 # use an editor to edit if no props are specified on the commandline,
 # allowing the creation of a new comment in the process

commit 0981189b99ef9599b4a16287188e20129e4df78c
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Feb 17 18:14:26 2009 -0500

    arg translations update

diff --git a/lib/App/SD/CLI/Command/Ticket/Show.pm b/lib/App/SD/CLI/Command/Ticket/Show.pm
index 2eff221..5f5f578 100644
--- a/lib/App/SD/CLI/Command/Ticket/Show.pm
+++ b/lib/App/SD/CLI/Command/Ticket/Show.pm
@@ -4,8 +4,8 @@ extends 'Prophet::CLI::Command::Show';
 with 'App::SD::CLI::Command';
 with 'App::SD::CLI::Model::Ticket';
 
-__PACKAGE__->register_arg_translations( a => 'all-props', s => 'skip-history',
-                                        h => 'with-history', b => 'batch' );
+around ARG_TRANSLATIONS => sub { shift->(),  a => 'all-props', s => 'skip-history',
+                                        h => 'with-history', b => 'batch' };
 
 sub by_creation_date { $a->prop('created') cmp $b->prop('created') };
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list