diff --git a/versionmanager/manager.go b/versionmanager/manager.go index 4f972742..901ac094 100644 --- a/versionmanager/manager.go +++ b/versionmanager/manager.go @@ -25,6 +25,7 @@ import ( "os" "path/filepath" "slices" + "strings" "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-version" @@ -119,11 +120,12 @@ func (m VersionManager) Evaluate(requestedVersion string, proxyCall bool) (strin version, err := m.searchInstallRemote(predicateInfo, m.conf.NoInstall, proxyCall) if err != nil { - //m.conf.Displayer.Display("Found compatible version installed locally : " + version) return "", errNoCompatibleLocally } - m.conf.Displayer.Display("Auto-install is disabled. To install " + version + " version you can set environment variable TENV_AUTO_INSTALL=true, or install it via any of the following command: 'tenv tf install', 'tenv tf install " + version + "'") + cmdName := strings.ToLower(m.FolderName) + + m.conf.Displayer.Display("Auto-install is disabled. To install " + version + " version you can set environment variable TENV_AUTO_INSTALL=true, or install it via any of the following command: 'tenv " + cmdName + " install', 'tenv " + cmdName + " install " + version + "'") return "", errNoCompatibleLocally }