1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-01 20:39:12 +00:00
This commit is contained in:
varconstant 2025-03-21 21:51:22 -04:00 committed by GitHub
commit 6aeb6b6ef4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1141,7 +1141,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
}