Open SamiSousa opened 5 years ago
@SamiSousa So I see the appeal of making this change, but my concern is that this is already in the wild and being used. Making a breaking change like this has to be a major version bump, but I'm not sure this change is a good enough reason to introduce breaking changes to the cli.
I suggest:
parser.add_argument(
'--ui-validate-io',
dest='ui_validate_io',
help='Validate bundle for operatorhub.io UI',
action='store_true')
parser.add_argument(
# DEPRECATED; BW compatibility
'--ui_validate_io',
dest='ui_validate_io'
help=argparse.SUPPRESS,
action='store_true')
I suggest:
parser.add_argument( '--ui-validate-io', dest='ui_validate_io', help='Validate bundle for operatorhub.io UI', action='store_true') parser.add_argument( # DEPRECATED; BW compatibility '--ui_validate_io', dest='ui_validate_io' help=argparse.SUPPRESS, action='store_true')
Great suggestion.
@SamiSousa Can you update your pr this way?
Thanks @MartinBasti ! Applied your suggestion, please take a look
@SamiSousa Looks like the tests failed.
Coverage decreased under a failure threshold because commit added a new line.
@MartinBasti Removed a newline based on your comment.
@SamiSousa oh sorry, I meant new line from code execution POW, not one line literally. :)
You have add tests or lower coverage limit.
@kevinrizza @jeremylinlin If there's an interest in this change, let me know so I can rebase. Otherwise, I'll close this PR.
@SamiSousa Feel free to update, it looks like a good change. once you do please @ me and Wenlin so we can review again
@kevinrizza @jeremylinlin Rebased based on latest master, please take a look :slightly_smiling_face:
This follows the conventions set by other CLI tools Replaces part of #65