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

Add ability to show version (and not download) when parsing version from version.tf file #296

Closed
ocofaigh opened this issue Mar 24, 2023 · 1 comment · Fixed by #416
Closed
Assignees
Labels
enhancement Refactor existing code for better performance and quality

Comments

@ocofaigh
Copy link

ocofaigh commented Mar 24, 2023

Is your feature request related to a problem? Please describe.
tfswitch --show-latest will always display the latest version. However it seems there is no way to display the version that would be installed when reading from a version.tf file without actually installing it:

% tfswitch              
Reading required version from terraform file
Reading required version from constraint: >= 1.3, < 1.4
Matched version: 1.3.9

Describe the solution you'd like
Looking for a flag to be able to output 1.3.9 from above example without actually downloading it

@ocofaigh ocofaigh added the enhancement Refactor existing code for better performance and quality label Mar 24, 2023
@MatrixCrawler
Copy link
Collaborator

Solved with #416
Use --dry-run flag to determine the version

@yermulnik yermulnik linked a pull request Jun 5, 2024 that will close this issue
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 a pull request may close this issue.

3 participants