MCPcopy Create free account
hub / github.com/InferCore/InferCore / envOr

Function envOr

cmd/infercore/main.go:56–61  ·  view source on GitHub ↗
(key, def string)

Source from the content-addressed store, hash-verified

54}
55
56func envOr(key, def string) string {
57 if v := strings.TrimSpace(os.Getenv(key)); v != "" {
58 return v
59 }
60 return def
61}
62
63func serveCmd(cfgPath *string) *cobra.Command {
64 return &cobra.Command{

Callers 1

rootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected