From 166f16ccc86e4e91741406db3d65c78f4fd3ac5d Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 18 Aug 2025 17:21:12 +0530 Subject: [PATCH] autocomplete: list executable isos In cmk shell when doing tab to autocomplete for iso id, currently, it returns an empty result. This PR adds isofilter parameter similar to lsit templates call. Signed-off-by: Abhishek Kumar --- cli/completer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/completer.go b/cli/completer.go index bd1f1df..7bc9e5a 100644 --- a/cli/completer.go +++ b/cli/completer.go @@ -411,6 +411,9 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int) if autocompleteAPI.Noun == "templates" { autocompleteAPIArgs = append(autocompleteAPIArgs, "templatefilter=executable") } + if autocompleteAPI.Noun == "isos" { + autocompleteAPIArgs = append(autocompleteAPIArgs, "isofilter=executable") + } if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" { autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")