Giter VIP home page Giter VIP logo

simple-tfswitch's People

Contributors

ajjl avatar bobdoah avatar chrispruitt avatar dependabot[bot] avatar erikdw avatar gmcoringa avatar grimm26 avatar jb-abbadie avatar kinowarrior avatar kpucynski avatar kunzese avatar marcusnoble avatar moutons avatar oraab avatar pertsevroman avatar rblumen-desk avatar shuliyey avatar timkrueger avatar vince-chenal avatar warrensbox avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

simple-tfswitch's Issues

Hello from a friend

Salut JB,

C'est Jimmy, j'ai vu ce repo pop dans mes notifs, et je ne sais pas si tu connaissais, mais j'utilise asdf perso, qui semble faire la meme chose que ce que tu tentes de faire, mais pour un peu tout :)

L'outil en question:
https://asdf-vm.com/

Et pour terraform (en fait tous les produits hashicorp typiquement):
https://github.com/asdf-community/asdf-hashicorp

J'espere que tu va bien dans tous les cas ;)

simplitfy installTFProvidedModule

I would prefer it written this way to remove indentation levels

for _, element := range versions {
	if !constrains.Check(element) { // Validate a version against a constraint
		continue
	}

	tfversion := element.String()
	if !lib.ValidVersionFormat(tfversion) { // check if version format is correct
		printInvalidTFVersion()
		os.Exit(1)
	}
	
	out, err := lib.Install(tfversion, mirrorURL)
	if err != nil {
		log.Printf("Error during install %v", err)
		os.Exit(1)
	}
	return out
}

Originally posted by @Vince-Chenal in #4 (comment)

Should support `-chdir` flag

At this time, this friendly tool appears to expect to find the terraform module in the current working directory in order to select a terraform version. In some cases (esp. w.r.t. scripting), it can be beneficial to indicate a directory a given process is expected to changes it working directory to ; in the case of terraform, that would be via the -chdir flag.

It would be awesome if this tool supported that flag by using it as the directory to search its required version at (when provided of course, falling back to its current behaviour) ๐Ÿ™

If no one is against it I'll attempt a tentative implementation in the near future. ๐Ÿ™‚

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.