Skip to content

Commit 2c15974

Browse files
committed
Release note addition for 'to yal'
1 parent e30744b commit 2c15974

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

2025-03-18-nushell_0_103_0.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ As part of this release, we also publish a set of [optional plugins](https://www
4646

4747
## Additions
4848

49+
### Save to YAML files with either `to yaml` or `to yml`
50+
51+
As pointed out in [#15240](https://github.com/nushell/nushell/issues/15240), it was previously possible to load data from YAML files using the `from yaml` or `from yml` commands, but only possible to save data using `to yaml`.
52+
Now you can use either `to yaml` or `to yml` indistinctly to save data into YAML files.
53+
54+
```nu
55+
> [[foo bar]; ["1" "2"]] | to yml
56+
- foo: '1'
57+
bar: '2'
58+
```
59+
60+
Thanks to this, the `save` command can also be used with the `.yml` extension:
61+
```nu
62+
> [[foo bar]; ["1" "2"]] | save test.yml
63+
```
64+
4965
## Breaking changes
5066

5167
## Deprecations

0 commit comments

Comments
 (0)