MCPcopy Create free account
hub / github.com/clouditor/clouditor / ValidArgsGetCatalogs

Function ValidArgsGetCatalogs

cli/session.go:256–262  ·  view source on GitHub ↗
(_ *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

254}
255
256func 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

Callers 1

TestValidArgsGetCatalogsFunction · 0.92

Calls 1

getCatalogsFunction · 0.85

Tested by 1

TestValidArgsGetCatalogsFunction · 0.74