Just have a bracket on both bikes, and transfer the cable together with the light and hub,
just spiralling the cable down the fork blade. It may be handy to zip tie something to the top of the fork blades to hook the cable round so it doesn't drop in towards the brake and tyre.
For an even quicker transfer, I have seen interweb photos of a light mounted on a short plate with the other end clamped in the wheel QR. No need to even upplug the light from the hub - just put the wheel in, put the plate under the QR nut, aim the light and tighten the QR.