mirror of
https://github.com/spf13/cobra
synced 2024-09-20 15:06:26 +00:00
Compare commits
2 commits
4b9ebfffa0
...
78f65f8411
Author | SHA1 | Date | |
---|---|---|---|
78f65f8411 | |||
b516e74458 |
|
@ -1110,7 +1110,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue