Skip to content

Commit

Permalink
Child command context is not updated when global context changed spf1…
Browse files Browse the repository at this point in the history
  • Loading branch information
libozh committed Nov 23, 2023
1 parent 283e32d commit b516e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Expand Up @@ -1108,7 +1108,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {

// We have to pass global context to children command
// if context is present on the parent command.
if cmd.ctx == nil {
if c.ctx != nil {
cmd.ctx = c.ctx
}

Expand Down

0 comments on commit b516e74

Please sign in to comment.