(c *cli.Context)
| 230 | } |
| 231 | |
| 232 | func VerifyConfig(c *cli.Context) error { |
| 233 | err := os.Setenv("PATH", config.LibexecDirectory+string(filepath.ListSeparator)+os.Getenv("PATH")) |
| 234 | if err != nil { |
| 235 | return cli.Exit(err.Error(), 1) |
| 236 | } |
| 237 | |
| 238 | if _, err := moduleConfigure(c.Path("config")); err != nil { |
| 239 | return cli.Exit(err.Error(), 2) |
| 240 | } |
| 241 | |
| 242 | _, _ = fmt.Fprintln(os.Stderr, "No errors detected") |
| 243 | |
| 244 | return nil |
| 245 | } |
| 246 | |
| 247 | func initDebug(c *cli.Context) { |
| 248 | if !enableDebugFlags { |
nothing calls this directly
no test coverage detected