(cmd *cobra.Command, args []string, toComplete string)
| 194 | } |
| 195 | |
| 196 | func (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 | } |
no outgoing calls