diff --git a/src/builders/buildArgBuilder.ts b/src/builders/buildArgBuilder.ts index 5df19ef..6189456 100644 --- a/src/builders/buildArgBuilder.ts +++ b/src/builders/buildArgBuilder.ts @@ -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 = []; + let args: Array = []; if (!value) { return args; } @@ -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; }; diff --git a/src/builders/cleanArgBuilder.ts b/src/builders/cleanArgBuilder.ts index c3a2606..87d71d4 100644 --- a/src/builders/cleanArgBuilder.ts +++ b/src/builders/cleanArgBuilder.ts @@ -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; }; diff --git a/src/builders/nugetPushArgBuilder.ts b/src/builders/nugetPushArgBuilder.ts index 8746ebe..983b4c9 100644 --- a/src/builders/nugetPushArgBuilder.ts +++ b/src/builders/nugetPushArgBuilder.ts @@ -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; }; diff --git a/src/builders/publishArgBuilder.ts b/src/builders/publishArgBuilder.ts index 93daaf0..6cca188 100644 --- a/src/builders/publishArgBuilder.ts +++ b/src/builders/publishArgBuilder.ts @@ -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; }; diff --git a/src/builders/restoreArgBuilder.ts b/src/builders/restoreArgBuilder.ts index ce653f3..0c4a5f6 100644 --- a/src/builders/restoreArgBuilder.ts +++ b/src/builders/restoreArgBuilder.ts @@ -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; }; diff --git a/src/schema/interfaces/IBuildModel.ts b/src/schema/interfaces/IBuildModel.ts index 7b9edb4..2651996 100644 --- a/src/schema/interfaces/IBuildModel.ts +++ b/src/schema/interfaces/IBuildModel.ts @@ -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} + * @memberof IBuildModel + */ + additionalArgs?: string[]; /** * * Log the command to the console diff --git a/src/schema/interfaces/ICleanModel.ts b/src/schema/interfaces/ICleanModel.ts index a799633..b06cd16 100644 --- a/src/schema/interfaces/ICleanModel.ts +++ b/src/schema/interfaces/ICleanModel.ts @@ -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} + * @memberof ICleanModel + */ + additionalArgs?: string[]; /** * * Log the command to the console diff --git a/src/schema/interfaces/INugetPushModel.ts b/src/schema/interfaces/INugetPushModel.ts index 1c95ea1..7f1281a 100644 --- a/src/schema/interfaces/INugetPushModel.ts +++ b/src/schema/interfaces/INugetPushModel.ts @@ -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} + * @memberof INugetPushModel + */ + additionalArgs?: string[]; /** * Logs the command we run to the console * diff --git a/src/schema/interfaces/IPackModel.ts b/src/schema/interfaces/IPackModel.ts index 3c3fce7..a468160 100644 --- a/src/schema/interfaces/IPackModel.ts +++ b/src/schema/interfaces/IPackModel.ts @@ -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} + * @memberof IPackModel + */ + additionalArgs?: string[]; /** * Log the command to the console * diff --git a/src/schema/interfaces/IPublishModel.ts b/src/schema/interfaces/IPublishModel.ts index 46fb07a..4e40073 100644 --- a/src/schema/interfaces/IPublishModel.ts +++ b/src/schema/interfaces/IPublishModel.ts @@ -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} + * @memberof IPublishModel + */ + additionalArgs?: string[]; /** * * Log the command to the console diff --git a/src/schema/interfaces/IRestoreModel.ts b/src/schema/interfaces/IRestoreModel.ts index 0ec34ba..d316605 100644 --- a/src/schema/interfaces/IRestoreModel.ts +++ b/src/schema/interfaces/IRestoreModel.ts @@ -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} + * @memberof IRestoreModel + */ + additionalArgs?: string[]; /** * * Log the command to the console