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.
Right now the
workspace
package incmd
handles single interrupts to clean up the temp directory. This doesn't cancel anything running in a systemCommand
like git or npm.The
Command
struct has aProcess
which responds toKill()
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.