WithFlagsMap creates a new context with the given flags
(parent context.Context, flagsMap map[string]string)
| 22 | |
| 23 | // WithFlagsMap creates a new context with the given flags |
| 24 | func WithFlagsMap(parent context.Context, flagsMap map[string]string) context.Context { |
| 25 | return WithValue(parent, flagsKey, flagsMap) |
| 26 | } |
| 27 | |
| 28 | // WithCommandFlags creates a new context with the given flags |
| 29 | func WithCommandFlags(parent context.Context, flagSet *flag.FlagSet) context.Context { |
no test coverage detected