Skip to content

Commit 468a07b

Browse files
author
Gustavo Bazan
authored
task: delete atlas validations (#2762)
1 parent 603b467 commit 468a07b

File tree

5 files changed

+0
-720
lines changed

5 files changed

+0
-720
lines changed

internal/cli/errors.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package cli
1616

1717
import (
18-
"errors"
1918
"fmt"
2019

2120
"github.com/mongodb/mongodb-atlas-cli/mongocli/v2/internal/flag"
@@ -25,6 +24,3 @@ const requiredF = `required flag(s) "%s" not set`
2524

2625
var errMissingProjectID = fmt.Errorf(requiredF, flag.ProjectID)
2726
var ErrMissingOrgID = fmt.Errorf(requiredF, flag.OrgID)
28-
var ErrFreeClusterAlreadyExists = errors.New("this project already has another free cluster. To learn how to create non-free clusters, run \"atlas cluster create --help\"")
29-
var ErrNoRegionExistsTryCommand = errors.New(`the region does not exist. To find the available regions, run "atlas cluster availableRegions list"`)
30-
var ErrNameExists = errors.New(`the name already exists. Please run "atlas cluster list" to review existing cluster names`)

internal/flag/flags.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ const (
119119
Key = "key" // Key flag
120120
CollectionName = "collectionName" // CollectionName flag
121121
Database = "db" // Database flag
122-
Unique = "unique" // Unique flag
123122
RSName = "rsName" // RSName flag
124123
Sparse = "sparse" // Sparse flag
125124
Locale = "locale" // Locale flag
@@ -171,7 +170,6 @@ const (
171170
MonthlySnapshotRetentionMonths = "monthlySnapshotRetentionMonths" // MonthlySnapshotRetentionMonths flag
172171
Policy = "policy" // Policy flag
173172
SystemID = "systemId" // SystemID flag
174-
Default = "default" // Default flag
175173
Timestamp = "timestamp" // Timestamp flag
176174
OwnerID = "ownerId" // OwnerID flag
177175
LinkToken = "linkToken" // LinkToken flag

0 commit comments

Comments
 (0)