Commit cd9e53b
Fix update notification not showing on all commands
Extract command dispatch into run_command() so maybe_notify_update()
always runs after command completion, regardless of early returns.
Previously, commands like `lattice drift` with no drift would return
early and skip the update check. Also move the bare `lattice` update
check before Clap's --help (which exits the process).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 179ec1c commit cd9e53b
3 files changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1460 | 1460 | | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | | - | |
1464 | | - | |
| 1463 | + | |
1465 | 1464 | | |
| 1465 | + | |
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1472 | 1479 | | |
1473 | 1480 | | |
1474 | 1481 | | |
| |||
3409 | 3416 | | |
3410 | 3417 | | |
3411 | 3418 | | |
3412 | | - | |
3413 | | - | |
3414 | | - | |
3415 | 3419 | | |
3416 | 3420 | | |
3417 | 3421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | 358 | | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
| |||
0 commit comments