8 releases
0.1.7 | Jan 26, 2025 |
---|---|
0.1.6 | Jan 7, 2025 |
0.1.4 | Dec 17, 2024 |
#51 in #productivity
28KB
778 lines
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.
Dependencies
~1.3–1.9MB
~38K SLoC