Open AtricoSoftware opened 2 months ago
Re-pushed and removed check completely - parent context can never be nil so no point checking Context should always be copied
I concur.
This issue makes it very hard to use Cobra in tests so this would be a great fix.
Context is not copied from parent to child Comment on code states copy if parent has context but code implements copy if child doesn't have context Fix makes behaviour consistent between root and sub commands w.r.t. contexts