-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
160 lines (135 loc) · 3.56 KB
/
Taskfile.yaml
File metadata and controls
160 lines (135 loc) · 3.56 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: '3'
tasks:
lint:
desc: Run linters
cmds:
- golangci-lint run ./...
lint:fix:
desc: Run linters and fix issues
cmds:
- golangci-lint run --fix ./...
fmt:
desc: Format code
cmds:
- go fmt ./...
test:
desc: Run tests
cmds:
- go test {{.CLI_ARGS}} ./...
modernize:
desc: Modernize code
cmds:
- modernize ./...
install:
desc: Install catwalk locally
cmds:
- go install -v .
run:
desc: Run catwalk
aliases: [default]
cmds:
- go run .
release:
desc: Create and push a new tag following semver
vars:
NEXT:
sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
prompt: "This will release {{.NEXT}}. Continue?"
preconditions:
- sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
msg: Not on main branch
- sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
msg: "Git is dirty"
cmds:
- git commit --allow-empty -m "{{.NEXT}}"
- git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
- echo "Pushing {{.NEXT}}..."
- git push origin main --follow-tags
gen:all:
desc: Generate all provider configurations
aliases: [generate, gen]
cmds:
- task: gen:aihubmix
- task: gen:avian
- task: gen:chutes
- task: gen:copilot
- task: gen:cortecs
- task: gen:huggingface
- task: gen:ionet
- task: gen:nebius
- task: gen:neuralwatt
- task: gen:opencode-go
- task: gen:opencode-zen
- task: gen:openrouter
- task: gen:synthetic
- task: gen:venice
- task: gen:vercel
- task: gen:xai
gen:aihubmix:
desc: Generate aihubmix provider configurations
cmds:
- go run cmd/aihubmix/main.go
gen:avian:
desc: Generate avian provider configurations
cmds:
- go run cmd/avian/main.go
gen:chutes:
desc: Generate chutes provider configurations
cmds:
- go run cmd/chutes/main.go
gen:copilot:
desc: Generate copilot provider configurations
cmds:
- go run cmd/copilot/main.go
gen:cortecs:
desc: Generate cortecs provider configurations
cmds:
- go run cmd/cortecs/main.go
gen:huggingface:
desc: Generate huggingface provider configurations
cmds:
- go run cmd/huggingface/main.go
gen:ionet:
desc: Generate io.net provider configurations
cmds:
- go run cmd/ionet/main.go
gen:nebius:
desc: Generate Nebius provider configurations
cmds:
- go run cmd/nebius/main.go
gen:neuralwatt:
desc: Generate Neuralwatt provider configurations
cmds:
- go run cmd/neuralwatt/main.go
gen:opencode-go:
desc: Generate OpenCode Go provider configurations
cmds:
- go run cmd/opencode-go/main.go
gen:opencode-zen:
desc: Generate OpenCode Zen provider configurations
cmds:
- go run cmd/opencode-zen/main.go
gen:openrouter:
desc: Generate openrouter provider configurations
cmds:
- go run cmd/openrouter/main.go
gen:synthetic:
desc: Generate synthetic provider configurations
cmds:
- go run cmd/synthetic/main.go
gen:venice:
desc: Generate venice provider configurations
cmds:
- go run cmd/venice/main.go
gen:vercel:
desc: Generate vercel provider configurations
cmds:
- go run cmd/vercel/main.go
gen:xai:
desc: Generate xAI provider configurations
cmds:
- go run cmd/xai/main.go
update:
desc: Trigger the update workflow on GitHub
cmds:
- gh workflow run update.yml