JustinGrote / ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
Other
77 stars 5 forks source link

Make sure tasks cancel if cmdlet is cancelled #23

Closed JustinGrote closed 8 months ago

JustinGrote commented 8 months ago

There are several situations where the tasks created by modulefast don't get stopped when the commands do. Ensure they are all rigged up with cancellationTokens and get cancelled/disposed on errors or other forms of cmdlet exit. Since we require PS 7.3+ the clean block is ideal for this.

JustinGrote commented 8 months ago

Fixed a43f0f8956df8834047e951a2cce427b64889d94