Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConfigDir is the directory to store config file ConfigDir string // DefaultConfigFile is the default config file name DefaultConfigFile string )
Directories
View Source
var ( // ErrConfigNotMatch indicates error for no config matchs ErrConfigNotMatch = fmt.Errorf("No matching config") // ErrEmptyEndpoint indicates error for empty endpoint ErrEmptyEndpoint = fmt.Errorf("No endpoint has been set") )
Error strings
View Source
var ConfigCmd = &cobra.Command{
Use: "config",
Short: "Get, set, or reset configuration for ioctl",
}
ConfigCmd represents the config command
Functions ¶
func GetAddressOrAlias ¶
GetAddressOrAlias gets address from args or context
func GetContextAddressOrAlias ¶
GetContextAddressOrAlias gets current context
Types ¶
type Config ¶
type Config struct { Wallet string `json:"wallet" yaml:"wallet"` Endpoint string `json:"endpoint" yaml:"endpoint"` SecureConnect bool `json:"secureConnect" yaml:"secureConnect"` Aliases map[string]string `json:"aliases" yaml:"aliases"` DefaultAccount Context `json:"defaultAccount" yaml:"defaultAccount"` Explorer string `json:"explorer" yaml:"explorer"` }
Config defines the config schema
Click to show internal directories.
Click to hide internal directories.