magefile / mage

a Make/rake-like dev tool using Go
https://magefile.org
Apache License 2.0
4.01k stars 250 forks source link

Enhancement: Soft assertions #507

Open mcandre opened 1 month ago

mcandre commented 1 month ago

Hi,

I'd like more documentation on soft assertions.

The API appears to support temporarily ignoring process exit codes from mage tasks, by implementing/wrapping tasks in a task type signature that elides the error type.

If this is the case, would like to see example code snippets in the primary mage docs, to make this feature easier to find.