MCPcopy
hub / github.com/sourcegraph/checkup / loadCheckup

Function loadCheckup

cmd/root.go:74–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func loadCheckup() checkup.Checkup {
75 configBytes, err := ioutil.ReadFile(configFile)
76 if err != nil {
77 log.Fatal(err)
78 }
79
80 var c checkup.Checkup
81 err = json.Unmarshal(configBytes, &c)
82 if err != nil {
83 log.Fatal(err)
84 }
85
86 return c
87}
88
89// Execute adds all child commands to the root command sets flags appropriately.
90// This is called by main.main(). It only needs to happen once to the rootCmd.

Callers 4

message.goFile · 0.85
every.goFile · 0.85
root.goFile · 0.85
provisionerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected