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

Add Config, DataDir and Verbose flags as base flags to all commands #5174

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

mat-if
Copy link
Contributor

@mat-if mat-if commented Jul 24, 2024

Summary

This removes LocalFlags entirely, as well as removing these 3 flags from RemoteFlags.

Only 2 or 3 non-hidden commands didn't utilize all 3 of these, and it was mostly the verbose flag, so there are scenarios where verbose will be listed as an argument but doesn't do anything, which I think is an okay trade-off. It's not ideal, but ensuring these flags are present seems very beneficial.

This has the added benefit of throwing compile errors if a command tries to use a flag it hasn't defined. For some reason, if baseFlags is undefined/empty object, it seems to break the strict typing of flags. Closes IFL-2826

Testing Plan

Documentation

N/A

Breaking Change

N/A

This removes LocalFlags entirely, as well as removing these 3 flags from
RemoteFlags.
@mat-if mat-if requested a review from a team as a code owner July 24, 2024 17:49
@mat-if mat-if merged commit 105a03e into staging Jul 25, 2024
11 checks passed
@mat-if mat-if deleted the mat/base-flags branch July 25, 2024 16:09
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.

2 participants