()
| 72 | } |
| 73 | |
| 74 | func 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. |
no outgoing calls
no test coverage detected