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

Method completion

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

Source from the content-addressed store, hash-verified

234}
235
236func (d *deployCmd) completion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
237 var suggestions []string
238 for _, flag := range []string{"--snapshot", "--force", "--strip"} {
239 if strings.HasPrefix(flag, toComplete) {
240 suggestions = append(suggestions, flag)
241 }
242 }
243 return suggestions, cobra.ShellCompDirectiveNoFileComp
244}

Callers 1

TestDeployCmd_CompletionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDeployCmd_CompletionFunction · 0.76