1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-10 16:57:19 +00:00
Commit graph

6 commits

Author SHA1 Message Date
ccoVeille
8cb30f9ca5
feat: add CompletionWithDesc helper ()
The code has also been refactored to use a type alias for completion and a completion helper

Using a type alias is a non-breaking change and it makes the code more readable and easier to understand.

Signed-off-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Co-authored-by: Marc Khouzam <marc.khouzam@gmail.com>
2025-02-09 11:06:07 -05:00
Ville Skyttä
e63925d321
Add env variable to suppress completion descriptions on create ()
COBRA_COMPLETION_DESCRIPTIONS=0 
or 
<PROGRAM>_COMPLETION_DESCRIPTIONS=0
can now be used to disable shell completion descriptions.
2023-12-17 13:50:59 -05:00
Ville Skyttä
22953d8845
Replace all non-alphanumerics in active help env var program prefix ()
* Replace all non-alphanumerics in active help env var program prefix

There are other characters besides the dash that are fine in program
names, but are problematic in environment variable names. These include
(but are not limited to) period, space, and non-ASCII letters.

* Another change in docs to mention non-ASCII-alphanumeric instead of just dash
2023-10-29 12:06:51 -06:00
Unai Martinez-Corral
9e6b58afc7
update copyright year () 2023-03-05 21:28:31 -05:00
Unai Martinez-Corral
6d978a911e
add missing license headers () 2022-09-16 07:55:56 -04:00
Marc Khouzam
f464d6c82e
Add Active Help support () 2022-06-15 20:08:16 -04:00