Commit a9bfd72
committed
refactor: refactor system configuration detection
- Add system analysis to configuration initialization
- Simplify distribution detection to use runtime architecture instead of `lsb_release` command
- Improve username detection by checking both USER and USERNAME environment variables
- Replace direct environment variable access with system configuration methods in command executor
Signed-off-by: wecoding <wecoding@yeah.net>1 parent c138c05 commit a9bfd72
File tree
3 files changed
+13
-19
lines changed- internal
- options
- system
- ui/coders
3 files changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
379 | 381 | | |
380 | 382 | | |
381 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 89 | + | |
95 | 90 | | |
96 | 91 | | |
97 | 92 | | |
| |||
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | | - | |
| 125 | + | |
130 | 126 | | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
556 | 555 | | |
557 | 556 | | |
558 | 557 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
567 | 562 | | |
568 | 563 | | |
569 | 564 | | |
| |||
0 commit comments