Difference between CommandDotNet and Spectre.Console #458
-
New user here - I've read the docs and am very impressed. I noticed that CommandDotNet uses Spectre.Console. Does someone know how they differ? I initially assumed Spectre.Console is only for formatting text, but its docs show it also handles commands, arguments, etc. (the stuff this library does). Do I need to use both, or can I use Spectre.Console only? Will I miss out on any features if I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @lonix1 and welcome. Thanks for the compliments. You do not need to use Spectr to use CommandDotNet. We've integrated with them to make their AnsiConsole available as a command parameter and to integrate that with our test framework. That is the only point of integration with them. My preference, and obviously I'm biased, is to use CommandDotNet to define my commands and bring in Spectr when I can benefit from their superb table layout or prompt tools. |
Beta Was this translation helpful? Give feedback.
Hi @lonix1 and welcome.
Thanks for the compliments.
You do not need to use Spectr to use CommandDotNet. We've integrated with them to make their AnsiConsole available as a command parameter and to integrate that with our test framework. That is the only point of integration with them.
My preference, and obviously I'm biased, is to use CommandDotNet to define my commands and bring in Spectr when I can benefit from their superb table layout or prompt tools.