Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure flag type consistency #6852

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Conversation

dereknola
Copy link
Member

Proposed Changes

  • Converts all flags to their respective "pointer" types. So bools are always defined as &cli.BoolFlag and string flags as &cli.StringFlag, now all flags maintain the same declaration structure.

Types of Changes

Code Consistency

Verification

N/A K3s builds

Testing

K3s builds

Linked Issues

#2308

User-Facing Change


Further Comments

I chose to go with "all pointers" because if we ever upgrade to urfave cli v2, flags are required to be pointers.

@dereknola dereknola requested a review from a team as a code owner January 30, 2023 18:49
Copy link
Member

@brandond brandond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this one! It's been sitting out there as tech debt for ages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants