Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 402 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 402 Bytes

yamlsort

a simple tool to sort yaml

similar to yamlflatten this tool make it easy to diff 2 different yaml by sorting it (but not flatten it)

# example usage
./yamlsort input.yaml > output.yaml

for example:

# input.yaml
b:
 y: "abc"
 x:
  - 2
  - 1
 z: foo
c: bar
a: baz

became:

a: baz
b:
  x:
  - 2
  - 1
  "y": abc
  z: foo
c: bar