cli

package
v4.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTooManyOperations = errors.New("exactly one of --merge, --compare, --validate or --fieldset must be provided")
	ErrNeedTwoArgs       = errors.New("--merge and --compare require both --lhs and --rhs")
)

Functions

This section is empty.

Types

type Operation

type Operation interface {
	Execute(io.Writer) error
}

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) AddFlags

func (o *Options) AddFlags(fs *flag.FlagSet)

func (*Options) OpenOutput

func (o *Options) OpenOutput() (io.WriteCloser, error)

func (*Options) Resolve

func (o *Options) Resolve() (Operation, error)

resolve turns options in to an operation that can be executed.

Jump to

Keyboard shortcuts

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