diff --git a/src/ditamap/command.ts b/src/ditamap/command.ts index bc687520..322c6c06 100644 --- a/src/ditamap/command.ts +++ b/src/ditamap/command.ts @@ -104,7 +104,7 @@ export class Command extends Ditamap { description, binary: 'binary' in commandMeta && typeof commandMeta.binary === 'string' ? commandMeta.binary : 'unknown', commandWithUnderscores, - deprecated: (command.deprecated as boolean) ?? false, + deprecated: (command.deprecated as boolean) ?? state === 'deprecated' ?? false, examples, help, isBetaCommand: state === 'beta', diff --git a/src/ditamap/ditamap.ts b/src/ditamap/ditamap.ts index f3ff02ef..d0410ef3 100644 --- a/src/ditamap/ditamap.ts +++ b/src/ditamap/ditamap.ts @@ -59,7 +59,7 @@ export abstract class Ditamap { private readonly source: string; - public constructor(private filename: string, protected data: DitamapData) { + protected constructor(private filename: string, protected data: DitamapData) { this.source = join(Ditamap.templatesDir, this.getTemplateFileName()); this.destination = join(Ditamap.outputDir, filename); } @@ -104,6 +104,7 @@ export abstract class Ditamap { * @returns {object} */ protected async transformToDitamap(): Promise { + // debug(`Generating ${this.destination} from ${this.getTemplateFileName()}`); const src = await fs.readFile(this.source, 'utf8'); const template = hb.compile(src, { noEscape: false }); diff --git a/templates/command.hbs b/templates/command.hbs index 1ae9c9d4..44cff6d9 100644 --- a/templates/command.hbs +++ b/templates/command.hbs @@ -12,11 +12,11 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D <codeph otherprops="nolang">{{name}}</codeph>{{#if isClosedPilotCommand}} (Pilot){{/if}}{{#if isOpenPilotCommand}} (Pilot){{/if}}{{#if isBetaCommand}} (Beta){{/if}}{{#if deprecated}} (Deprecated){{/if}} - {{#if deprecated}}The command {{name}} has been deprecated and will be removed in v{{deprecated.version}}.0 or later. {{#if deprecated.to}} Use {{deprecated.to}} instead. {{/if}} {{/if}}{{summary}} + {{#if deprecated}}The command {{name}} has been deprecated{{#if deprecationOptions.version}} and will be removed in v{{deprecationOptions.version}} or later{{/if}}. {{#if deprecated.to}} Use {{deprecated.to}} instead. {{/if}} {{/if}}{{summary}} - + @@ -33,11 +33,7 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of - generally available products and features. You can provide feedback and suggestions for - the {{name}} command in the {{trailblazerCommunityName}} group in the - Trailblazer Community. + generally available products and features. {{/if}}{{#if isOpenPilotCommand}} {{/if}}{{#if isOpenPilotCommand}}
@@ -48,11 +44,7 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of - generally available products and features. You can provide feedback and suggestions for - the {{name}} command in the {{trailblazerCommunityName}} group in the - Trailblazer Community. + generally available products and features.
{{/if}}{{#if isBetaCommand}}
This feature is a Beta Service. Customers may opt to try such Beta Service in its sole discretion. Any use of the Beta Service is subject to the applicable Beta Services Terms provided at Agreements and Terms (https://www.salesforce.com/company/legal/agreements/).