fix(kafka topic create): erroneous flag validation#1258
Conversation
|
Maybe we can think of a better way to handle null string for output. |
|
Is this bug currently in the latest released version that we need a quick fix?
The root of this problem is now that we have a "common" flag set, it assumes the default value to be The best thing to do here is to revert to not use the common flag helper for output for this command, but still use the new common description. Longer term it would be nice to have a flag builder built into the common flag set, something like: flags.AddOutput(&opts.output).DefaultValue("json").Required()Would you mind reviewing to see if any other commands are affected by this? |
No, it is not there in the release
Okay
Similar occurrences have been enclosed within if statement checking |
|
Sticking to if check as it is there for majority of commands. |
Quick fix for
rhoas kafka topic createthat wasn't allowing user to create topic with default flag.Verification Steps
rhoas kafka topic create --name topic_1Type of change
Checklist