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

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