aboutsummaryrefslogtreecommitdiff
path: root/flag_test.go
AgeCommit message (Collapse)Author
2023-10-07Add ParseStringRegexpv0.7.0Grégoire Duchêne
2023-02-26Add ParseStringerEnumv0.6.0Grégoire Duchêne
2023-02-26Parameterize UnknownEnumValueErrorGrégoire Duchêne
Also, do not sort the expected values in UnknownEnumValueError.Error.
2022-12-10Add ParseProtobufEnumv0.5.0Grégoire Duchêne
2022-12-10Add ParseStringEnumGrégoire Duchêne
2022-12-10Add Feature and FlagFeature{,Var}Grégoire Duchêne
Feature is essentially a boolean flag that can be safely mutated at run time. FlagFeature{,Var} make Feature objects work with flags.
2022-12-03Remove ‘value’ argument from Flag{,Slice}Varv0.4.0Grégoire Duchêne
It’s basically redundant since a pointer to the value is already provided; callers can just set a default value there.
2022-12-03Prevent flags from being set again by defaultv0.3.0Grégoire Duchêne
Flag values that are safe to be set again should implement the new MutableFlagValue interface.
2022-12-03Drop T from the name of the Flag functionsGrégoire Duchêne
Kind of redundant given that there’s a type parameter right after the function name.
2022-12-03Add InitFlagSetGrégoire Duchêne
2022-12-03Have FlagTSlice{,Var} take an optional separatorGrégoire Duchêne
This separator, when passed, allows for multiple values to be passed at a time.
2022-06-26Simplify the flag helper functionsv0.1.0Grégoire Duchêne
2022-06-26Add FlagVarDef and FlagVarSliceDefGrégoire Duchêne
2022-06-26Add a few flag helper functionsGrégoire Duchêne