I've been doing some work with pygmy lately, understanding how some things have been designed and putting my own services in place.
I've noticed some repetition which would could easily be remediated, so instead of copy and pasting for new services, such as portainer or traefik as I'm working on independently I thought you might have some interested in this.
It's basic, but it does improve the elegance of the tool - at least in the places it can be used.
Streamlined functions for patterns used for container start, state and kill processes
Added comments for these functions
Updates relevant calls to these processes to use the new functions
I've been doing some work with pygmy lately, understanding how some things have been designed and putting my own services in place.
I've noticed some repetition which would could easily be remediated, so instead of copy and pasting for new services, such as portainer or traefik as I'm working on independently I thought you might have some interested in this.
It's basic, but it does improve the elegance of the tool - at least in the places it can be used.