Skip to content

Commit

Permalink
chore: add windows update message
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Jan 24, 2025
1 parent c0e01cd commit 884751b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion messages/root/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
TokenUsedIn = "This token will be used by default with all commands"

// update messages
NotSupported = "OS currently not supported"
// NotSupported = "OS currently not supported"
NewVersion = "There is a new version of Azion CLI available\n"
BrewUpdate = "Please run: 'brew upgrade azion' to update it to v%s\n"
ReleasePage = "Please visit our Releases page and download the appropriate file\n"
Expand All @@ -36,6 +36,7 @@ var (
DpkgUpdate = "Please run: 'sudo dpkg -i <downloaded_file>' to update it to v%s\n"
PkgUpdate = "Please run: 'sudo pkg install <downloaded_file>' to update it to v%s\n"
ApkUpdate = "Please run: 'sudo apk add <downloaded_file>' to update it to v%s\n"
WindowsUpdate = "Please use Winget or Chocolatey to update it to v%s\n"
AskCollectMetrics = "To better understand user needs and enhance our application, we gather anonymous data. Do you agree to participate? (Y/n)"
UnsupportedOS = "Unsupported Operating System\n"
)
2 changes: 1 addition & 1 deletion pkg/cmd/root/sysinfo_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import (
)

func showUpdadeMessageSystem(f *cmdutil.Factory, vNumber string) error {
logger.FInfo(f.IOStreams.Out, fmt.Sprintf(msg.NotSupported))
logger.FInfo(f.IOStreams.Out, fmt.Sprintf(msg.WindowsUpdate, vNumber))
return nil
}

0 comments on commit 884751b

Please sign in to comment.