App-DistUtils
view release on metacpan or search on metacpan
script/dist-dir view on Meta::CPAN
args => {
%App::DistUtils::dist_arg_single,
tarball => {
schema => 'bool*',
cmdline_aliases => {t=>{}},
},
},
};
sub dist_dir {
my %args = @_;
if ($args{tarball}) {
require File::ShareDir::Tarball;
[200, "OK", File::ShareDir::Tarball::dist_dir($args{dist})];
} else {
require File::ShareDir;
[200, "OK", File::ShareDir::dist_dir($args{dist})];
}
}
Perinci::CmdLine::Any->new(
url => "/main/dist_dir",
)->run;
# ABSTRACT: Get per-dist directory
# PODNAME: dist-dir
__END__
=pod
=encoding UTF-8
=head1 NAME
dist-dir - Get per-dist directory
=head1 VERSION
This document describes version 0.154 of dist-dir (from Perl distribution App-DistUtils), released on 2023-05-20.
=head1 SYNOPSIS
% dist-dir IOD-Examples
/home/ujang/perl5/perlbrew/perls/perl-5.18.4/lib/site_perl/5.18.4/auto/share/dist/IOD-Examples
=head1 DESCRIPTION
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--dist>=I<s>
Distribution name, defaults to "this dist".
See the L<this-dist> utility for how to guess for "this distribution".
Can also be specified as the 1st command-line argument.
=item B<--tarball>, B<-t>
(No description)
=back
=head2 Configuration 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<--no-config>, B<-C>
Do not use any configuration file.
If you specify C<--no-config>, the application will not read any configuration
file.
=back
=head2 Environment options
=over
=item B<--no-env>
Do not read environment for default options.
( run in 0.559 second using v1.01-cache-2.11-cpan-39bf76dae61 )