Repository: pyenv-win/pyenv-win (language: python)

Issue:
feature: Add 'version-name' back (it was renamed to vname)
**Is your feature request related to a problem? Please describe.**
I have an issue with [starship](https://github.com/starship/starship) prompt app on Windows since it's getting pyenv version information from the `version-name` command that is present in `pyenv`, but missing from `pyenv-win` (it was for some reason removed via renaming in this [commit](https://github.com/pyenv-win/pyenv-win/commit/d13a575a3536dff56b68adf5bf01b3bf85ebe17c)

**Describe the solution you'd like**
Please add the `version-name` command back to make it consistent with the original pyenv (no need to remove `vname`, it can stay as an extra command) and not break other apps that depend on it

**Describe alternatives you've considered**
Adding a custom windows-specific logic to starship and whatever other apps depend on `pyenv-win`, but it's way more complicated than just restoring what you already had



Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index fb11b0d2..7a63156e 100644
--- a/README.md
+++ b/README.md
@@ -85,6 +85,7 @@ This project was forked from [rbenv-win][3] and modified for [pyenv][1]. It is n
    rehash       Rehash pyenv shims (run this after switching Python versions)
    vname        Show the current Python version
    version      Show the current Python version and its origin
+   version-name Show the current Python version
    versions     List all Python versions available to pyenv
    exec         Runs an executable by first preparing PATH so that the selected Python
    which        Display the full path to an executable
diff --git a/pyenv-win/libexec/pyenv-version-name.bat b/pyenv-win/libexec/pyenv-version-name.bat
new file mode 100644
index 00000000..4db1fd5e
--- /dev/null
+++ b/pyenv-win/libexec/pyenv-version-name.bat
@@ -0,0 +1,11 @@
+@echo off
+setlocal
+
+if "%1" == "--help" (
+echo Usage: pyenv version-name
+echo.
+echo Shows the currently selected Python version.
+EXIT /B
+)
+
+:: Implementation of this command is in the pyenv.vbs file
\ No newline at end of file
diff --git a/pyenv-win/libexec/pyenv-version.bat b/pyenv-win/libexec/pyenv-version.bat
index 883a3d5c..f02eac0f 100644
--- a/pyenv-win/libexec/pyenv-version.bat
+++ b/pyenv-win/libexec/pyenv-version.bat
@@ -5,7 +5,7 @@ if "%1" == "--help" (
 echo Usage: pyenv version
 echo.
 echo Shows the currently selected Python version and how it was selected.
-echo To obtain only the version string, use `pyenv vname'.
+echo To obtain only the version string, use `pyenv vname' or `pyenv version-name`.
 EXIT /B
 )
 
diff --git a/pyenv-win/libexec/pyenv.vbs b/pyenv-win/libexec/pyenv.vbs
index bd387edd..d52b4383 100644
--- a/pyenv-win/libexec/pyenv.vbs
+++ b/pyenv-win/libexec/pyenv.vbs
@@ -293,6 +293,7 @@ Sub ShowHelp()
      WScript.echo "   rehash       Rehash pyenv shims (run this after installing executables)"
      WScript.Echo "   vname        Show the current Python version"
      WScript.Echo "   version      Show the current Python version and its origin"
+     WScript.Echo "   version-name Show the current Python version"
      WScript.Echo "   versions     List all Python versions available to pyenv"
      WScript.Echo "   exec         Runs an executable by first preparing PATH so that the selected Python"
      WScript.Echo "   which        Display the full path to an executable"
@@ -462,6 +463,17 @@ End Sub
 
 Sub CommandVersionName(arg)
     ' WScript.echo "kkotari: pyenv.vbs command version-name..!"
+    If arg.Count >= 2 Then
+        If arg(1) = "--help" Then PrintHelp "pyenv-version-name", 0
+    End If
+
+    If Not objfs.FolderExists(strDirVers) Then objfs.CreateFolder(strDirVers)
+
+    WScript.Echo GetCurrentVersion()(0)
+End Sub
+
+Sub CommandVersionNameShort(arg)
+    ' WScript.echo "kkotari: pyenv.vbs command v-name..!"
     If arg.Count >= 2 Then
         If arg(1) = "--help" Then PrintHelp "pyenv-vname", 0
     End If
@@ -560,7 +572,8 @@ Sub main(arg)
            Case "local"        CommandLocal(arg)
            Case "shell"        CommandShell(arg)
            Case "version"      CommandVersion(arg)
-           Case "vname"        CommandVersionName(arg)
+           Case "vname"        CommandVersionNameShort(arg)
+           Case "version-name" CommandVersionName(arg)
            Case "versions"     CommandVersions(arg)
            Case "commands"     CommandCommands(arg)
            Case "shims"        CommandShims(arg)


Test patch:
diff --git a/tests/test_pyenv.py b/tests/test_pyenv.py
index d4f492a5..a90b2c55 100644
--- a/tests/test_pyenv.py
+++ b/tests/test_pyenv.py
@@ -39,6 +39,7 @@ def test_check_pyenv_features_list(self, setup):
         assert 'version' in result
         assert 'vname' in result
         assert 'versions' in result
+        assert 'version-name' in result
         assert 'exec' in result
         assert 'which' in result
         assert 'whence' in result