Skip to content

wangkuiyi/yamlfmt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yamlfmt

Build Status

I tried various beautifier of YAML files, but none of them satisfies me.

So, I decided to write this one based on https://github.com/miekg/yamlfmt/blob/master/fmt.go.

Usage

  • To beautify one or more files and write to stdout:

    yamlfmt a.yaml b.yaml c.yaml
  • To beautify one or more files in the replace mode:

    yamlfmt -w a.yaml b.yaml c.yaml
  • To beautify stdin and write to stdout:

    cat a.yaml | yamlfmt
  • To beautify stdin and write to a file:

    cat a.yaml | yamlfmt > b.yaml

Releases

No releases published

Packages

No packages published

Languages

  • Go 61.5%
  • Shell 38.5%