From 964844835cab294f45d78d806b606acaf96970a1 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 21 Feb 2021 06:12:19 +1100 Subject: [PATCH] Better Wails update messaging --- v2/cmd/wails/internal/commands/update/update.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/v2/cmd/wails/internal/commands/update/update.go b/v2/cmd/wails/internal/commands/update/update.go index 16378447..f0bb5d14 100644 --- a/v2/cmd/wails/internal/commands/update/update.go +++ b/v2/cmd/wails/internal/commands/update/update.go @@ -18,14 +18,14 @@ import ( func AddSubcommand(app *clir.Cli, w io.Writer, currentVersion string) error { command := app.NewSubCommand("update", "Update the Wails CLI") - command.LongDescription(`This command allows you to update your version of Wails.`) + command.LongDescription(`This command allows you to update your version of the Wails CLI.`) // Setup flags var prereleaseRequired bool - command.BoolFlag("pre", "Update to latest Prerelease", &prereleaseRequired) + command.BoolFlag("pre", "Update CLI to latest Prerelease", &prereleaseRequired) var specificVersion string - command.StringFlag("version", "Install a specific version (Overrides other flags)", &specificVersion) + command.StringFlag("version", "Install a specific version (Overrides other flags) of the CLI", &specificVersion) command.Action(func() error { @@ -143,7 +143,7 @@ func updateToVersion(logger *clilogger.CLILogger, targetVersion *github.Semantic } fmt.Println() - logger.Print("Installing Wails " + desiredVersion + "...") + logger.Print("Installing Wails CLI " + desiredVersion + "...") // Run command in non module directory homeDir, err := os.UserHomeDir() @@ -158,7 +158,7 @@ func updateToVersion(logger *clilogger.CLILogger, targetVersion *github.Semantic return err } fmt.Println() - logger.Println("Wails updated to " + desiredVersion) + logger.Println("Wails CLI updated to " + desiredVersion) return nil }