1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

Fix golint

This commit is contained in:
Andrey Nering 2017-04-24 10:25:38 -03:00
parent ede2ffab60
commit 7077b0ce65
3 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ lint:
desc: Runs golint
cmds:
- golint .
- golint ./execext
- golint ./cmd/task
test:

View File

@ -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))

View File

@ -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