From 71bceb6c162cb2c9118bb995371f5a610b8bb6d5 Mon Sep 17 00:00:00 2001 From: sameer-motwani Date: Wed, 28 Sep 2022 15:10:40 -0400 Subject: [PATCH] feat: added an option to the convert command --- messages/package_convert.md | 8 ++++++++ src/commands/force/package/beta/convert.ts | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/messages/package_convert.md b/messages/package_convert.md index ec1905b7..2a5ad7bb 100644 --- a/messages/package_convert.md +++ b/messages/package_convert.md @@ -42,6 +42,14 @@ bypass the installation key requirement (either --installationkey or --installat Bypasses the installation key requirement. If you bypass this requirement, anyone can install your package. Either an --installationkey value or the --installationkeybypass flag is required. +# definitionfile + +path to a definition file similar to scratch org definition file that contains the list of features and org preferences that the metadata of the package version depends on + +# longDefinitionfile + +The path to a definition file similar to scratch org definition file that contains the list of features and org preferences that the metadata of the package version depends on. + # wait minutes to wait for the package version to be created diff --git a/src/commands/force/package/beta/convert.ts b/src/commands/force/package/beta/convert.ts index ba5c814f..ecceb760 100644 --- a/src/commands/force/package/beta/convert.ts +++ b/src/commands/force/package/beta/convert.ts @@ -41,6 +41,11 @@ export class PackageConvert extends SfdxCommand { longDescription: messages.getMessage('longKey'), exactlyOne: ['installationkey', 'installationkeybypass'], }), + definitionfile: flags.filepath({ + char: 'f', + description: messages.getMessage('definitionfile'), + longDescription: messages.getMessage('longDefinitionfile'), + }), installationkeybypass: flags.boolean({ char: 'x', description: messages.getMessage('keyBypass'), @@ -84,6 +89,7 @@ export class PackageConvert extends SfdxCommand { { wait: this.flags.wait as Duration, installationKey: this.flags.installationkey as string, + definitionfile: this.flags.definitionfile as string, installationKeyBypass: this.flags.installationkeybypass as boolean, buildInstance: this.flags.buildinstance as string, },