export async function downloadKompose()

in src/kompose-util.ts [54:68]


export async function downloadKompose(
   version: string = defaultStableKomposeVersion
): Promise<string> {
   let cachedToolpath = toolCache.find(komposeToolName, version)
   if (!cachedToolpath) {
      cachedToolpath = await setCachedToolPath(komposeToolName, version)
   }

   const komposePath = path.join(
      cachedToolpath,
      komposeToolName + getExecutableExtension()
   )
   fs.chmodSync(komposePath, 0o100) // execute/search by owner permissions to the tool
   return komposePath
}