Skip to content

Commit

Permalink
Updated wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Listener430 committed Nov 27, 2024
1 parent e01c7f3 commit be49831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/cmd_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ type ValidateConfig struct {

type AtmosValidateOption func(*ValidateConfig)

var originalHelpFunc func(*cobra.Command, []string)

func WithStackValidation(check bool) AtmosValidateOption {
return func(cfg *ValidateConfig) {
cfg.CheckStack = check
Expand Down Expand Up @@ -429,7 +427,7 @@ func printMessageForMissingAtmosConfig(cliConfig schema.CliConfiguration) {
func printMessageToUpgradeToAtmosLatestRelease(latestVersion string) {
c2 := color.New(color.FgGreen)

message := fmt.Sprintf("Atmos update available: %s. Enjoy the latest updates and improvements!", c2.Sprint(latestVersion))
message := fmt.Sprintf("%s %s >> %s", c2.Sprint("Update available!"), version.Version, c2.Sprint(latestVersion))
links := []string{
fmt.Sprintf("%s: https://github.com/cloudposse/atmos/releases", c2.Sprint("Atmos Releases")),
fmt.Sprintf("%s: https://atmos.tools/install", c2.Sprint("Install Atmos")),
Expand Down
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import (
u "github.com/cloudposse/atmos/pkg/utils"
)

// originalHelpFunc holds Cobra's original help function to avoid recursion.
var originalHelpFunc func(*cobra.Command, []string)

// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "atmos",
Expand Down

0 comments on commit be49831

Please sign in to comment.