[rex-users] Re: task description feature

  • From: Jan Gehring <jan.gehring@xxxxxxxxx>
  • To: rex-users@xxxxxxxxxxxxx
  • Date: Thu, 7 Jul 2011 10:39:14 +0200

Hi Franky,

On Thu, Jul 7, 2011 at 10:27 AM, Franky Van Liedekerke
<liedekef@xxxxxxxxxx> wrote:

> for now the task description is above the task (if needed/wanted), but
> I believe it's more logical to put it as part of the task itself:
> task "test", group => ..., sub {
>    desc(ription) => "this is the task description";
> }

The problem with this is, that (afaik) i would need a filter module to
get the description of a task. Because everything inside the sub { ...
} block gets only executed when a task is called. And i try to avoid
using filter modules.

Perhaps i can use B::Deparse and the coderef2text method to get the
description without executing the sub... hm, have to try it :)


Other related posts: