cli

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(opts ...Option) *cmd

func NewResolver

func NewResolver(opts ...OptionResolver) *cmdResolver

Types

type CmdSeacher

type CmdSeacher interface {
	SetCommand(cmd string)
	// contains filtered or unexported methods
}

type Option

type Option func(*cmd)

type OptionResolver

type OptionResolver func(*cmdResolver)

func WithAddress

func WithAddress(address []string) OptionResolver

func WithCliResolver

func WithCliResolver(cli CmdSeacher) OptionResolver

func WithInterface

func WithInterface(iface string) OptionResolver

Jump to

Keyboard shortcuts

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