(params: { cliHost: CLIHost; package: PackageConfiguration })
| 628 | } |
| 629 | |
| 630 | export async function createFeaturesTempFolder(params: { cliHost: CLIHost; package: PackageConfiguration }): Promise<string> { |
| 631 | const { cliHost } = params; |
| 632 | const { version } = params.package; |
| 633 | // Create temp folder |
| 634 | const tmpFolder: string = cliHost.path.join(await getCacheFolder(cliHost), 'container-features', `${version}-${Date.now()}`); |
| 635 | await cliHost.mkdirp(tmpFolder); |
| 636 | return tmpFolder; |
| 637 | } |
| 638 | |
| 639 | export async function getCacheFolder(cliHost: CLIHost): Promise<string> { |
| 640 | return cliHost.path.join(await cliHost.tmpdir(), cliHost.platform === 'linux' ? `devcontainercli-${await cliHost.getUsername()}` : 'devcontainercli'); |
no test coverage detected