Sah/Schema/dirname/default_curdir_abs.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/dirname/default_curdir.pm ↑ Summary Sah/Schema/dirname/default_only_subdir_in_curdir.pm »
1 package Sah::Schema::dirname::default_curdir_abs;
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-Path'; # DIST
9 1 our $VERSION = '0.031'; # VERSION
10  
11 1 our $schema = ['dirname' => {
12 summary => 'Directory name, default to current directory (absolutified)',
13 description => <<'_',
14  
15 Note: be careful when using this schema for actions that are destructive,
16 because a user can perform those actions without giving an argument (e.g. in a
17 `delete-files-in` script). It is safer to use this schema when performing a
18 non-destructive action (e.g. `ls`) and/or operate in dry-run mode by default.
19  
20 _
21  
22 'x.perl.default_value_rules' => [
23 'Path::curdir_abs',
24 ],
25  
26 examples => [
27 ],
28  
29 }];
30  
31 1 1;
32 # ABSTRACT: Directory name, default to current directory (absolutified)
33  
34 __END__
« Sah/Schema/dirname/default_curdir.pm ↑ Summary Sah/Schema/dirname/default_only_subdir_in_curdir.pm »