Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Hide the cnab-bundle-json flag behind experimental
Browse files Browse the repository at this point in the history
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
  • Loading branch information
rumpl committed Nov 12, 2019
1 parent 5c11551 commit 1524e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func runCmd(dockerCli command.Cli) *cobra.Command {
cmd.Flags().StringVar(&opts.orchestrator, "orchestrator", "", "Orchestrator to install on (swarm, kubernetes)")
cmd.Flags().StringVar(&opts.kubeNamespace, "namespace", "default", "Kubernetes namespace to install into")
cmd.Flags().StringVar(&opts.stackName, "name", "", "Assign a name to the installation")
cmd.Flags().StringVar(&opts.cnabBundle, "cnab-bundle-json", "", "Run a CNAB bundle instead of a Docker App")
if dockerCli.ClientInfo().HasExperimental {
cmd.Flags().StringVar(&opts.cnabBundle, "cnab-bundle-json", "", "Run a CNAB bundle instead of a Docker App")
}
cmd.Flags().StringArrayVar(&opts.labels, "label", nil, "Label to add to services")

return cmd
Expand Down

0 comments on commit 1524e17

Please sign in to comment.