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> πŸ’œ


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