I originally wrote this to make it so the service restart command doesn't just silently fail if there are no running tasks. But in the process of fixing that, I realized that the reason it was being entirely silent was that the printout that said Restarted tasks for Service("<service-name>"). at the end of service restart was not being printed. This was due to the function click.style() being used where I'm fairly sure click.secho() was intended.
So I corrected two places where that substitution was happening, and also added a code path to properly inform the user if there were no tasks to restart.
I originally wrote this to make it so the
service restart
command doesn't just silently fail if there are no running tasks. But in the process of fixing that, I realized that the reason it was being entirely silent was that the printout that saidRestarted tasks for Service("<service-name>").
at the end ofservice restart
was not being printed. This was due to the functionclick.style()
being used where I'm fairly sureclick.secho()
was intended.So I corrected two places where that substitution was happening, and also added a code path to properly inform the user if there were no tasks to restart.