Skip to content

Commit

Permalink
improve auto install help message
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <[email protected]>
  • Loading branch information
dvaumoron committed Jun 26, 2024
1 parent 9970cf9 commit 3cc72f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versionmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (m VersionManager) Use(requestedVersion string, workingDir bool) error {
func (m VersionManager) autoInstallDisabledMsg(version string) error {
cmdName := strings.ToLower(m.FolderName)
m.conf.Displayer.Flush(false) // Always normal display when installation is missing
m.conf.Displayer.Display(loghelper.Concat("Auto-install is disabled. To install ", m.FolderName, " ", 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, "'"))
m.conf.Displayer.Display(loghelper.Concat("Auto-install is disabled. To install ", m.FolderName, " 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
}
Expand Down

0 comments on commit 3cc72f6

Please sign in to comment.