Skip to content

Conversation

@dotnet-maestro
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Nov 10, 2022

This pull request updates the following dependencies

From https://github.com/dotnet/command-line-api

  • Subscription: a08a5052-c9e7-44a2-9fba-08d94728d7f2
  • Build: 20221114.1
  • Date Produced: November 14, 2022 7:25:30 PM UTC
  • Commit: 8374d5fca634a93458c84414b1604c12f765d1ab
  • Branch: refs/heads/main

…uild 20221110.1

Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.352601 -> To Version 0.1.356001
@ghost ghost added the Area-CodeFlow label Nov 10, 2022
…uild 20221110.2

Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.352601 -> To Version 0.1.356002
…uild 20221110.3

Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.352601 -> To Version 0.1.356003
@dsplaisted
Copy link
Member

/Users/runner/work/1/s/src/BuiltInTools/dotnet-watch/Program.cs(477,49): error CS1061: 'ParseResult' does not contain a definition for 'GetValueForOption' and no accessible extension method 'GetValueForOption' accepting a first argument of type 'ParseResult' could be found (are you missing a using directive or an assembly reference?) [/Users/runner/work/1/s/src/BuiltInTools/dotnet-watch/dotnet-watch.csproj]

@jonsequitur @baronfel @dotnet/system-commandline Are there breaking API changes from System.CommandLine coming in here?

…uild 20221111.1

Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.352601 -> To Version 0.1.356101
@adamsitnik adamsitnik self-assigned this Nov 14, 2022
@adamsitnik
Copy link
Member

Are there breaking API changes from System.CommandLine coming in here?

Yes, we are currently working on moving S.CL to BCL and part of the process is introducing some breaking changes (to improve the API design). I am going to push fixes to this branch to unblock the PR.

* rename "GetValueForOption" and "GetValueForArgument" to just "GetValue"
* rename "getDefaultValue" to "defaultValueFactory"
* rename "FromAmong" to "AcceptOnlyFromAmong"
* rename "ExistingOnly" to "AcceptExistingOnly"
* replace CompletionDelegate with Func<CompletionContext, IEnumerable<CompletionItem>>
* replace ParseArgument<T> with Func<ArgumentResult, T>
* replace HelpSectionDelegate with Action<HelpContext>

remove unused usings
@adamsitnik
Copy link
Member

This PR is currently blocked by dotnet/command-line-api#1963

@adamsitnik
Copy link
Member

The fix in S.CL got merged (dotnet/command-line-api#1964) so now it should be just a matter of the nuget package update getting here.

dotnet-maestro bot and others added 2 commits November 14, 2022 20:04
…uild 20221114.1

Microsoft.SourceBuild.Intermediate.command-line-api , System.CommandLine
 From Version 0.1.352601 -> To Version 0.1.356401
Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM

@adamsitnik
Copy link
Member

@dsplaisted @ViktorHofer is it OK for me to merge this PR if all the changes here were done by myself?

@dotnet-maestro dotnet-maestro bot merged commit b68de63 into main Nov 15, 2022
@dotnet-maestro dotnet-maestro bot deleted the darc-main-5ed9494d-dda3-47db-8acc-f6401f66b5ad branch November 15, 2022 13:28
@baronfel
Copy link
Member

FWIW I looked over this just now and it looks great to me 👍 Thanks for taking the time to handle the API changes, @adamsitnik

@v-wuzhai v-wuzhai restored the darc-main-5ed9494d-dda3-47db-8acc-f6401f66b5ad branch November 16, 2022 08:18
@v-wuzhai v-wuzhai deleted the darc-main-5ed9494d-dda3-47db-8acc-f6401f66b5ad branch November 17, 2022 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants