MCPcopy Create free account
hub / github.com/celer-pkg/celer / completion

Method completion

cmds/cmd_create.go:196–204  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

194}
195
196func (c *createCmd) completion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
197 var suggestions []string
198 for _, flag := range []string{"--platform", "--project", "--port"} {
199 if strings.HasPrefix(flag, toComplete) {
200 suggestions = append(suggestions, flag)
201 }
202 }
203 return suggestions, cobra.ShellCompDirectiveNoFileComp
204}

Callers 1

TestCreateCmd_CompletionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestCreateCmd_CompletionFunction · 0.76