/* %if (methods.execute == "PluginNotification" || methods.execute == "PluginCheck" || methods.execute == "PluginEvent") { */
// %require "command",
%attribute %string "command",
+ %attribute %function "command",
%attribute %array "command" {
%attribute %string "*"
+ %attribute %function "*",
},
%attribute %dictionary "arguments" {
%attribute %string "*",
Dictionary::Ptr raw_arguments = commandObj->GetArguments();
Value command;
- if (!raw_arguments || raw_command.IsObjectType<Array>())
+ if (!raw_arguments || raw_command.IsObjectType<Array>() || raw_command.IsObjectType<Function>())
command = MacroProcessor::ResolveMacros(raw_command, macroResolvers, cr, NULL,
PluginUtility::EscapeMacroShellArg, resolvedMacros, useResolvedMacros);
else {