Closed reneleonhardt closed 3 months ago
@reneleonhardt I like the idea; please add test cases for the expected behaviors for this module. New features should have complimentary tests to validate expected functionality.
If you have time, try all new shiny features / version references to see if there are still problems.
Maybe some commands shouldn't complete/allow version arguments?
If found and disabled them only for goenv init --sh
for now.
Features
goenv local system
-> if system is installed, removes existing .go-env.version if it exists printing the previous versiongoenv local latest
-> 1.22.3 (latest installed version)goenv local 1
-> 1.22.3 (latest installed major version)goenv local 22
-> 1.22.3 (latest installed minor version when combined with a major version)goenv local 1.22
-> 1.22.3 (latest installed minor version)goenv 1
assumesgoenv local 1
if any of those single version identifiers are givenThat means new "virtual" commands
goenv latest
andgoenv system
goenv global
supports the same version identifiers likelocal
(both use goenv-version-file-write)Extracted new
goenv installed
command (leavingprefix
unchanged for now)Offer all installed versions plus
latest
andsystem
as completionsBoost grep performance
Allow Dependabot to update GitHub actions
Fixes
prefix
andlocal
for now (not insideversions
yet)commands
(and thereforecompletions
) include pluginsun-/install
now (and all installed versions pluslatest
andsystem
)TODO
prefix
to useinstalled
(logic needs to be changed)