File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/commands/force/package/beta Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class PackageDeleteCommand extends SfdxCommand {
23
23
noprompt : flags . boolean ( {
24
24
char : 'n' ,
25
25
description : messages . getMessage ( 'noPrompt' ) ,
26
- longDescription : messages . getMessage ( 'noPrompt ' ) ,
26
+ longDescription : messages . getMessage ( 'noPromptLong ' ) ,
27
27
} ) ,
28
28
package : flags . string ( {
29
29
char : 'p' ,
@@ -39,8 +39,9 @@ export class PackageDeleteCommand extends SfdxCommand {
39
39
} ;
40
40
41
41
public async run ( ) : Promise < PackageSaveResult > {
42
+ const promptMsg = this . flags . undelete ? 'promptUndelete' : 'promptDelete' ;
42
43
const accepted =
43
- this . flags . noprompt || this . flags . json ? true : await this . ux . confirm ( messages . getMessage ( 'prompt' ) ) ;
44
+ this . flags . noprompt || this . flags . json ? true : await this . ux . confirm ( messages . getMessage ( promptMsg ) ) ;
44
45
if ( ! accepted ) {
45
46
throw messages . createError ( 'promptDeleteDeny' ) ;
46
47
}
You can’t perform that action at this time.
0 commit comments