(cmd *cobra.Command)
| 188 | } |
| 189 | |
| 190 | func prepareInteractivity(cmd *cobra.Command) { |
| 191 | if canPrompt(cmd) || !iostream.IsInputTerminal() { |
| 192 | cmd.Flags().VisitAll(func(flag *pflag.Flag) { |
| 193 | _ = cmd.Flags().SetAnnotation(flag.Name, cobra.BashCompOneRequiredFlag, []string{"false"}) |
| 194 | }) |
| 195 | } |
| 196 | } |
no test coverage detected