Skip to content
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

Add support for setting CLI arguments using environment variables #111

Open
kehoecj opened this issue Feb 2, 2024 · 1 comment
Open
Labels
CLI Update to the CLI help wanted Extra attention is needed

Comments

@kehoecj
Copy link
Contributor

kehoecj commented Feb 2, 2024

Enable users to set all optional CLI arguments as environment variables instead of (or in additional to) directly passing them as CLI arguments. For example running export CFV_REPORTER="json would produce JSON output. If both a CLI argument and environment variable are provided the CLI argument should win over the environment var or any type of merging of the options.

Look into using the standard flag library but it may be a good excuse to refactor to COBRA since environment variable support is built-in

@kehoecj kehoecj added help wanted Extra attention is needed CLI Update to the CLI labels Feb 2, 2024
@kehoecj
Copy link
Contributor Author

kehoecj commented Feb 2, 2024

This can be closed when #112 gets worked unless we decide not to move forward with Cobra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Update to the CLI help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant