How to compare keys in yaml files?

后端 未结 4 955
醉梦人生
醉梦人生 2021-02-14 15:27

There are two ruby on rails internationalization yaml files. One file is complete and another one is with missing keys. How can I compare two yaml files and see missing keys in

4条回答
  •  广开言路
    2021-02-14 16:05

    differz compares two YAML files and prints missing keys in the second file.

    It comes both as a library and as a command-line tool. You can install the latter with gem install differz.

提交回复
热议问题