(_ *cobra.Command, args []string, toComplete string)
| 254 | } |
| 255 | |
| 256 | func ValidArgsGetCatalogs(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { |
| 257 | if len(args) == 0 { |
| 258 | return getCatalogs(toComplete), cobra.ShellCompDirectiveNoFileComp |
| 259 | } else { |
| 260 | return []string{}, cobra.ShellCompDirectiveNoFileComp |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | // ValidArgsGetCategory returns autocomplete suggestions for selecting a |
| 265 | // category. Since a category identified by a composite key of catalog and |