updated build to not require main FF repo

This commit is contained in:
reven
2022-01-10 10:36:47 +13:00
parent bef561830e
commit f96566a6e9
41 changed files with 50786 additions and 60 deletions

View File

@@ -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();