App-cpanmodules

 view release on metacpan or  search on metacpan

script/cpanmodules  view on Meta::CPAN

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2023-06-17'; # DATE
our $DIST = 'App-cpanmodules'; # DIST
our $VERSION = '0.007'; # VERSION

my $prefix = '/App/cpanmodules/';

Perinci::CmdLine::Any->new(
    url => $prefix,
    subcommands => {
        'ls'         => {url=>"${prefix}list_acmemods"},
        'view'       => {url=>"${prefix}view_acmemod"},
        'get'        => {url=>"${prefix}get_acmemod"},
        'ls-entries'     => {url=>"${prefix}list_entries"},
    },
)->run;

# ABSTRACT: The Acme::CPANModules CLI
# PODNAME: cpanmodules

__END__

=pod

=encoding UTF-8

=head1 NAME

cpanmodules - The Acme::CPANModules CLI

=head1 VERSION

This document describes version 0.007 of cpanmodules (from Perl distribution App-cpanmodules), released on 2023-06-17.

=head1 SYNOPSIS

Install some C<Acme::CPANModules::> modules and then ...

List all installed Acme::CPANModules modules:

 % cpanmodules ls
 % cpanmodules ls -l

Find Acme::CPANModules modules that mention a module:

 % cpanmodules ls --mentions Foo::Bar

View as rendered POD:

 % cpanmodules view PERLANCAR::Favorites

Get the list (raw):

 % cpanmodules get PERLANCAR::Favorites

List entries of a list:

 % cpanmodules ls-entries PERLANCAR::Favorites::App
 App::lcpan
 App::pause
 App::SetScreensaverTimeout

Install all entries of a list:

 % cpanmodules ls-entries PERLANCAR::Favorites::App | cpanm -n

=head1 SUBCOMMANDS

=head2 B<get>

Get contents of an Acme::CPANModules module.

=head2 B<ls>

List all installed Acme::CPANModules modules.

=head2 B<ls-entries>

List entries from an Acme::CPANModules module.

=head2 B<view>

View an Acme::CPANModules module as rendered POD.

=head1 OPTIONS

C<*> marks required options.

=head2 Common options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

Can actually be specified multiple times to instruct application to read from
multiple configuration files (and merge them).


=item B<--config-profile>=I<s>, B<-P>

Set configuration profile to use.

A single configuration file can contain profiles, i.e. alternative sets of
values that can be selected. For example:

 [profile=dev]
 username=foo
 pass=beaver
 
 [profile=production]
 username=bar
 pass=honey

When you specify C<--config-profile=dev>, C<username> will be set to C<foo> and
C<password> to C<beaver>. When you specify C<--config-profile=production>,
C<username> will be set to C<bar> and C<password> to C<honey>.


=item B<--format>=I<s>

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.954 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )