NAME

Complete::Man - Complete from list of available manpages

VERSION

This document describes version 0.05 of Complete::Man (from Perl distribution Complete-Man), released on 2016-10-14.

SYNOPSIS

use Complete::Man qw(complete_manpage);

my $res = complete_manpage(word => 'gre');
# -> ['grep', 'grep-changelog', 'greynetic', 'greytiff']

# only from certain section
$res = complete_manpage(word => 'gre', section => 1);
# -> ['grep', 'grep-changelog', 'greytiff']

FUNCTIONS

complete_manpage(%args) -> any

Complete from list of available manpages.

For each directory in MANPATH environment variable, search man section directories and man files.

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

  • section => str

    Only search from this section.

  • word* => str

Return value: (any)

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Complete-Man.

SOURCE

Source repository is at https://github.com/perlancar/perl-Complete-Man.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Complete-Man

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.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

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