-
Notifications
You must be signed in to change notification settings - Fork 108
[FEATURE] Detect flag configuration format from file extension #240
Copy link
Copy link
Closed
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerenhancementNew feature or requestNew feature or request
Description
Requirements
With #206, flagd now has the ability to support yaml formatted flag configurations.
However, to use yaml evaluation, users should use -e, --evaluator string set to .yaml or .yml even if the flag configuration file contains the correct extension.
To enhance the user experience, flag format can be detected from the file extension and omit the requirement of evaluator string parameter.
This simplifies, flagd start -e yaml -f example_flags.yaml command to flagd start -f example_flags.yaml.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs TriageThis issue needs to be investigated by a maintainerThis issue needs to be investigated by a maintainerenhancementNew feature or requestNew feature or request