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:

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

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.