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

Commit cdcf401

Browse files
authored
Merge pull request #449 from tullo/root-flags
Add missing 'TraverseChildren: true' in the cobra.Command
2 parents 7ba453c + a205ea2 commit cdcf401

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

cmd/docker-app/root.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ func newRootCmd(dockerCli *command.DockerCli) *cobra.Command {
2020
var flags *pflag.FlagSet
2121

2222
cmd := &cobra.Command{
23-
Use: "docker-app",
24-
Short: "Docker Application Packages",
25-
Long: `Build and deploy Docker Application Packages.`,
26-
SilenceUsage: true,
23+
Use: "docker-app",
24+
Short: "Docker Application Packages",
25+
Long: `Build and deploy Docker Application Packages.`,
26+
SilenceUsage: true,
27+
TraverseChildren: true,
2728
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
2829
opts.Common.SetDefaultOptions(flags)
2930
dockerPreRun(opts)

0 commit comments

Comments
 (0)