Commit 3728728
authored
Allow
Fun change here. This PR allows the `let` command to be used at the end
of a pipeline.
<img width="2316" height="1538" alt="image"
src="https://github.com/user-attachments/assets/8acf9a8e-79c1-4be8-8fb6-93966f671fc4"
/>
Disallow infinite ranges when used with `let` at the end of the pipeline
<img width="1911" height="1203" alt="image"
src="https://github.com/user-attachments/assets/dfed053c-8b5c-476c-9b09-c3df3ca7dc38"
/>
Related #16404, #11951
## Release notes summary - What our users need to know
The `let` command is now allowed to be at the end of the pipeline when a
variable name is also provided.
```nushell
ls | get name | let files
```
## Tasks after submitting
<!-- Remove any tasks which aren't relevant for your PR, or add your own
-->
- [ ] Update the
[documentation](https://github.com/nushell/nushell.github.io)let to be able to be used at the end of the pipeline (#17247)1 parent 9989a11 commit 3728728
File tree
4 files changed
+57
-16
lines changed- crates
- nu-cmd-lang/src/core_commands
- nu-engine/src/compile
- nu-parser
- src
- tests
4 files changed
+57
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | 308 | | |
311 | | - | |
312 | | - | |
313 | 309 | | |
314 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
315 | 317 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6051 | 6051 | | |
6052 | 6052 | | |
6053 | 6053 | | |
6054 | | - | |
| 6054 | + | |
6055 | 6055 | | |
6056 | 6056 | | |
6057 | 6057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3169 | 3169 | | |
3170 | 3170 | | |
3171 | 3171 | | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
0 commit comments