MCPcopy Create free account
hub / github.com/52funny/pikpakcli / DefaultConfigPath

Function DefaultConfigPath

conf/config.go:144–150  ·  view source on GitHub ↗

DefaultConfigPath returns the default user config file path.

()

Source from the content-addressed store, hash-verified

142
143// DefaultConfigPath returns the default user config file path.
144func DefaultConfigPath() (string, error) {
145 configDir, err := os.UserConfigDir()
146 if err != nil {
147 return "", err
148 }
149 return filepath.Join(configDir, "pikpakcli", "config.yml"), nil
150}
151
152func readConfig(path string) error {
153 f, err := os.Open(path)

Callers 2

RunFunction · 0.92
readFromConfigDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected