logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Perinci::Sub::Util::PropertyModule - Given a Rinci function metadata, find what property modules are

Author

       perlancar <perlancar@cpan.org>

Bugs

       Please report any bugs or feature requests on the bugtracker website
       <https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Util-PropertyModule>

       When submitting a bug or request, please include a test-file or a patch to an existing test-file that
       illustrates the bug or desired feature.

Functions

get_required_property_modules($meta)=>array
       Since the Perinci framework is modular, additional properties can be introduced by additional property
       modules ("Perinci::Sub::Property::*"). These properties might be experimental, 3rd party, etc.

       This function can detect which modules are used.

       This function can be used during distribution building to automatically add those modules as
       prerequisites.

Homepage

       Please visit the project's homepage at <https://metacpan.org/release/Perinci-Sub-Util-PropertyModule>.

Name

       Perinci::Sub::Util::PropertyModule - Given a Rinci function metadata, find what property modules are
       required

Source

       Source repository is at <https://github.com/perlancar/perl-Perinci-Sub-Util-PropertyModule>.

Synopsis

        use Perinci::Sub::Util::PropertyModule qw(get_required_property_modules);

        my $meta = {
            v => 1.1,
            args => {
                foo => {
                    ...
                    'form.widget' => '...',
                },
                bar => {},
            },
            'cmdline.skip_format' => 1,
            result => {
                table => { ... },
            },
        };
        my $mods = get_required_property_modules($meta);

       Result:

        ['Perinci::Sub::Property::arg::form',
         'Perinci::Sub::Property::cmdline',
         'Perinci::Sub::Property::result::table']

Version

       This document describes version 0.46 of Perinci::Sub::Util::PropertyModule (from Perl distribution
       Perinci-Sub-Util-PropertyModule), released on 2016-05-15.

See Also