Proposal
The idea is to add som esugar on top of the existing code matchers:
Instead of this (example using the wait.ForExec strategy):
WithExitCodeMatcher(func(code int) bool {
return code == 0
})
having this:
It will internally call the code matcher.