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:
parent
ede2ffab60
commit
7077b0ce65
@ -9,6 +9,7 @@ lint:
|
||||
desc: Runs golint
|
||||
cmds:
|
||||
- golint .
|
||||
- golint ./execext
|
||||
- golint ./cmd/task
|
||||
|
||||
test:
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user