I want structured output from `pkg repositories` (e.g. JSON, XML, something).
The goal: parse the data via my code.
Here's what we're dealing with:
[22:44 r730-01 dvl ~] % pkg repositories local
local: {
url : "http://fedex.int.unixathome.org/packages/FreeBSD:14:amd64/",
enabled : yes,
priority : 0,
signature_type : "PUBKEY",
pubkey : "/etc/ssl/slocum.unixathome.org.cert"
}
Before I go coding which might break with each update, is there an existing method?
Thanks.