def Config.infer.home
import bend-kube-runtime@0.2.0.0/src/client.bend as Clientimport Base
import bend-kube-runtime@0.2.0.0/src/config.bend as K
664def Config.infer.home(r: Res(String)) -> IO(Result<&2, &2, String, K.Config>):
665 match r:
666 case Done{home}:
667 Config.from_kubeconfig(home ++ "/.kube/config", "")
668 case Fail{e}:
669 IO.pure(Result<&2, &2, String, K.Config>, Fail{"no KUBECONFIG, no cluster, no HOME"})