cobra icon indicating copy to clipboard operation
cobra copied to clipboard

deprecate ExactValidArgs in favour of MatchAll(OnlyValidArgs, ...)

Open umarcor opened this issue 2 years ago • 8 comments

This is a subset of #1643, which is a subset of #841.

umarcor avatar Mar 27 '22 23:03 umarcor

This is so close to #1643, I'm not sure we can't go straight to merging #1643.

Let's see which approach @jpmcb prefers.

marckhouzam avatar Mar 28 '22 20:03 marckhouzam

Any reason for splitting this up into multiple PRs?

Generally, I think i'd prefer to tackle in as few PRs as possible. But if it makes sense to do multiple, that's fine.

I don't have a ton of context on this, so let me familiarize myself and get back on this

jpmcb avatar Mar 29 '22 23:03 jpmcb

Any reason for splitting this up into multiple PRs?

Having it all together did delay the contribution several years, because it was apparently too much to tackle. Splitting into smaller pieces is allowing to slowly get the content merged.

On the other hand, according to https://github.com/spf13/cobra/commit/ab42c937ec7c62b0345f61c3e950cb785a470dc7, #1643 might produce an error because it modifies more than 200 lines.

I don't have a ton of context on this, so let me familiarize myself and get back on this

See https://github.com/spf13/cobra/pull/1643#issuecomment-1080023276.

umarcor avatar Mar 29 '22 23:03 umarcor

@jpmcb can we please merge this M-sized PR, to move forward with the series?

umarcor avatar Apr 21 '22 07:04 umarcor

@jpmcb @marckhouzam @johnSchnake can we please address this before the spring is over?

umarcor avatar May 18 '22 14:05 umarcor

I vote for merging #1643 directly

marckhouzam avatar May 18 '22 15:05 marckhouzam

#1643 is a superset, so merging any of them will solve this.

umarcor avatar May 18 '22 15:05 umarcor

ping @spf13 @johnSchnake @jpmcb @marckhouzam

umarcor avatar Jun 06 '22 13:06 umarcor

I'm reviewing and expect to merge #1643 which is a superset of this one. So I believe we can close this one. Please reopen @umarcor if I misunderstood.

marckhouzam avatar Aug 28 '22 01:08 marckhouzam