MCPcopy Create free account
hub / github.com/belak/gitdir / main

Function main

cmd/gitdir/main.go:10–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func main() {
11 _ = godotenv.Load()
12
13 c, err := NewEnvConfig()
14 if err != nil {
15 log.Fatal().Err(err).Msg("failed to load base config")
16 }
17
18 if len(os.Args) > 1 {
19 switch os.Args[1] {
20 case "hook":
21 cmdHook(c)
22 default:
23 log.Fatal().Msg("sub-command not found")
24 }
25
26 return
27 }
28
29 log.Info().Msg("starting go-gitdir")
30
31 cmdServe(c)
32}

Callers

nothing calls this directly

Calls 4

NewEnvConfigFunction · 0.85
cmdHookFunction · 0.85
cmdServeFunction · 0.85
LoadMethod · 0.80

Tested by

no test coverage detected