mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
yj: add mnemonics, remove unnecessary space (#21757)
This commit is contained in:
committed by
GitHub
parent
97590bf618
commit
0f0eb05222
+7
-7
@@ -3,26 +3,26 @@
|
||||
> Convert between YAML, TOML, JSON, and HCL, preserving map order.
|
||||
> More information: <https://github.com/sclevine/yj>.
|
||||
|
||||
- Convert YAML to JSON (default) from `stdin` and write the result to `stdout`:
|
||||
- Convert [y]AML to JSON (default) from `stdin` and write the result to `stdout`:
|
||||
|
||||
`yj < {{file.yml}} -y`
|
||||
`yj < {{file.yml}} -y`
|
||||
|
||||
- Convert TOML to YAML:
|
||||
- Convert [t]OML to [y]AML:
|
||||
|
||||
`yj < {{file.toml}} -ty`
|
||||
|
||||
- Convert JSON to TOML with indentation:
|
||||
- Convert [j]SON to [t]OML with [i]ndentation:
|
||||
|
||||
`yj < {{file.json}} -jti`
|
||||
|
||||
- Convert HCL to JSON:
|
||||
- Convert H[c]L to [j]SON:
|
||||
|
||||
`yj < {{file.hcl}} -cj`
|
||||
|
||||
- Convert YAML to HCL ignoring inf/NaN conversion:
|
||||
- Convert [y]AML to H[c]L ignoring inf/[n]aN conversion:
|
||||
|
||||
`yj < {{file.yml}} -ycn`
|
||||
|
||||
- Display version:
|
||||
- Display [v]ersion:
|
||||
|
||||
`yj -v`
|
||||
|
||||
Reference in New Issue
Block a user