| 1 | package Sah::Schema::perl::modname::default_this_mod; | ||
| 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::modname' => { | |
| 12 | summary => 'Perl module, defaults to "this module"', | ||
| 13 | description => <<'_', | ||
| 14 | |||
| 15 | See <pm:App::ThisDist>'s `this_mod()` for more details on how "this module" is | ||
| 16 | determined. Note that `App::ThisDist` is not added as dependency automatically; | ||
| 17 | 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 module or that change some things, because a user can perform those actions | ||
| 21 | without giving an argument (e.g. a `delete-module` script). It is safer to use | ||
| 22 | this schema to perform a non=destructive action (e.g. `man-module`) and/or | ||
| 23 | operate in dry-run mode by default. | ||
| 24 | |||
| 25 | _ | ||
| 26 | |||
| 27 | 'x.perl.default_value_rules' => [ | ||
| 28 | 'Perl::this_mod', | ||
| 29 | ], | ||
| 30 | |||
| 31 | examples => [ | ||
| 32 | ], | ||
| 33 | |||
| 34 | }]; | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | # ABSTRACT: Perl module, defaults to "this module" | ||
| 38 | |||
| 39 | __END__ | ||