mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-11 00:10:29 -07:00
Format classic plugin names
This commit is contained in:
parent
11a623c212
commit
6dda238806
89 changed files with 95 additions and 88 deletions
|
|
@ -122,6 +122,13 @@ module.exports.plugin = plugin;`;
|
|||
errorEncountered = true;
|
||||
}
|
||||
|
||||
console.log(files[i]);
|
||||
// check if words in pluginDetails.Name are not capitalized
|
||||
if (pluginDetails.Name.split(' ').some((word) => word[0] !== word[0].toUpperCase())) {
|
||||
console.log(chalk.red(`Plugin Name is not capitalized '${folder}/${files[i]}'`));
|
||||
errorEncountered = true;
|
||||
}
|
||||
|
||||
if (!['Pre-processing', 'Post-processing'].includes(pluginDetails.Stage)) {
|
||||
console.log(chalk.red(`Plugin does not have a valid Type'${folder}/${files[i]}'`));
|
||||
errorEncountered = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue