unkinben 103ebb2393
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
Support comma-separated -F for querying multiple facts
`node-lookup -jF ipaddress,enc_role` returned `{}` because it queried a single
fact literally named "ipaddress,enc_role". Requesting several facts per host is
a natural need (e.g. pairing an address with its role).

- Split -F on commas (splitFactNames) and match any of them via an "or" over
  ["=","name",<n>] clauses (nameFilter); a single name keeps the plain "="
  form.
- Key JSON output by each result's real fact name so all requested facts appear
  under the host (previously keyed by the raw -F string).
- Update the -F flag help and add unit tests (split, single vs multi query
  shape, multi-fact JSON).
2026-07-05 17:16:07 +10:00
S
Description
A CLI tool written in Go that queries the PuppetDB API to look up and filter node facts.
297 KiB
v0.5.7 Latest
2026-08-15 14:50:35 +10:00
Languages
Go 93.6%
Makefile 3.9%
Shell 2.5%