Files
actions/src/azure/Proxy.ts
Artur Stolear 26a2a80323 add azure
2019-11-14 16:52:34 +02:00

24 lines
789 B
TypeScript

import { createTempDir, executeDotNet } from './ToolLib';
import { findLocalTool, prependPath, cacheDir, isExplicitVersion, evaluateVersions, cleanVersion } from 'azure-pipelines-tool-lib/tool';
import { debug, setVariable, which } from 'azure-pipelines-task-lib/task';
function _which(tool: string, check?: boolean) : Promise<string> {
return Promise.resolve(which(tool, check));
}
import { IProxy } from '../Interfaces';
export const Proxy: IProxy = {
find: findLocalTool,
debug: debug,
exportVariable: setVariable,
addPath: prependPath,
which: _which,
cacheDir: cacheDir,
isExplicitVersion: isExplicitVersion,
evaluateVersions: evaluateVersions,
cleanVersion: cleanVersion,
createTempDir: createTempDir,
executeDotNet: executeDotNet
}