tailscale/version
Brad Fitzpatrick ba5aa2c486 version, cmd/tailscale: add version.Meta, tailscale version --json
Add `tailscale version --json` JSON output mode. This will be used
later for a double-opt-in (per node consent like Tailscale SSH +
control config) to let admins do remote upgrades via `tailscale
update` via a c2n call, which would then need to verify the
cmd/tailscale found on disk for running tailscale update corresponds
to the running tailscaled, refusing if anything looks amiss.

Plus JSON output modes are just nice to have, rather than parsing
unstable/fragile/obscure text formats.

Updates #6995
Updates #6907

Change-Id: I7821ab7fbea4612f4b9b7bdc1be1ad1095aca71b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-01-20 21:04:30 -08:00
..
distro paths, version/distro: detect Synology DSM version better, use for socket path 2022-12-02 09:54:08 -08:00
.gitignore version: greatly simplify redo nonsense, now that we use VERSION. 2020-11-02 19:54:44 -08:00
cmdname.go all: use strs.CutPrefix and strs.CutSuffix more 2022-11-21 14:32:16 -08:00
cmdname_ios.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
cmp.go version: don't allocate parsing unsupported versions, empty strings 2021-07-01 14:25:50 -07:00
cmp_test.go safesocket: remove the IPN protocol support 2022-11-28 20:44:59 -08:00
export_test.go safesocket: remove the IPN protocol support 2022-11-28 20:44:59 -08:00
modinfo_test.go net/tlsdial,tstest,version: use go command from $PATH 2023-01-03 09:30:23 -08:00
print.go version: advertise unstable track in CLI, daemon start-up 2023-01-13 06:36:58 -08:00
prop.go version, cmd/tailscale: add version.Meta, tailscale version --json 2023-01-20 21:04:30 -08:00
race.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
race_off.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
version.go version, cmd/tailscale: add version.Meta, tailscale version --json 2023-01-20 21:04:30 -08:00
version_test.go safesocket: remove the IPN protocol support 2022-11-28 20:44:59 -08:00