-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
127 lines (125 loc) · 5.15 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3"
includes:
os: ./Taskfile_{{OS}}.yml
tasks:
setup:
cmds:
- go install github.com/onsi/ginkgo/v2/ginkgo@latest
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin"
- echo "Installing git hooks..."
- cp .githooks/pre-commit .git/hooks/pre-commit
test:
cmds:
- go test ./... -skip "TestApp|TestBubbleprompt"
- ginkgo -v -race -p ./test
covTest:
cmds:
- go test ./... -skip "TestApp|TestBubbleprompt"
- go test ./test -v -tuicover -tuicoverpkg ../...
buildCoverage:
deps: [covTest]
cmds:
- go tool cover -html test/coverage.out -o coverage.html
coverage:
cmds:
- task: buildCoverage
- task: os:coverage
examples:
cmds:
- task: os:examples
- cd ./docs/examples && go build ./...
update:
cmds:
- go get -t -u ./... && go mod tidy
- cd examples && go get -t -u ./... && go mod tidy
- cd docs/examples && go get -t -u ./... && go mod tidy
gen-docs:
cmds:
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/04-Input/07-API.mdx ./input
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template-file frontmatter=./docs/templates/frontmatter.gotxt \
--template slug=/input/simpleinput/api \
--output ./docs/docs/04-Input/02-Simple/02-API.mdx ./input/simpleinput
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template-file frontmatter=./docs/templates/frontmatter.gotxt \
--template slug=/input/commandinput/api \
--output ./docs/docs/04-Input/03-Command/02-API.mdx ./input/commandinput
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template-file frontmatter=./docs/templates/frontmatter.gotxt \
--template slug=/input/lexerinput/api \
--output ./docs/docs/04-Input/04-Lexer/02-API.mdx ./input/lexerinput
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template-file frontmatter=./docs/templates/frontmatter.gotxt \
--template slug=/input/parserinput/api \
--output ./docs/docs/04-Input/05-Parser/02-API.mdx ./input/parserinput
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/06-Suggestion/02-API.mdx ./suggestion
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/06-Suggestion/01-Dropdown/02-API.mdx ./suggestion/dropdown
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/09-Utilities/01-Completer/02-API.mdx ./completer
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/09-Utilities/02-Executor/02-API.mdx ./executor
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/07-Renderer/02-API.mdx ./renderer
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/03-Prompt/02-API.mdx .
- |
gomarkdoc \
--template-file package=./docs/templates/package.gotxt \
--template-file text=./docs/templates/text.gotxt \
--template-file file=./docs/templates/file.gotxt \
--template frontmatter="" \
--output ./docs/docs/10-Searchbar/02-API.mdx ./searchbar