Skip to content

Bump System.CommandLine from 2.0.0-beta4.22272.1 to 2.0.5#7478

Merged
github-actions[bot] merged 5 commits intomainfrom
dependabot/nuget/src/kiota/System.CommandLine-2.0.5
Mar 17, 2026
Merged

Bump System.CommandLine from 2.0.0-beta4.22272.1 to 2.0.5#7478
github-actions[bot] merged 5 commits intomainfrom
dependabot/nuget/src/kiota/System.CommandLine-2.0.5

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 13, 2026

Updated System.CommandLine from 2.0.0-beta4.22272.1 to 2.0.5.

Release notes

Sourced from System.CommandLine's releases.

No release notes found for this version range.

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the generator Issues or improvements relater to generation capabilities. label Mar 13, 2026
@dependabot dependabot bot requested a review from a team as a code owner March 13, 2026 08:49
@dependabot dependabot bot added the generator Issues or improvements relater to generation capabilities. label Mar 13, 2026
@github-actions github-actions bot enabled auto-merge (squash) March 13, 2026 08:49
@dependabot dependabot bot force-pushed the dependabot/nuget/src/kiota/System.CommandLine-2.0.5 branch 2 times, most recently from bddc7a0 to 5792eb5 Compare March 13, 2026 13:43
@baywet
Copy link
Member

baywet commented Mar 16, 2026

@copilot the public API of this dependency has changed. Based on that migration guidance, implement the changes in the code so we can use this update. https://github.com/dotnet/docs/blob/main/docs/standard/commandline/migration-guide-2.0.0-beta5.md

You might use dotnet run to run the commands locally and double check they are still working after the migration.

Copy link
Contributor

Copilot AI commented Mar 16, 2026

@baywet I've opened a new pull request, #7484, to work on those changes. Once the pull request is ready, I'll request review from you.

---
updated-dependencies:
- dependency-name: System.CommandLine
  dependency-version: 2.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/nuget/src/kiota/System.CommandLine-2.0.5 branch from 5792eb5 to a9d2753 Compare March 16, 2026 14:25
baywet and others added 4 commits March 17, 2026 08:45
* Bump System.CommandLine from 2.0.0-beta4.22272.1 to 2.0.5

---
updated-dependencies:
- dependency-name: System.CommandLine
  dependency-version: 2.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Initial plan

* Initial plan for System.CommandLine 2.0.5 migration

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Migrate System.CommandLine from 2.0.0-beta4 to 2.0.5

- Remove System.CommandLine.Hosting and System.CommandLine.Rendering package references
- Update Program.cs to use new host/invocation pattern without CommandLineBuilder
- Change BaseKiotaCommandHandler to extend AsynchronousCommandLineAction
- Change all handlers to override InvokeAsync(ParseResult, CancellationToken)
- Replace GetValueForOption/GetValueForArgument with GetValue
- Replace FindResultFor with GetResult
- Replace AddAlias with Aliases.Add, AddValidator with Validators.Add
- Replace AddCompletions with CompletionSources.Add
- Replace SetDefaultValue with DefaultValueFactory
- Replace IsRequired with Required, ArgumentHelpName with HelpName
- Replace Handler with Action on all commands
- Fix Option constructors to use object initializer syntax with Description
- Replace TableView usage with DisplayTable helper method
- Pass IServiceProvider through command factory methods for handler injection
- Replace ErrorMessage = with AddError() on OptionResult/CommandResult

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Migrate System.CommandLine from beta4 to 2.0.5 API

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Apply dotnet format

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Make serviceProvider parameter required in all GetXXXCommand methods

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Make serviceProvider parameter non-nullable in all GetXXXCommand methods and run dotnet format

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Pass CancellationToken to InvokeAsync/StopAsync and make ServiceProvider non-nullable in handlers

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* Fix ProcessExit disposal guard and use Spectre.Console for tables

Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>

* chore: no borders for tables

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baywet <7905502+baywet@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
@github-actions github-actions bot merged commit 3224884 into main Mar 17, 2026
297 checks passed
@github-actions github-actions bot deleted the dependabot/nuget/src/kiota/System.CommandLine-2.0.5 branch March 17, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator Issues or improvements relater to generation capabilities.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants