Sah/Schema/perl/distname/default_this_dist.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Sah/Schema/perl/distname.pm ↑ Summary Sah/Schema/perl/distname_with_optional_ver.pm »
1 package Sah::Schema::perl::distname::default_this_dist;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7 1 our $DATE = '2024-02-16'; # DATE
8 1 our $DIST = 'Sah-SchemaBundle-Perl'; # DIST
9 1 our $VERSION = '0.050'; # VERSION
10  
11 1 our $schema = ['perl::distname' => {
12 summary => 'Perl distribution name, defaults to "this distribution"',
13 description => <<'_',
14  
15 See <pm:App::ThisDist>'s `this_dist()` for more details on how "this
16 distribution" is determined. Note that `App::ThisDist` is not added as
17 dependency automatically; you will have to add it manually.
18  
19 Note: be careful when using this schema for actions that are destructive to a
20 Perl dist or that change some things, because a user can perform those actions
21 without giving an argument (e.g. a `delete-dist` script). It is safer to use
22 this schema to perform a non=destructive action (e.g. `ls-dist`) and/or
23 operate in dry-run mode by default.
24  
25 _
26  
27 'x.perl.default_value_rules' => [
28 'Perl::this_dist',
29 ],
30  
31 examples => [
32 ],
33  
34 }];
35  
36 1 1;
37 # ABSTRACT: Perl distribution name, defaults to "this distribution"
38  
39 __END__
« Sah/Schema/perl/distname.pm ↑ Summary Sah/Schema/perl/distname_with_optional_ver.pm »