dswisher / git-updater

Tool to help manage multiple git repositories
MIT License
0 stars 0 forks source link

Make a CancellationToken available in the commands #1

Open dswisher opened 2 years ago

dswisher commented 2 years ago

The Spectre.Console.Cli parser is a bit too opinionated for my taste, requiring that options only appear after arguments. Switch to CommandLineParser.

As an example, gup fetch .. --dry-run is accepted, but gup fetch --dry-run .. is not.

dswisher commented 1 year ago

Funny. I got the code working that ported over to CommandLineParser, only to find that it works exactly the same way.

The only remaining issue is finding a way to get a CancellationToken into the ExecAsync method. There seems to be a couple of plausible workarounds here.