def Kc.merge.got
import bend-kube-runtime@0.2.0.0/src/client.bend as Clientimport Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/config.bend as K
602# Merges the files of a KUBECONFIG list in order; a file that does not
603# exist is skipped, as client-go skips it.
604def Kc.merge.got(acc: Maybe<&2, J.Json>, r: Result<&2, &2, String, J.Json>) -> Maybe<&2, J.Json>:
605 match acc r:
606 case Some{+a} Done{+b}:
607 Some{K.Kube.merge(a, b)}
608 case None{} Done{b}:
609 Some{b}
610 case a Fail{e}:
611 a