flox / flox

Developer environments you can take with you
https://flox.dev
GNU General Public License v2.0
2.16k stars 51 forks source link

fix: don't print success before error #1439

Closed mkenigs closed 1 month ago

mkenigs commented 1 month ago

Running flox activate twice was printing:

✅ You are now using the environment 'name'.
To stop using this environment, type 'exit'

ERROR: Environment 'name' is already active.

Remove the success message from Rust, and only print it in Bash codepaths when the environment is not already active (and an interactive activation is being run).

Also add a ❌ to the error message.