verifyNotGenerateConflict method
Implementation
void verifyNotGenerateConflict(String itemName, List<String> invalidSuffixes, String subcommand) {
final idx = invalidSuffixes.indexWhere((e) => itemName.endsWith(e));
if(idx >= 0) {
throwUsageError("The 'generate $subcommand` command cannot generate an item with a suffix among ${invalidSuffixes.join('|')}");
}
}