Skip to content

Commit 543bf17

Browse files
committed
Fix service endpoint URL defaults
1 parent 73afd2e commit 543bf17

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/changefromtfplan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ func allDone(ctx context.Context, activeQueries map[uuid.UUID]bool, lf log.Field
449449
func init() {
450450
rootCmd.AddCommand(changeFromTfplanCmd)
451451

452-
changeFromTfplanCmd.PersistentFlags().String("changes-url", "https://api.prod.overmind.tech", "The changes service API endpoint")
452+
changeFromTfplanCmd.PersistentFlags().String("changes-url", "", "The changes service API endpoint (defaults to --url)")
453453
changeFromTfplanCmd.PersistentFlags().String("frontend", "https://app.overmind.tech", "The frontend base URL")
454454

455455
changeFromTfplanCmd.PersistentFlags().String("tfplan-json", "./tfplan.json", "Parse changing items from this terraform plan JSON file. Generate this using 'terraform show -json PLAN_FILE'")

cmd/getaffectedbookmarks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func GetAffectedBookmarks(signals chan os.Signal, ready chan bool) int {
107107
func init() {
108108
rootCmd.AddCommand(getAffectedBookmarksCmd)
109109

110-
getAffectedBookmarksCmd.PersistentFlags().String("bookmark-url", "https://api.prod.overmind.tech/", "The bookmark service API endpoint")
110+
getAffectedBookmarksCmd.PersistentFlags().String("bookmark-url", "", "The bookmark service API endpoint (defaults to --url)")
111111
getAffectedBookmarksCmd.PersistentFlags().String("frontend", "https://app.overmind.tech/", "The frontend base URL")
112112

113113
getAffectedBookmarksCmd.PersistentFlags().String("snapshot-uuid", "", "The UUID of the snapshot that should be checked.")

cmd/getbookmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func GetBookmark(signals chan os.Signal, ready chan bool) int {
105105
func init() {
106106
rootCmd.AddCommand(getBookmarkCmd)
107107

108-
getBookmarkCmd.PersistentFlags().String("bookmark-url", "https://api.prod.overmind.tech/", "The bookmark service API endpoint")
108+
getBookmarkCmd.PersistentFlags().String("bookmark-url", "", "The bookmark service API endpoint (defaults to --url)")
109109
getBookmarkCmd.PersistentFlags().String("frontend", "https://app.overmind.tech/", "The frontend base URL")
110110

111111
getBookmarkCmd.PersistentFlags().String("uuid", "", "The UUID of the bookmark that should be displayed.")

cmd/getsnapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func GetSnapshot(signals chan os.Signal, ready chan bool) int {
110110
func init() {
111111
rootCmd.AddCommand(getSnapshotCmd)
112112

113-
getSnapshotCmd.PersistentFlags().String("snapshot-url", "https://api.prod.overmind.tech/", "The snapshot service API endpoint")
113+
getSnapshotCmd.PersistentFlags().String("snapshot-url", "", "The snapshot service API endpoint (defaults to --url)")
114114
getSnapshotCmd.PersistentFlags().String("frontend", "https://app.overmind.tech/", "The frontend base URL")
115115

116116
getSnapshotCmd.PersistentFlags().String("uuid", "", "The UUID of the snapshot that should be displayed.")

0 commit comments

Comments
 (0)