Re: [PATCH] wg show: Add json output

2020-02-25 Thread Julian Orth
On 23/02/2020 12.00, Jason A. Donenfeld wrote: wg(8) is a unix text utility. ip(8) supports --json since 2017. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard

Re: [PATCH] wg show: Add json output

2020-02-25 Thread Kalin KOZHUHAROV
Hi Barry, Please read the reply below with a smile, it is just friendly sarcasm underlining my personal view. On Tue, Feb 25, 2020 at 1:50 AM Barry Scott wrote: > > On 23 Feb 2020, at 12:45, Arti Zirk wrote: > > > > On E, 2020-02-17 at 15:47 +1100, Matthew Oliver wrote: > >> Someone asked about

Re: [PATCH] wg show: Add json output

2020-02-24 Thread Barry Scott
> On 23 Feb 2020, at 12:45, Arti Zirk wrote: > > On E, 2020-02-17 at 15:47 +1100, Matthew Oliver wrote: >> Someone asked about this in the IRC channel, so quickly wrote up a >> patch to add it. No pressure if you do/don't want to merge it :) > > If you have wireguard-tools package installed t

Re: [PATCH] wg show: Add json output

2020-02-23 Thread Arti Zirk
On E, 2020-02-17 at 15:47 +1100, Matthew Oliver wrote: > Someone asked about this in the IRC channel, so quickly wrote up a > patch to add it. No pressure if you do/don't want to merge it :) If you have wireguard-tools package installed then it should be possible to use the incldued wg-json script

Re: [PATCH] wg show: Add json output

2020-02-23 Thread Matthew Oliver
Someone asked about this in the IRC channel, so quickly wrote up a patch to add it. No pressure if you do/don't want to merge it :) Matt On Mon, Feb 17, 2020 at 2:57 PM Matthew Oliver wrote: > This patch adds a new option to `wg show` called json. When > specified it'll output the WG interface

[PATCH] wg show: Add json output

2020-02-23 Thread Matthew Oliver
This patch adds a new option to `wg show` called json. When specified it'll output the WG interface in json output. It works with both given an interface or all. # wg show wg1 json [ { "interface": "wg1", "public_key": "Yh0kKjoqnJsxbCsTkQ/3uncEhdqa+EtJXCYcVzMdugs=", "pri