flags

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 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

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

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

func OverrideName

func OverrideName(f forks.Name) string

Types

type PathFlag

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

func (f *PathFlag) Clone() any

func (*PathFlag) Dir

func (f *PathFlag) Dir() string

func (*PathFlag) Filename

func (f *PathFlag) Filename() string

func (*PathFlag) Set

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

func (*PathFlag) String

func (f *PathFlag) String() string

type TestConfig

type TestConfig struct {
	LogConfig log.CLIConfig
}

func ReadTestConfig

func ReadTestConfig() TestConfig

Jump to

Keyboard shortcuts

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