MCPcopy Index your code
hub / github.com/foxcpp/maddy / VerifyConfig

Function VerifyConfig

maddy.go:232–245  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

230}
231
232func 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
247func initDebug(c *cli.Context) {
248 if !enableDebugFlags {

Callers

nothing calls this directly

Calls 2

moduleConfigureFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected