This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Commit ccbc12f
authored
chore: update from urface/cli/v2 to v3 and fix a few outdated files (#672)
### **PR Type**
Enhancement
___
### **Description**
- Migrate from urfave/cli/v2 to v3 with API changes
- Update CLI flag configuration to use Sources instead of EnvVars
- Refactor function signatures to use cli.Command instead of cli.Context
- Add CLI documentation generation command
___
### Diagram Walkthrough
```mermaid
flowchart LR
A["urfave/cli/v2"] --> B["urfave/cli/v3"]
B --> C["Updated Flag Configuration"]
B --> D["Function Signature Changes"]
B --> E["CLI Documentation Generation"]
C --> F["EnvVars → Sources"]
D --> G["cli.Context → cli.Command"]
```
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>10
files</summary><table>
<tr>
<td><strong>config.go</strong><dd><code>Update config functions for
cli/v3 compatibility</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-6ed50c9d309f6e7cf03742253995dfc65ae67702ae9c4aeb650b24a9b87cf377">+46/-46</a>
</td>
</tr>
<tr>
<td><strong>db.go</strong><dd><code>Refactor database pool creation for
new CLI</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-644e121bc5cd81a5aeca411a3b94f595b16b01f59917f5d2bf604a659e73ccdd">+5/-4</a>
</td>
</tr>
<tr>
<td><strong>email.go</strong><dd><code>Update email configuration and
error handling</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-a6364ed092c8bd789262322ec1e0108c274323462a0af0b7c7dd10a07f0bc449">+27/-27</a>
</td>
</tr>
<tr>
<td><strong>enum.go</strong><dd><code>Simplify enum value handling and
remove helpers</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-0172565db430c88e75447650002d7f88f34d425f694332142dd16350d79c19d3">+8/-29</a>
</td>
</tr>
<tr>
<td><strong>jwt_getter.go</strong><dd><code>Update JWT getter
configuration for cli/v3</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-7e1ff4031caa178d9066e3eb8e9055636a219fc8517cac9bcf34c63033586006">+11/-11</a>
</td>
</tr>
<tr>
<td><strong>logger.go</strong><dd><code>Refactor logging configuration
and flag processing</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-94894c27740fc35b5b4808f22d4a897030db993d1d9343221de51e505594612c">+20/-12</a>
</td>
</tr>
<tr>
<td><strong>migrations.go</strong><dd><code>Update migration functions
for new CLI interface</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-8902ab7f0135be38b5d4c9e50105df8c79a3f7c4ce73c6006ed9cc751d652a7b">+10/-10</a>
</td>
</tr>
<tr>
<td><strong>oauth.go</strong><dd><code>Update OAuth provider
configuration functions</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-82367f3f24a804b47ced852a588881c0846894bc0edf1ca3bdc6aa5aef7c37b2">+96/-94</a>
</td>
</tr>
<tr>
<td><strong>serve.go</strong><dd><code>Major CLI flag migration and
server configuration</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-a900f3187c126bacf5c9c5b1745b5d14bc583c01ab8f1ca84ae449751c224b68">+218/-218</a></td>
</tr>
<tr>
<td><strong>main.go</strong><dd><code>Add CLI documentation generation
and update app structure</code></dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261">+57/-9</a>
</td>
</tr>
</table></details></td></tr><tr><td><strong>Miscellaneous</strong></td><td><details><summary>5
files</summary><table>
<tr>
<td><strong>add_security_key_test.go</strong><dd><code>Add nolintlint
directive to test constant</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-e4bf9e60809ed847fc55d2859540ba867f91b5534f5ea339d689f5a80c832c10">+1/-1</a>
</td>
</tr>
<tr>
<td><strong>elevate_webauthn_test.go</strong><dd><code>Add nolintlint
directive to test constant</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-47ef225c96c0aa63c67e926b18c922a14e7ccbd71145ffe646da196d3cc13880">+1/-1</a>
</td>
</tr>
<tr>
<td><strong>sign_in_webauthn_test.go</strong><dd><code>Add nolintlint
directive to test constant</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-a920a6aad3937fe5b208622b01177a4b04a182240e113b6fd1a231b12e7ed20f">+1/-1</a>
</td>
</tr>
<tr>
<td><strong>index.html</strong><dd><code>Remove WebAuthn test HTML
file</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051">+0/-194</a>
</td>
</tr>
<tr>
<td><strong>audit-ci.jsonc</strong><dd><code>Remove Node.js audit
configuration file</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-4ede69da2a1704e53e08b8d647a315c202f037cc9277f16c94176d9622d261c6">+0/-7</a>
</td>
</tr>
</table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>7
files</summary><table>
<tr>
<td><strong>CLAUDE.md</strong><dd><code>Update development guide title
and content</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7">+51/-42</a>
</td>
</tr>
<tr>
<td><strong>DEVELOPERS.md</strong><dd><code>Remove outdated Node.js
development guide</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-bd017515eb79a7fb7569b1d15e8963ea380123d4fdf779978dd4b3ab7500fd10">+0/-77</a>
</td>
</tr>
<tr>
<td><strong>README.md</strong><dd><code>Update installation and
configuration documentation</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5">+11/-9</a>
</td>
</tr>
<tr>
<td><strong>SECURITY.md</strong><dd><code>Update security vulnerability
reporting URL</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-f6ed156e4bf5c791680662464b94ea5d753f219ee816b385f67870e2c0d7d4c7">+1/-1</a>
</td>
</tr>
<tr>
<td><strong>cli.md</strong><dd><code>Add comprehensive CLI
documentation</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-27c8c22b45605a0ddf42ce8017b6b2a68cb3b10534c18bf4a781e230d7b92361">+481/-0</a>
</td>
</tr>
<tr>
<td><strong>configuration.md</strong><dd><code>Update configuration
documentation references</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180">+1/-1</a>
</td>
</tr>
<tr>
<td><strong>environment-variables.md</strong><dd><code>Remove outdated
environment variables documentation</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-24284b831e81f770335038e710187e2feb0c7c3f46148c31fea108516ce1ae59">+0/-127</a>
</td>
</tr>
</table></details></td></tr><tr><td><strong>Dependencies</strong></td><td><details><summary>2
files</summary><table>
<tr>
<td><strong>go.mod</strong><dd><code>Update dependencies for
urfave/cli/v3 migration</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6">+7/-4</a>
</td>
</tr>
<tr>
<td><strong>go.sum</strong><dd><code>Update dependency checksums for new
versions</code>
</dd></td>
<td><a
href="https://github.com/nhost/hasura-auth/pull/672/files#diff-3295df7234525439d778f1b282d146a4f1ff6b415248aaac074e8042d9f42d63">+6/-8</a>
</td>
</tr>
</table></details></td></tr></tr></tbody></table>
</details>
___1 parent d070758 commit ccbc12f
135 files changed
Lines changed: 8987 additions & 11299 deletions
File tree
- docs
- go
- cmd
- controller
- vendor
- github.com
- cpuguy83/go-md2man/v2/md2man
- urfave
- cli-docs/v3
- cli
- v2
- v3
- autocomplete
- xrash/smetrics
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | | - | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | | - | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | | - | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | | - | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
214 | | - | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
221 | | - | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
238 | | - | |
| 241 | + | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
243 | | - | |
| 246 | + | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
257 | | - | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
262 | | - | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
279 | | - | |
| 282 | + | |
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
| |||
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
320 | | - | |
| 327 | + | |
321 | 328 | | |
322 | 329 | | |
323 | 330 | | |
| |||
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| 347 | + | |
| 348 | + | |
340 | 349 | | |
341 | 350 | | |
342 | 351 | | |
| |||
350 | 359 | | |
351 | 360 | | |
352 | 361 | | |
353 | | - | |
| 362 | + | |
354 | 363 | | |
355 | 364 | | |
356 | 365 | | |
| |||
379 | 388 | | |
380 | 389 | | |
381 | 390 | | |
382 | | - | |
| 391 | + | |
383 | 392 | | |
384 | 393 | | |
385 | | - | |
| 394 | + | |
386 | 395 | | |
387 | 396 | | |
388 | 397 | | |
| |||
404 | 413 | | |
405 | 414 | | |
406 | 415 | | |
407 | | - | |
| 416 | + | |
408 | 417 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | | - | |
53 | | - | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
91 | | - | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
This file was deleted.
0 commit comments