From e49d3a804b70a96a9779fcf02e6f6e9146276703 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 24 Oct 2024 11:59:54 +0000 Subject: [PATCH] Add comments Signed-off-by: Harald Albers --- cli/command/system/completion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/system/completion.go b/cli/command/system/completion.go index 5665ce07dc15..d59bbed75abe 100644 --- a/cli/command/system/completion.go +++ b/cli/command/system/completion.go @@ -122,6 +122,7 @@ func completeFilters(dockerCLI completion.APIClientProvider) completion.ValidArg } } +// prefixWith prefixes every element in the slice with the given prefix. func prefixWith(prefix string, values []string) []string { result := make([]string, len(values)) for i, v := range values { @@ -130,6 +131,7 @@ func prefixWith(prefix string, values []string) []string { return result } +// postfixWith appends postfix to every element in the slice. func postfixWith(postfix string, values []string) []string { result := make([]string, len(values)) for i, v := range values {