cli.Context does not implement context.Context #2049
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
The
cli.Context
embeds and would work directly ascontext.Context
if it wasn't for theValue(name string) interface{}
which conflicts withValue(key any) any
ofcontext.Context
interface.This could be nice to have so you could use
DoSomething(ctx)
instead of having to useDoSomething(ctx.Context)
.It could be possible to change the
Value
function to match the interface without breaking the api. It could fall back to looking for the value from thectx.Context
if the key is not a string or was not found from the flags.It seems that the
context.Context
interface's functionality is not being utilized for anything internally in v2.It seems that the
cli.Context
has been replaced with a regularcontext.Context
inmain
(v3?)The text was updated successfully, but these errors were encountered: