cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCommandFactory

func UpdateCommandFactory(ui cli.Ui) cli.CommandFactory

Types

type Flags

type Flags struct {
	// The relative or absolute path to the directory that contains the golden
	// files.
	GoldenFilesDirectory string

	// The relative or absolute path to the directory that contains the test
	// files and specifications.
	TestingFilesDirectory string

	// The relative or absolute path to the target binary.
	BinaryPath string

	// If empty, then all tests will be executed. If not empty, only tests
	// included in this flag will be executed.
	TestFilters StringList

	// The relative or absolute path to the JSONC file containing global
	// rewrites. This can be empty, in which case there are no global rewrites.
	RewritesPath string
}

Flags is a helpful struct that contains the global flags for the equivalence test binary.

func ParseFlags

func ParseFlags(command string, args []string) (*Flags, error)

type StringList

type StringList []string

StringList is a slice of strings that satisfies the interface for a flags.Value.

func (*StringList) Set

func (stringlist *StringList) Set(s string) error

func (*StringList) String

func (stringlist *StringList) String() string

Jump to

Keyboard shortcuts

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