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

⚡ improve find terraform bin path #280

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ptavares
Copy link

@ptavares ptavares commented Dec 5, 2022

By default, tfswitch will look for the last terraform binary path present in current PATH. This behaviour is ok but can take so munch time and time consuming when working with many Terraform versions.

If the user specifies the binary path (--bin flag), this path is checked before using default behaviour

Avoid lookup into all Path directories and sub-directories when searching for terraform bin location when specify it on command line
@MatrixCrawler MatrixCrawler self-assigned this Apr 5, 2024
@MatrixCrawler MatrixCrawler added the enhancement Refactor existing code for better performance and quality label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Refactor existing code for better performance and quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants