mirror of
https://github.com/nushell/nushell
synced 2025-01-14 06:04:09 +00:00
25 lines
621 B
Markdown
25 lines
621 B
Markdown
|
# from-yaml
|
||
|
|
||
|
Parse text as `.yaml/.yml` and create table. Use this when nushell cannot determine the input file extension.
|
||
|
|
||
|
Syntax: `from-yaml`
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
```shell
|
||
|
> open command_from-yaml
|
||
|
title: from-yaml
|
||
|
type: command
|
||
|
flags: false
|
||
|
```
|
||
|
|
||
|
```shell
|
||
|
> open command_from-yaml | from-yaml
|
||
|
━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━
|
||
|
title │ type │ flags
|
||
|
───────────┼─────────┼───────
|
||
|
from-yaml │ command │ No
|
||
|
━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━
|
||
|
|
||
|
```
|