aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDennis Fink2026-09-27 15:19:59 +0200
committerDennis Fink2026-09-27 15:21:53 +0200
commita9934b8a44ccd6f482e7399f931412e8b43033f4 (patch)
treea07bb151d120161f9f69fcddde9cb9531cc22478 /README.md
parentf898ed214f19155b842a537756a22c6dcc64b379 (diff)
downloadprometheus-pacman-exporter-a9934b8a44ccd6f482e7399f931412e8b43033f4.tar.gz
prometheus-pacman-exporter-a9934b8a44ccd6f482e7399f931412e8b43033f4.zip
refactor(commands): model package queries explicitly
Introduce a PackageQuery type to group each command with its description, metric, and accepted exit codes. Move the static pacman queries into module-level constants and construct only the update and optional AUR queries at runtime. Use immutable command tuples throughout and rename success_codes to accepted_exit_codes to better describe the command execution contract.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions