Skip to content

Commit 122620e

Browse files
authored
patch: hide watcher flags for atlas clusters delete (#2001)
1 parent cda6127 commit 122620e

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ 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.
8072

8173
Inherited Options
8274
-----------------

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ 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.
8072

8173
Inherited Options
8274
-----------------

internal/cli/atlas/clusters/delete.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ 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)
121123

122124
cmd.Flags().StringVar(&opts.ProjectID, flag.ProjectID, "", usage.ProjectID)
123125

0 commit comments

Comments
 (0)