« Perinci/Sub/XCompletion/firefox_profile_name.pm
↑ Summary
Sah/Schema/firefox/local_profile_name/default_first.pm »
| 1 | package Sah::Schema::firefox::local_profile_name; | ||
| 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 | # TODO: allow selecting local Firefox installation | ||
| 11 | |||
| 12 | 1 | our $schema = ["firefox::profile_name" => { | |
| 13 | summary => 'Firefox profile name, must exist in local Firefox installation', | ||
| 14 | prefilters => ['Firefox::check_profile_name_exists'], | ||
| 15 | description => <<'_', | ||
| 16 | |||
| 17 | This is like the `firefox::profile_name` schema, but adds a check (in | ||
| 18 | `prefilter` clause) that the profile must exist in local Firefox installation. | ||
| 19 | |||
| 20 | _ | ||
| 21 | examples => [ | ||
| 22 | { | ||
| 23 | value => '', | ||
| 24 | valid => 0, | ||
| 25 | test => 0, | ||
| 26 | }, | ||
| 27 | { | ||
| 28 | summary => 'Assuming the profile named "default" exists in local Firefox installation', | ||
| 29 | value => 'default', | ||
| 30 | valid => 1, | ||
| 31 | test => 0, | ||
| 32 | }, | ||
| 33 | ], | ||
| 34 | }]; | ||
| 35 | |||
| 36 | 1 | 1; | |
| 37 | # ABSTRACT: Firefox profile name, must exist in local Firefox installation | ||
| 38 | |||
| 39 | __END__ | ||