(role string)
| 513 | func GetEnvInfo() map[string]string { |
| 514 | if hook := currentPromptHooks().EnvInfo; hook != nil { |
| 515 | return hook() |
| 516 | } |
| 517 | cwd, err := os.Getwd() |
| 518 | if err != nil { |
| 519 | cwd = "" |
| 520 | } |
| 521 | shell := os.Getenv("SHELL") |
| 522 | if shell == "" { |
| 523 | shell = os.Getenv("COMSPEC") |
| 524 | } |
| 525 | if shell == "" { |
| 526 | shell = "unknown" |
| 527 | } |
| 528 | return map[string]string{ |
| 529 | "cwd": cwd, |
no outgoing calls
no test coverage detected