Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
func
envOr(key, def string) string {
57
if
v := strings.TrimSpace(os.Getenv(key)); v !=
""
{
58
return
v
59
}
60
return
def
61
}
62
63
func
serveCmd(cfgPath *string) *cobra.Command {
64
return
&cobra.Command{
Callers
1
rootCmd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected