mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-01-06 11:19:30 -06:00
updated build to not require main FF repo
This commit is contained in:
@@ -28,12 +28,8 @@ namespace FileFlows.BasicNodes.Functions
|
||||
public string Code { get; set; }
|
||||
|
||||
delegate void LogDelegate(params object[] values);
|
||||
|
||||
private NodeParameters NodeParameters;
|
||||
public override int Execute(NodeParameters args)
|
||||
{
|
||||
NodeParameters = args;
|
||||
|
||||
if (string.IsNullOrEmpty(Code))
|
||||
return -1; // no code, flow cannot continue doesnt know what to do
|
||||
|
||||
@@ -67,8 +63,7 @@ namespace FileFlows.BasicNodes.Functions
|
||||
})
|
||||
.SetValue("Logger", args.Logger)
|
||||
.SetValue("Variables", args.Variables)
|
||||
.SetValue("Flow", args)
|
||||
.SetValue("Process", Process);
|
||||
.SetValue("Flow", args);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -82,13 +77,6 @@ namespace FileFlows.BasicNodes.Functions
|
||||
}
|
||||
}
|
||||
|
||||
public ProcessResult Process(ExecuteArgs args)
|
||||
{
|
||||
var result = NodeParameters.Process.ExecuteShellCommand(args).Result;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//private Dictionary<string, object> ExplodeVariables(Dictionary<string, object> input)
|
||||
//{
|
||||
// Dictionary<string, object> result = new();
|
||||
|
||||
Reference in New Issue
Block a user