1App::Cmd::Command::commUasnedrs(C3o)ntributed Perl DocumAepnpt:a:tCimodn::Command::commands(3)
2
3
4
6 App::Cmd::Command::commands - list the application's commands
7
9 version 0.311
10
12 This command plugin implements a "commands" command. This command will
13 list all of an App::Cmd's commands and their abstracts.
14
16 execute
17 This is the command's primary method and raison d'etre. It prints the
18 application's usage text (if any) followed by a sorted listing of the
19 application's commands and their abstracts.
20
21 The commands are printed in sorted groups (created by "sort_commands");
22 each group is set off by blank lines.
23
24 "sort_commands"
25 my @sorted = $cmd->sort_commands(@unsorted);
26
27 This method orders the list of commands into sets which it returns as a
28 list of arrayrefs.
29
30 By default, the first group is for the "help" and "commands" commands,
31 and all other commands are in the second group.
32
34 Ricardo Signes <rjbs@cpan.org>
35
37 This software is copyright (c) 2011 by Ricardo Signes.
38
39 This is free software; you can redistribute it and/or modify it under
40 the same terms as the Perl 5 programming language system itself.
41
42
43
44perl v5.12.3 2011-03-18 App::Cmd::Command::commands(3)