perlpunk / App-Spec-p5

Writing command line apps made easy
Other
23 stars 9 forks source link

Regression: op must now be a string #19

Open dakkar opened 5 years ago

dakkar commented 5 years ago

Before 0.005, a command op could be a coderef, which was nice for those times where you just need to call an existing method with a value from the runner, see https://www.thenautilus.net/cgit/Sietima/tree/lib/Sietima/Role/SubscriberOnly/Moderate.pm?h=v1.0.4-dzilla&id=402b4b8e83babbb453c3caa23fb7e75c0cfbe1c0#n221for example.

With 0.005, I had to add methods just for App::Spec, see https://www.thenautilus.net/cgit/Sietima/commit/?id=db2394b8c0beba5f4323dffe2d20adad1c5acf2b