cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 8 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()

func RemoveHosts

func RemoveHosts(hosts []string)

func RemoveIPRanges added in v1.1.1

func RemoveIPRanges(cidrs []string)

func RemoveIPs

func RemoveIPs(ips []string)

func ShowHosts added in v1.3.0

func ShowHosts()

Types

This section is empty.

Jump to

Keyboard shortcuts

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