spectre.cli icon indicating copy to clipboard operation
spectre.cli copied to clipboard

Question: Is there a way to build command structure from metadata?

Open DarthPedro opened this issue 6 years ago • 2 comments

Hi, Is there a way to build the app's Command configuration from metadata - using attributes to define the commands and data? Rather than having to call the AddCommand and AddBranch methods?

Also is there a document site hosted somewhere or just the docs in this repo?

This framework looks really good for creating command line apps without all of the boilerplate code. Thanks!

DarthPedro avatar Dec 05 '20 21:12 DarthPedro

@DarthPedro There is not, and there are currently no plans to support that scenario. It should however be possible for you to build something like this.

patriksvensson avatar Dec 07 '20 11:12 patriksvensson

@patriksvensson thanks. I am considering building a system like that. Would you consider taking a contribution with that functionality as an add-on module to the Spectre.Cli library?

DarthPedro avatar Dec 08 '20 07:12 DarthPedro