Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Dan Langille
Dan Langille
@dvl@bsd.network  ·  activity timestamp 2 weeks ago

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.

#FreeBSD #pkg

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.40 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct