Skip to content

Commit

Permalink
Merge pull request #154 from texei/package-upgrade-type
Browse files Browse the repository at this point in the history
Added upgrade-type flag to "texei package dependencies install" command #153
  • Loading branch information
FabienTaillon authored Mar 18, 2024
2 parents 16845a1 + 07851ad commit 4135755
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion messages/package.dependencies.install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
11 changes: 11 additions & 0 deletions src/commands/texei/package/dependencies/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export default class Install extends SfCommand<PackageDependenciesInstallResult>
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,
};
Expand Down Expand Up @@ -261,6 +266,12 @@ export default class Install extends SfCommand<PackageDependenciesInstallResult>
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');
Expand Down

0 comments on commit 4135755

Please sign in to comment.