Skip to content

Commit 33b1672

Browse files
committed
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
1 parent c53db13 commit 33b1672

File tree

15 files changed

+11
-16
lines changed

15 files changed

+11
-16
lines changed

Taskfile.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ test:
3535
desc: Runs test suite
3636
deps: [install]
3737
cmds:
38-
- go test ./args
39-
- go test ./status
40-
- go test
38+
- go test {{.GO_PACKAGES}}
4139

4240
# https://github.com/goreleaser/goreleaser
4341
release:

Taskvars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GIT_COMMIT:
33

44
GO_PACKAGES:
55
.
6-
./args
76
./cmd/task
8-
./execext
9-
./status
7+
./internal/args
8+
./internal/execext
9+
./internal/status

cmd/task/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77

88
"github.com/go-task/task"
9-
"github.com/go-task/task/args"
9+
"github.com/go-task/task/internal/args"
1010

1111
"github.com/spf13/pflag"
1212
)
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/go-task/task"
8-
"github.com/go-task/task/args"
8+
"github.com/go-task/task/internal/args"
99

1010
"github.com/stretchr/testify/assert"
1111
)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)