Bash::Completion::Utils - Set of utility functions that help writting plugins
version 0.008
use Bash::Completion::Utils qw( command_in_path match_perl_modules prefix_match ); ...
A library of utility functions usefull to plugin writers.
Given a command name, returns the full path if we find it in the PATH.
Given a partial module name, returns a list of all the possible completions.
If a single exact match is found, it returns nothing.
Some examples:
List all top level modules and namespaces.
List Template, the module, and Template::, the namespace.
Template
Template::
Lists all type of Resource Records modules.
Returns an empty list.
Accepts a single word and a list of options.
Returns the options that match the word.
Pedro Melo <melo@cpan.org>
This software is Copyright (c) 2011 by Pedro Melo.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Bash::Completion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bash::Completion
CPAN shell
perl -MCPAN -e shell install Bash::Completion
For more information on module installation, please visit the detailed CPAN module installation guide.