Commit 20befd8
feat(jtv-cli): add
Exposes the existing format_code() formatter as a CLI command:
jtv fmt <file> print formatted source to stdout
jtv fmt - write read stdin, write formatted back to file
jtv fmt --write <file> overwrite file in place
jtv fmt --check <file> exit 1 if file would be reformatted (CI mode)
Closes the last item in TECHNICAL_ROADMAP.md §7 Planned Commands.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>jtv fmt subcommand1 parent 2678ff9 commit 20befd8
1 file changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
| |||
156 | 170 | | |
157 | 171 | | |
158 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
159 | 179 | | |
160 | 180 | | |
161 | 181 | | |
| |||
272 | 292 | | |
273 | 293 | | |
274 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
275 | 322 | | |
276 | 323 | | |
277 | 324 | | |
| |||
0 commit comments