Sharprompt icon indicating copy to clipboard operation
Sharprompt copied to clipboard

Suggestion: make this tool System.CommandLine friendly

Open iSeiryu opened this issue 3 years ago • 3 comments

Microsoft created their own package to build CLI tools: https://github.com/dotnet/command-line-api https://learn.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial

Would it make sense to build Sharprompt on top of their package?

iSeiryu avatar Jan 03 '23 22:01 iSeiryu

The CommandLine API has a different purpose to begin with. While it provides the ability to parse command line arguments, Sharprompt provides an interactive UI.

shibayan avatar Jan 04 '23 14:01 shibayan

Could this package use their arguments parser/binder instead? They support sub-commands arguments and flags.

iSeiryu avatar Jan 04 '23 20:01 iSeiryu

It has a completely different purpose than the Commandline API.

Therefore, Sharprompt will not support them, but they can be used at the same time.

shibayan avatar Jan 05 '23 07:01 shibayan