-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Refactor Tool and Workload command subcommands - separate parsing and action logic #52162
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
Conversation
… action logic Co-authored-by: tmat <41759+tmat@users.noreply.github.com>
eb41520 to
602cad1
Compare
4911b1c to
641981f
Compare
99055c6 to
d6a9746
Compare
|
@MiYanni ptal |
|
|
||
| public readonly Option<int> TakeOption = new("--take") | ||
| { | ||
| DefaultValueFactory = (_) => 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this magic number saying it'll return 5 items by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved the option definition, did not change the impl. Yeah, it seems to set the default value to 5.
|
/ba-g winrt |
First commit implements the separation and was authored by copilot.
The second and third commits switch from static option fields to instance fields for all workload and tool commands and subcommands, following the pattern established by #52137.
The last commit updates test baselines to reflect new ordering of some options.