(ctx context.Context, cfg *Config)
| 142 | } |
| 143 | |
| 144 | func ContextWithConfig(ctx context.Context, cfg *Config) context.Context { |
| 145 | return context.WithValue(ctx, configKey, cfg) |
| 146 | } |
| 147 | |
| 148 | func ReportError(ctx context.Context, err error, drv *ui.Driver, cmd *cobra.Command, args []string) { |
| 149 | cfg := ConfigFromContext(ctx) |
no outgoing calls