Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Aug 29, 2025

This replaces the visitAll recursive function with a test that verifies that the option is set for all commands and subcommands, so that it doesn't have to be modified at runtime.

We currently still have to loop over all functions for the setValidateArgs call, but that can be looked at separately.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added this to the 29.0.0 milestone Aug 29, 2025
@thaJeztah thaJeztah added the kind/refactor PR's that refactor, or clean-up code label Aug 29, 2025
@thaJeztah thaJeztah requested a review from a team as a code owner August 29, 2025 21:05
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2025

@thaJeztah thaJeztah force-pushed the check_DisableFlagsInUseLine branch from 2e5ea34 to 56f8b39 Compare August 29, 2025 22:46
@thaJeztah
Copy link
Member Author

This will conflict with #6404 - I'll move this to draft and rebase it on top of that one

@thaJeztah thaJeztah marked this pull request as draft August 30, 2025 10:25
@thaJeztah thaJeztah force-pushed the check_DisableFlagsInUseLine branch from 56f8b39 to 7ceb7fd Compare August 30, 2025 10:38
This replaces the visitAll recursive function with a test that verifies that
the option is set for all commands and subcommands, so that it doesn't have
to be modified at runtime.

We currently still have to loop over all functions for the setValidateArgs
call, but that can be looked at separately.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the check_DisableFlagsInUseLine branch from 7ceb7fd to 0adaf6b Compare September 1, 2025 07:40
@thaJeztah thaJeztah marked this pull request as ready for review September 1, 2025 07:40
@thaJeztah thaJeztah requested a review from Benehiko September 1, 2025 08:39
@thaJeztah thaJeztah merged commit 8987498 into docker:master Sep 1, 2025
90 checks passed
@thaJeztah thaJeztah deleted the check_DisableFlagsInUseLine branch September 1, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants