The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

testxcomp - Invoke Perinci::Sub::XCompletion::* completion routine

VERSION

This document describes version 0.112 of testxcomp (from Perl distribution App-PerinciUtils), released on 2019-01-20.

SYNOPSIS

 % testxcomp filename foo

will load Perinci::Sub::XCompletion::filename, invoke its gen_completion() to get a completion routine, then run the completion routine with arguments: (word=>"foo"), then return the results one item per line.

 % testxcomp filename foo --arg filter=fx --arg starting_path=subdir

will do the same and run the completion routine with arguments: (word=>"foo", filter=>"fx", starting_path"=>"subdir").

It's a quick way to test completion routine defined in a Perinci::Sub::XCompletion::* module.

OPTIONS

--arg=s%

Specify arguments to pass to completion routine.

--raw

Instead of formatting the completion answer using Complete::Bash's format_completion, display the answer structure as Perl.

HOMEPAGE

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

SOURCE

Source repository is at https://github.com/perlancar/perl-App-PerinciUtils.

BUGS

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

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.

SEE ALSO

Perinci::Sub::XCompletion

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019, 2017, 2016, 2015 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.