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

Feature: alias command #10

Merged
merged 12 commits into from Mar 5, 2024
Merged

Feature: alias command #10

merged 12 commits into from Mar 5, 2024

Conversation

ChrisTerBeke
Copy link
Collaborator

@ChrisTerBeke ChrisTerBeke commented Mar 4, 2024

What

Implements alias feature.

tfversion alias default 1.7.4
tfversion use default

Why

Handy to pin certain versions in your context, for example a client name that is using a specific (legacy) version.

Important

The directory where versions are installed has changed from ~/.tfversion to ~/.tfversion/versions. This is a breaking change and will require either code changes to perform a migration or we need to release this as a breaking change.

@ChrisTerBeke
Copy link
Collaborator Author

We need to modify the list command. It now lists all aliases as well.

Copy link
Member

@bschaatsbergen bschaatsbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome initiative, shared a few comments - what's your take on this?

cmd/alias.go Outdated Show resolved Hide resolved
cmd/alias.go Show resolved Hide resolved
cmd/alias.go Show resolved Hide resolved
@ChrisTerBeke ChrisTerBeke changed the title Feature: alias Feature: alias command Mar 5, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 5, 2024
@ChrisTerBeke ChrisTerBeke added the enhancement New feature or request label Mar 5, 2024
Copy link
Member

@bschaatsbergen bschaatsbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@ChrisTerBeke ChrisTerBeke merged commit 10694ea into main Mar 5, 2024
5 checks passed
@ChrisTerBeke ChrisTerBeke deleted the feature/alias branch March 5, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants