Skip to content

Conversation

@RushabhRatnaparkhi
Copy link

Summary
Implements bash completion for installed tool versions in tenv. Users can now press TAB after tenv use to see locally installed versions and common strategies like "latest".

Changes Made
Added ValidArgsFunction to use, install, and uninstall commands in cmd/tenv/subcmd.go
Completion shows installed versions (from LocalSet()) plus predefined strategies
Fast completion without file parsing overhead
Dependencies
No new dependencies required. Uses existing:

Cobra CLI framework (already in project)
tenv's version management system
Testing
Verified with both programmatic (tenv __complete) and real bash completion testing.

Signed-off-by: RushabhRatnaparkhi <[email protected]>
Signed-off-by: RushabhRatnaparkhi <[email protected]>
@kvendingoldo
Copy link
Collaborator

Looks file, thank you for PR!
@dvaumoron can you double-check it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants