« 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__ | ||