config

package
v0.44.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns a CLI command to interactively create an application CLI config file.

func ReadFromClientConfig

func ReadFromClientConfig(ctx client.Context) (client.Context, error)

ReadFromClientConfig reads values from client.toml file and updates them in client Context

Types

type ClientConfig

type ClientConfig struct {
	ChainID        string `mapstructure:"chain-id" json:"chain-id"`
	KeyringBackend string `mapstructure:"keyring-backend" json:"keyring-backend"`
	Output         string `mapstructure:"output" json:"output"`
	Node           string `mapstructure:"node" json:"node"`
	BroadcastMode  string `mapstructure:"broadcast-mode" json:"broadcast-mode"`
}

func (*ClientConfig) SetBroadcastMode

func (c *ClientConfig) SetBroadcastMode(broadcastMode string)

func (*ClientConfig) SetChainID

func (c *ClientConfig) SetChainID(chainID string)

func (*ClientConfig) SetKeyringBackend

func (c *ClientConfig) SetKeyringBackend(keyringBackend string)

func (*ClientConfig) SetNode

func (c *ClientConfig) SetNode(node string)

func (*ClientConfig) SetOutput

func (c *ClientConfig) SetOutput(output string)

Jump to

Keyboard shortcuts

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