config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CfgFile Global config file
	CfgFile string
	// Cfg Global config instance
	Cfg *Config
)

Functions

func GetConfigDir added in v0.1.5

func GetConfigDir() string

func Parse added in v0.6.1

func Parse() error

Parse simplify parse config data

func Save added in v0.6.1

func Save() error

Save simplify save config data

Types

type Config

type Config struct {
	Auth map[string]string `yaml:"auth"`
}

Config CLI Config Data

func (*Config) SetAuth added in v0.6.1

func (c *Config) SetAuth(name, rawAuth string)

SetAuth Set rawAuth data with platform name

Jump to

Keyboard shortcuts

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