Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit dbd15f8

Browse files
committed
feat(command): remove experimental CLI annotation
Signed-off-by: Dorin Geman <[email protected]>
1 parent 445e0fa commit dbd15f8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

commands/root.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ func NewRootCmd(cli *command.DockerCli) *cobra.Command {
8383
TraverseChildren: plugin.RunningStandalone(),
8484
}
8585

86-
markCommandExperimental(rootCmd)
87-
8886
// Initialize client options and register their flags if running in
8987
// standalone mode.
9088
if plugin.RunningStandalone() {
@@ -115,16 +113,3 @@ func NewRootCmd(cli *command.DockerCli) *cobra.Command {
115113
)
116114
return rootCmd
117115
}
118-
119-
const annotationExperimentalCLI = "experimentalCLI"
120-
121-
func markCommandExperimental(c *cobra.Command) {
122-
if _, ok := c.Annotations[annotationExperimentalCLI]; ok {
123-
return
124-
}
125-
if c.Annotations == nil {
126-
c.Annotations = make(map[string]string)
127-
}
128-
c.Annotations[annotationExperimentalCLI] = ""
129-
c.Short += " (EXPERIMENTAL)"
130-
}

0 commit comments

Comments
 (0)