(cmd *cobra.Command)
| 142 | } |
| 143 | |
| 144 | func VolumeNames(cmd *cobra.Command) ([]string, cobra.ShellCompDirective) { |
| 145 | globalOptions, err := helpers.ProcessRootCmdFlags(cmd) |
| 146 | if err != nil { |
| 147 | return nil, cobra.ShellCompDirectiveError |
| 148 | } |
| 149 | vols, err := getVolumes(cmd, globalOptions) |
| 150 | if err != nil { |
| 151 | return nil, cobra.ShellCompDirectiveError |
| 152 | } |
| 153 | candidates := []string{} |
| 154 | for _, v := range vols { |
| 155 | candidates = append(candidates, v.Name) |
| 156 | } |
| 157 | return candidates, cobra.ShellCompDirectiveNoFileComp |
| 158 | } |
| 159 | |
| 160 | func Platforms(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 161 | candidates := []string{ |
no test coverage detected
searching dependent graphs…