Shell is the interface that represents the interaction with the host shell.
| 6 | |
| 7 | // Shell is the interface that represents the interaction with the host shell. |
| 8 | type Shell interface { |
| 9 | // Hook is the string that gets evaluated into the host shell config and |
| 10 | // setups direnv as a prompt hook. |
| 11 | Hook() (string, error) |
| 12 | |
| 13 | // Export outputs the ShellExport as an evaluatable string on the host shell |
| 14 | Export(e ShellExport) (string, error) |
| 15 | |
| 16 | // Dump outputs and evaluatable string that sets the env in the host shell |
| 17 | Dump(env Env) (string, error) |
| 18 | } |
| 19 | |
| 20 | // ShellExport represents environment variables to add and remove on the host |
| 21 | // shell. |
no outgoing calls
no test coverage detected