Skip to content

Commit 648a07c

Browse files
authored
autocomplete: list executable isos (#183)
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 <[email protected]>
1 parent 9f8ce06 commit 648a07c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/completer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int)
411411
if autocompleteAPI.Noun == "templates" {
412412
autocompleteAPIArgs = append(autocompleteAPIArgs, "templatefilter=executable")
413413
}
414+
if autocompleteAPI.Noun == "isos" {
415+
autocompleteAPIArgs = append(autocompleteAPIArgs, "isofilter=executable")
416+
}
414417

415418
if apiFound.Name != "provisionCertificate" && autocompleteAPI.Name == "listHosts" {
416419
autocompleteAPIArgs = append(autocompleteAPIArgs, "type=Routing")

0 commit comments

Comments
 (0)