flags

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Cosmos flags below. These config values can be set as flags or in config.toml.
	GrpcAddress    = "grpc.address"
	GrpcEnable     = "grpc.enable"
	KeyringBackend = "keyring-backend"
)

List of CLI flags.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// Existing flags
	GrpcAddress    string
	GrpcEnable     bool
	KeyringBackend string
}

A struct containing the values of all flags.

func GetFlagValuesFromOptions

func GetFlagValuesFromOptions(
	appOpts servertypes.AppOptions,
) Flags

GetFlagValuesFromOptions gets values from the `AppOptions` struct which contains values from the command-line flags.

func (*Flags) Validate

func (f *Flags) Validate() error

Validate checks that the flags are valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳