App::CL...Commands(3)

πŸ“¦
version 0.520 Β· 3 versions
, in fedora 43

πŸ’– App::CLI::Command::Commands(3) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation for the module App::CLI::Command::Commands β€” yes the header truncates it to App::CL...Commands(3) because man pages are dramatic like that πŸ’… β€” and it does exactly one thing, but it does it flawlessly.


✨ NAME ✨

App::CLI::Command::Commands β€” it prints a list of commands for your app. that's it. that's the whole job. and it ate πŸ’…


🌸 SYNOPSIS 🌸

here's the vibe, copy-paste ready:

package MyApp;
use base qw(App::CLI App::CLI::Command);

# Make your app get a list of commands
use constant alias => (
    commands => '+App::CLI::Command::Commands',
);

1;

so you declare your package, you inherit from App::CLI and App::CLI::Command, and then β€” the moment we've all been waiting for β€” you make your app get a list of commands by setting up that alias constant with commands pointing at '+App::CLI::Command::Commands'. note the little + at the front, bestie, do not skip it, it's part of the fit ✨ and then 1; because Perl demands a truthy ending like it's a rom-com πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

it prints a list of commands registered for your application. that's the whole plot. no subplot, no twist, just a clean little list of everything your app can do, served fresh πŸ‘‘


ngl that's the entire man page and honestly? iconic. short, sweet, no notes.

so yeah β€” this was App::CLI::Command::Commands(3), running under perl v5.42.0, dated 2025-07-25, from the User Contributed Perl Documentation collection. love that for us. go print some commands, bestie πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from