working on output
This commit is contained in:
@@ -1,33 +1,35 @@
|
||||
export interface IVersionManager {
|
||||
isExplicitVersion: (versionSpec: string) => boolean;
|
||||
evaluateVersions: (versions: string[], versionSpec: string) => string;
|
||||
cleanVersion: (version: string) => string;
|
||||
isExplicitVersion(versionSpec: string): boolean;
|
||||
evaluateVersions(versions: string[], versionSpec: string): string;
|
||||
cleanVersion(version: string): string;
|
||||
}
|
||||
|
||||
export interface IBuildAgent {
|
||||
find: (toolName: string, versionSpec: string, arch?: string) => string;
|
||||
cacheDir: (sourceDir: string, tool: string, version: string, arch?: string) => Promise<string>;
|
||||
createTempDir: () => Promise<string>;
|
||||
debug: (message: string) => void;
|
||||
setFailed: (message: string, done?: boolean) => void;
|
||||
setSucceeded: (message: string, done?: boolean) => void;
|
||||
exportVariable: (name: string, val: string) => void;
|
||||
getVariable: (name: string) => string;
|
||||
addPath: (inputPath: string) => void;
|
||||
which: (tool: string, check?: boolean) => Promise<string>;
|
||||
exec: (exec: string, args: string[]) => Promise<IExecResult>;
|
||||
getSourceDir: () => string;
|
||||
find(toolName: string, versionSpec: string, arch?: string): string;
|
||||
cacheDir(sourceDir: string, tool: string, version: string, arch?: string): Promise<string>;
|
||||
createTempDir(): Promise<string>;
|
||||
debug(message: string): void;
|
||||
setFailed(message: string, done?: boolean): void;
|
||||
setSucceeded(message: string, done?: boolean): void;
|
||||
exportVariable(name: string, val: string): void;
|
||||
getVariable(name: string): string;
|
||||
addPath(inputPath: string): void;
|
||||
which(tool: string, check?: boolean): Promise<string>;
|
||||
exec(exec: string, args: string[]): Promise<IExecResult>;
|
||||
|
||||
getSourceDir(): string;
|
||||
isValidInputFile(input: string, file: string): boolean;
|
||||
fileExists(file: string): boolean;
|
||||
directoryExists(file: string): boolean;
|
||||
|
||||
setOutput(name: string, value: string): void;
|
||||
getInput(input: string, required?: boolean): string;
|
||||
getBooleanInput(input: string, required?: boolean): boolean;
|
||||
}
|
||||
|
||||
export interface IDotnetTool {
|
||||
run: (args: string[]) => Promise<IExecResult>;
|
||||
toolInstall: (toolName: string, versionSpec: string, checkLatest: boolean, includePre: boolean) => Promise<string>;
|
||||
run(args: string[]): Promise<IExecResult>;
|
||||
toolInstall(toolName: string, versionSpec: string, checkLatest: boolean, includePre: boolean): Promise<string>;
|
||||
}
|
||||
|
||||
export class Argument {
|
||||
@@ -35,8 +37,8 @@ export class Argument {
|
||||
}
|
||||
}
|
||||
export interface IGitVersionTool {
|
||||
install: (versionSpec: string, includePrerelease: boolean) => Promise<void>;
|
||||
run: (options: IGitVersionOptions) => Promise<IExecResult>;
|
||||
install(versionSpec: string, includePrerelease: boolean): Promise<void>;
|
||||
run(options: IGitVersionOptions): Promise<IExecResult>;
|
||||
}
|
||||
export interface IExecResult {
|
||||
stdout: string;
|
||||
|
||||
Reference in New Issue
Block a user