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

Function readFromConfigDir

conf/config.go:135–141  ·  view source on GitHub ↗

Read configuration file from config path

()

Source from the content-addressed store, hash-verified

133
134// Read configuration file from config path
135func readFromConfigDir() error {
136 path, err := DefaultConfigPath()
137 if err != nil {
138 return err
139 }
140 return readConfig(path)
141}
142
143// DefaultConfigPath returns the default user config file path.
144func DefaultConfigPath() (string, error) {

Callers 1

InitConfigFunction · 0.85

Calls 2

DefaultConfigPathFunction · 0.85
readConfigFunction · 0.85

Tested by

no test coverage detected