Giter Site home page Giter Site logo

Comments (6)

warrensbox avatar warrensbox commented on June 24, 2024 1

This a useful feature, especially if a user wants to test out a terraform beta release version.
A couple of developers suggested that we pass a parameter to list all the version (including betas). The default, however, will only show the official release.

For example:-
The default tfswitch will display:

  ▸ 0.11.7
    0.9.8
    0.11.13
    0.11.12
↓   0.11.11

The optional arg tfswitch --list-all or tfswitch -l will display all versions including rc and betas:

  ▸  0.12.0-rc1
     0.12.0-beta2
     0.12.0-beta1
     0.12.0
     0.11.13
↓    0.11.11

I will merge your changes to master and incorporate my changes to allow optional parameter --list-all list all tf version.
I will release this new feature on Monday (May 20).

from terraform-switcher.

warrensbox avatar warrensbox commented on June 24, 2024

I will look at the code tonight

from terraform-switcher.

warrensbox avatar warrensbox commented on June 24, 2024

@devorbitus
Would you be able test the changes before I release it?

Steps:

  1. git checkout develop (your changes are merged to develop)
  2. go build -v -o tfswitch
  3. ./tfswitch 0.12.0-rc1 then terraform -v to verify
  4. ./tfswitch -l or ./tfswitch --list-all - verify if it list all the versions

from terraform-switcher.

devorbitus avatar devorbitus commented on June 24, 2024

@warrensbox Tested it as well as looked over the code and it looks good to me.

from terraform-switcher.

devorbitus avatar devorbitus commented on June 24, 2024

You may want to make some reference to the new feature on the documentation page

from terraform-switcher.

warrensbox avatar warrensbox commented on June 24, 2024

I have released this feature with #45

It should install any version except for:

  • 0.12.0-alpha4
  • 0.12.0-alpha3

That's because the file was named incorrectly on the hashicorp release page.

For example, the file for 0.12.0-alpha2 looks like below:
Screen Shot 2019-05-20 at 9 46 34 PM

However the the file for 0.12.0-alpha4 looks like below:
Screen Shot 2019-05-20 at 9 46 18 PM

Notice the difference in how the file is named. I am assuming this might be an error on Hashicorp and I will open an issue with them. So far I have only noticed the discrepancy in these 2 versions - 0.12.0-alpha4 and 0.12.0-alpha3.

from terraform-switcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.