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

Added features, bugs fixes #206

Merged
merged 25 commits into from
Nov 29, 2021
Merged

Added features, bugs fixes #206

merged 25 commits into from
Nov 29, 2021

Conversation

warrensbox
Copy link
Owner

Bug fixes

  • No matter what users pass to --bin or -b, the local binary is called terraform. User can resume old behavior where -b is custom

Added

  • -c, --chdir=value : Switch to a different working directory before executing the given command. Ex: tfswitch --chdir terraform_project will run tfswitch in the terraform_project directory
  • -P, --show-latest-pre=value : Show latest pre-release implicit version. Ex: tfswitch --show-latest-pre 0.13 prints 0.13.0-rc1 (latest)
  • -S, --show-latest-stable=value : Show latest implicit version. Ex: tfswitch --show-latest-stable 0.13 prints 0.13.7 (latest)
  • -U, --show-latest : Show latest stable version

Removed

  • snapcraft installation option

warrensbox and others added 25 commits July 13, 2021 15:53
switch or install.

  These options can be useful for automations that just need to check
  what the latest version is before proceeding.

  Also added to the README and cleaned up some typos and whitespace there a bit.
…or greater than 1.0.2 and you run MacOS on M1 CPU
Add "show" options to just show the latest versions rather than actually switch or install.
…raform-switcher into datadrivers-feature/chdir-flag
Co-authored-by: Vianney Foucault <vianney.foucault@gmail.com>
Co-authored-by: Vianney Foucault <vianney.foucault@gmail.com>
Install darwin arm64 terraform version when desired version is equal …
add linux/arm64 support in install.sh
Refactor code - if version exist, simply change symlink
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

Successfully merging this pull request may close these issues.

6 participants