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