Skip to content

Commit 2298179

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 <github@gone.nl>
1 parent 08dd378 commit 2298179

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

commands/root.go

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

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

0 commit comments

Comments
 (0)