Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for -j (json) flag #49

Closed
stewartadam opened this issue Mar 30, 2023 · 2 comments
Closed

Add support for -j (json) flag #49

stewartadam opened this issue Mar 30, 2023 · 2 comments

Comments

@stewartadam
Copy link

stewartadam commented Mar 30, 2023

Modern versions of ip support a -j flag to output as machine-readable JSON, would be great to have this on MacOS too!

@BloodyFrag
Copy link

+1. This would be great for custom scripts.

@signal-09
Copy link
Contributor

I tried to implement it in 543fef9.
It is a bit rudimental but working. Not all the macOS ifconfig and netstat outputs are parsed, but enough to make some other project to work (e.g. vagrant-libvirt/vagrant-libvirt#1205 mentioned above).

@brona brona closed this as completed in 543fef9 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants