| 34 | } |
| 35 | |
| 36 | type Shell interface { |
| 37 | // Activate generates a shell script to be placed in the shell's configuration file, which will set up initial |
| 38 | // environment variables and set a hook to update the environment variables when needed. |
| 39 | Activate(config ActivateConfig) (string, error) |
| 40 | |
| 41 | // Export generates a string that can be used by the shell to set or unset the given environment variables. (The |
| 42 | // input specifies environment variables to be unset by giving them a nil value.) |
| 43 | Export(envs env.Vars) string |
| 44 | } |
| 45 | |
| 46 | func NewShell(name string) Shell { |
| 47 | switch strings.ToLower(name) { |
no outgoing calls
no test coverage detected