export async function runAzKubeconfigCommandBlocking()

in src/kubeconfigs/azCommands.ts [28:41]


export async function runAzKubeconfigCommandBlocking(
   azPath: string,
   args: string[],
   kubeconfigPath: string
): Promise<string> {
   const proc = spawn(azPath, args, {
      detached: true,
      stdio: 'ignore'
   })
   proc.unref()

   await sleep(AZ_TIMEOUT_SECONDS)
   return fs.readFileSync(kubeconfigPath).toString()
}