app-services-cli icon indicating copy to clipboard operation
app-services-cli copied to clipboard

Artifact rules enable --config should only propose values for specific rule

Open wtrocki opened this issue 3 years ago • 1 comments

Feature or problem description

When creating suggestion we can use opts.ruleType value to determine what rule we deal with

wtrocki avatar Feb 15 '22 11:02 wtrocki

Issue is that rhoas servivce-registry artifact rules enable --config= suggestions show more values than they should. We have method that calculates those values: https://github.com/redhat-developer/app-services-cli/blob/623d7591defbf59326adf8045d139c8dab22109a/pkg/cmd/registry/rule/rulecmdutil/flagset.go#L70

wtrocki avatar Mar 24 '22 13:03 wtrocki