Commit e3e0528
committed
fix(cli): use :init.get_plain_arguments directly, drop ADO_ARGS workaround
Burrito's Zig wrapper passes CLI args via native argv after -extra,
so :init.get_plain_arguments/0 returns them correctly with internal
whitespace preserved. The earlier ADO_ARGS env-var workaround (which
relied on String.split/2) was both unnecessary and lossy — env vars
are null-terminated C strings, so they can't carry args with
spaces losslessly.
Companion to deps/burrito commit removing the ADO_ARGS env-var
write from the Zig launcher.
Verified end-to-end:
- escript: 'ado prs diff "Employee Management" ...' parses correctly
- Burrito binary: same command parses correctly with whitespace
in project name intact
- All 367 tests pass; Credo clean1 parent 01e53c7 commit e3e0528
2 files changed
Lines changed: 12 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
27 | 23 | | |
28 | | - | |
29 | | - | |
30 | 24 | | |
31 | 25 | | |
32 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments