App-Deps-Verify
view release on metacpan or search on metacpan
lib/App/Deps/Verify/App/VerifyDeps/Command/verify.pm view on Meta::CPAN
package App::Deps::Verify::App::VerifyDeps::Command::verify;
$App::Deps::Verify::App::VerifyDeps::Command::verify::VERSION = '0.12.2';
use App::Deps::Verify::App::VerifyDeps -command;
use strict;
use warnings;
use Path::Tiny qw/ path /;
use App::Deps::Verify ();
sub abstract { "verify the presence of dependencies" }
sub description { return abstract(); }
sub opt_spec
{
return (
[ "output|o=s", "path to output file" ],
[ "input|i=s\@", "the input files" ],
);
}
sub validate_args
{
my ( $self, $opt, $args ) = @_;
# no args allowed but options!
$self->usage_error("No args allowed") if @$args;
}
sub execute
{
my ( $self, $opt, $args ) = @_;
App::Deps::Verify->new->verify_deps_in_yamls(
+{ filenames => [ @{ $opt->{input} }, ] } );
path( $opt->{output} )->spew_utf8("Success!");
}
1;
__END__
=pod
=encoding UTF-8
=head1 VERSION
version 0.12.2
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
=head1 SUPPORT
=head2 Websites
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
=over 4
=item *
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
L<https://metacpan.org/release/App-Deps-Verify>
=item *
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-Deps-Verify>
=item *
CPANTS
( run in 1.255 second using v1.01-cache-2.11-cpan-39bf76dae61 )