@@ -26,7 +26,7 @@ import (
26
26
"github.com/arduino/arduino-cli/httpclient"
27
27
"github.com/arduino/arduino-cli/i18n"
28
28
"github.com/arduino/arduino-cli/inventory"
29
- "github.com/mgutz/ansi "
29
+ "github.com/fatih/color "
30
30
semver "go.bug.st/relaxed-semver"
31
31
)
32
32
@@ -71,10 +71,10 @@ func checkForUpdate(currentVersion *semver.Version) *semver.Version {
71
71
// NotifyNewVersionIsAvailable prints information about the new latestVersion
72
72
func NotifyNewVersionIsAvailable (latestVersion string ) {
73
73
feedback .Errorf ("\n \n %s %s → %s\n %s" ,
74
- ansi . Color (tr ("A new release of Arduino CLI is available:" ), "yellow" ),
75
- ansi . Color (globals .VersionInfo .VersionString , "cyan" ),
76
- ansi . Color (latestVersion , "cyan" ),
77
- ansi . Color ("https://arduino.github.io/arduino-cli/latest/installation/#latest-packages" , "yellow " ))
74
+ color . YellowString (tr ("A new release of Arduino CLI is available:" )),
75
+ color . CyanString (globals .VersionInfo .VersionString ),
76
+ color . CyanString (latestVersion ),
77
+ color . YellowString ("https://arduino.github.io/arduino-cli/latest/installation/#latest-packages" ))
78
78
}
79
79
80
80
// shouldCheckForUpdate return true if it actually makes sense to check for new updates,
0 commit comments