cmd

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOptions

type AddOptions struct {
	RemoveOptions
	Ip string `required:"false" short:"i" long:"ip"`
}

type ListOptions

type ListOptions struct {
	File string `default:"" short:"f" long:"file" required:"false"`
}

type Options

type Options struct {
	AddOptions    *AddOptions
	RemoveOptions *RemoveOptions
	ListOptions   *ListOptions
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() (*Options, error)

func (*Options) Command

func (o *Options) Command() string

type RemoveOptions

type RemoveOptions struct {
	ListOptions
	Host string `required:"true" short:"p" long:"host"`
}

Jump to

Keyboard shortcuts

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