(cmd *cobra.Command, i commandInput, value interface{})
| 88 | } |
| 89 | |
| 90 | func askArgument(cmd *cobra.Command, i commandInput, value interface{}) error { |
| 91 | if canPrompt(cmd) { |
| 92 | return ask(i, value, nil, false) |
| 93 | } |
| 94 | |
| 95 | return fmt.Errorf("missing a required argument: %s", i.GetName()) |
| 96 | } |