| 1 |
SYNOPSIS |
| 2 |
|
| 3 |
use Perinci::Sub::Util::PropertyModule qw(get_required_property_modules); |
| 4 |
|
| 5 |
my $meta = { |
| 6 |
v => 1.1, |
| 7 |
args => { |
| 8 |
foo => { |
| 9 |
... |
| 10 |
'form.widget' => '...', |
| 11 |
}, |
| 12 |
bar => {}, |
| 13 |
}, |
| 14 |
'cmdline.skip_format' => 1, |
| 15 |
result => { |
| 16 |
table => { ... }, |
| 17 |
}, |
| 18 |
}; |
| 19 |
my $mods = get_required_property_modules($meta); |
| 20 |
|
| 21 |
Result: |
| 22 |
|
| 23 |
['Perinci::Sub::Property::arg::form', |
| 24 |
'Perinci::Sub::Property::cmdline', |
| 25 |
'Perinci::Sub::Property::result::table'] |
| 26 |
|
| 27 |
FUNCTIONS |
| 28 |
|
| 29 |
get_required_property_modules($meta) => array |
| 30 |
|
| 31 |
Since the Perinci framework is modular, additional properties can be |
| 32 |
introduced by additional property modules (Perinci::Sub::Property::*). |
| 33 |
These properties might be experimental, 3rd party, etc. |
| 34 |
|
| 35 |
This function can detect which modules are used. |
| 36 |
|
| 37 |
This function can be used during distribution building to automatically |
| 38 |
add those modules as prerequisites. |
| 39 |
|