Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/builders/buildArgBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IBuildModel } from "../schema/interfaces/IBuildModel";
* @param {BuildModel} value - the value to build arguments off of.
*/
export default (value: IBuildModel) => {
let args: Array<string|boolean> = [];
let args: Array<string|boolean|number> = [];
if (!value) {
return args;
}
Expand Down Expand Up @@ -39,5 +39,8 @@ export default (value: IBuildModel) => {
if (value.version) {
args = args.concat(`/p:Version=${value.version}`);
}
if (value.additionalArgs) {
args = args.concat(value.additionalArgs);
}
return args;
};
3 changes: 3 additions & 0 deletions src/builders/cleanArgBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ export default (value: ICleanModel) => {
if (value.version) {
args = args.concat(`/p:Version=${value.version}`);
}
if (value.additionalArgs) {
args = args.concat(value.additionalArgs);
}
return args;
};
3 changes: 3 additions & 0 deletions src/builders/nugetPushArgBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ export default (value: INugetPushModel) => {
if (value.noSymbols) {
args = args.concat(["--no-symbols"]);
}
if (value.additionalArgs) {
args = args.concat(value.additionalArgs);
}
return args;
};
3 changes: 3 additions & 0 deletions src/builders/publishArgBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ export default (value: IPublishModel) => {
if (value.version) {
args = args.concat(`/p:Version=${value.version}`);
}
if (value.additionalArgs) {
args = args.concat(value.additionalArgs);
}
return args;
};
3 changes: 3 additions & 0 deletions src/builders/restoreArgBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ export default (value: IRestoreModel) => {
if (value.version) {
args = args.concat(`/p:Version=${value.version}`);
}
if (value.additionalArgs) {
args = args.concat(value.additionalArgs);
}
return args;
};
8 changes: 8 additions & 0 deletions src/schema/interfaces/IBuildModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ export interface IBuildModel {
* @memberof IBuildModel
*/
version?: string;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof IBuildModel
*/
additionalArgs?: string[];
/**
*
* Log the command to the console
Expand Down
8 changes: 8 additions & 0 deletions src/schema/interfaces/ICleanModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export interface ICleanModel {
* @memberof ICleanModel
*/
version?: string;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof ICleanModel
*/
additionalArgs?: string[];
/**
*
* Log the command to the console
Expand Down
8 changes: 8 additions & 0 deletions src/schema/interfaces/INugetPushModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ export interface INugetPushModel {
* @memberof INugetPushModel
*/
noSymbols?: boolean;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof INugetPushModel
*/
additionalArgs?: string[];
/**
* Logs the command we run to the console
*
Expand Down
8 changes: 8 additions & 0 deletions src/schema/interfaces/IPackModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ export interface IPackModel {
* @memberof IPackModel
*/
version?: string;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof IPackModel
*/
additionalArgs?: string[];
/**
* Log the command to the console
*
Expand Down
8 changes: 8 additions & 0 deletions src/schema/interfaces/IPublishModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ export interface IPublishModel {
* @memberof IPublishModel
*/
runtime?: string;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof IPublishModel
*/
additionalArgs?: string[];
/**
*
* Log the command to the console
Expand Down
8 changes: 8 additions & 0 deletions src/schema/interfaces/IRestoreModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ export interface IRestoreModel {
* @memberof IRestoreModel
*/
version?: string;
/**
* Any extra options that should be passed to the program being run

*
* @type {Array<string>}
* @memberof IRestoreModel
*/
additionalArgs?: string[];
/**
*
* Log the command to the console
Expand Down