Skip to content

Commit 163f5b2

Browse files
authored
CLOUDP-185418: Enable watcher flags for atlas clusters delete (#2017)
1 parent 4064255 commit 163f5b2

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

docs/atlascli/command/atlas-clusters-delete.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Options
6969
- string
7070
- false
7171
- Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
72+
* - -w, --watch
73+
-
74+
- false
75+
- Watch the command until it completes its execution or the watch times out. To set the time that the watch times out, use the --watchTimeout option.
76+
* - --watchTimeout
77+
- uint
78+
- false
79+
- Time in seconds until a watch times out. After a watch times out, the CLI no longer watches the command.
7280

7381
Inherited Options
7482
-----------------

docs/mongocli/command/mongocli-atlas-clusters-delete.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Options
6969
- string
7070
- false
7171
- Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
72+
* - -w, --watch
73+
-
74+
- false
75+
- Watch the command until it completes its execution or the watch times out. To set the time that the watch times out, use the --watchTimeout option.
76+
* - --watchTimeout
77+
- uint
78+
- false
79+
- Time in seconds until a watch times out. After a watch times out, the CLI no longer watches the command.
7280

7381
Inherited Options
7482
-----------------

internal/cli/atlas/clusters/delete.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ Deleting a cluster also deletes any backup snapshots for that cluster.
118118

119119
cmd.Flags().BoolVarP(&opts.EnableWatch, flag.EnableWatch, flag.EnableWatchShort, false, usage.EnableWatch)
120120
cmd.Flags().UintVar(&opts.Timeout, flag.WatchTimeout, 0, usage.WatchTimeout)
121-
_ = cmd.Flags().MarkHidden(flag.EnableWatch)
122-
_ = cmd.Flags().MarkHidden(flag.WatchTimeout)
123121

124122
cmd.Flags().StringVar(&opts.ProjectID, flag.ProjectID, "", usage.ProjectID)
125123

0 commit comments

Comments
 (0)