diff options
| author | Dennis Fink | 2026-09-27 15:19:59 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-09-27 15:21:53 +0200 |
| commit | a9934b8a44ccd6f482e7399f931412e8b43033f4 (patch) | |
| tree | a07bb151d120161f9f69fcddde9cb9531cc22478 /pyproject.toml | |
| parent | f898ed214f19155b842a537756a22c6dcc64b379 (diff) | |
| download | prometheus-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
