bilal-fazlani / commanddotnet

A modern framework for building modern CLI apps
https://commanddotnet.bilal-fazlani.com
MIT License
560 stars 32 forks source link

Bug report: Line 36 of CommandDotNet.AppConfigBuilder #464

Closed RobinsonMW closed 1 year ago

RobinsonMW commented 1 year ago

While going through your "CancelMe" example I think I've identified a bug. When I made the change below the example worked correctly.

Thanks.

Line 36 of CommandDotNet.AppConfigBuilder should read:

[typeof(IEnvironment)] = ctx => ctx.Environment, not [typeof(IEnvironment)] = ctx => ctx.Console,

drewburlingame commented 1 year ago

Thanks for taking the time to file this. You're correct, that's a bug. I've pushed a fix and will generate a new package tomorrow.

drewburlingame commented 1 year ago

package has been published with the updates. https://www.nuget.org/packages/CommandDotNet