Cysharp / ConsoleAppFramework

Zero Dependency, Zero Overhead, Zero Reflection, Zero Allocation, AOT Safe CLI Framework powered by C# Source Generator.
MIT License
1.66k stars 95 forks source link

[Question] Completion Support? #145

Closed Simonl9l closed 2 months ago

Simonl9l commented 2 months ago

Some CLI frameworks also offer completion support, where they will generate a completion file that can be used by the requisite shell to support command completions.

https://en.wikipedia.org/wiki/Command-line_completion

Are there an future plans to support this ?

neuecc commented 2 months ago

We have no intention of supporting that. In that case, it would be better to use a different framework.

Simonl9l commented 2 months ago

Curious as to you reasoning, as its common in Linux (based) environments specifically bash, zsh & fish. Here's a guide -https://www.dolthub.com/blog/2021-11-15-zsh-completions-with-subcommands/

As one packages one Cli's into various package managers (like homebrew for MacOs) for distribution, where the package install extracts the completion and places it in a place the shell knows where to get it.

So the value prop is for the end user of our CLI's we develop with the framework, and our overall offered User Experience.

One could hand craft the completions file, given the cod generation nature of the CLI, this would seem like a logic step.

Whist I'm up to my eyeballs in delivering my stuff, and your framework is very valuable, it may be a consideration for a future pull request - if that is of interested, on basis it would be accepted (given you review process) if presented - to make any such effort worth it.

Also if this get some thumbs up...