tenv icon indicating copy to clipboard operation
tenv copied to clipboard

Shell completion to suggest installed version feature added (resolves #420)

Open RushabhRatnaparkhi opened this issue 2 months ago • 1 comments

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.

RushabhRatnaparkhi avatar Oct 22 '25 09:10 RushabhRatnaparkhi

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

kvendingoldo avatar Oct 22 '25 10:10 kvendingoldo

Can you fix the compilation issues ?

dvaumoron avatar Dec 08 '25 23:12 dvaumoron