hosts

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(client *client.Client) *cobra.Command

Commands returns a command tree to manage and cmd/display hosts.

func CompleteByHostnameOrIP

func CompleteByHostnameOrIP(client *client.Client) carapace.Action

CompleteByHostnameOrIP returns completions for all hostnames, or if not found for some hosts, their corresponding addresses. The word being completed is pushed down to the server as a prefix filter (address- or hostname-anchored) so a Tab against a large database fetches only the matching hosts, not the whole table — carapace still does the final exact filtering, so the pushdown only shrinks the wire payload.

func CompleteByID

func CompleteByID(client *client.Client) carapace.Action

CompleteByID returns hosts completions with their smallened IDs as keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL