How to make an entrypoint for an allgo algorithm

The entrypoint is the file that is launched by allgo to process a job.

The user creating the job may provide command line arguments and input files. The arguments are passed to the entrypoint command, and the input files are located in the current working directory.

For example, an app that works on text files could have the following entrypoint:

#!/bin/sh
for file in *.txt;
do
  echo "Processing $file"
  /usr/local/bin/myapp --input "$file" --output "$file.output" "$@"
done

In this example, myapp is run on each input text file and store the result as FILENAME.output. The extra argument "$@" is there to forward the command line arguments provided to the entrypoint.