多 YAML 无头编辑器

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

This package is not auto-updated.

Last update: 2024-09-26 04:24:53 UTC


README

多 YAML 无头编辑器

安装

composer global require intraworlds/myhe

使用

# 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

待办事项

  • delete 命令(从找到的文件中删除匹配的键)
  • edit 命令(按定义的规则编辑值)
  • 单元测试当然
  • 支持嵌套键 DB_*.value
  • 正确的值匹配

许可证

MIT