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.331
10
12 This command will list all of the application commands available and
13 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 groups which it returns as
28 a list of arrayrefs, and optional group header strings.
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
33 This method can be overridden by implementing the "commands_groups"
34 method in your application base clase.
35
37 Ricardo Signes <rjbs@cpan.org>
38
40 This software is copyright (c) 2016 by Ricardo Signes.
41
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44
45
46
47perl v5.30.0 2019-07-26 App::Cmd::Command::commands(3)