mayuki / Cocona

Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET.
MIT License
3.26k stars 85 forks source link

CoconaValueConverter to support FileInfo and DirectoryInfo #115

Closed gleblebedev closed 10 months ago

gleblebedev commented 10 months ago

System.CommandLine supports FileInfo and DirectoryInfo as arguments. It seems to be useful and this is a feature I'm missing in Cocona.

I'm also was considering to make a ICoconaValueConverter interface and look up for converter in DI container but it seems to be too much for the change.

gleblebedev commented 10 months ago

@mayuki may I ask you to review the PR, please?

mayuki commented 10 months ago

Looks good to me. Thanks!