NAME
App::CPAN::Get - Base class for cpan-get script.
SYNOPSIS
use App::CPAN::Get;
my $app = App::CPAN::Get->new;
my $exit_code = $app->run;
METHODS
new
my $app = App::CPAN::Get->new;
Constructor.
Returns instance of object.
run
my $exit_code = $app->run;
Run.
Returns 1 for error, 0 for success.
ERRORS
new():
From Class::Utils::set_params():
Unknown parameter '%s'.
Parameter 'lwp_user_agent' must be a LWP::UserAgent instance.
run():
Cannot download '%s'.
Module '%s' doesn't exist.
Value 'download_uri' doesn't exist.
Value 'uri' doesn't exist.
EXAMPLE
use strict;
use warnings;
use App::CPAN::Get;
# Arguments.
@ARGV = (
'App::Pod::Example',
);
# Run.
exit App::CPAN::Get->new->run;
# Output like:
# Package on 'http://cpan.metacpan.org/authors/id/S/SK/SKIM/App-Pod-Example-0.19.tar.gz' was downloaded.
DEPENDENCIES
Class::Utils, Error::Pure, Getopt::Std, IO::Barf, LWP::UserAgent Menlo::Index::MetaCPAN URI::cpan.
REPOSITORY
https://github.com/michal-josef-spacek/App-CPAN-Get
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2021-2023 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.09