| 1 | package Sah::Schema::firefox::local_profile_name::default_first; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 6 | 1 | our $DATE = '2023-06-14'; # DATE | |
| 7 | 1 | our $DIST = 'Sah-Schemas-Firefox'; # DIST | |
| 8 | 1 | our $VERSION = '0.008'; # VERSION | |
| 9 | |||
| 10 | 1 | our $schema = ["firefox::local_profile_name" => { | |
| 11 | summary => 'Firefox profile name, must exist in local Firefox installation, default to first', | ||
| 12 | 'x.perl.default_value_rules' => ['Firefox::first_local_profile_name'], | ||
| 13 | description => <<'_', | ||
| 14 | |||
| 15 | This is like `firefox::local_profile_name` schema, but adds a default value rule | ||
| 16 | to pick the first profile in the local Firefox installation. | ||
| 17 | |||
| 18 | _ | ||
| 19 | examples => [ | ||
| 20 | { | ||
| 21 | value => '', | ||
| 22 | valid => 0, | ||
| 23 | test => 0, | ||
| 24 | }, | ||
| 25 | { | ||
| 26 | summary => 'Assuming the profile named "default" exists in local Firefox installation and is the first one', | ||
| 27 | value => 'default', | ||
| 28 | valid => 1, | ||
| 29 | test => 0, | ||
| 30 | }, | ||
| 31 | ], | ||
| 32 | }]; | ||
| 33 | |||
| 34 | 1 | 1; | |
| 35 | # ABSTRACT: Firefox profile name, must exist in local Firefox installation, default to first | ||
| 36 | |||
| 37 | __END__ | ||