Report progress from the command line
These create a space and report into it. Already have one? Open it and come back through the Connect menu, and its UUID is filled in for you.
Install it.
Create a space. It becomes the default, so nothing else needs configuring.
Create a task where the work starts, and keep the uuid.
Report as it moves. This is the call that goes in your loop, and the only one that knows the numbers.
Close it. This is what sends the notification, so call it for a failure too.
Or wrap a process that is not yours to change. It reports start and finish rather than counts, and exits with the command status.
In CI there is no config file to write, so pass it in the environment instead.