I would like to propose refactoring the repository so that most of the logic is moved out of the main package and into a new package called warp or cfwarp.
That way, the main package can call library functions to log in, start the server/tunnel, etc, as would a Caddy plugin or k8s ingress controller, without duplicating code.
I'm starting on this locally already, and if I can get it working I'll submit a PR.
I would like to propose refactoring the repository so that most of the logic is moved out of the
mainpackage and into a new package calledwarporcfwarp.That way, the
mainpackage can call library functions to log in, start the server/tunnel, etc, as would a Caddy plugin or k8s ingress controller, without duplicating code.I'm starting on this locally already, and if I can get it working I'll submit a PR.