Skip to content
/ yamlook Public

Search occurrences of dot-notated yaml keys.

License

Notifications You must be signed in to change notification settings

sl4vr/yamlook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yamlook

Yamlook searches for dot-notated yaml keys occurrences in yaml files. It might be handy if you have localization or deep configs and you don't know where one or another value comes from.

For instance you have such code:

<%= link_to t("admin.marketing.reports.some_report.title"), some_report_path(format: "csv") %>

Run yamlook admin.marketing.reports.some_report.title in terminal and it will show up all occurrences of that value in your internationalization yaml files. If you have all the internationalization in one yaml file, you will likely have to specify some root key as well, e.g. yamlook en.admin.marketing.reports.some_report.title.

Installation

$ gem install yamlook

Usage

Run yamlook in terminal with dot-notated yaml keys as argument:

$ yamlook some.deep.key.in.you.yaml.file

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sl4vr/yamlook.

License

The gem is available as open source under the terms of the MIT License.

About

Search occurrences of dot-notated yaml keys.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages