cli
cli copied to clipboard
Make *cli.Context implement context.Context by renaming Value
This PR runs the gopls
rename function on the *cli.Context.Value
method to be renamed to GetValue
. This makes the *cli.Context implement context.Context by default as the interface is already embedded into the struct, the only reason it didn't implement it before was because of that method name conflicting in the signature.
See https://github.com/urfave/cli/issues/833#issuecomment-1328067910
@marwan-at-work Can you rebase main ?
The description doesn't say WHY you want cli.Context to implement context.Context. What value does this bring? I only see bugs and confusion coming...
This PR changes a lot of code, there are tons of merge conflicts, and v2 is effectively in maintenance mode right now.
I'm leaning toward closing this PR, but would like to hear @meatballhat / @dearchap / @Juneezee opinion first.
Yes I agree with @bartekpacia . There is no need for this anymore given that v3 has moved to a different architecture. v2 is in maint mode. I am going to close this.