Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mint which usage #266

Open
brzzdev opened this issue Jun 17, 2023 · 1 comment
Open

mint which usage #266

brzzdev opened this issue Jun 17, 2023 · 1 comment

Comments

@brzzdev
Copy link

brzzdev commented Jun 17, 2023

Hi,

I'm trying to use mint which in a script to get the executable path. It seems like I can either get the output including the loading string

mint which example
🌱 Finding latest version of example
/path/example

which isn't useful in this instance

or I use -s which I would expect to just strip the loading string, but instead I get an empty string

mint which example -s

Am I missing something?

@yonaskolb
Copy link
Owner

yonaskolb commented Jun 19, 2023

Hmm, silent does stop all standard out, and there's currently no way to prevent the loading message, other than if you locked down the version of example (either by a Mintfile or by providing the version with mint which [email protected]). This will also make the command faster, as it doesn't have to hit the network.

Alternatively you can run some other command after to just get the last line like mint which example | tail -n 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants