package main import ( "os" common "source.heropunch.io/tomo/go-coreutils" ) func main() { if len(os.Args) == 1 { common.PrintEnv() os.Exit(0) } exitCode := 0 envVars := []string{} for _, key := range os.Args[1:] { val, present := os.LookupEnv(key) if present { envVars = append(envVars, val) } else { exitCode = 1 } } common.PrintStrings(envVars) os.Exit(exitCode) }