FF-1697: additional scripting languages

This commit is contained in:
John Andrews
2024-08-04 20:15:06 +12:00
parent a38e0a026d
commit 9ad51503b8
5 changed files with 19 additions and 19 deletions

View File

@@ -25,10 +25,10 @@ public class ShellScript : ScriptBase
[Required]
[DefaultValue(@"
# A Shell script can communicate with FileFlows to determine which output to call next by using exit codes.
# Exit codes are zero-based, so:
# Exit Code 0 corresponds to Output 1
# Exit Code 1 corresponds to Output 2
# Exit Code 2 corresponds to Output 3
# Exit codes are used to determine the output, so:
# Exit Code 0 corresponds to Finish Flow
# Exit Code 1 corresponds to Output 1
# Exit Code 2 corresponds to Output 2
# and so on. Exit codes outside the defined range will be treated as a failure output.
# Replace {file.FullName} and {file.Orig.FullName} with actual values
@@ -43,8 +43,8 @@ echo ""Original file location: $OriginalFile""
# Example: Copy the working file to a backup location
# cp ""$WorkingFile"" ""/path/to/backup/$(basename \""$WorkingFile\"")""
# Set the exit code to 0
exit 0
# Set the exit code to 1
exit 1
")]
[Code(2, "sh")]
public override string Code { get; set; }