MCPcopy Create free account
hub / github.com/SamNet-dev/snix / loadConfig

Function loadConfig

cmd/snix/root.go:56–62  ·  view source on GitHub ↗
(g *globalFlags)

Source from the content-addressed store, hash-verified

54}
55
56func loadConfig(g *globalFlags) (*config.Config, error) {
57 c, err := config.Load(g.configPath)
58 if err != nil {
59 return nil, fmt.Errorf("load config: %w", err)
60 }
61 return c, nil
62}

Callers 3

newStartCmdFunction · 0.85
newStatusCmdFunction · 0.85
newProfileCmdFunction · 0.85

Calls 1

LoadFunction · 0.92

Tested by

no test coverage detected