package Perinci::Sub::XCompletion::perl_modprefix;

our $DATE = '2019-06-03'; # DATE
our $VERSION = '0.102'; # VERSION

use 5.010001;
use strict;
use warnings;

use Complete::Module qw(complete_module);

our %SPEC;

$SPEC{gen_completion} = {
    v => 1.1,
sub gen_completion {
    my %fargs = @_;
    sub {
        my %cargs = @_;
            find_pm     => 0,
            find_pmc    => 0,
            find_pod    => 0,
            find_prefix => 1,
            %cargs, %fargs,

# ABSTRACT: Generate completion for perl module prefix



=encoding UTF-8

=head1 NAME

Perinci::Sub::XCompletion::perl_modprefix - Generate completion for perl module prefix

=head1 VERSION

This document describes version 0.102 of Perinci::Sub::XCompletion::perl_modprefix (from Perl distribution Perinci-Sub-XCompletion), released on 2019-06-03.



This creates a completion from list of installed module prefixes.


=head2 gen_completion


 gen_completion() -> [status, msg, payload, meta]

This function is not exported.

No arguments.

Returns an enveloped result (an array).

First element (status) is an integer containing HTTP status code
(200 means OK, 4xx caller error, 5xx function error). Second element
(msg) is a string containing error message, or 'OK' if status is
200. Third element (payload) is optional, the actual result. Fourth
element (meta) is called result metadata and is optional, a hash
that contains extra information.

Return value:  (any)


Please visit the project's homepage at L<>.

=head1 SOURCE

Source repository is at L<>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<>

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

=head1 AUTHOR

perlancar <>


This software is copyright (c) 2019, 2017, 2016, 2015 by

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.