flags

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 11 Imported by: 10

Documentation

Index

Constants

View Source
const (
	RollupConfigFlagName = "rollup.config"
	NetworkFlagName      = "network"
)

Variables

View Source
var OverridableForks = append(forks.From(forks.Canyon), forks.AllOpt...)

OverridableForks lists all forks that can be overridden via CLI flags or env vars. It's all mainline forks from Canyon onwards, plus all optional forks.

Functions

func CLIFlags

func CLIFlags(envPrefix string, category string) []cli.Flag

func CLINetworkFlag

func CLINetworkFlag(envPrefix string, category string) cli.Flag

func CLIOverrideFlags added in v1.16.2

func CLIOverrideFlags(envPrefix string, category string) []cli.Flag

func CLIRollupConfigFlag

func CLIRollupConfigFlag(envPrefix string, category string) cli.Flag

func CheckRequiredXor

func CheckRequiredXor(ctx cliiface.Context) error

func OverrideEnvVar added in v1.16.2

func OverrideEnvVar(envPrefix string, fork forks.Name) []string

func OverrideName added in v1.16.2

func OverrideName(f forks.Name) string

Types

type PathFlag added in v1.5.0

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

PathFlag accepts path to some file or directory and splits it into dirPath and filename (both can be empty)

func (*PathFlag) Clone added in v1.5.0

func (f *PathFlag) Clone() any

func (*PathFlag) Dir added in v1.5.0

func (f *PathFlag) Dir() string

func (*PathFlag) Filename added in v1.5.0

func (f *PathFlag) Filename() string

func (*PathFlag) Set added in v1.5.0

func (f *PathFlag) Set(path string) error

func (*PathFlag) String added in v1.5.0

func (f *PathFlag) String() string

type TestConfig added in v1.13.4

type TestConfig struct {
	LogConfig log.CLIConfig
}

func ReadTestConfig added in v1.13.4

func ReadTestConfig() TestConfig

Jump to

Keyboard shortcuts

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