From 07851ada21b01b6a490d6828e7b91e04c5e5afd1 Mon Sep 17 00:00:00 2001 From: Fabien Taillon Date: Mon, 18 Mar 2024 18:15:16 +0100 Subject: [PATCH] Added upgrade-type flag to "texei package dependencies install" command #153 --- messages/package.dependencies.install.md | 6 +++++- package.json | 2 +- src/commands/texei/package/dependencies/install.ts | 11 +++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/messages/package.dependencies.install.md b/messages/package.dependencies.install.md index bb0546f..a8beca6 100644 --- a/messages/package.dependencies.install.md +++ b/messages/package.dependencies.install.md @@ -16,7 +16,7 @@ comma-separated list of the packages to install related dependencies # flags.securitytype.summary -security access type for the installed package (see force:package:install for default value) +security access type for the installed package (see sf packageinstall for default value) # flags.namespaces.summary @@ -33,3 +33,7 @@ allow Remote Site Settings and Content Security Policy websites to send or recei # flags.apexcompile.summary compile all Apex in the org and package, or only Apex in the package (see force:package:install for default value) + +# flags.upgrade-type.summary + +upgrade type for the package installation; available only for unlocked packages (see sf packageinstall for default value) diff --git a/package.json b/package.json index b2c8864..8161556 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "texei-sfdx-plugin", "description": "Texeï's plugin for sfdx", - "version": "2.3.2", + "version": "2.3.3", "author": "Texeï", "bugs": "https://github.com/texei/texei-sfdx-plugin/issues", "dependencies": { diff --git a/src/commands/texei/package/dependencies/install.ts b/src/commands/texei/package/dependencies/install.ts index 515b2af..6caeeb5 100644 --- a/src/commands/texei/package/dependencies/install.ts +++ b/src/commands/texei/package/dependencies/install.ts @@ -71,6 +71,11 @@ export default class Install extends SfCommand summary: messages.getMessage('flags.apexcompile.summary'), required: false, }), + 'upgrade-type': Flags.string({ + char: 't', + summary: messages.getMessage('flags.upgrade-type.summary'), + required: false, + }), // loglevel is a no-op, but this flag is added to avoid breaking scripts and warn users who are using it loglevel, }; @@ -261,6 +266,12 @@ export default class Install extends SfCommand args.push(`${flags.apexcompile}`); } + // UPGRADE TYPE + if (flags['upgrade-type']) { + args.push('--upgrade-type'); + args.push(`${flags['upgrade-type']}`); + } + // WAIT const wait = flags.wait != null ? flags.wait : defaultWait; args.push('--wait');