Sah/Schema/dirname/default_curdir.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.pm ↑ Summary Sah/Schema/dirname/default_curdir_abs.pm »
1 package Sah::Schema::dirname::default_curdir;
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',
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 default => '.',
23  
24 examples => [
25 ],
26  
27 }];
28  
29 1 1;
30 # ABSTRACT: Directory name, default to current directory
31  
32 __END__
« Sah/Schema/dirname.pm ↑ Summary Sah/Schema/dirname/default_curdir_abs.pm »