(cmd *cobra.Command)
| 256 | } |
| 257 | |
| 258 | func validateFromGroupAndProjectFlags(cmd *cobra.Command) error { |
| 259 | if getFlagString(cmd, "from-group") != "" && |
| 260 | getFlagString(cmd, "from-project") != "" { |
| 261 | return newUsedTooManyFlagError("from-group", "from-project") |
| 262 | } |
| 263 | if getFlagString(cmd, "from-group") == "" && |
| 264 | getFlagString(cmd, "from-project") == "" { |
| 265 | return newSetAtLeastOneFlagError("from-group", "from-project") |
| 266 | } |
| 267 | return nil |
| 268 | } |
| 269 | |
| 270 | func validateFromProjectFlag(cmd *cobra.Command) error { |
| 271 | if getFlagString(cmd, "from-project") == "" { |
no test coverage detected