github.com/kcmerrill/alfred@v0.0.0-20180727171036-06445dcb5e3d/pkg/alfred/check.go (about) 1 package alfred 2 3 func check(task Task, context *Context, tasks map[string]Task) { 4 if task.Check == "" { 5 return 6 } 7 8 dir, _ := task.dir(context) 9 if testCommand(translate(task.Check, context), dir) { 10 context.Skip = "check" 11 } 12 }