I'm reusing this source for a GitHub Actions project. Since this repo is not set up as a true Python module, it is a little difficult to reuse it in another project. I think probably we should move it to a true Python module in the long term, but that would impact the ease of use of just having this as a standalone script.
This was the smallest change I could make to allow me to reuse this in another project.
Change
Create a function to perform most of the work
to handle the commandline interface and invoke
that if run as a script.
Background
I'm reusing this source for a GitHub Actions project. Since this repo is not set up as a true Python module, it is a little difficult to reuse it in another project. I think probably we should move it to a true Python module in the long term, but that would impact the ease of use of just having this as a standalone script.
This was the smallest change I could make to allow me to reuse this in another project.
Change
Create a function to perform most of the work to handle the commandline interface and invoke that if run as a script.