feat: 支持禁用节点操作

This commit is contained in:
xream
2024-11-29 21:03:29 +08:00
parent 8d0a71d983
commit 5b28e1a4c9
2 changed files with 11 additions and 1 deletions

View File

@@ -86,6 +86,16 @@ async function processFn(
$options,
) {
for (const item of operators) {
if (item.disabled) {
$.log(
`Skipping disabled operator: "${
item.type
}" with arguments:\n >>> ${
JSON.stringify(item.args, null, 2) || 'None'
}`,
);
continue;
}
// process script
let script;
let $arguments = {};