iproute2mac icon indicating copy to clipboard operation
iproute2mac copied to clipboard

Add support for -j (json) flag

Open stewartadam opened this issue 1 year ago • 1 comments

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

stewartadam avatar Mar 30 '23 18:03 stewartadam

+1. This would be great for custom scripts.

BloodyFrag avatar Feb 05 '24 12:02 BloodyFrag

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).

signal-09 avatar May 30 '24 12:05 signal-09