Skip to content

Commit 7d2a56d

Browse files
committed
remove "experimental" hint from help / usage output
This was added in 02c2073, which changed the buildx CLI to match the behavior of the docker CLI, which conditionally hid some options that were marked experimental. The CLI now shows has client-side experimental options enabled by default (but labeled as experimental where suitable). Before this patch, every command would print this message unless experimental was enabled; docker buildx --help ... Run 'docker buildx COMMAND --help' for more information on a command. Experimental commands and flags are hidden. Set BUILDX_EXPERIMENTAL=1 to show them. With this patch applied, that message is no longer shown. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 32e9bfc commit 7d2a56d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

commands/root.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ func NewRootCmd(name string, isPlugin bool, dockerCli *command.DockerCli) *cobra
8585
"using default config store",
8686
))
8787

88-
if !confutil.IsExperimental() {
89-
cmd.SetHelpTemplate(cmd.HelpTemplate() + "\nExperimental commands and flags are hidden. Set BUILDX_EXPERIMENTAL=1 to show them.\n")
90-
}
91-
9288
addCommands(cmd, &opt, dockerCli)
9389
return cmd
9490
}

0 commit comments

Comments
 (0)