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.
187 KiB
v0.5.0 Latest
2026-03-26 15:29:45 +11:00
Languages
Go 91.8%
Makefile 4.8%
Shell 3.4%