MCPcopy Index your code
hub / github.com/1Password/for-open-source / getEnv

Function getEnv

script/main.go:16–24  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

14}
15
16func getEnv(key string) (string, error) {
17 value := os.Getenv(key)
18
19 if value == "" {
20 return "", fmt.Errorf("missing variable %s", key)
21 }
22
23 return value, nil
24}
25
26func main() {
27 if len(os.Args) < 2 {

Callers 4

InitMethod · 0.85
InitIssueMethod · 0.85
SetApproverMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected