Commit 3bb54c2
committed
refactor: Finalize modular file structure
Cleanup main.rs to be minimal and focused:
- Simplified imports (removed redundant Command and Error imports)
- Reordered functions: main() first, then run_app(), then helpers
- Used fully qualified paths in check_gh_cli_installed
- Maintained clean 69-line structure
Main.rs now serves as clean entry point with:
- Module declarations (alphabetical)
- Re-exports for cross-module use
- Entry point (main, run_app)
- Helper utilities (executable_name, check_gh_cli_installed)
All 52 tests pass.1 parent 0093ed0 commit 3bb54c2
1 file changed
+17
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 22 | + | |
| 23 | + | |
37 | 24 | | |
38 | 25 | | |
39 | 26 | | |
| |||
52 | 39 | | |
53 | 40 | | |
54 | 41 | | |
55 | | - | |
56 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
| 57 | + | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
0 commit comments