wordpress-mobile / release-toolkit-gutenberg-mobile

Automation Scripts for Releasing Gutenberg-Mobile Updates to the WordPress Mobile Apps.
Mozilla Public License 2.0
5 stars 2 forks source link

Cancel any commands when recieveing a signal interupt #211

Open jhnstn opened 9 months ago

jhnstn commented 9 months ago

Right now the workspace package in cmd handles single interrupts to clean up the temp directory. This doesn't cancel anything running in a system Command like git or npm.

The Command struct has a Process which responds to Kill() to kill the process. Commands can also have a context which should let us know which command is being run from the top level cmd packages.