MCPcopy
hub / github.com/usefathom/fathom / before

Function before

pkg/cli/cli.go:62–68  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

60}
61
62func before(c *cli.Context) error {
63 configFile := c.String("config")
64 config.LoadEnv(configFile)
65 app.config = config.Parse()
66 app.database = datastore.New(app.config.Database)
67 return nil
68}
69
70func after(c *cli.Context) error {
71 err := app.database.Close()

Callers

nothing calls this directly

Calls 3

LoadEnvFunction · 0.92
ParseFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected