Complete::Riap::Clientless - Riap-related completion routines (clientless version)
This document describes version 0.002 of Complete::Riap::Clientless (from Perl distribution Complete-Riap-Clientless), released on 2016-01-01.
use Complete::Riap::Clientless qw(complete_riap_url); my $res = complete_riap_url(word => '/Te', type=>'package'); # -> {word=>['/Template/', '/Test/', '/Text/'], path_sep=>'/'}
This is an alternative to Complete::Riap. It does not utilize a Riap client but instead inspect %SPEC package variables directly. Thus, it can only be used to complete local Riap URL's.
%SPEC
Complete Riap URL.
Only supports local Perl schemes (e.g. /Pkg/Subpkg/function or pl:/Pkg/Subpkg/).
/Pkg/Subpkg/function
pl:/Pkg/Subpkg/
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
riap_client => obj
type => str
Filter by entity type.
word* => str (default: "")
Word to complete.
Return value: (any)
Please visit the project's homepage at https://metacpan.org/release/Complete-Riap-Clientless.
Source repository is at https://github.com/perlancar/perl-Complete-Riap-Clientless.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Complete-Riap-Clientless
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 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.
To install Complete::Riap::Clientless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Complete::Riap::Clientless
CPAN shell
perl -MCPAN -e shell install Complete::Riap::Clientless
For more information on module installation, please visit the detailed CPAN module installation guide.