MCPcopy
hub / github.com/rclone/rclone / parseConfig

Function parseConfig

cmd/bisync/bisync_debug_test.go:51–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func parseConfig() (*Config, error) {
52 d, err := os.ReadFile(configFile)
53 if err != nil {
54 return nil, fmt.Errorf("failed to read config file: %w", err)
55 }
56 config := &Config{}
57 err = yaml.Unmarshal(d, &config)
58 if err != nil {
59 return nil, fmt.Errorf("failed to parse config file: %w", err)
60 }
61 return config, nil
62}
63
64const debugFormat = ` {
65 "name": %q,

Callers 1

generateDebuggersMethod · 0.70

Calls 2

ReadFileMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…