Skip to content

Commit

Permalink
cmd/atlas/internal/cmdapi: mv local state to cmdapi file (#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam committed Jul 18, 2024
1 parent c7ca3cb commit b9dca4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions cmd/atlas/internal/cmdapi/cmdapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,10 @@ func stateReader(ctx context.Context, env *Env, config *stateReaderConfig) (*cmd
}, nil
}
}

const localStateFile = "local-community.json"

// LocalState keeps track of local state to enhance developer experience.
type LocalState struct {
UpgradeSuggested time.Time `json:"v1.us"`
}
5 changes: 0 additions & 5 deletions cmd/atlas/internal/cmdapi/cmdapi_oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,9 @@ type (
Test *Test `spec:"test"` // Optional test configuration
cloud *cmdext.AtlasConfig
}
// LocalState keeps track of local state to enhance developer experience.
LocalState struct {
UpgradeSuggested time.Time `json:"v1.us"`
}
)

const (
localStateFile = "local-community.json"
envSkipUpgradeSuggestions = "ATLAS_NO_UPGRADE_SUGGESTIONS"
oneWeek = 7 * 24 * time.Hour
)
Expand Down

0 comments on commit b9dca4a

Please sign in to comment.