Can anybody tell me how MooX::Cmd is supposed to work?

The MANIFEST can, probably, lets see

MooX::Cmd -> http://search.cpan.org/dist/MooX-Cmd/MANIFEST
t/01-simple.t
t/lib/FirstTestApp.pm...

If you know what @ARGV is and read MooX::Cmd you can see that "myapp.pl command command" is supposed to call sub execute in module MyApp::Cmd::Command::Cmd::Command

myapp.pl would be  use MyApp; MyApp->new_with_cmd;

But if you try it out, you'll see that it only calls sub MyApp::execute

http://deps.cpantesters.org/depended-on-by.pl?dist=MooX-Cmd-0.002 shows an example duckpan which has  App::DuckPAN->new_with_cmd; and App::DuckPAN::Cmd

sub execute { my ( $self, $args, $chain ) = @_; my $app = shift @{$chain}; $self->app($app); $self->run(@{$args}); }

but its completely different.

So sorry, I don't know how MooX::Cmd is supposed to work, and neither does its documentation


In reply to Re: Can anybody tell me how MooX::Cmd is supposed to work? (MANIFEST) by Anonymous Monk
in thread Can anybody tell me how MooX::Cmd is supposed to work? by randian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.