Name : perl-MooX-Cmd
| |
Version : 0.017
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 18:29:43
|
Group : Development/Libraries/Perl
| Source RPM : perl-MooX-Cmd-0.017-lp154.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Giving an easy Moo style way to make command organized CLI apps
|
Description :
Eases the writing of command line utilities, accepting commands and subcommands and so on. These commands can form a tree, which is mirrored in the package structure. On invocation each command along the path through the tree (starting from the toplevel command through to the most specific one) is instanciated.
Each command needs to have an \'execute\' function, accepting three parameters:
* \'self\'
A reference to the specific MooX::Cmd object that is executing.
* \'args\'
An ArrayRef of arguments passed to \'self\'. This only encompasses arguments of the most specific (read: right-most) command.
* \'chain\'
An ArrayRef of \'MooX::Cmd\'s along the tree path, as specified on the command line.
*Note that only the execute function of the most specific command is executed.*
MooX::Cmd Attributes Each command has some attributes set by MooX::Cmd during initialization:
* \'command_chain\'
Same as \'chain\' argument to \'execute\'.
* \'command_name\'
TODO
* \'command_commands\'
TODO
* \'command_args\'
TODO
* \'command_base\'
TODO
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/15.4/noarch |