Commit 4bcc509
authored
refactor: migrate all CLI output to rich and remove emojis (#36)
This PR standardizes the application's output handling by replacing Python's native `print()` with `rich.console.print()`. This change ensures thread safety, consistent styling across environments, and better handling of standard streams (stdout vs stderr).
Changes:
- src/git_pulsar/daemon.py: Refactor logging and status updates to use a global console instance.
- src/git_pulsar/ops.py: Convert interactive prompts and feedback to `rich`.
- src/git_pulsar/service.py: Standardize service installation feedback.
- tests/test_ops.py: Update mocks to target the new console object and match new output strings.
Visual Changes:
- Replaced non-standard emojis (❌, ✅, 🚀) with professional text labels ([ERROR], [SUCCESS], [INFO]) to improve terminal compatibility and professional presentation.1 parent 9fce452 commit 4bcc509
4 files changed
Lines changed: 144 additions & 91 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
311 | | - | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
317 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
318 | 322 | | |
319 | 323 | | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
323 | 327 | | |
324 | 328 | | |
325 | | - | |
| 329 | + | |
326 | 330 | | |
327 | 331 | | |
328 | 332 | | |
| |||
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
425 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
| |||
0 commit comments