withCLIContext adds a cli.Context to the Context.
(ctx context.Context, clictx *cli.Context)
| 26 | |
| 27 | // withCLIContext adds a cli.Context to the Context. |
| 28 | func withCLIContext(ctx context.Context, clictx *cli.Context) context.Context { |
| 29 | return context.WithValue(ctx, cliCtxKey{}, clictx) |
| 30 | } |
| 31 | |
| 32 | // CLIContextFromContext returns a pointer to a cli.Context |
| 33 | // It panics when the cli.Context is not set. |
no outgoing calls
searching dependent graphs…