-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: file extension detection (#257)
Signed-off-by: James Milligan <[email protected]> <!-- Please use this template for your pull request. --> <!-- Please use the sections that you need and delete other sections --> ## This PR <!-- add the description of the PR here --> - file type is detected via the file extension, it is now possible to mix and match `json` and `yaml` files as flag configuration sources ``` start -f file:./config/samples/example_flags.yaml -f file:./config/samples/example_flags.json ``` ### Related Issues <!-- add here the GitHub issue that this PR resolves if applicable --> #240 ### Notes <!-- any additional notes for this PR --> ### Follow-up Tasks <!-- anything that is related to this PR but not done here should be noted under this section --> <!-- if there is a need for a new issue, please link it here --> It is my opinion that the `-e` or `--evaluator` flag is now a little misleading / confusing, as only the `json_evaluator` is used internally, and changing the flag value has no effect internally. Open to opinions on how this should be handled, if at all. ### How to test <!-- if applicable, add testing instructions under this section --> Signed-off-by: James Milligan <[email protected]>
- Loading branch information
1 parent
712d7dd
commit ca22541
Showing
6 changed files
with
26 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters