Closed stewartadam closed 4 months ago
+1. This would be great for custom scripts.
I tried to implement it in 543fef9a9501ad782f03ad6d70f3c492e8b78ad2.
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).
Modern versions of
ip
support a-j
flag to output as machine-readable JSON, would be great to have this on MacOS too!