postfixWith appends postfix to every element in the slice.
(postfix string, values []string)
| 340 | |
| 341 | // postfixWith appends postfix to every element in the slice. |
| 342 | func 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 | |
| 350 | func completeLinuxCapabilityNames(cmd *cobra.Command, args []string, toComplete string) (names []string, _ cobra.ShellCompDirective) { |
| 351 | return completion.FromList(allLinuxCapabilities()...)(cmd, args, toComplete) |
no outgoing calls
no test coverage detected
searching dependent graphs…