From fc6d7085310f38528fc6c9e3bf2fffff5cb4e0ac Mon Sep 17 00:00:00 2001 From: Tugdual Saunier Date: Fri, 28 Nov 2025 13:17:09 +0100 Subject: [PATCH] exclude the completion install command from completions --- completion.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/completion.go b/completion.go index 95104ea..3318523 100644 --- a/completion.go +++ b/completion.go @@ -63,6 +63,10 @@ func AutocompleteAppAction(c *Context) error { // transpose registered commands and flags to posener/complete equivalence for _, command := range c.App.Commands { + // skip the completion commands itself + if command == shellAutoCompleteInstallCommand { + continue + } subCmd := command.convertToPosenerCompleteCommand(c) if command.Hidden == nil || !command.Hidden() {