Commit 67a3e4c
refactor: replace print_error+typer.Exit pattern with error_exit in runner.py
Three call sites in runner.py used print_error() followed by raise
typer.Exit(1), bypassing the error_exit() helper that already exists for
this exact pattern. Switch to error_exit() throughout, which also lets
the install_hint flow through the hint= parameter rather than a separate
console.print call. Removes the now-unused typer, get_console, and
print_error imports.
Co-authored-by: Ralphify <noreply@ralphify.co>1 parent 24326d0 commit 67a3e4c
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
45 | | - | |
| 41 | + | |
46 | 42 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 43 | + | |
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
| |||
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
70 | | - | |
71 | | - | |
| 63 | + | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| |||
0 commit comments