JasperFx / oakton

Parsing and Utilities for Command Line Tools in .Net
http://jasperfx.github.io/oakton
Apache License 2.0
308 stars 41 forks source link

Accept RegisterCommand(typeof(T)) #26

Closed joaofx closed 5 years ago

joaofx commented 5 years ago

Hi!

First of all, super cool library. Thanks for sharing it.

Currently, it seems there is two ways to register commands on CommandFactory::

RegisterCommand<T>()
RegisterCommands(Assembly assembly)

I need register by Type not using generics.

RegisterCommand(typeof(T))

Would you accept a pull request for that?

Thanks again.

jeremydmiller commented 5 years ago

@joaofx Hey, sorry I missed this. I would accept a PR, but I'm in the code this week and I can do that pretty quickly.

joaofx commented 5 years ago

Uhhh that's awesome! Thanks a million!!