Multi YAML Headless Editor

v2.0.1 2022-03-02 16:37 UTC

This package is not auto-updated.

Last update: 2024-12-19 05:20:22 UTC


README

Multi YAML Headless Editor

Installation

composer global require intraworlds/myhe

Usage

# show available commands
myhe list

# show help for particular command
myhe help delete

# show all values of all keys
myhe show /dir/with/yamls

# find YAML file where are particular keys (DB_*)
myhe find -p ^DB_ /dir/with/yamls

# delete all (nested) *.description keys
myhe delete -p .* -p ^description$ /dir/with/yamls

# or any description key and subkeys (recursion)
myhe delete -r -p ^description$ /dir/with/yamls

# look for non-standard extenstions (yaml|yml by default)
myhe show -e conf /dir/with/yamls

# simple validation for syntax errors
myhe validate /dir/with/yamls

Todo

  • delete command (remove matching keys from found files)
  • edit command (edit values by defined rules)
  • unit tests of course
  • support for nested keys DB_*.value
  • proper value matching

License

MIT