Proposal: Make command suggestion messages configurable #1394
Labels
area/docs-generation
Generation of docs via Cobra
kind/feature
A feature request for cobra; new or enhanced behavior
lifecycle/needs-pr
Ready for a PR from the community
Hi, we have a project where clear definitions were made, what the output of the CLI has to look like. We appreciate the automatic suggestions if a command was misspelled. Sadly it seems like we cannot customize the suggestion message and the default message doesn't really fit with the rest of the CLI.
Is there a possibility to make a
SetSuggestFunc()
like it's been done withSetHelpFunc()
?This could be used to change the suggestion message:
The text was updated successfully, but these errors were encountered: