Martin
Martin
Ok, so basically the plugins need to register "factories" that create the commands? Could another option might be to make commands callable instances? They could have attributes for arguments/options etc...
When I say "factory" I mean it in the general sense.... i.e. something that when called produces something... not implying classes etc. In out case plugins need to be able...
G'day! Yes - I've been looking at Typer this morning... not sure it will be easy for plugins to contribute arguments etc. This is one of the problems with decorator...
Makes me wonder if we: a) try to work how to build a truly extensible-CLI with Typer b) just use explicit import guards to add psdc functionality :)
One common use case might be to use when for modelling objects with possibly "events" e.g. Traits, Traitlets, Param in Python, and EventTarget in JS). e.g. If I have some...