Hostname Completion

Host name completion.

class kmd.completions.hostname.HostnameCompletion(hostsfile='/etc/hosts')

Complete host names found in the system’s hosts file.

HostnameCompletion.__call__(text)

Return host names matching ‘text’.

Host names are returned with a leading ‘@’ character. The search string may start with an ‘@’ character which is stripped before matching.

Previous topic

Username Completion

Next topic

Environment Completion