Skip to content

Commit c231c98

Browse files
committed
feat: hide deprecated commands
1 parent 27a5a01 commit c231c98

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023, Salesforce.com, Inc.
1+
Copyright (c) 2024, Salesforce.com, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

src/commands/force/org/clone.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
9-
108
import {
119
Flags,
1210
SfCommand,
@@ -31,7 +29,7 @@ import {
3129
import requestFunctions from '../../../shared/sandboxRequest.js';
3230
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
3331

34-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
32+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
3533
const messages = Messages.loadMessages('@salesforce/plugin-org', 'clone');
3634

3735
export class OrgCloneCommand extends SfCommand<SandboxProcessObject> {
@@ -40,6 +38,7 @@ export class OrgCloneCommand extends SfCommand<SandboxProcessObject> {
4038
public static readonly description = messages.getMessage('description');
4139
public static readonly strict = false;
4240
public static state = 'deprecated';
41+
public static readonly hidden = true;
4342
public static deprecationOptions = {
4443
to: 'org:create:sandbox',
4544
version: '60.0',

src/commands/force/org/create.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
9-
108
import { Interfaces } from '@oclif/core';
119
import {
1210
Flags,
@@ -38,7 +36,7 @@ import {
3836
import requestFunctions from '../../../shared/sandboxRequest.js';
3937
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
4038

41-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
39+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
4240
const messages = Messages.loadMessages('@salesforce/plugin-org', 'create');
4341

4442
export interface ScratchOrgProcessObject {
@@ -57,6 +55,7 @@ export class Create extends SfCommand<CreateResult> {
5755
public static readonly examples = messages.getMessages('examples');
5856

5957
public static state = 'deprecated';
58+
public static readonly hidden = true;
6059
public static deprecationOptions = {
6160
message: messages.getMessage('deprecation'),
6261
};

src/commands/force/org/delete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
98
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand } from '@salesforce/sf-plugins-core';
109
import { AuthInfo, AuthRemover, Messages, Org, StateAggregator } from '@salesforce/core';
1110
import { orgThatMightBeDeleted } from '../../../shared/flags.js';
1211

13-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
12+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1413
const messages = Messages.loadMessages('@salesforce/plugin-org', 'delete');
1514

1615
export type DeleteResult = {
@@ -23,6 +22,7 @@ export class Delete extends SfCommand<DeleteResult> {
2322
public static readonly description = messages.getMessage('description');
2423
public static readonly examples = messages.getMessages('examples');
2524
public static state = 'deprecated';
25+
public static readonly hidden = true;
2626
public static deprecationOptions = {
2727
message: messages.getMessage('deprecation'),
2828
};

src/commands/force/org/status.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
9-
108
import {
119
Flags,
1210
SfCommand,
@@ -28,14 +26,15 @@ import {
2826
} from '@salesforce/core';
2927
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
3028

31-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
29+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
3230
const messages = Messages.loadMessages('@salesforce/plugin-org', 'status');
3331

3432
export class OrgStatusCommand extends SfCommand<SandboxProcessObject> {
3533
public static readonly summary = messages.getMessage('summary');
3634
public static readonly description = messages.getMessage('description');
3735
public static readonly examples = messages.getMessages('examples');
3836
public static state = 'deprecated';
37+
public static readonly hidden = true;
3938
public static deprecationOptions = {
4039
to: 'org:resume:sandbox',
4140
version: '60.0',

0 commit comments

Comments
 (0)