Skip to content

Commit

Permalink
cmd/atlas/internal/cmdapi: warn once
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam committed Aug 6, 2024
1 parent f04ca30 commit aa46f08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/atlas/internal/cmdapi/cmdapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var (

// version holds Atlas version. When built with cloud packages should be set by build flag, e.g.
// "-X 'ariga.io/atlas/cmd/atlas/internal/cmdapi.version=v0.1.2'"
version string
version = "v0.19.0"

// versionCmd represents the subcommand 'atlas version'.
versionCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/atlas/internal/cmdapi/cmdapi_oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Or, visit the website to see all installation options:
https://atlasgo.io/docs#installation
`
fmt.Fprintf(cmd.ErrOrStderr(), cmdlog.ColorCyan(s))
_ = cmdlog.WarnOnce(cmd.ErrOrStderr(), cmdlog.ColorCyan(s))
prev.UpgradeSuggested = time.Now()
_ = state.Write(prev)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/atlas/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func main() {
update := checkForUpdate(ctx)
err = cmdapi.Root.ExecuteContext(ctx)
if u := update(); u != "" {
_ = cmdlog.WarnOnce(os.Stderr, u)
_ = cmdlog.WarnOnce(os.Stderr, cmdlog.ColorCyan(u))
}
done(err)
if err != nil {
Expand Down

0 comments on commit aa46f08

Please sign in to comment.