@salesforce/plugin-command-reference 3.1.106 → 3.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/lib/commands/commandreference/generate.d.ts +1 -0
- package/lib/commands/commandreference/generate.js +10 -3
- package/lib/commands/commandreference/generate.js.map +1 -1
- package/lib/ditamap/command-helpers.d.ts +25 -0
- package/lib/ditamap/command-helpers.js +59 -0
- package/lib/ditamap/command-helpers.js.map +1 -0
- package/lib/ditamap/command.d.ts +1 -14
- package/lib/ditamap/command.js +2 -44
- package/lib/ditamap/command.js.map +1 -1
- package/lib/docs.d.ts +3 -1
- package/lib/docs.js +29 -27
- package/lib/docs.js.map +1 -1
- package/lib/generator-factory.d.ts +46 -0
- package/lib/generator-factory.js +89 -0
- package/lib/generator-factory.js.map +1 -0
- package/lib/markdown/cli-reference.d.ts +10 -0
- package/lib/markdown/cli-reference.js +50 -0
- package/lib/markdown/cli-reference.js.map +1 -0
- package/lib/markdown/command.d.ts +17 -0
- package/lib/markdown/command.js +257 -0
- package/lib/markdown/command.js.map +1 -0
- package/lib/markdown/index.d.ts +7 -0
- package/lib/markdown/index.js +23 -0
- package/lib/markdown/index.js.map +1 -0
- package/lib/markdown/markdown-base.d.ts +10 -0
- package/lib/markdown/markdown-base.js +39 -0
- package/lib/markdown/markdown-base.js.map +1 -0
- package/lib/markdown/root-index.d.ts +6 -0
- package/lib/markdown/root-index.js +37 -0
- package/lib/markdown/root-index.js.map +1 -0
- package/lib/markdown/toc.d.ts +8 -0
- package/lib/markdown/toc.js +68 -0
- package/lib/markdown/toc.js.map +1 -0
- package/lib/markdown/topic-commands.d.ts +8 -0
- package/lib/markdown/topic-commands.js +40 -0
- package/lib/markdown/topic-commands.js.map +1 -0
- package/lib/markdown/topic-index.d.ts +9 -0
- package/lib/markdown/topic-index.js +80 -0
- package/lib/markdown/topic-index.js.map +1 -0
- package/lib/utils.d.ts +1 -1
- package/messages/main.md +5 -1
- package/npm-shrinkwrap.json +1418 -234
- package/oclif.lock +365 -104
- package/oclif.manifest.json +14 -2
- package/package.json +18 -5
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { MarkdownBase } from './markdown-base.js';
|
|
17
|
+
const STATE_LABELS = {
|
|
18
|
+
beta: 'Beta',
|
|
19
|
+
preview: 'Developer Preview',
|
|
20
|
+
closedPilot: 'Closed Pilot',
|
|
21
|
+
openPilot: 'Open Pilot',
|
|
22
|
+
deprecated: 'Deprecated',
|
|
23
|
+
};
|
|
24
|
+
export class MarkdownToc extends MarkdownBase {
|
|
25
|
+
topicEntries;
|
|
26
|
+
constructor(topicEntries, outputDir) {
|
|
27
|
+
super('sfclireference-toc.yml', outputDir);
|
|
28
|
+
this.topicEntries = topicEntries;
|
|
29
|
+
}
|
|
30
|
+
static file() {
|
|
31
|
+
return 'sfclireference-toc.yml';
|
|
32
|
+
}
|
|
33
|
+
// eslint-disable-next-line class-methods-use-this
|
|
34
|
+
generate() {
|
|
35
|
+
const lines = [
|
|
36
|
+
'- title: Salesforce CLI Command Reference',
|
|
37
|
+
' link: cli_reference.md',
|
|
38
|
+
'- title: Release Notes',
|
|
39
|
+
' link: cli_reference_release_notes.md',
|
|
40
|
+
'- title: Deprecation Policy',
|
|
41
|
+
' link: cli_reference_deprecation.md',
|
|
42
|
+
];
|
|
43
|
+
const sorted = [...this.topicEntries].sort((a, b) => a.topic.localeCompare(b.topic));
|
|
44
|
+
for (const { topic, commandIds } of sorted) {
|
|
45
|
+
lines.push(`- title: ${topic} Commands`);
|
|
46
|
+
lines.push(` link: ${topic}/cli_reference_${topic}.md`);
|
|
47
|
+
lines.push(' topics:');
|
|
48
|
+
for (const { id, state, deprecated } of [...commandIds].sort((a, b) => a.id.localeCompare(b.id))) {
|
|
49
|
+
const commandWithUnderscores = id.replace(/:/g, '_');
|
|
50
|
+
const commandWithSpaces = id.replace(/:/g, ' ');
|
|
51
|
+
const stateLabel = deprecated
|
|
52
|
+
? ' (Deprecated)'
|
|
53
|
+
: state && STATE_LABELS[state]
|
|
54
|
+
? ` (${STATE_LABELS[state]})`
|
|
55
|
+
: '';
|
|
56
|
+
const isTopicLevelCommand = !id.includes(':');
|
|
57
|
+
const linkTarget = isTopicLevelCommand
|
|
58
|
+
? `cli_reference_${commandWithUnderscores}_command.md`
|
|
59
|
+
: `cli_reference_${commandWithUnderscores}.md`;
|
|
60
|
+
lines.push(` - title: ${commandWithSpaces}${stateLabel}`);
|
|
61
|
+
lines.push(` link: ${topic}/${linkTarget}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
lines.push('');
|
|
65
|
+
return Promise.resolve(lines.join('\n'));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=toc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toc.js","sourceRoot":"","sources":["../../src/markdown/toc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,YAAY,GAA2B;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAA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,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;gBAChD,MAAM,UAAU,GAAG,UAAU;oBAC3B,CAAC,CAAC,eAAe;oBACjB,CAAC,CAAC,KAAK,IAAI,YAAY,CAAC,KAAK,CAAC;wBAC9B,CAAC,CAAC,KAAK,YAAY,CAAC,KAAK,CAAC,GAAG;wBAC7B,CAAC,CAAC,EAAE,CAAC;gBACP,MAAM,mBAAmB,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC9C,MAAM,UAAU,GAAG,mBAAmB;oBACpC,CAAC,CAAC,iBAAiB,sBAAsB,aAAa;oBACtD,CAAC,CAAC,iBAAiB,sBAAsB,KAAK,CAAC;gBACjD,KAAK,CAAC,IAAI,CAAC,gBAAgB,iBAAiB,GAAG,UAAU,EAAE,CAAC,CAAC;gBAC7D,KAAK,CAAC,IAAI,CAAC,eAAe,KAAK,IAAI,UAAU,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SfTopic } from '../utils.js';
|
|
2
|
+
import { MarkdownBase } from './markdown-base.js';
|
|
3
|
+
export declare class MarkdownTopicCommands extends MarkdownBase {
|
|
4
|
+
private topic;
|
|
5
|
+
private topicMeta;
|
|
6
|
+
constructor(topic: string, topicMeta: SfTopic, outputDir: string);
|
|
7
|
+
protected generate(): Promise<string>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { join } from 'node:path';
|
|
17
|
+
import { MarkdownBase } from './markdown-base.js';
|
|
18
|
+
export class MarkdownTopicCommands extends MarkdownBase {
|
|
19
|
+
topic;
|
|
20
|
+
topicMeta;
|
|
21
|
+
constructor(topic, topicMeta, outputDir) {
|
|
22
|
+
const filename = MarkdownBase.file(`cli_reference_${topic}_commands`);
|
|
23
|
+
super(filename, outputDir);
|
|
24
|
+
this.topic = topic;
|
|
25
|
+
this.topicMeta = topicMeta;
|
|
26
|
+
this.destination = join(outputDir, topic, filename);
|
|
27
|
+
}
|
|
28
|
+
generate() {
|
|
29
|
+
const lines = [];
|
|
30
|
+
lines.push('');
|
|
31
|
+
lines.push(`# ${this.topic} Commands`);
|
|
32
|
+
lines.push('');
|
|
33
|
+
if (this.topicMeta.description) {
|
|
34
|
+
lines.push(this.topicMeta.description);
|
|
35
|
+
lines.push('');
|
|
36
|
+
}
|
|
37
|
+
return Promise.resolve(lines.join('\n'));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=topic-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic-commands.js","sourceRoot":"","sources":["../../src/markdown/topic-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IAC1B;IAAuB;IAAlD,YAA2B,KAAa,EAAU,SAAkB,EAAE,SAAiB;QACrF,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,iBAAiB,KAAK,WAAW,CAAC,CAAC;QACtE,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAFF,UAAK,GAAL,KAAK,CAAQ;QAAU,cAAS,GAAT,SAAS,CAAS;QAGlE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACtD,CAAC;IAES,QAAQ;QAChB,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,WAAW,CAAC,CAAC;QACvC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;YAC/B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACvC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommandClass, SfTopic } from '../utils.js';
|
|
2
|
+
import { MarkdownBase } from './markdown-base.js';
|
|
3
|
+
export declare class MarkdownTopicIndex extends MarkdownBase {
|
|
4
|
+
private topic;
|
|
5
|
+
private commands;
|
|
6
|
+
private topicMeta;
|
|
7
|
+
constructor(topic: string, commands: CommandClass[], topicMeta: SfTopic, outputDir: string);
|
|
8
|
+
protected generate(): Promise<string>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { join } from 'node:path';
|
|
17
|
+
import { punctuate } from '../utils.js';
|
|
18
|
+
import { MarkdownBase } from './markdown-base.js';
|
|
19
|
+
function resolveStateLabel(command) {
|
|
20
|
+
const deprecated = Boolean(command.deprecated);
|
|
21
|
+
const state = command.state;
|
|
22
|
+
if (deprecated)
|
|
23
|
+
return 'Deprecated';
|
|
24
|
+
if (state === 'beta')
|
|
25
|
+
return 'Beta';
|
|
26
|
+
if (state === 'preview')
|
|
27
|
+
return 'Developer Preview';
|
|
28
|
+
if (state === 'closedPilot' || state === 'openPilot')
|
|
29
|
+
return 'Pilot';
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
export class MarkdownTopicIndex extends MarkdownBase {
|
|
33
|
+
topic;
|
|
34
|
+
commands;
|
|
35
|
+
topicMeta;
|
|
36
|
+
constructor(topic, commands, topicMeta, outputDir) {
|
|
37
|
+
const filename = MarkdownBase.file(`cli_reference_${topic}`);
|
|
38
|
+
super(filename, outputDir);
|
|
39
|
+
this.topic = topic;
|
|
40
|
+
this.commands = commands;
|
|
41
|
+
this.topicMeta = topicMeta;
|
|
42
|
+
this.destination = join(outputDir, topic, filename);
|
|
43
|
+
}
|
|
44
|
+
generate() {
|
|
45
|
+
const lines = [];
|
|
46
|
+
lines.push('<!-- prettier-ignore-start -->');
|
|
47
|
+
lines.push('');
|
|
48
|
+
lines.push(`# ${this.topic} Commands`);
|
|
49
|
+
lines.push('');
|
|
50
|
+
if (this.topicMeta.description) {
|
|
51
|
+
lines.push(this.topicMeta.description);
|
|
52
|
+
lines.push('');
|
|
53
|
+
}
|
|
54
|
+
const sortedCommands = [...this.commands].sort((a, b) => a.id.localeCompare(b.id));
|
|
55
|
+
for (const command of sortedCommands) {
|
|
56
|
+
const id = command.id;
|
|
57
|
+
const commandWithUnderscores = id.replace(/:/g, '_');
|
|
58
|
+
const commandWithSpaces = id.replace(/:/g, ' ');
|
|
59
|
+
const isTopicLevelCommand = !id.includes(':');
|
|
60
|
+
const linkTarget = isTopicLevelCommand
|
|
61
|
+
? `cli_reference_${commandWithUnderscores}_command.md`
|
|
62
|
+
: `cli_reference_${commandWithUnderscores}.md`;
|
|
63
|
+
const stateLabel = resolveStateLabel(command);
|
|
64
|
+
const commandDisplay = stateLabel ? `${commandWithSpaces} (${stateLabel})` : commandWithSpaces;
|
|
65
|
+
const summary = punctuate(command.summary);
|
|
66
|
+
if (summary) {
|
|
67
|
+
lines.push(`- **[${commandDisplay}](./${linkTarget})**<br>`);
|
|
68
|
+
lines.push(` ${summary}`);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
lines.push(`- **[${commandDisplay}](./${linkTarget})**`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
lines.push('');
|
|
75
|
+
lines.push('<!-- prettier-ignore-end -->');
|
|
76
|
+
lines.push('');
|
|
77
|
+
return Promise.resolve(lines.join('\n'));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=topic-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topic-index.js","sourceRoot":"","sources":["../../src/markdown/topic-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAgB,SAAS,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AC;gBACN,KAAK,CAAC,IAAI,CAAC,QAAQ,cAAc,OAAO,UAAU,KAAK,CAAC,CAAC;YAC3D,CAAC;QACH,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QAC3C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
2
|
import { Command, Interfaces } from '@oclif/core';
|
|
3
3
|
import { AnyJson } from '@salesforce/ts-types';
|
|
4
|
-
export type CommandClass = Pick<Command.Class, 'id' | 'hidden' | 'description' | 'plugin' | 'state' | 'examples' | 'summary' | 'flags' | 'pluginName'> & {
|
|
4
|
+
export type CommandClass = Pick<Command.Class, 'id' | 'hidden' | 'description' | 'plugin' | 'state' | 'examples' | 'summary' | 'flags' | 'pluginName' | 'aliases'> & {
|
|
5
5
|
topic: string;
|
|
6
6
|
subtopic: string;
|
|
7
7
|
longDescription?: string;
|
package/messages/main.md
CHANGED
|
@@ -28,7 +28,11 @@ fail the command if there are any warnings
|
|
|
28
28
|
|
|
29
29
|
# flags.ditamap-suffix.summary
|
|
30
30
|
|
|
31
|
-
unique suffix to append to generated
|
|
31
|
+
unique suffix to append to generated DITA files
|
|
32
|
+
|
|
33
|
+
# flags.output-format.summary
|
|
34
|
+
|
|
35
|
+
output format for generated documentation; 'dita' (default) generates DITA XML files, 'markdown' generates Markdown files
|
|
32
36
|
|
|
33
37
|
# flags.config-path.summary
|
|
34
38
|
|