-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feature) evaluation command line for local testing #2560
Comments
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedHello I want to be assigned to work on this as a first time contributor to the project. I am a developer with over 4 years of experience. |
This issue has been automatically unassigned due to inactivity. |
Can I tackle this one? |
@pheobeayo there is already a PR open for this one. |
@thomaspoignant okay, I will do that |
Would love to tackle this! I've reviewed the PR made by previous assignee and I'm pretty confident that I can work on top of that one and resolve this issue. |
Is it okay if I take this? |
Requirements
Context
When using GO Feature Flag in case of percentage based evaluation sometimes you want to know which variant will be returned for a specific evaluation context.
Proposed solution
We want a command line tool that allow to perform the evaluation directly in the terminal allowing to get a fast feedback on which variant is served for a specific flag configuration file.
Example
The cli should allow those commands:
-c
or--config
: path to the flag configuration file (mandatory)-f
or--flag
: name of the flag to evaluate (optional), if not set the cli should evaluate all the flags available in the-f
file configuration.-e
or--evaluation-context
: the evaluation context to validate the flag against the file.Implementation
Here are some guidelines for the implementation:
cmd/cli
.spf13/cobra
.evaluate
sub command will be the 1st one but we want to extend the usage of this command line to other need in the future (maybe move the linter there also).editor
API available here.The text was updated successfully, but these errors were encountered: