Skip to content

Conversation

@slang25
Copy link

@slang25 slang25 commented Jan 11, 2026

Summary

Updates System.CommandLine from 2.0.0-beta4 to 2.0.1 stable release and removes the System.CommandLine.Hosting dependency. Refactors command setup to use the new SetAction API and removes IHost dependency injection in favor of direct logger factory and workspace management.

Changes

  • Upgrade System.CommandLine to 2.0.1 and remove System.CommandLine.Hosting package
  • Add explicit transitive dependencies: Microsoft.Extensions.Logging, Console provider, and FileSystemGlobbing
  • Refactor Program.cs to use SetAction instead of CommandHandler.Create with builder hosting
  • Remove IHost parameter from command handlers and manage logging/workspace directly

🤖 Generated with Claude Code

Update System.CommandLine from 2.0.0-beta4 to 2.0.1 and remove the System.CommandLine.Hosting dependency. Refactor the command structure to use the new SetAction API instead of CommandHandler.Create with builder hosting. Remove IHost dependency injection and manage logging and workspace creation directly in Main and handler methods. Add explicit package references for Microsoft.Extensions.Logging, Microsoft.Extensions.Logging.Console, and Microsoft.Extensions.FileSystemGlobbing that were previously transitive.

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
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.

1 participant