Skip to content

Using tenv as a Go module? #233

Answered by dvaumoron
corrieriluca asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @corrieriluca,

The Go API did not change often (although sometimes new feature or fix need it), however we haven't set compatibility goal on it.

Usage could look like :

conf, err := config.InitConfigFromEnv()
conf.InitDisplayer(false)
hclParser := hclparse.NewParser()
versionManager := builder.Builders[toolName](conf, hclParser)

err = versionManager.Install("latest") // can use semantic.LatestKey constant, other supported value : version, version contraints, known behavior

for more on VersionManager available method (see go doc).

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@corrieriluca
Comment options

Answer selected by corrieriluca
Comment options

You must be logged in to vote
10 replies
@dvaumoron
Comment options

@kvendingoldo
Comment options

@corrieriluca
Comment options

@dvaumoron
Comment options

@dvaumoron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants