App-Cmd-0.340 000755 000765 000024 0 15155063524 12173 5 ustar 00rjbs staff 000000 000000 README 100644 000765 000024 566 15155063524 13123 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 This archive contains the distribution App-Cmd,
version 0.340:
write command line apps with less suffering
This software is copyright (c) 2026 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.
This README file was generated by Dist::Zilla::Plugin::Readme v6.037.
Changes 100644 000765 000024 24122 15155063524 13570 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 Revision history for App-Cmd
0.340 2026-03-13 15:36:50-04:00 America/New_York
- more experimental code: respond to GETOPT_LONG_DESCRIPTIVE_COMPLETION
in App::Cmd::Simple commands
0.339 2026-02-19 15:25:49-05:00 America/New_York
- add even-more-experimental --bash-completion and --zsh-completion
options to "commands"; THIS MAY CHANGE WEIRDLY OR GO AWAY
- …and that depends on having the right version of
Getopt::Long::Descriptive, too
0.338 2025-10-03 15:56:06-04:00 America/New_York
- add experimental --for-completion option to "commands" to help make
shell completion; THIS MAY CHANGE WEIRDLY
0.337 2024-12-30 17:58:25-05:00 America/New_York
- improve how overriding getopt_conf interacts with unknown options
0.336 2023-08-26 11:07:01-04:00 America/New_York
- allow getopt_conf to be provided by user (thanks, Michael McClimon!)
- add "--version" to Simple commands (thanks, Diab Jerius!)
- don't point to Plugin docs when they don't exist (thanks, Sawyer!)
0.335 2022-12-31 17:00:35-05:00 America/New_York
- update author contact info
0.334 2021-06-18 22:14:14-04:00 America/New_York
- add a perl-support block to docs
- update author contact info
0.333 2021-03-14 15:45:02-04:00 America/New_York
- dial back required perl to v5.20.0
0.332 2021-03-12 21:25:38-05:00 America/New_York
- bump up minimum required perl to the one from 5yr ago
- make some tests laxer to prep for changes in Getopt::Long::Descriptive
- the App::Cmd object is constructed and blessed in new before _command
is called on it (thanks, Lucas Theisen)
0.331 2016-07-17 15:56:11-04:00 America/New_York
- documentation improvements (thanks, Davor Cubranic!)
0.330 2015-10-23 23:21:35-04:00 America/New_York
- do not add "--help" to global opt spec twice (oops!)
0.329 2015-10-07 13:01:34-04:00 America/New_York
- bump required version of Pod::Usage
0.328 2015-09-03 20:37:50-04:00 America/New_York
- get command description from Pod by default (Jakob Voss)
- add a "--help" option to all commands by default (Jakob Voss)
- add "command_groups" to group commands in listing (Jakob Voss)
- fix the handling of "exit" in App::Cmd::Tester (Matthew Astley)
- add 'show_version_cmd' option to enable display of 'version'
command in command list. (John Anderson)
- minor documentation improvements (Alberto Simões, rjbs)
0.327 2015-02-23 20:05:00-05:00 America/New_York
- fix behavior of default command under subdispatch (thanks, Stephen
Caldwell and Diab Jerius!)
- simplify help and commands commands (thanks, Sergey Romanov)
- drop some advice that we didn't feel great about (thanks, Karen
Etheridge)
0.326 2014-11-30 08:48:29-05:00 America/New_York
fix the path fix because it was broken by a related fix in EUMM
0.325 2014-11-29 20:48:34-05:00 America/New_York
fix a path-related test failure on Win32 (thanks, A. Sinan Unur!)
0.324 2014-10-20 18:22:25-04:00 America/New_York
note that `cmd help` can take a subcommand in `cmd help help`
0.323 2013-12-07 08:46:51 America/New_York
fall back to "(unknown)" for command abstract in more cases (thanks,
Jakob Voss!)
0.322 2013-10-28 08:00:35 America/New_York
require a newer Getopt::Long to avoid --version conflicts
0.321 2013-10-26 07:44:19 America/New_York
avoiding getting [undef] in argument list in Simple apps
add --version support via version command (thanks, Jakob Voss!)
0.320 2013-01-30 19:37:46 America/New_York
when answering "Unknown subcommand," the commands list is sent ot
STDERR (#75652)
tests for using Params::Validate callback and not getting nasty stack
trace (thanks, Adam Prime)
0.319 2013-01-25 18:18:21 America/New_York
Enable --help option for App::Cmd::Simple (thanks, Ryan Thompson!)
add the ability to ignore non-commands (Thanks, Kent Fredric!)
many improvements to tutorial (thanks, mokko!)
0.318 2012-05-04 22:00:34 America/New_York
App::Cmd::Tester treats undef code as 0 now (thanks, David Golden)
piles of documentation improvement also by David Golden
0.317 2012-03-26 10:11:52 America/New_York
App::Cmd::Tester now reports exit code 1 for unknown commands, as
App::Cmd would exit(1) in that case; addresses
https://rt.cpan.org/Public/Bug/Display.html?id=73084 reported by
David Golden
0.316 2012-02-11 10:50:46 America/New_York
fix the test of "echo" on Win32 (thanks, Chris Williams)
0.315 2012-02-10 09:08:49 America/New_York
totally worthless release made by mistake
0.314 2012-01-03 21:38:59 America/New_York
adds App::Cmd::Tester::CaptureExternal to capture output from
external subcommands (thanks, David Golden)
if there's no Pod =head1 NAME, a Pod::Weaver-esque #ABSTRACT will be
respected (thanks, Andreas Hernitscheck)
0.313 2011-12-23 13:29:53 America/New_York
don't load Text::Abbrev until it's needed (thanks, Olivier Mengué)
0.312 2011-08-17 18:02:26 America/New_York
typo fixes to docs (thanks, Glenn Fowler)
add the prepare_argv method (thanks, Ingy döt Net)
0.311 2011-03-17 22:42:19 America/New_York
require the correct version of Getopt::Long::Descriptive (thanks,
Glen Hinkle)
0.310 2010-12-11
classes are now loaded with Class::Load, which should avoid bugs
where classes are not succesfully loaded by program execution
continues anyway (thanks to Kent Fredric)
more checking is now done to ensure that plugins are members of the
correct base class (thanks, Kent Fredric)
0.309 2010-11-12
skip a failing test on perl 5.8.x
0.308 2010-11-08
When App::Cmd::Setup tries to load MyApp::Command, and it exists but
will not compile, the exception will now propagate. Previously, it
failed silently and App::Cmd::Command was used instead. (bug found
and fixed and tested for by Kent Fredric; thanks!)
0.307 2010-03-09
bump up required version of Getopt::Long::Descriptive
0.306 2010-03-08
return the App::Cmd object (when non-Simple) in the Tester result
allow App::Cmd::Tester subclasses to chose another Result class
0.305 2010-03-07
App::Cmd::Tester now reports (probable?) exit code of tested apps
some improvements to the tutorial and other docs
added some documentation for App::Cmd::Setup
now searches for plugins under App::Cmd::Plugin::; use = to prevent
0.304 2009-12-07
remove use of deprecated "-run" from synopsis (thanks, George
Hartzell)
0.303 2009-11-27
revert behavior of App::Cmd 0.302 -- GLD no longer gives undef opts
0.302 2009-11-27
expect undef values for acceptable-but-ungiven options in $opt
0.301 2009-09-02
fix App::Cmd::Simple docs to show ->execute (noticed by MIYAGAWA)
0.300 2009-08-28
DEPRECATED -run OPTION TO APP CLASS IMPORT
"use MyApp -run;" is deprecated; it will be removed after no less
than a year
this led to problems where normal exit-on-error messages confused
users by complaining about failing to compile; magic to stop this is
not worth the tiny savings
COMMANDS SHOULD NOW HAVE ->execute RATHER THAN ->run
this will not break you code... except:
WILL BREAK YOUR CODE: App::Cmd::Simple programs must use ->execute
rather than ->run
0.207 2009-08-27
add option to allow any unambiguous command abbreviation
(thanks, Jerome Quelin)
0.206 2009-08-19
add a ->description to commands (thanks, Jerome Quelin)
0.205 2009-08-18
add the long-missing arg0 and full_arg0 accessors (resolves 35528)
thanks to GAISSMAI and Jerome Quelin for reporting
0.204 2009-06-27
document the need for calling ->import on Simple apps
add tests for Simple-based apps
correct a few errors in the tutorial (thanks, Jason Crome)
0.203 2009-01-16
add repo info to metadata
0.202 2008-10-16
update App::Cmd::Tester to use IO::TieCombine
0.201 2008-10-14
fix typos in Tutorial.pod (thanks, HARTZELL!)
fix prereq for Sub::Exporter to ensure we have curry_method
0.200 2008-09-14
new super-concise ::Setup interface provided by Sub::Exporter
added plugin system
consult App::Cmd::Tutorial to see the new interface
your old code should still work!
0.013 2008-03-19
add arg0 and full_arg0 methods
0.012 2007-11-19
refresh Module::Install
0.011 2007-10-12
BUG FIX: note new prereqs
0.010 2007-10-05
MAJORLY NEW: App::Cmd::Simple for one-command apps
0.009 2007-10-05
BUG FIX: default_command/_plugin method names were not consistent
TRIVIA: come into line with some code writing policies
0.008 2006-11-16
documentation fixes
perl-critic tests
0.007 2006-08-25
documentation improvements
refactoring and reordering of code
0.006 2006-08-25
gracefully ignore invalid plugins (NUFFIN)
some tweaks to "help" (NUFFIN)
actually make "help" the default
some documenation improvements
0.005 2006-08-23
this release brought to you by NUFFIN!
allow subcommands (commands beneath commands)
add a default "help" command
support global options
improve documentation and tutorial
extensive minor refactorings and improvements
0.002 2006-06-14
fix test plan
0.001 2006-06-12
first release (not counting Rubric::CLI)
LICENSE 100644 000765 000024 46307 15155063524 13313 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 This software is copyright (c) 2026 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.
Terms of the Perl programming language system itself
a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
This software is Copyright (c) 2026 by Ricardo Signes.
This is free software, licensed under:
The GNU General Public License, Version 1, February 1989
GNU GENERAL PUBLIC LICENSE
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The license agreements of most software companies try to keep users
at the mercy of those companies. By contrast, our General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. The
General Public License applies to the Free Software Foundation's
software and to any other program whose authors commit to using it.
You can use it for your programs, too.
When we speak of free software, we are referring to freedom, not
price. Specifically, the General Public License is designed to make
sure that you have the freedom to give away or sell copies of free
software, that you receive source code or can get it if you want it,
that you can change the software or use pieces of it in new free
programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of a such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must tell them their rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any program or other work which
contains a notice placed by the copyright holder saying it may be
distributed under the terms of this General Public License. The
"Program", below, refers to any such program or work, and a "work based
on the Program" means either the Program or any work containing the
Program or a portion of it, either verbatim or with modifications. Each
licensee is addressed as "you".
1. You may copy and distribute verbatim copies of the Program's source
code as you receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice and
disclaimer of warranty; keep intact all the notices that refer to this
General Public License and to the absence of any warranty; and give any
other recipients of the Program a copy of this General Public License
along with the Program. You may charge a fee for the physical act of
transferring a copy.
2. You may modify your copy or copies of the Program or any portion of
it, and copy and distribute such modifications under the terms of Paragraph
1 above, provided that you also do the following:
a) cause the modified files to carry prominent notices stating that
you changed the files and the date of any change; and
b) cause the whole of any work that you distribute or publish, that
in whole or in part contains the Program or any part thereof, either
with or without modifications, to be licensed at no charge to all
third parties under the terms of this General Public License (except
that you may choose to grant warranty protection to some or all
third parties, at your option).
c) If the modified program normally reads commands interactively when
run, you must cause it, when started running for such interactive use
in the simplest and most usual way, to print or display an
announcement including an appropriate copyright notice and a notice
that there is no warranty (or else, saying that you provide a
warranty) and that users may redistribute the program under these
conditions, and telling the user how to view a copy of this General
Public License.
d) You may charge a fee for the physical act of transferring a
copy, and you may at your option offer warranty protection in
exchange for a fee.
Mere aggregation of another independent work with the Program (or its
derivative) on a volume of a storage or distribution medium does not bring
the other work under the scope of these terms.
3. You may copy and distribute the Program (or a portion or derivative of
it, under Paragraph 2) in object code or executable form under the terms of
Paragraphs 1 and 2 above provided that you also do one of the following:
a) accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of
Paragraphs 1 and 2 above; or,
b) accompany it with a written offer, valid for at least three
years, to give any third party free (except for a nominal charge
for the cost of distribution) a complete machine-readable copy of the
corresponding source code, to be distributed under the terms of
Paragraphs 1 and 2 above; or,
c) accompany it with the information you received as to where the
corresponding source code may be obtained. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form alone.)
Source code for a work means the preferred form of the work for making
modifications to it. For an executable file, complete source code means
all the source code for all modules it contains; but, as a special
exception, it need not include source code for modules which are standard
libraries that accompany the operating system on which the executable
file runs, or for standard header files or definitions files that
accompany that operating system.
4. You may not copy, modify, sublicense, distribute or transfer the
Program except as expressly provided under this General Public License.
Any attempt otherwise to copy, modify, sublicense, distribute or transfer
the Program is void, and will automatically terminate your rights to use
the Program under this License. However, parties who have received
copies, or rights to use copies, from you under this General Public
License will not have their licenses terminated so long as such parties
remain in full compliance.
5. By copying, distributing or modifying the Program (or any work based
on the Program) you indicate your acceptance of this license to do so,
and all its terms and conditions.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions. You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.
7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of the license which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
the license, you may choose any version ever published by the Free Software
Foundation.
8. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
Copyright (C) 19yy
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see .
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19xx name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than `show w' and `show
c'; they could even be mouse-clicks or menu items--whatever suits your
program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
program `Gnomovision' (a program to direct compilers to make passes
at assemblers) written by James Hacker.
, 1 April 1989
Moe Ghoul, President of Vice
That's all there is to it!
--- The Perl Artistic License 1.0 ---
This software is Copyright (c) 2026 by Ricardo Signes.
This is free software, licensed under:
The Perl Artistic License 1.0
The "Artistic License"
Preamble
The intent of this document is to state the conditions under which a
Package may be copied, such that the Copyright Holder maintains some
semblance of artistic control over the development of the package,
while giving the users of the package the right to use and distribute
the Package in a more-or-less customary fashion, plus the right to make
reasonable modifications.
Definitions:
"Package" refers to the collection of files distributed by the
Copyright Holder, and derivatives of that collection of files
created through textual modification.
"Standard Version" refers to such a Package if it has not been
modified, or has been modified in accordance with the wishes
of the Copyright Holder as specified below.
"Copyright Holder" is whoever is named in the copyright or
copyrights for the package.
"You" is you, if you're thinking about copying or distributing
this Package.
"Reasonable copying fee" is whatever you can justify on the
basis of media cost, duplication charges, time of people involved,
and so on. (You will not be required to justify it to the
Copyright Holder, but only to the computing community at large
as a market that must bear the fee.)
"Freely Available" means that no fee is charged for the item
itself, though there may be fees involved in handling the item.
It also means that recipients of the item may redistribute it
under the same conditions they received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
2. You may apply bug fixes, portability fixes and other modifications
derived from the Public Domain or from the Copyright Holder. A Package
modified in such a way shall still be considered the Standard Version.
3. You may otherwise modify your copy of this Package in any way, provided
that you insert a prominent notice in each changed file stating how and
when you changed that file, and provided that you do at least ONE of the
following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
c) rename any non-standard executables so the names do not conflict
with standard executables, which must also be provided, and provide
a separate manual page for each non-standard executable that clearly
documents how it differs from the Standard Version.
d) make other distribution arrangements with the Copyright Holder.
4. You may distribute the programs of this Package in object code or
executable form, provided that you do at least ONE of the following:
a) distribute a Standard Version of the executables and library files,
together with instructions (in the manual page or equivalent) on where
to get the Standard Version.
b) accompany the distribution with the machine-readable source of
the Package with your modifications.
c) give non-standard executables non-standard names, and clearly
document the differences in manual pages (or equivalent), together
with instructions on where to get the Standard Version.
d) make other distribution arrangements with the Copyright Holder.
5. You may charge a reasonable copying fee for any distribution of this
Package. You may charge any fee you choose for support of this
Package. You may not charge a fee for this Package itself. However,
you may distribute this Package in aggregate with other (possibly
commercial) programs as part of a larger (possibly commercial) software
distribution provided that you do not advertise this Package as a
product of your own. You may embed this Package's interpreter within
an executable of yours (by linking); this shall be construed as a mere
form of aggregation, provided that the complete Standard Version of the
interpreter is so embedded.
6. The scripts and library files supplied as input to or produced as
output from the programs of this Package do not automatically fall
under the copyright of this Package, but belong to whoever generated
them, and may be sold commercially, and may be aggregated with this
Package. If such scripts or library files are aggregated with this
Package via the so-called "undump" or "unexec" methods of producing a
binary executable image, then distribution of such an image shall
neither be construed as a distribution of this Package nor shall it
fall under the restrictions of Paragraphs 3 and 4, provided that you do
not represent such an executable image as a Standard Version of this
Package.
7. C subroutines (or comparably compiled subroutines in other
languages) supplied by you and linked into this Package in order to
emulate subroutines and variables of the language defined by this
Package shall not be considered part of this Package, but are the
equivalent of input as in Paragraph 6, provided these subroutines do
not change the language in any way that would cause it to fail the
regression tests for the language.
8. Aggregation of this Package with a commercial distribution is always
permitted provided that the use of this Package is embedded; that is,
when no overt attempt is made to make this Package's interfaces visible
to the end user of the commercial distribution. Such use shall not be
construed as a distribution of this Package.
9. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
dist.ini 100644 000765 000024 447 15155063524 13705 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 name = App-Cmd
author = Ricardo Signes
license = Perl_5
copyright_holder = Ricardo Signes
[@RJBS]
perl-window = long-term
[Prereqs]
Getopt::Long = 2.39 ; avoid --version mixup
Getopt::Long::Descriptive = 0.117 ; GETOPT_LONG_DESCRIPTIVE_COMPLETION
Pod::Usage = 1.61
META.yml 100644 000765 000024 33736 15155063524 13561 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 ---
abstract: 'write command line apps with less suffering'
author:
- 'Ricardo Signes '
build_requires:
Data::Dumper: '0'
ExtUtils::MakeMaker: '0'
File::Spec: '0'
IPC::Cmd: '0'
Test::Fatal: '0'
Test::More: '0.96'
lib: '0'
configure_requires:
ExtUtils::MakeMaker: '6.78'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.037, CPAN::Meta::Converter version 2.150013'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: App-Cmd
requires:
Capture::Tiny: '0.13'
Carp: '0'
Class::Load: '0.06'
Data::OptList: '0'
File::Basename: '0'
Getopt::Long: '2.39'
Getopt::Long::Descriptive: '0.117'
IO::TieCombine: '0'
Module::Pluggable::Object: '0'
Pod::Usage: '1.61'
String::RewritePrefix: '0'
Sub::Exporter: '0'
Sub::Exporter::Util: '0'
Sub::Install: '0'
Text::Abbrev: '0'
constant: '0'
experimental: '0'
parent: '0'
perl: '5.020'
strict: '0'
warnings: '0'
resources:
bugtracker: https://github.com/rjbs/App-Cmd/issues
homepage: https://github.com/rjbs/App-Cmd
repository: https://github.com/rjbs/App-Cmd.git
version: '0.340'
x_Dist_Zilla:
perl:
version: '5.040001'
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
config:
Dist::Zilla::Plugin::GatherDir:
exclude_filename: []
exclude_match: []
include_dotfiles: 0
prefix: ''
prune_directory: []
root: .
Dist::Zilla::Plugin::Git::GatherDir:
include_untracked: 0
name: '@RJBS/Git::GatherDir'
version: '2.052'
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
version: '0.022'
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@RJBS/CheckExtraTests'
version: '0.029'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
Dist::Zilla::Plugin::PromptIfStale:
check_all_plugins: 0
check_all_prereqs: 0
modules:
- Dist::Zilla::PluginBundle::RJBS
phase: build
run_under_travis: 0
skip: []
name: '@RJBS/RJBS-Outdated'
version: '0.060'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
Dist::Zilla::Plugin::PromptIfStale:
check_all_plugins: 1
check_all_prereqs: 0
modules: []
phase: release
run_under_travis: 0
skip:
- Dist::Zilla::Plugin::RJBSMisc
name: '@RJBS/CPAN-Outdated'
version: '0.060'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Filter/PruneCruft'
version: '6.037'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Filter/ManifestSkip'
version: '6.037'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Filter/MetaYAML'
version: '6.037'
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Filter/License'
version: '6.037'
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Filter/Readme'
version: '6.037'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Filter/ExecDir'
version: '6.037'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Filter/ShareDir'
version: '6.037'
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Filter/Manifest'
version: '6.037'
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Filter/TestRelease'
version: '6.037'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Filter/ConfirmRelease'
version: '6.037'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Filter/UploadToCPAN'
version: '6.037'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 9
name: '@RJBS/MakeMaker'
version: '6.037'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
version: '6.037'
-
class: Dist::Zilla::Plugin::Git::NextVersion
config:
Dist::Zilla::Plugin::Git::NextVersion:
first_version: '0.001'
version_by_branch: 1
version_regexp: (?^:^([0-9]+\.[0-9]+)$)
Dist::Zilla::Role::Git::Repo:
git_version: '2.50.1 (Apple Git-155)'
repo_root: .
name: '@RJBS/Git::NextVersion'
version: '2.052'
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
version: '6.037'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
version: '6.037'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
version: '6.037'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
version: '6.037'
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
version: '0.011'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
version: '6.037'
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@RJBS/Test::ReportPrereqs'
version: '0.029'
-
class: Dist::Zilla::Plugin::Git::Remote::Check
name: '@RJBS/Git::Remote::Check'
version: 0.1.2
-
class: Dist::Zilla::Plugin::Test::Compile
config:
Dist::Zilla::Plugin::Test::Compile:
bail_out_on_fail: 1
fail_on_warning: author
fake_home: 0
filename: xt/author/00-compile.t
module_finder:
- ':InstallModules'
needs_display: 0
phase: develop
script_finder:
- ':PerlExecFiles'
skips: []
switch: []
name: '@RJBS/Test::Compile'
version: '2.059'
-
class: Dist::Zilla::Plugin::Prereqs
config:
Dist::Zilla::Plugin::Prereqs:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
version: '6.037'
-
class: Dist::Zilla::Plugin::PodWeaver
config:
Dist::Zilla::Plugin::PodWeaver:
config_plugins:
- '@RJBS'
finder:
- ':InstallModules'
- ':PerlExecFiles'
plugins:
-
class: Pod::Weaver::Plugin::EnsurePod5
name: '@CorePrep/EnsurePod5'
version: '4.020'
-
class: Pod::Weaver::Plugin::H1Nester
name: '@CorePrep/H1Nester'
version: '4.020'
-
class: Pod::Weaver::Plugin::SingleEncoding
name: '@RJBS/SingleEncoding'
version: '4.020'
-
class: Pod::Weaver::Section::Name
name: '@RJBS/Name'
version: '4.020'
-
class: Pod::Weaver::Section::Version
name: '@RJBS/Version'
version: '4.020'
-
class: Pod::Weaver::Section::Region
name: '@RJBS/Prelude'
version: '4.020'
-
class: Pod::Weaver::Section::Generic
name: '@RJBS/Synopsis'
version: '4.020'
-
class: Pod::Weaver::Section::Generic
name: '@RJBS/Description'
version: '4.020'
-
class: Pod::Weaver::Section::Generic
name: '@RJBS/Overview'
version: '4.020'
-
class: Pod::Weaver::Section::Generic
name: '@RJBS/Stability'
version: '4.020'
-
class: Pod::Weaver::Section::GenerateSection
name: '@RJBS/PerlSupport'
version: '4.020'
-
class: Pod::Weaver::Section::Collect
name: Attributes
version: '4.020'
-
class: Pod::Weaver::Section::Collect
name: Methods
version: '4.020'
-
class: Pod::Weaver::Section::Collect
name: Functions
version: '4.020'
-
class: Pod::Weaver::Section::Leftovers
name: '@RJBS/Leftovers'
version: '4.020'
-
class: Pod::Weaver::Section::Region
name: '@RJBS/postlude'
version: '4.020'
-
class: Pod::Weaver::Section::Authors
name: '@RJBS/Authors'
version: '4.020'
-
class: Pod::Weaver::Section::Contributors
name: '@RJBS/Contributors'
version: '0.009'
-
class: Pod::Weaver::Section::Legal
name: '@RJBS/Legal'
version: '4.020'
-
class: Pod::Weaver::Plugin::Transformer
name: '@RJBS/List'
version: '4.020'
name: '@RJBS/PodWeaver'
version: '4.010'
-
class: Dist::Zilla::Plugin::RJBSMisc
name: '@RJBS/RJBSMisc'
version: '5.036'
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
version: '0.58'
-
class: Dist::Zilla::Plugin::Git::Check
config:
Dist::Zilla::Plugin::Git::Check:
untracked_files: die
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- Changes
- dist.ini
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
git_version: '2.50.1 (Apple Git-155)'
repo_root: .
name: '@RJBS/@Git/Check'
version: '2.052'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
Dist::Zilla::Plugin::Git::Commit:
add_files_in: []
commit_msg: v%V%n%n%c
signoff: 0
Dist::Zilla::Role::Git::DirtyFiles:
allow_dirty:
- Changes
- dist.ini
allow_dirty_match: []
changelog: Changes
Dist::Zilla::Role::Git::Repo:
git_version: '2.50.1 (Apple Git-155)'
repo_root: .
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@RJBS/@Git/Commit'
version: '2.052'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
changelog: Changes
signed: 0
tag: '0.340'
tag_format: '%v'
tag_message: v%V
Dist::Zilla::Role::Git::Repo:
git_version: '2.50.1 (Apple Git-155)'
repo_root: .
Dist::Zilla::Role::Git::StringFormatter:
time_zone: local
name: '@RJBS/@Git/Tag'
version: '2.052'
-
class: Dist::Zilla::Plugin::Git::Push
config:
Dist::Zilla::Plugin::Git::Push:
push_to:
- 'github :'
remotes_must_exist: 0
Dist::Zilla::Role::Git::Repo:
git_version: '2.50.1 (Apple Git-155)'
repo_root: .
name: '@RJBS/@Git/Push'
version: '2.052'
-
class: Dist::Zilla::Plugin::Git::Contributors
config:
Dist::Zilla::Plugin::Git::Contributors:
git_version: '2.50.1 (Apple Git-155)'
include_authors: 0
include_releaser: 1
order_by: name
paths: []
remove: ...
name: '@RJBS/Git::Contributors'
version: '0.039'
-
class: Dist::Zilla::Plugin::Prereqs
config:
Dist::Zilla::Plugin::Prereqs:
phase: runtime
type: requires
name: Prereqs
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
version: '6.037'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
version: '6.037'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
version: '6.037'
x_contributors:
- 'Adam Prime '
- 'ambs '
- 'Andreas Hernitscheck '
- 'A. Sinan Unur '
- "Chris 'BinGOs' Williams "
- 'David Golden '
- 'David Steinbrunner '
- 'Davor Cubranic '
- 'Denis Ibaev '
- 'Diab Jerius '
- 'Glenn Fowler '
- 'Ingy dot Net '
- 'Jakob Voss '
- 'Jérôme Quelin '
- 'John SJ Anderson '
- 'Karen Etheridge '
- 'Kent Fredric '
- 'Lucas Theisen '
- 'Matthew Astley '
- 'Michael McClimon '
- 'mokko '
- 'Olivier Mengué '
- 'Ricardo Signes '
- 'Ryan C. Thompson '
- 'Salvatore Bonaccorso '
- 'Sawyer X '
- 'Sergey Romanov '
- 'Stephan Loyd '
- 'Stephen Caldwell '
- 'Yuval Kogman '
x_generated_by_perl: v5.40.1
x_rjbs_perl_window: long-term
x_serialization_backend: 'YAML::Tiny version 1.76'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
MANIFEST 100644 000765 000024 3674 15155063524 13417 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.037
Changes
LICENSE
MANIFEST
META.json
META.yml
Makefile.PL
README
dist.ini
eg/colors.bash
eg/colors.zsh
eg/lib/Palette.pm
eg/lib/Palette/Command/paint.pm
eg/lib/Palette/Command/show.pm
eg/palette
lib/App/Cmd.pm
lib/App/Cmd/ArgProcessor.pm
lib/App/Cmd/Command.pm
lib/App/Cmd/Command/commands.pm
lib/App/Cmd/Command/help.pm
lib/App/Cmd/Command/version.pm
lib/App/Cmd/Plugin.pm
lib/App/Cmd/Setup.pm
lib/App/Cmd/Simple.pm
lib/App/Cmd/Subdispatch.pm
lib/App/Cmd/Subdispatch/DashedStyle.pm
lib/App/Cmd/Tester.pm
lib/App/Cmd/Tester/CaptureExternal.pm
lib/App/Cmd/Tutorial.pod
t/00-load.t
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/abbrev.t
t/basic.t
t/callback.t
t/capture-ext.t
t/lib/Test/BrokenCmd.pm
t/lib/Test/BrokenCmd/Command.pm
t/lib/Test/IgnoreCommand.pm
t/lib/Test/IgnoreCommand/Command.pm
t/lib/Test/MyCmd.pm
t/lib/Test/MyCmd/Command/exit.pm
t/lib/Test/MyCmd/Command/frobulate.pm
t/lib/Test/MyCmd/Command/hello.pm
t/lib/Test/MyCmd/Command/justusage.pm
t/lib/Test/MyCmd/Command/savargs.pm
t/lib/Test/MyCmd/Command/stock.pm
t/lib/Test/MyCmd2.pm
t/lib/Test/MyCmd2/Command/foo.pm
t/lib/Test/MyCmd2/Command/foo/bar.pm
t/lib/Test/MyCmdAbbrev.pm
t/lib/Test/MyCmdAbbrev/Command/bar.pm
t/lib/Test/MyCmdAbbrev/Command/baz.pm
t/lib/Test/MyCmdAbbrev/Command/foo.pm
t/lib/Test/MySimple.pm
t/lib/Test/WSNCC.pm
t/lib/Test/WSNCC/Command/blort.pm
t/lib/Test/WSOF.pm
t/lib/Test/WithCallback.pm
t/lib/Test/WithCallback/Command/lol.pm
t/lib/Test/WithSetup.pm
t/lib/Test/WithSetup/Command.pm
t/lib/Test/WithSetup/Command/alfie.pm
t/lib/Test/WithSetup/Command/bertie.pm
t/lib/Test/XyzzyPlugin.pm
t/lib/lol.pl
t/setup-broken.t
t/setup-ignored.t
t/setup-inner.t
t/setup-nocmd.t
t/setup.t
t/simple-args.t
t/simple-help.t
t/simple-require.t
t/simple-use.t
t/simple-version.t
t/subdispatch.t
t/tester-exit.helper.pl
t/tester-exit.t
t/version.t
xt/author/00-compile.t
xt/author/pod-syntax.t
xt/release/changes_has_content.t
t 000755 000765 000024 0 15155063524 12357 5 ustar 00rjbs staff 000000 000000 App-Cmd-0.340 basic.t 100644 000765 000024 5146 15155063524 13773 0 ustar 00rjbs staff 000000 000000 App-Cmd-0.340/t #!perl
use strict;
use warnings;
use Test::More;
use App::Cmd::Tester;
use lib 't/lib';
use Test::MyCmd;
my $app = Test::MyCmd->new;
isa_ok($app, 'Test::MyCmd');
is_deeply(
[ sort $app->command_names ],
[ sort qw(help --help -h --version -? commands exit frob frobulate hello justusage savargs stock version) ],
"got correct list of registered command names",
);
is_deeply(
[ sort $app->command_plugins ],
[ qw(
App::Cmd::Command::commands
App::Cmd::Command::help
App::Cmd::Command::version
Test::MyCmd::Command::exit
Test::MyCmd::Command::frobulate
Test::MyCmd::Command::hello
Test::MyCmd::Command::justusage
Test::MyCmd::Command::savargs
Test::MyCmd::Command::stock
) ],
"got correct list of registered command plugins",
);
{
local @ARGV = qw(frob --widget wname your fat face);
eval { $app->run };
is(
$@,
"the widget name is wname - your fat face\n",
"command died with the correct string",
);
}
{
local @ARGV = qw(justusage);
eval { $app->run };
my $error = $@;
like(
$error,
qr/^basic.t justusage/,
"default usage_desc is okay",
);
}
{
local @ARGV = qw(stock);
eval { $app->run };
like($@, qr/mandatory method/, "un-subclassed &run leads to death");
}
my $return = test_app('Test::MyCmd', [ qw(--version) ]);
like(
$return->stdout,
qr{\Abasic\.t \(Test::MyCmd\) version 0\.123 \(t[\\/]basic\.t\)\Z},
"version plugin enabled"
);
is(
test_app('Test::MyCmd', [ qw(commands --help) ])->stdout,
test_app('Test::MyCmd', [ qw(help commands) ])->stdout,
"map --help to help command"
);
$return = test_app('Test::MyCmd', [ qw(commands) ]);
for my $name (qw(commands frobulate hello justusage stock)) {
like($return->stdout, qr/^\s+\Q$name\E/sm, "$name plugin in listing");
}
unlike($return->stdout, qr/--version/, "version plugin not in listing");
{
my $return = test_app('Test::MyCmd', [ qw(exit 1) ]);
is($return->exit_code, 1, "exit code is 1");
}
{
my $return = test_app('Test::MyCmd', [ qw(unknown) ]);
is($return->exit_code, 1, "exit code is 1");
}
{
my $return = test_app('Test::MyCmd', [ qw(help exit) ]);
is $return->stdout, <