Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <[email protected]>
  • Loading branch information
albers committed Oct 24, 2024
1 parent b0581cf commit e49d3a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/command/system/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit e49d3a8

Please sign in to comment.