MCPcopy Create free account
hub / github.com/catppuccin/cli / GetEnv

Function GetEnv

internal/utils/utils.go:26–31  ·  view source on GitHub ↗

GetEnv gets an environment variable. If not defined, it gets the fallback.

(lookup string, fallback string)

Source from the content-addressed store, hash-verified

24// GetEnv gets an environment variable.
25// If not defined, it gets the fallback.
26func GetEnv(lookup string, fallback string) string {
27 if res, ok := os.LookupEnv(lookup); ok {
28 return res
29 }
30 return fallback
31}
32
33// IsWindows checks if OS is Windows
34func IsWindows() bool {

Callers 6

installerFunction · 0.92
CloneRepoFunction · 0.92
HandleDirFunction · 0.85
ShareDirFunction · 0.85
CloneRepoFunction · 0.85
UpdateJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected