MCPcopy Create free account
hub / github.com/ddev/ddev / configCompletionFunc

Function configCompletionFunc

cmd/ddev/cmd/config.go:792–796  ·  view source on GitHub ↗

configCompletionFunc returns a Cobra completion function with static values.

(values []string)

Source from the content-addressed store, hash-verified

790
791// configCompletionFunc returns a Cobra completion function with static values.
792func configCompletionFunc(values []string) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
793 return func(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
794 return values, cobra.ShellCompDirectiveNoFileComp
795 }
796}
797
798// configCompletionFuncWithCommas returns a Cobra completion function for comma-separated values.
799func configCompletionFuncWithCommas(values []string) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {

Callers 6

initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected