Skip to content

kokizzu/yamlsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages