MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / CompleteClusters

Function CompleteClusters

internal/cmd/plugin/plugin.go:209–211  ·  view source on GitHub ↗

CompleteClusters will complete the cluster name when necessary getting the list from the current namespace

(ctx context.Context, args []string, toComplete string)

Source from the content-addressed store, hash-verified

207
208// CompleteClusters will complete the cluster name when necessary getting the list from the current namespace
209func CompleteClusters(ctx context.Context, args []string, toComplete string) []string {
210 return completeClusters(ctx, Client, Namespace, args, toComplete)
211}
212
213// RequiresArguments will show the help message in case no argument has been provided
214func RequiresArguments(nArgs int) cobra.PositionalArgs {

Callers 15

clusterCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
NewCmdFunction · 0.92
cmd.goFile · 0.92
NewCmdFunction · 0.92

Calls 1

completeClustersFunction · 0.85

Tested by

no test coverage detected