MCPcopy Index your code
hub / github.com/docker/cli / postfixWith

Function postfixWith

cli/command/container/completion.go:342–348  ·  view source on GitHub ↗

postfixWith appends postfix to every element in the slice.

(postfix string, values []string)

Source from the content-addressed store, hash-verified

340
341// postfixWith appends postfix to every element in the slice.
342func postfixWith(postfix string, values []string) []string {
343 result := make([]string, len(values))
344 for i, v := range values {
345 result[i] = v + postfix
346 }
347 return result
348}
349
350func completeLinuxCapabilityNames(cmd *cobra.Command, args []string, toComplete string) (names []string, _ cobra.ShellCompDirective) {
351 return completion.FromList(allLinuxCapabilities()...)(cmd, args, toComplete)

Callers 3

completeLinkFunction · 0.70
completeLogOptFunction · 0.70
completeUlimitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…