Skip to content

Commit 9da567b

Browse files
Merge pull request #1061 from salesforcecli/jshackell-sfdc-patch-2
support dev preview commands
2 parents 11196cd + 3da9c85 commit 9da567b

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/ditamap/command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export class Command extends Ditamap {
119119
examples,
120120
help,
121121
isBetaCommand: state === 'beta',
122+
isPreviewCommand: state === 'preview',
122123
isClosedPilotCommand: state === 'closedPilot',
123124
isOpenPilotCommand: state === 'openPilot',
124125
trailblazerCommunityName,

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export type CommandData = {
113113
isClosedPilotCommand: boolean;
114114
isOpenPilotCommand: boolean;
115115
isBetaCommand: boolean;
116+
isPreviewCommand: boolean;
116117
deprecated: boolean;
117118
trailblazerCommunityUrl?: string;
118119
trailblazerCommunityName?: string;

templates/command.hbs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D
99
1010
-->
1111
{{!--Not all commands have a minor noun; some are just commandmajornoun:commandverb. This is a sample topic for a commmand with no minor noun.--}}
12-
<title><codeph otherprops="nolang">{{name}}</codeph>{{#if isClosedPilotCommand}} (Pilot){{/if}}{{#if isOpenPilotCommand}} (Pilot){{/if}}{{#if isBetaCommand}} (Beta){{/if}}{{#if deprecated}} (Deprecated){{/if}}</title>
12+
<title><codeph otherprops="nolang">{{name}}</codeph>{{#if isPreviewCommand}} (Developer Preview){{/if}}{{#if isClosedPilotCommand}} (Pilot){{/if}}{{#if isOpenPilotCommand}} (Pilot){{/if}}{{#if isBetaCommand}} (Beta){{/if}}{{#if deprecated}} (Deprecated){{/if}}</title>
1313
<shortdesc>
1414
<ph id="shortdesc">
1515
{{#if deprecated}}The command <codeph otherprops="nolang">{{name}}</codeph> has been deprecated{{#if deprecationOptions.version}} and will be removed in v{{deprecationOptions.version}} or later{{/if}}. {{#if deprecated.to}} Use <codeph otherprops="nolang">{{deprecated.to}}</codeph> instead. {{/if}} {{/if}}{{summary}}
@@ -48,6 +48,9 @@ IF YOU WANT TO CHANGE THIS CONTENT, CONTACT juliet.shackell@salesforce.com FOR D
4848
</section>{{/if}}{{#if isBetaCommand}}
4949
<section>
5050
<note>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 (<xref href="https://www.salesforce.com/company/legal/agreements/" format="html" scope="external" type="new-window:HTML">https://www.salesforce.com/company/legal/agreements/</xref>).</note>
51+
</section>{{/if}}{{#if isPreviewCommand}}
52+
<section>
53+
<note>This command is available as a developer preview. The command isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality developed with these commands or tools.</note>
5154
</section>{{/if}}
5255
{{#if help}}
5356
<section>

0 commit comments

Comments
 (0)