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

feat: add a new 'experimental' flag #815

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

dduportal
Copy link
Contributor

Signed-off-by: Damien Duportal damien.duportal@gmail.com

Related to #803 and #813

This pull request introduces a new flag --experimental, available for ALL subcommands (like --debug).

This flag sets a global variable cmdoptions.Experimental so that any package can use it.

Test

To test this pull request, you can run the following commands:

./dist/updatecli --debug --experimental diff --config ./updatecli/updatecli.d/updatecli.yaml

should print Experimental mode enabled.

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@olblak olblak merged commit 2d016e0 into updatecli:main Aug 22, 2022
@dduportal dduportal deleted the feat/experimental-flag branch November 19, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants