-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Completion helper #2222
Comments
Of course, we could start by adding Go Examples to these methods. Then implements something with an helper |
There is a small mention of this in the completions README: cobra/site/content/completions/_index.md Line 373 in 6c3c116
But any improvement to make this more obvious is welcomed |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Following #2220
Right now the format for completion is not obvious. I discovered in ov tool
https://github.com/noborus/ov/blob/4f4e9e5c266ec4815c5a166718e318992ea47751/main.go#L431-433
By not .obvious, I mean the
tab
is logic but not something you will think of, when you easily find out in the documentation.I opened an issue as it requires some design
Adding a struct, with Text and description
validation might be needed
Generic could help, but the Go version 1.15 is go.mod broke my dreams 😅
a fmt.Stringer art, but it doesn't bring much
I might be overthinking and what is needed is simply about adding documentation about the format in the methods
So, let's talk 😁
The text was updated successfully, but these errors were encountered: