CLIContextFromContext returns a pointer to a cli.Context It panics when the cli.Context is not set.
(ctx context.Context)
| 32 | // CLIContextFromContext returns a pointer to a cli.Context |
| 33 | // It panics when the cli.Context is not set. |
| 34 | func CLIContextFromContext(ctx context.Context) *cli.Context { |
| 35 | return ctx.Value(cliCtxKey{}).(*cli.Context) |
| 36 | } |
| 37 | |
| 38 | // wrap wraps a function with middleware using a new context. It returns a cli.ActionFunc with |
| 39 | // the cli.Context added to the Context. |
no outgoing calls
searching dependent graphs…