Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "meta-cli" KeyAccessToken = "access_token" KeyAppID = "app_id" KeyDefaultAccount = "default_account" KeyAPIVersion = "api_version" KeyOutputFormat = "output_format" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
Types ¶
type ConfigStore ¶
type ConfigStore struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(configPath string) *ConfigStore
func (*ConfigStore) ConfigFilePath ¶
func (s *ConfigStore) ConfigFilePath() string
func (*ConfigStore) Get ¶
func (s *ConfigStore) Get(key string) string
func (*ConfigStore) Load ¶
func (s *ConfigStore) Load() (*Config, error)
func (*ConfigStore) Set ¶
func (s *ConfigStore) Set(key, value string) error
func (*ConfigStore) Validate ¶
func (s *ConfigStore) Validate(c *Config) error
Click to show internal directories.
Click to hide internal directories.