Open Silex opened 4 weeks ago
so your suggestion is that --json
is always available, even when client is not configured?
Yes, with data like { "status": "NeedLogin" }
(and additional available info)
That said I'm open for a better way of reporting "Client is not configured".
netbird status | grep NeedsLogin
works but it does not feel very robust.
My use case is that I'm doing an OpenWRT netbird package with automatic client configuration.
I'm trying to detect wether netbird was already configured or not.
Right now I'm doing "netbird status | grep NeedsLogin" but it'd be more logical if I could parse the json whatever stage netbird is (needslogin, disconnected, connected).