cli

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package cli is the CLI part of the package, including both POSIX flag parsing and dig-like flag parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCLI

func ParseCLI(args []string, version string) (opts *util.Options, err error)

ParseCLI parses arguments given from the CLI and passes them into an `Options` struct.

func ParseDig

func ParseDig(arg string, opts *util.Options) error

ParseDig parses commands from the popular DNS tool dig. All dig commands are taken from https://man.openbsd.org/dig.1 as the source of their functionality.

[no]flags are supported just as flag are and are disabled as such.

func ParseMiscArgs

func ParseMiscArgs(args []string, opts *util.Options) error

ParseMiscArgs parses the wildcard arguments, dig style. Only one command is supported at a time, so any extra information overrides previous.

Types

This section is empty.

Jump to

Keyboard shortcuts

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