Skip to content

Commit a9f862f

Browse files
authored
fix: restore hub flag on org:delete (#581)
* fix: restore flag for hub * chore: snapshot
1 parent ecb638d commit a9f862f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

command-snapshot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{
4141
"command": "force:org:delete",
4242
"plugin": "@salesforce/plugin-org",
43-
"flags": ["api-version", "json", "loglevel", "no-prompt", "target-org"],
43+
"flags": ["api-version", "json", "loglevel", "no-prompt", "target-org", "targetdevhubusername"],
4444
"alias": []
4545
},
4646
{

messages/delete.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ To mark the org for deletion without being prompted to confirm, specify --noprom
2222

2323
No prompt to confirm deletion.
2424

25+
# flags.targetdevhubusername
26+
27+
The targetdevhubusername flag exists only for backwards compatibility. It is not necessary and has no effect.
28+
2529
# confirmDelete
2630

2731
Enqueue %s org with name: %s for deletion? Are you sure (y/n)?

src/commands/force/org/delete.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ export class Delete extends SfCommand<DeleteResult> {
3131
};
3232
public static readonly flags = {
3333
'target-org': requiredOrgFlagWithDeprecations,
34+
targetdevhubusername: Flags.string({
35+
summary: messages.getMessage('flags.targetdevhubusername'),
36+
char: 'v',
37+
hidden: true,
38+
deprecated: {
39+
version: '58.0',
40+
message: messages.getMessage('flags.targetdevhubusername'),
41+
},
42+
}),
3443
'api-version': orgApiVersionFlagWithDeprecations,
3544
'no-prompt': Flags.boolean({
3645
char: 'p',

0 commit comments

Comments
 (0)