(cmd *cobra.Command)
| 25 | ) |
| 26 | |
| 27 | func ApparmorProfiles(cmd *cobra.Command) ([]string, cobra.ShellCompDirective) { |
| 28 | profiles, err := apparmorutil.Profiles() |
| 29 | if err != nil { |
| 30 | return nil, cobra.ShellCompDirectiveError |
| 31 | } |
| 32 | var names []string // nolint: prealloc |
| 33 | for _, f := range profiles { |
| 34 | names = append(names, f.Name) |
| 35 | } |
| 36 | return names, cobra.ShellCompDirectiveNoFileComp |
| 37 | } |
| 38 | |
| 39 | func CgroupManagerNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 40 | candidates := []string{"cgroupfs"} |
no test coverage detected
searching dependent graphs…