Complete::Host - Completion routines related to hostnames
This document describes version 0.05 of Complete::Host (from Perl distribution Complete-Host), released on 2017-07-03.
Usage:
complete_known_host(%args) -> array
Complete a known hostname.
Complete from a list of "known" hostnames, which are hostnames that are listed in some configurations or those that have previously been entered into the system.
Known hosts will be searched from: /etc/hosts, SSH known hosts files, and remotes in .git configuration files.
/etc/hosts
.git
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
include_hosts => bool (default: 1)
Whether to include hosts in /etc/hosts.
include_ip => bool
Whether to include IP addresses.
include_ssh_known_hosts => bool (default: 1)
Whether to include hosts in ssh known_hosts files.
Only unhashed hosts will be included.
word* => str (default: "")
Word to complete.
Return value: (array)
If set to true, will display more log statements for debugging.
Please visit the project's homepage at https://metacpan.org/release/Complete-Host.
Source repository is at https://github.com/perlancar/perl-Complete-Host.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Complete-Host
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.
Complete
Other Complete::* modules.
Complete::*
perlancar <perlancar@cpan.org>
This software is copyright (c) 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.
To install Complete::Host, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Complete::Host
CPAN shell
perl -MCPAN -e shell install Complete::Host
For more information on module installation, please visit the detailed CPAN module installation guide.