diff --git a/Taskfile.yml b/Taskfile.yml index 816f138a..0f45c89f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -9,6 +9,7 @@ lint: desc: Runs golint cmds: - golint . + - golint ./execext - golint ./cmd/task test: diff --git a/cyclic.go b/cyclic.go index afa52895..cbc30b50 100644 --- a/cyclic.go +++ b/cyclic.go @@ -1,5 +1,6 @@ package task +// HasCyclicDep checks if a task tree has any cyclic dependency func HasCyclicDep(m map[string]*Task) bool { visits := make(map[string]struct{}, len(m)) diff --git a/execext/exec.go b/execext/exec.go index 0150e8da..b4977399 100644 --- a/execext/exec.go +++ b/execext/exec.go @@ -10,6 +10,7 @@ import ( "github.com/mvdan/sh/syntax" ) +// RunCommandOptions is the options for the RunCommand func type RunCommandOptions struct { Context context.Context Command string