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