mirror of
https://github.com/go-task/task.git
synced 2025-02-03 13:22:11 +02:00
move some packages to the "internal" directory
- this makes it impossible to import these packages outside Task - as a side effect, it makes the root directory cleaner
This commit is contained in:
parent
c53db134c6
commit
33b167215d
@ -35,9 +35,7 @@ test:
|
||||
desc: Runs test suite
|
||||
deps: [install]
|
||||
cmds:
|
||||
- go test ./args
|
||||
- go test ./status
|
||||
- go test
|
||||
- go test {{.GO_PACKAGES}}
|
||||
|
||||
# https://github.com/goreleaser/goreleaser
|
||||
release:
|
||||
|
@ -3,7 +3,7 @@ GIT_COMMIT:
|
||||
|
||||
GO_PACKAGES:
|
||||
.
|
||||
./args
|
||||
./cmd/task
|
||||
./execext
|
||||
./status
|
||||
./internal/args
|
||||
./internal/execext
|
||||
./internal/status
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/go-task/task"
|
||||
"github.com/go-task/task/args"
|
||||
"github.com/go-task/task/internal/args"
|
||||
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/go-task/task"
|
||||
"github.com/go-task/task/args"
|
||||
"github.com/go-task/task/internal/args"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/go-task/task/execext"
|
||||
"github.com/go-task/task/status"
|
||||
"github.com/go-task/task/internal/execext"
|
||||
"github.com/go-task/task/internal/status"
|
||||
)
|
||||
|
||||
func (t *Task) isUpToDate(ctx context.Context) (bool, error) {
|
||||
|
7
task.go
7
task.go
@ -8,7 +8,7 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/go-task/task/execext"
|
||||
"github.com/go-task/task/internal/execext"
|
||||
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
@ -92,10 +92,7 @@ func (e *Executor) Run(calls ...Call) error {
|
||||
}
|
||||
|
||||
if e.Watch {
|
||||
if err := e.watchTasks(calls...); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return e.watchTasks(calls...)
|
||||
}
|
||||
|
||||
for _, c := range calls {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
"text/template"
|
||||
|
||||
"github.com/go-task/task/execext"
|
||||
"github.com/go-task/task/internal/execext"
|
||||
|
||||
"github.com/Masterminds/sprig"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user