From a37ee0cda8ae7ba3eb096da5be99e5ae950f0a5a Mon Sep 17 00:00:00 2001 From: mshanemc Date: Tue, 2 Jan 2024 11:31:02 -0600 Subject: [PATCH] feat: deprecateAliases --- LICENSE.txt | 2 +- src/commands/org/list/limits.ts | 4 ++-- src/commands/org/list/sobject/record-counts.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index f2cee7bb..6cfd8734 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2023, Salesforce.com, Inc. +Copyright (c) 2024, Salesforce.com, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/src/commands/org/list/limits.ts b/src/commands/org/list/limits.ts index c620a647..7a4215b6 100644 --- a/src/commands/org/list/limits.ts +++ b/src/commands/org/list/limits.ts @@ -5,7 +5,6 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - import { Messages, SfError } from '@salesforce/core'; import { SfCommand, @@ -14,7 +13,7 @@ import { requiredOrgFlagWithDeprecations, } from '@salesforce/sf-plugins-core'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-limits', 'display'); type ApiLimit = { @@ -34,6 +33,7 @@ export type ApiLimits = ApiLimit[]; export class LimitsApiDisplayCommand extends SfCommand { public static readonly aliases = ['force:limits:api:display', 'limits:api:display']; + public static readonly deprecateAliases = true; public static readonly summary = messages.getMessage('summary'); public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); diff --git a/src/commands/org/list/sobject/record-counts.ts b/src/commands/org/list/sobject/record-counts.ts index 54356143..097e1f8e 100644 --- a/src/commands/org/list/sobject/record-counts.ts +++ b/src/commands/org/list/sobject/record-counts.ts @@ -5,7 +5,6 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - import { Messages, SfError } from '@salesforce/core'; import { arrayWithDeprecation, @@ -15,7 +14,7 @@ import { SfCommand, } from '@salesforce/sf-plugins-core'; -Messages.importMessagesDirectoryFromMetaUrl(import.meta.url) +Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-limits', 'recordcounts'); export type RecordCount = { @@ -31,6 +30,7 @@ interface Result { export class LimitsRecordCountsDisplayCommand extends SfCommand { public static readonly aliases = ['force:limits:recordcounts:display', 'limits:recordcounts:display']; + public static readonly deprecateAliases = true; public static readonly summary = messages.getMessage('summary'); public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples');