pay-respects/module-runtime-rules
2025-04-09 19:26:24 +02:00
..
src fix: runtime rules parsing panic 2025-04-09 18:54:54 +02:00
Cargo.toml v0.7.3 2025-04-09 19:26:24 +02:00
README.md docs: module readmes 2025-02-12 18:26:52 +01:00

Runtime Rules Module

Module for pay-respects which allows you to parse rules at runtime.

Syntax is currently 100% compatible with upstream's compile-time rules.

Rules are searched in these directories:

  • XDG_CONFIG_HOME, defaults to $HOME/.config.
  • XDG_CONFIG_DIRS, defaults to /etc/xdg.
  • XDG_DATA_DIRS, defaults to /usr/local/share:/usr/share.

The actual rule file should be placed under pay-respects/rules/, for example: ~/.config/pay-respects/rules/cargo.toml. To avoid parsing unnecessary rules, the name of the file MUST match the command name.