1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 06:13:53 -05:00

Add --bare option to pyenv version (#2783)

This commit is contained in:
Jesse Wattenbarger
2025-05-17 11:23:25 -04:00
committed by GitHub
parent 90fa430eca
commit 018ca73444
3 changed files with 36 additions and 4 deletions

View File

@@ -70,3 +70,12 @@ pyenv-version-without-stderr() {
3.3.3 (set by PYENV_VERSION environment variable)
OUT
}
@test "--bare prints just the name" {
create_version "3.3.3"
PYENV_VERSION=3.3.3 run pyenv-version --bare
assert_success
assert_output <<OUT
3.3.3
OUT
}