Commit 27075ec
feat(cli_with_custom_uri): support environment base uri cli mode
Refactor shell command construction to use login shell (-l flag) on Unix-like systems,
ensuring that user environment variables are properly loaded from shell configuration
files (.bashrc, .profile, etc.) when executing the CLI through a pipe.
This change allows the CLI to access environment variables that may be required for
proper functionality, which is important when the command is invoked with stdin input.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 646f564 commit 27075ec
1 file changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
174 | | - | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
| |||
0 commit comments