SIGN IN SIGN UP
spf13 / cobra UNCLAIMED

A Commander for modern Go CLI interactions

0 0 138 Go

fix: quote args in fish shell completion (#2285)

* fix: quote args in fish shell completion

The arguments used for dynamic completions in fish were missing quotes.
This resulted in an error when one of the arguments had a `*` in it
whose expansion matched no file. Once the completion got triggered, fish
errored with the message `No matches for wildcard [...]`. Don't quote
the first argument as that is the name of the binary.

* Protect against arguments that start with --

Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>

---------

Co-authored-by: Marc Khouzam <marc.khouzam@gmail.com>
N
Niklas Vogel committed
61968e893eee2f27696c2fbc8e34fa5c4afaf7c4
Parent: 10d4b48
Committed by GitHub <noreply@github.com> on 12/10/2025, 2:18:50 AM