flags

package
v0.0.0-...-0908cd3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountCategory = "ACCOUNT"
)

Variables

View Source
var (
	ConfigFlag = &cli.PathFlag{
		Name:      "config",
		TakesFile: true,
		Usage:     "TOML configuration file",
	}

	ChainFlag = &cli.StringFlag{
		Name:  "chain",
		Usage: "An execution client http or websocket endpoint.",
	}

	KeyStoreDirFlag = &cli.PathFlag{
		Name:     "keystore",
		Usage:    "Directory for the keystore (default = inside the datadir)",
		Category: AccountCategory,
	}

	AccountFlag = &cli.StringFlag{
		Name:     "account",
		Usage:    "account to unlock",
		Category: AccountCategory,
	}

	PasswordFileFlag = &cli.PathFlag{
		Name:      "password",
		Usage:     "Password file to use for non-interactive password input",
		TakesFile: true,
		Category:  AccountCategory,
	}
)

Functions

func GetPassword

func GetPassword(ctx *cli.Context) string

func ReadConfig

func ReadConfig[T any](ctx *cli.Context) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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