Spec-Zone.ru › Nushell

from yml for formats

Parse text as .yaml/.yml and create table.

Signature

> from yml {flags}

Input/output types:

input output
string any

Examples

Converts yaml formatted string to table.

> 'a: 1' | from yml
╭───┬───╮
│ a │ 1 │
╰───┴───╯

Converts yaml formatted string to table.

> '[ a: 1, b: [1, 2] ]' | from yml
╭───┬────┬───────────╮
│ # │ a  │     b     │
├───┼────┼───────────┤
│ 0 │  1 │    ❎     │
│ 1 │ ❎ │ ╭───┬───╮ │
│   │    │ │ 0 │ 1 │ │
│   │    │ │ 1 │ 2 │ │
│   │    │ ╰───┴───╯ │
╰───┴────┴───────────╯

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/from_yml.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API