opinionated per-resource human tables #5

Closed
opened 2026-05-11 13:55:33 -07:00 by agent-int · 1 comment
Collaborator

The generic JSON-to-table renderer in crates/unifi-cli/src/output/human.rs unions all keys, which is noisy for resource-shaped responses. Add curated column sets per resource (e.g. sites: name+id+role; devices: name+model+ip+state; clients: name+mac+ip+last_seen; networks: name+vlan+subnet). Keep the generic renderer as the fallback.

The generic JSON-to-table renderer in `crates/unifi-cli/src/output/human.rs` unions all keys, which is noisy for resource-shaped responses. Add curated column sets per resource (e.g. sites: name+id+role; devices: name+model+ip+state; clients: name+mac+ip+last_seen; networks: name+vlan+subnet). Keep the generic renderer as the fallback.
nic referenced this issue from a commit 2026-05-11 14:35:39 -07:00
Author
Collaborator

Implemented in f160869: output::tables registry with shape-detection by signature fields; curated column lists for devices/clients/sites/networks/wifi/acl/firewall/zones/vouchers/tags. List envelopes unwrap to data rows + totalCount footer; nested values rendered as /[N].

Implemented in f160869: output::tables registry with shape-detection by signature fields; curated column lists for devices/clients/sites/networks/wifi/acl/firewall/zones/vouchers/tags. List envelopes unwrap to data rows + totalCount footer; nested values rendered as <obj>/[N].
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nic/utilifi#5
No description provided.