Rename commands to cmds
This commit is contained in:
parent
74fc847f6c
commit
afc8559df2
8
task.go
8
task.go
@ -25,9 +25,9 @@ package main
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
type task struct {
|
type task struct {
|
||||||
Deps []string
|
Deps []string
|
||||||
Links []link
|
Links []link
|
||||||
Commands []command
|
Cmds []command
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *task) process(srcDir, dstDir string, conf *config, flags int) error {
|
func (this *task) process(srcDir, dstDir string, conf *config, flags int) error {
|
||||||
@ -48,7 +48,7 @@ func (this *task) process(srcDir, dstDir string, conf *config, flags int) error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, currCmd := range this.Commands {
|
for _, currCmd := range this.Cmds {
|
||||||
if err := currCmd.process(dstDir, flags); err != nil {
|
if err := currCmd.process(dstDir, flags); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user