VPNStatus icon indicating copy to clipboard operation
VPNStatus copied to clipboard

Machine-readable output for vpnutil

Open Spaider opened this issue 2 years ago • 1 comments

It would be nice to have machine-readable output for vpnutil. JSON looks like obvious choice these days.

Spaider avatar Nov 15 '21 11:11 Spaider

Sounds like a great idea for the list and status options for vpnutil

Timac avatar Nov 15 '21 20:11 Timac

@Spaider vpnutil list now outputs such a json:

{
  "VPNs" : [
    {
      "name" : "VPN1",
      "status" : "Connected"
    },
    {
      "name" : "VPN2",
      "status" : "Disconnected"
    },
    {
      "name" : "VPN3",
      "status" : "Disconnected"
    }
  ]
}

Timac avatar Aug 31 '23 20:08 Timac