Skip to content

Commit

Permalink
Add ConsoleLogger to NewPkgCommand instantiation (#335)
Browse files Browse the repository at this point in the history
Previously, the `NewPkgCommand` was instantiated without a logger, potentially missing important debug information. This change appends `ConsoleLogger.Instance` to the `NewPkgCommand` creation, ensuring log output is properly captured for new package operations.
  • Loading branch information
kirillkrylov authored Nov 15, 2024
1 parent 9dadeb0 commit b46752b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clio/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ private static int ConvertPackage(ConvertOptions opts) {
DeletePkgOptions opts => Resolve<DeletePackageCommand>(opts).Execute(opts),
ReferenceOptions opts => CreateCommand<ReferenceCommand>(new CreatioPkgProjectCreator()).Execute(opts),
NewPkgOptions opts => CreateCommand<NewPkgCommand>(new SettingsRepository(), CreateCommand<ReferenceCommand>(
new CreatioPkgProjectCreator())).Execute(opts),
new CreatioPkgProjectCreator()), ConsoleLogger.Instance).Execute(opts),
ConvertOptions opts => ConvertPackage(opts),
RegisterOptions opts => CreateCommand<RegisterCommand>().Execute(opts),
UnregisterOptions opts => CreateCommand<UnregisterCommand>().Execute(opts),
Expand Down

0 comments on commit b46752b

Please sign in to comment.