unkin-agent 499903ab2b
ci/woodpecker/tag/release Pipeline was successful
Query piped nodes when counting with -R/-F (#22)
With piped input, `-C` skipped the query and counted the piped lines' second column, so `... | node-lookup -R -C` reported the upstream fact instead of each node's role.

- query each piped node for `-R`/`-F` with `-C` and count the results
- count piped lines directly only for bare `-C` with piped input; `-C` with `-j`/`-1`/`-2` still requires `-R`/`-F`
- validate flags before reading stdin so invalid combos never block on an open pipe
- add tests for piped count paths, rejected combos and validation ordering

Reviewed-on: #22
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-10-13 21:04:18 +11:00
S
Description
A CLI tool written in Go that queries the PuppetDB API to look up and filter node facts.
337 KiB
v0.5.8 Latest
2026-10-13 21:04:18 +11:00
Languages
Go 94.1%
Makefile 3.6%
Shell 2.3%