App::Cm...commands(3)
π App::Cmd::Command::commands π
okay so bestie, welcome to App::Cmd::Command::commands, the lil command that lists all your app's commands β¨ β manual page in section 3, perl vibes only π
πΈ NAME πΈ
App::Cmd::Command::commands β list the application's commands π
β VERSION β
version 0.338 π¦
β¨ DESCRIPTION β¨
This command is literally just here to list all of the application commands available plus their abstracts. That's it, that's the whole gig. No cap. π«Ά
π PERL VERSION π
This library should run on perls released even a long time ago. Fr fr, it should work on any version of perl released in the last five years. π
Although 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 likeβ¦ don't come for it π
π οΈ METHODS π οΈ
π execute
This is the command's primary method and its whole raison d'etre β main character energy, honestly. It prints the application's usage text (if any) followed by a sorted listing of the application's commands and their abstracts. π
The commands are printed in sorted groups (created by sort_commands); each group is set off by blank lines. Blank lines as separators?? iconic. β¨
π¦ "sort_commands"
my @sorted = $cmd->sort_commands(@unsorted);
This method orders the list of commands into groups, which it returns as a list of arrayrefs, and optional group header strings. Yes, both. She contains multitudes. π
By default, the first group is for the "help" and "commands" commands, and all other commands are in the second group. π
This method can be overridden by implementing the "commands_groups" method in your application base class. Go off, customize your groups. π
π 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. π«Ά
and that's the whole page, bestie!! π this one's from perl v5.42.0, dated 2026-01-16, and it lives at App::Cm...commands(3) in the User Contributed Perl Documentation section. slay, bye!! β¨ππ¦
π¦ 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