App::Cm...dispatch(3)
π NAME π
okay so bestie, App::Cm...dispatch β full name App::Cmd::Subdispatch β is an App::Cmd::Command that is also an App::Cmd. yes literally both. it's giving dual citizenship. it's giving main character energy in two storylines at once. π¦
β¨ VERSION β¨
version 0.338 π
πΈ PERL VERSION πΈ
ngl this library is built different β it should run on perls released even a long time ago. like, it should work on any version of perl released in the last five years. iconic behavior honestly. π
but here's the tea: even though it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so don't come for her about backwards compat, fr fr. π
π«Ά METHODS π«Ά
new π
a hackish new that allows us to have an Command instance before they normally exist. yes it's a hack. yes it slays. periodt. β¨
prepare π
my $subcmd = $subdispatch->prepare($app, @args);
an overridden version of "prepare" in App::Cmd::Command that performs a new dispatch cycle. it's out here doing the whole dispatch thing again, no cap. π₯
app π¦
$subdispatch->app;
this method returns the application that this subdispatch is a command of. like, who's your parent app bestie, spill. π
choose_parent_app π
$subcmd->prepare(
$subdispatch->choose_parent_app($app, $opt, $plugin),
@$args
);
a method that chooses whether the parent app or the subdispatch is going to be "$cmd->app". literally the vibe check that decides whose kid this is. π
π AUTHOR π
Ricardo Signes <cpan@semiotic.systems> π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2025 by Ricardo Signes. π
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. go off, do whatever, it's free bestie. π
and that's the whole thing, no notes π
perl v5.42.0, dated 2026-01-16, and yes we're still calling it App::Cm...dispatch(3) because the terminal truncates her name like that and honestly she's too iconic to need the whole thing. mwah. ππ¦β¨
π¦ where this page comes from
- fedora 44: perl-App-Cmd 0.338-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms