prepare the execute part

This commit is contained in:
Artur Stolear
2019-11-22 15:43:19 +02:00
parent 55452e96e3
commit f78d4bc5ba
8 changed files with 110 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export class Argument {
}
export interface IGitVersionTool {
install: (versionSpec: string, includePrerelease: boolean) => Promise<void>;
run: (...params: Argument[]) => Promise<IExecResult>;
run: (options: IGitVersionOptions) => Promise<IExecResult>;
}
export interface IExecResult {
stdout: string;
@@ -40,3 +40,12 @@ export interface IExecResult {
code: number;
error: Error;
}
export interface IGitVersionOptions {
targetPath: string;
useConfigFile: boolean;
configFilePath: string;
updateAssemblyInfo: boolean;
updateAssemblyInfoFilename: string;
additionalArguments: string;
}