Files
tailscale/cmd
Kabir Sikand 5f79d959d3 cmd/tailscale/cli: render blueprint projection on tailscale leave
Before clearing Prefs.BlueprintID and logging out, capture the
current Status.Self.BlueprintConfig and display it after the logout
completes so the operator can see what configuration the node is
releasing. Best-effort: if the Status fetch fails or the projection
hasn't arrived yet, fall back to the short "Detached from blueprint
bp:<id> and logged out." line. Leave is reversible; we do not block
on a Status fetch.

Extracts two pure helpers (snapshotProjection, renderLeaveMessage)
so the display branches are unit-testable without a live daemon.

Updates #cleanup

Signed-off-by: Kabir Sikand <[email protected]>
2026-05-27 20:07:26 +00:00
..