zekroTJA / goup

🚀 Like rustup or nvm/fnm but for Go: A simple version manager for Go written in Rust!
MIT License
7 stars 1 forks source link

Nushell Support #9

Closed cptpiepmatz closed 3 months ago

cptpiepmatz commented 4 months ago

This PR adds support for Nushell.

whattheshell::Shell already supports Nushell, therefore this PR only needs to modify shell/mod.rs.

Since Nushell works great on Windows and Linux, some conditional compilation was necessary. Also Nushell doesn't support eval, therefore goup env will simply return valid Toml and the script for goup env -p will parse that output and load the env vars accordingly.

zekroTJA commented 3 months ago

Awesome, thank you very much for the contribution! <3