cmd

package
v0.0.0-...-c40b528 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HostsFileReadPath specify host file to read
	HostsFileReadPath string
	// HostsFileWritePath specify path to write resulting host file
	HostsFileWritePath string
	// Quiet results in no output
	Quiet bool
	// DryRun sends output to STDOUT (ignores quiet)
	DryRun bool
)
View Source
var Version = "0.0.0"

Functions

func AddHosts

func AddHosts(ip string, hosts []string)

func Execute

func Execute()

Execute bootstraps the cobra root command

func ListByCIDRs

func ListByCIDRs(cidrs []string)

func ListByHostnames

func ListByHostnames(hostnames []string)

func ListByIPs

func ListByIPs(ips []string)

func RemoveHosts

func RemoveHosts(hosts []string)

func RemoveIPRanges

func RemoveIPRanges(cidrs []string)

func ShowHosts

func ShowHosts()

func VersionFromBuild

func VersionFromBuild() (version string)

Version returns the version of txeh binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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