vitessio/vitess
Rewrite `flagutil.OptionalFlag` to use generics
Fechada
#11.154 aberto em 1 de set. de 2022
Component: CLIType: Internal Cleanupgood first issue
Métricas do repositório
- Stars
- (21.242 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Now that we have generics, we can stop hand-writing each implementation of flagutil.OptionalFlag for each type we want, instead writing a generic OptionalFlag over any type T, providing a parsing function that has the signature func(string) (T, error)