ShellManager is an interface for setting and getting environment variables in shell configuration files.
| 8 | |
| 9 | // ShellManager is an interface for setting and getting environment variables in shell configuration files. |
| 10 | type ShellManager interface { |
| 11 | SetEnv(key, value string) error |
| 12 | GetEnv(key string) (string, error) |
| 13 | } |
| 14 | |
| 15 | // ShellFactory is a function type that returns a new ShellManager. |
| 16 | type ShellFactory func() ShellManager |