@salesforce/plugin-command-reference 1.4.0 → 1.4.3
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/lib/commands/commandreference/generate.d.ts +0 -1
- package/lib/commands/commandreference/generate.js +20 -17
- package/lib/commands/commandreference/generate.js.map +1 -1
- package/lib/ditamap/base-ditamap.js +1 -0
- package/lib/ditamap/base-ditamap.js.map +1 -1
- package/lib/ditamap/cli-reference-topic.js +2 -1
- package/lib/ditamap/cli-reference-topic.js.map +1 -1
- package/lib/ditamap/cli-reference.js +1 -0
- package/lib/ditamap/cli-reference.js.map +1 -1
- package/lib/ditamap/command.js +12 -10
- package/lib/ditamap/command.js.map +1 -1
- package/lib/ditamap/ditamap.js +13 -11
- package/lib/ditamap/ditamap.js.map +1 -1
- package/lib/ditamap/main-topic-intro.js +4 -3
- package/lib/ditamap/main-topic-intro.js.map +1 -1
- package/lib/ditamap/subtopic-ditamap.js +2 -1
- package/lib/ditamap/subtopic-ditamap.js.map +1 -1
- package/lib/ditamap/topic-ditamap.js +2 -1
- package/lib/ditamap/topic-ditamap.js.map +1 -1
- package/lib/docs.js +35 -35
- package/lib/docs.js.map +1 -1
- package/lib/utils.js +4 -4
- package/lib/utils.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +23 -22
- package/CHANGELOG.md +0 -262
|
@@ -16,6 +16,8 @@ const chalk = require("chalk");
|
|
|
16
16
|
const ditamap_1 = require("../../ditamap/ditamap");
|
|
17
17
|
const docs_1 = require("../../docs");
|
|
18
18
|
const utils_1 = require("../../utils");
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
20
|
+
const uniqBy = require('lodash.uniqby');
|
|
19
21
|
// Initialize Messages with the current plugin directory
|
|
20
22
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
21
23
|
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
|
|
@@ -28,10 +30,10 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
28
30
|
const pJsonPath = path.join(process.cwd(), 'package.json');
|
|
29
31
|
if (fs.existsSync(pJsonPath)) {
|
|
30
32
|
const packageJson = JSON.parse(await fs.promises.readFile(pJsonPath, 'utf8'));
|
|
31
|
-
pluginNames = [ts_types_1.getString(packageJson, 'name')];
|
|
33
|
+
pluginNames = [(0, ts_types_1.getString)(packageJson, 'name')];
|
|
32
34
|
}
|
|
33
35
|
else {
|
|
34
|
-
throw new core_1.
|
|
36
|
+
throw new core_1.SfError("No plugins provided. Provide the '--plugins' flag or cd into a directory that contains a valid oclif plugin.");
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
else {
|
|
@@ -46,7 +48,7 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
46
48
|
pluginName = `@salesforce/plugin-${pluginName}`;
|
|
47
49
|
plugin = this.getPlugin(pluginName);
|
|
48
50
|
if (!plugin) {
|
|
49
|
-
throw new core_1.
|
|
51
|
+
throw new core_1.SfError(`Plugin ${name} or ${pluginName} not found. Is it installed?`);
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
return pluginName;
|
|
@@ -59,7 +61,7 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
59
61
|
ditamap_1.Ditamap.plugins = this.pluginMap(plugins);
|
|
60
62
|
ditamap_1.Ditamap.pluginVersions = plugins.map((name) => {
|
|
61
63
|
const plugin = this.getPlugin(name);
|
|
62
|
-
const version = plugin
|
|
64
|
+
const version = plugin?.version;
|
|
63
65
|
if (!version)
|
|
64
66
|
throw new Error(`No version found for plugin ${name}`);
|
|
65
67
|
return { name, version };
|
|
@@ -73,25 +75,26 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
73
75
|
process.stderr.write(chalk.yellow(`> ${msg}\n`));
|
|
74
76
|
warnings.push(msg);
|
|
75
77
|
});
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
76
79
|
await docs.build(await this.loadCommands());
|
|
77
80
|
this.log(`\nWrote generated doc to ${ditamap_1.Ditamap.outputDir}`);
|
|
78
81
|
if (this.flags.erroronwarnings && warnings.length > 0) {
|
|
79
|
-
throw new core_1.
|
|
82
|
+
throw new core_1.SfError(`Found ${warnings.length} warnings.`);
|
|
80
83
|
}
|
|
81
84
|
return { warnings };
|
|
82
85
|
}
|
|
83
86
|
pluginMap(plugins) {
|
|
84
87
|
const pluginToParentPlugin = {};
|
|
85
88
|
const resolveChildPlugins = (parentPlugin) => {
|
|
86
|
-
for (const childPlugin of parentPlugin.pjson.oclif.plugins
|
|
89
|
+
for (const childPlugin of parentPlugin.pjson.oclif.plugins ?? []) {
|
|
87
90
|
pluginToParentPlugin[childPlugin] = parentPlugin.name;
|
|
88
|
-
resolveChildPlugins(ts_types_1.ensure(this.getPlugin(childPlugin)));
|
|
91
|
+
resolveChildPlugins((0, ts_types_1.ensure)(this.getPlugin(childPlugin)));
|
|
89
92
|
}
|
|
90
93
|
};
|
|
91
94
|
for (const plugin of plugins) {
|
|
92
95
|
const masterPlugin = this.getPlugin(plugin);
|
|
93
96
|
if (!masterPlugin) {
|
|
94
|
-
throw new core_1.
|
|
97
|
+
throw new core_1.SfError(`Plugin ${plugin} not found. Is it installed?`);
|
|
95
98
|
}
|
|
96
99
|
pluginToParentPlugin[masterPlugin.name] = masterPlugin.name;
|
|
97
100
|
resolveChildPlugins(masterPlugin);
|
|
@@ -107,9 +110,10 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
107
110
|
for (const cmd of this.config.commands) {
|
|
108
111
|
// Only load topics for each plugin once
|
|
109
112
|
if (cmd.pluginName && !plugins[cmd.pluginName]) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, no-await-in-loop
|
|
114
|
+
const commandClass = await loadCommand(cmd);
|
|
115
|
+
if (commandClass.plugin?.pjson.oclif.topics) {
|
|
116
|
+
(0, utils_1.mergeDeep)(topicsMeta, commandClass.plugin.pjson.oclif.topics);
|
|
113
117
|
plugins[commandClass.plugin.name] = true;
|
|
114
118
|
}
|
|
115
119
|
}
|
|
@@ -119,7 +123,7 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
119
123
|
async loadCommands() {
|
|
120
124
|
const promises = this.config.commands.map(async (cmd) => {
|
|
121
125
|
try {
|
|
122
|
-
let commandClass = await
|
|
126
|
+
let commandClass = await loadCommand(cmd);
|
|
123
127
|
let obj = Object.assign({}, cmd, commandClass, {
|
|
124
128
|
flags: Object.assign({}, cmd.flags, commandClass.flags),
|
|
125
129
|
});
|
|
@@ -127,7 +131,7 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
127
131
|
while (commandClass !== undefined) {
|
|
128
132
|
commandClass = Object.getPrototypeOf(commandClass) || undefined;
|
|
129
133
|
obj = Object.assign({}, commandClass, obj, {
|
|
130
|
-
flags: Object.assign({}, commandClass
|
|
134
|
+
flags: Object.assign({}, commandClass?.flags, obj.flags),
|
|
131
135
|
});
|
|
132
136
|
}
|
|
133
137
|
return obj;
|
|
@@ -136,10 +140,8 @@ class CommandReferenceGenerate extends command_1.SfdxCommand {
|
|
|
136
140
|
return Object.assign({}, cmd);
|
|
137
141
|
}
|
|
138
142
|
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
async loadCommand(command) {
|
|
142
|
-
return command.load.constructor.name === 'AsyncFunction' ? await command.load() : command.load();
|
|
143
|
+
const commands = await Promise.all(promises);
|
|
144
|
+
return uniqBy(commands, 'id');
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
exports.default = CommandReferenceGenerate;
|
|
@@ -158,4 +160,5 @@ CommandReferenceGenerate.flagsConfig = {
|
|
|
158
160
|
hidden: command_1.flags.boolean({ description: messages.getMessage('hiddenFlagDescription') }),
|
|
159
161
|
erroronwarnings: command_1.flags.boolean({ description: messages.getMessage('erroronwarningFlagDescription') }),
|
|
160
162
|
};
|
|
163
|
+
const loadCommand = async (command) => command.load.constructor.name === 'AsyncFunction' ? command.load() : command.load();
|
|
161
164
|
//# sourceMappingURL=generate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/commandreference/generate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,yBAAyB;AACzB,6BAA6B;AAE7B,iDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../src/commands/commandreference/generate.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,yBAAyB;AACzB,6BAA6B;AAE7B,iDAAyD;AACzD,2CAAqD;AACrD,mDAAuF;AACvF,+BAAgC;AAChC,mDAAgD;AAChD,qCAAkC;AAClC,uCAAgD;AAEhD,8DAA8D;AAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAExC,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,sCAAsC,EAAE,MAAM,CAAC,CAAC;AAEvF,MAAqB,wBAAyB,SAAQ,qBAAW;IAmBxD,KAAK,CAAC,GAAG;QACd,IAAI,WAAqB,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;YAC3D,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;gBAC5B,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;gBAC9E,WAAW,GAAG,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@ class BaseDitamap extends ditamap_1.Ditamap {
|
|
|
15
15
|
namespaceDitamapFiles: topics.sort().map((topic) => `${topic}/cli_reference_${topic}.ditamap`),
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
// eslint-disable-next-line class-methods-use-this
|
|
18
19
|
getTemplateFileName() {
|
|
19
20
|
return 'base_ditamap.hbs';
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-ditamap.js","sourceRoot":"","sources":["../../src/ditamap/base-ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uCAAoC;AAEpC,MAAa,WAAY,SAAQ,iBAAO;IACtC,YAAmB,MAAgB;QACjC,sCAAsC;QACtC,KAAK,CAAC,4BAA4B,EAAE;YAClC,qBAAqB,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,kBAAkB,KAAK,UAAU,CAAC;SAC/F,CAAC,CAAC;IACL,CAAC;
|
|
1
|
+
{"version":3,"file":"base-ditamap.js","sourceRoot":"","sources":["../../src/ditamap/base-ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uCAAoC;AAEpC,MAAa,WAAY,SAAQ,iBAAO;IACtC,YAAmB,MAAgB;QACjC,sCAAsC;QACtC,KAAK,CAAC,4BAA4B,EAAE;YAClC,qBAAqB,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,kBAAkB,KAAK,UAAU,CAAC;SAC/F,CAAC,CAAC;IACL,CAAC;IAED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF;AAZD,kCAYC"}
|
|
@@ -18,8 +18,9 @@ class CLIReferenceTopic extends ditamap_1.Ditamap {
|
|
|
18
18
|
longDescription,
|
|
19
19
|
});
|
|
20
20
|
// Override destination to include topic and subtopic
|
|
21
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
21
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
22
22
|
}
|
|
23
|
+
// eslint-disable-next-line class-methods-use-this
|
|
23
24
|
getTemplateFileName() {
|
|
24
25
|
return 'cli_reference_topic.hbs';
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-reference-topic.js","sourceRoot":"","sources":["../../src/ditamap/cli-reference-topic.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,uCAAoC;AAEpC,MAAa,iBAAkB,SAAQ,iBAAO;IAC5C,YAAmB,KAAa,EAAE,eAAuB;QACvD,MAAM,QAAQ,GAAG,iBAAiB,KAAK,MAAM,CAAC;QAC9C,sCAAsC;QACtC,KAAK,CAAC,QAAQ,EAAE;YACd,KAAK;YACL,eAAe;SAChB,CAAC,CAAC;QAEH,qDAAqD;QACrD,IAAI,CAAC,WAAW,GAAG,WAAI,
|
|
1
|
+
{"version":3,"file":"cli-reference-topic.js","sourceRoot":"","sources":["../../src/ditamap/cli-reference-topic.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,uCAAoC;AAEpC,MAAa,iBAAkB,SAAQ,iBAAO;IAC5C,YAAmB,KAAa,EAAE,eAAuB;QACvD,MAAM,QAAQ,GAAG,iBAAiB,KAAK,MAAM,CAAC;QAC9C,sCAAsC;QACtC,KAAK,CAAC,QAAQ,EAAE;YACd,KAAK;YACL,eAAe;SAChB,CAAC,CAAC;QAEH,qDAAqD;QACrD,IAAI,CAAC,WAAW,GAAG,IAAA,WAAI,EAAC,iBAAO,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,yBAAyB,CAAC;IACnC,CAAC;CACF;AAjBD,8CAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-reference.js","sourceRoot":"","sources":["../../src/ditamap/cli-reference.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uCAAoC;AAEpC,MAAa,YAAa,SAAQ,iBAAO;IACvC;QACE,MAAM,QAAQ,GAAG,mBAAmB,CAAC;QAErC,KAAK,CAAC,QAAQ,EAAE;YACd,UAAU,EAAE,iBAAO,CAAC,UAAU;YAC9B,cAAc,EAAE,iBAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;
|
|
1
|
+
{"version":3,"file":"cli-reference.js","sourceRoot":"","sources":["../../src/ditamap/cli-reference.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uCAAoC;AAEpC,MAAa,YAAa,SAAQ,iBAAO;IACvC;QACE,MAAM,QAAQ,GAAG,mBAAmB,CAAC;QAErC,KAAK,CAAC,QAAQ,EAAE;YACd,UAAU,EAAE,iBAAO,CAAC,UAAU;YAC9B,cAAc,EAAE,iBAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;IAED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,uBAAuB,CAAC;IACjC,CAAC;CACF;AAdD,oCAcC"}
|
package/lib/ditamap/command.js
CHANGED
|
@@ -13,29 +13,30 @@ const utils_1 = require("../utils");
|
|
|
13
13
|
const ditamap_1 = require("./ditamap");
|
|
14
14
|
class Command extends ditamap_1.Ditamap {
|
|
15
15
|
constructor(topic, subtopic, command, commandMeta = {}) {
|
|
16
|
-
const commandWithUnderscores = ts_types_1.ensureString(command.id).replace(/:/g, '_');
|
|
16
|
+
const commandWithUnderscores = (0, ts_types_1.ensureString)(command.id).replace(/:/g, '_');
|
|
17
17
|
const filename = `cli_reference_${commandWithUnderscores}.xml`;
|
|
18
18
|
super(filename, {});
|
|
19
|
-
const flags = ts_types_1.ensureObject(command.flags);
|
|
19
|
+
const flags = (0, ts_types_1.ensureObject)(command.flags);
|
|
20
20
|
const parameters = this.getParametersForTemplate(flags);
|
|
21
21
|
// The template only expects a oneline description. Punctuate the first line of either the lingDescription or description.
|
|
22
|
-
const fullDescription = ts_types_1.asString(command.longDescription) || ts_types_1.asString(command.description);
|
|
23
|
-
const description = utils_1.punctuate(fullDescription);
|
|
22
|
+
const fullDescription = (0, ts_types_1.asString)(command.longDescription) || (0, ts_types_1.asString)(command.description);
|
|
23
|
+
const description = (0, utils_1.punctuate)(fullDescription);
|
|
24
24
|
// Help are all the lines after the first line in the description. Before oclif, there was a 'help' property so continue to
|
|
25
25
|
// support that.
|
|
26
26
|
if (!description) {
|
|
27
27
|
utils_1.events.emit('warning', `Missing description for ${command.id}\n`);
|
|
28
28
|
}
|
|
29
|
-
const help = this.formatParagraphs(ts_types_1.asString(command.help) || utils_1.helpFromDescription(fullDescription));
|
|
29
|
+
const help = this.formatParagraphs((0, ts_types_1.asString)(command.help) || (0, utils_1.helpFromDescription)(fullDescription));
|
|
30
30
|
let trailblazerCommunityUrl;
|
|
31
31
|
let trailblazerCommunityName;
|
|
32
32
|
if (commandMeta.trailblazerCommunityLink) {
|
|
33
|
-
const community = ts_types_1.ensureJsonMap(commandMeta.trailblazerCommunityLink);
|
|
33
|
+
const community = (0, ts_types_1.ensureJsonMap)(commandMeta.trailblazerCommunityLink);
|
|
34
34
|
trailblazerCommunityUrl = community.url;
|
|
35
35
|
trailblazerCommunityName = community.name;
|
|
36
36
|
}
|
|
37
37
|
if (Array.isArray(command.examples)) {
|
|
38
38
|
if (help.includes('Examples:') &&
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
39
40
|
command.examples.map((example, foundAll) => foundAll && help.includes(example), true)) {
|
|
40
41
|
// Examples are already in the help, so don't duplicate.
|
|
41
42
|
// This is legacy support for ToolbeltCommand in salesforce-alm.
|
|
@@ -64,19 +65,19 @@ class Command extends ditamap_1.Ditamap {
|
|
|
64
65
|
});
|
|
65
66
|
// Override destination to include topic and subtopic
|
|
66
67
|
if (subtopic) {
|
|
67
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
68
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
68
69
|
}
|
|
69
70
|
else {
|
|
70
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
71
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
getParametersForTemplate(flags) {
|
|
74
75
|
return Object.entries(flags)
|
|
75
76
|
.filter(([, flag]) => !flag.hidden)
|
|
76
77
|
.map(([flagName, flag]) => {
|
|
77
|
-
const description = this.formatParagraphs(flag.longDescription || utils_1.punctuate(flag.description));
|
|
78
|
+
const description = this.formatParagraphs(flag.longDescription || (0, utils_1.punctuate)(flag.description));
|
|
78
79
|
if (!flag.longDescription) {
|
|
79
|
-
flag.longDescription = utils_1.punctuate(flag.description);
|
|
80
|
+
flag.longDescription = (0, utils_1.punctuate)(flag.description);
|
|
80
81
|
}
|
|
81
82
|
return Object.assign(flag, {
|
|
82
83
|
name: flagName,
|
|
@@ -87,6 +88,7 @@ class Command extends ditamap_1.Ditamap {
|
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
}
|
|
91
|
+
// eslint-disable-next-line class-methods-use-this
|
|
90
92
|
getTemplateFileName() {
|
|
91
93
|
return 'command.hbs';
|
|
92
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/ditamap/command.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,mDAAgH;AAChH,oCAAkE;AAClE,uCAAoC;AAWpC,MAAa,OAAQ,SAAQ,iBAAO;IAClC,YAAmB,KAAa,EAAE,QAAgB,EAAE,OAAmB,EAAE,cAAuB,EAAE;QAChG,MAAM,sBAAsB,G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ED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,aAAa,CAAC;IACvB,CAAC;CACF;AAlGD,0BAkGC"}
|
package/lib/ditamap/ditamap.js
CHANGED
|
@@ -10,28 +10,29 @@ exports.Ditamap = void 0;
|
|
|
10
10
|
const fs = require("fs");
|
|
11
11
|
const path_1 = require("path");
|
|
12
12
|
const debugCreator = require("debug");
|
|
13
|
-
|
|
13
|
+
// import { compile, registerHelper } from 'handlebars';
|
|
14
|
+
const handlebars = require("handlebars");
|
|
14
15
|
const debug = debugCreator('commandreference');
|
|
15
16
|
class Ditamap {
|
|
16
17
|
constructor(filename, data) {
|
|
17
18
|
this.filename = filename;
|
|
18
19
|
this.data = data;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
handlebars.registerHelper('toUpperCase', (str) => str.toUpperCase());
|
|
21
|
+
handlebars.registerHelper('join', (array) => array.join(', '));
|
|
21
22
|
/*
|
|
22
23
|
* Returns true if the string should be formatted as code block in docs
|
|
23
24
|
*/
|
|
24
25
|
// tslint:disable-next-line: no-any
|
|
25
|
-
|
|
26
|
+
handlebars.registerHelper('isCodeBlock', function (val, options) {
|
|
26
27
|
return val.indexOf('$ sfdx') >= 0 || val.indexOf('>>') >= 0 ? options.fn(this) : options.inverse(this);
|
|
27
28
|
});
|
|
28
29
|
/*
|
|
29
30
|
* Remove OS prompt in codeblocks, as per CCX style guidelines in our published docs
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.source = path_1.join(Ditamap.templatesDir, this.getTemplateFileName());
|
|
34
|
-
this.destination = path_1.join(Ditamap.outputDir, filename);
|
|
32
|
+
handlebars.registerHelper('removePrompt', (codeblock) => codeblock.substring(codeblock.indexOf('$') + 1));
|
|
33
|
+
handlebars.registerHelper('nextVersion', (value) => parseInt(value, 2) + 1);
|
|
34
|
+
this.source = (0, path_1.join)(Ditamap.templatesDir, this.getTemplateFileName());
|
|
35
|
+
this.destination = (0, path_1.join)(Ditamap.outputDir, filename);
|
|
35
36
|
}
|
|
36
37
|
getFilename() {
|
|
37
38
|
return this.filename;
|
|
@@ -40,10 +41,11 @@ class Ditamap {
|
|
|
40
41
|
return this.destination;
|
|
41
42
|
}
|
|
42
43
|
async write() {
|
|
43
|
-
await fs.promises.mkdir(path_1.dirname(this.destination), { recursive: true });
|
|
44
|
+
await fs.promises.mkdir((0, path_1.dirname)(this.destination), { recursive: true });
|
|
44
45
|
const output = await this.transformToDitamap();
|
|
45
46
|
await fs.promises.writeFile(this.destination, output);
|
|
46
47
|
}
|
|
48
|
+
// eslint-disable-next-line class-methods-use-this
|
|
47
49
|
formatParagraphs(textToFormat) {
|
|
48
50
|
return textToFormat ? textToFormat.split('\n').filter((n) => n !== '') : [];
|
|
49
51
|
}
|
|
@@ -57,10 +59,10 @@ class Ditamap {
|
|
|
57
59
|
async transformToDitamap() {
|
|
58
60
|
debug(`Generating ${this.destination} from ${this.getTemplateFileName()}`);
|
|
59
61
|
const src = await fs.promises.readFile(this.source, 'utf8');
|
|
60
|
-
const template =
|
|
62
|
+
const template = handlebars.compile(src);
|
|
61
63
|
return template(this.data);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
exports.Ditamap = Ditamap;
|
|
65
|
-
Ditamap.templatesDir = path_1.join(__dirname, '..', '..', 'templates');
|
|
67
|
+
Ditamap.templatesDir = (0, path_1.join)(__dirname, '..', '..', 'templates');
|
|
66
68
|
//# sourceMappingURL=ditamap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ditamap.js","sourceRoot":"","sources":["../../src/ditamap/ditamap.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,+BAAqC;AAErC,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"ditamap.js","sourceRoot":"","sources":["../../src/ditamap/ditamap.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,+BAAqC;AAErC,sCAAsC;AACtC,wDAAwD;AAC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C,CAAC"}
|
|
@@ -18,12 +18,12 @@ class MainTopicIntro extends ditamap_1.Ditamap {
|
|
|
18
18
|
let trailblazerCommunityUrl;
|
|
19
19
|
let trailblazerCommunityName;
|
|
20
20
|
if (subTopicMeta.trailblazerCommunityLink) {
|
|
21
|
-
const community = ts_types_1.ensureJsonMap(subTopicMeta.trailblazerCommunityLink);
|
|
21
|
+
const community = (0, ts_types_1.ensureJsonMap)(subTopicMeta.trailblazerCommunityLink);
|
|
22
22
|
trailblazerCommunityUrl = community.url;
|
|
23
23
|
trailblazerCommunityName = community.name;
|
|
24
24
|
}
|
|
25
25
|
if (!subTopicMeta.longDescription && !subTopicMeta.external) {
|
|
26
|
-
subTopicMeta.longDescription = utils_1.punctuate(ts_types_1.asString(subTopicMeta.description));
|
|
26
|
+
subTopicMeta.longDescription = (0, utils_1.punctuate)((0, ts_types_1.asString)(subTopicMeta.description));
|
|
27
27
|
}
|
|
28
28
|
super(filename, {
|
|
29
29
|
topic: subtopic,
|
|
@@ -35,8 +35,9 @@ class MainTopicIntro extends ditamap_1.Ditamap {
|
|
|
35
35
|
trailblazerCommunityName,
|
|
36
36
|
});
|
|
37
37
|
// Override destination to include topic and subtopic
|
|
38
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
38
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
39
39
|
}
|
|
40
|
+
// eslint-disable-next-line class-methods-use-this
|
|
40
41
|
getTemplateFileName() {
|
|
41
42
|
return 'main_topic_intro.hbs';
|
|
42
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-topic-intro.js","sourceRoot":"","sources":["../../src/ditamap/main-topic-intro.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,4DAA4D;;;AAE5D,+BAA4B;AAC5B,mDAAwE;AACxE,oCAAqC;AACrC,uCAAoC;AAEpC,MAAa,cAAe,SAAQ,iBAAO;IACz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AAC,KAAK,KAAK,MAAM;YAC1C,uBAAuB;YACvB,wBAAwB;SACzB,CAAC,CAAC;QAEH,qDAAqD;QACrD,IAAI,CAAC,WAAW,GAAG,IAAA,WAAI,EAAC,iBAAO,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACxE,CAAC;IAED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,sBAAsB,CAAC;IAChC,CAAC;CACF;AAlCD,wCAkCC"}
|
|
@@ -20,8 +20,9 @@ class SubTopicDitamap extends ditamap_1.Ditamap {
|
|
|
20
20
|
commandFileNames,
|
|
21
21
|
});
|
|
22
22
|
// Override destination to include topic and subtopic
|
|
23
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
23
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, subtopic, filename);
|
|
24
24
|
}
|
|
25
|
+
// eslint-disable-next-line class-methods-use-this
|
|
25
26
|
getTemplateFileName() {
|
|
26
27
|
return 'subtopic_ditamap.hbs';
|
|
27
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subtopic-ditamap.js","sourceRoot":"","sources":["../../src/ditamap/subtopic-ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,uCAAoC;AAEpC,MAAa,eAAgB,SAAQ,iBAAO;IAC1C,YAAmB,KAAa,EAAE,QAAgB,EAAE,gBAA0B;QAC5E,MAAM,QAAQ,GAAG,iBAAiB,KAAK,IAAI,QAAQ,UAAU,CAAC;QAE9D,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAExB,sCAAsC;QACtC,KAAK,CAAC,QAAQ,EAAE;YACd,KAAK;YACL,QAAQ;YACR,gBAAgB;SACjB,CAAC,CAAC;QAEH,qDAAqD;QACrD,IAAI,CAAC,WAAW,GAAG,WAAI,
|
|
1
|
+
{"version":3,"file":"subtopic-ditamap.js","sourceRoot":"","sources":["../../src/ditamap/subtopic-ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,uCAAoC;AAEpC,MAAa,eAAgB,SAAQ,iBAAO;IAC1C,YAAmB,KAAa,EAAE,QAAgB,EAAE,gBAA0B;QAC5E,MAAM,QAAQ,GAAG,iBAAiB,KAAK,IAAI,QAAQ,UAAU,CAAC;QAE9D,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAExB,sCAAsC;QACtC,KAAK,CAAC,QAAQ,EAAE;YACd,KAAK;YACL,QAAQ;YACR,gBAAgB;SACjB,CAAC,CAAC;QAEH,qDAAqD;QACrD,IAAI,CAAC,WAAW,GAAG,IAAA,WAAI,EAAC,iBAAO,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACxE,CAAC;IAED,kDAAkD;IAC3C,mBAAmB;QACxB,OAAO,sBAAsB,CAAC;IAChC,CAAC;CACF;AArBD,0CAqBC"}
|
|
@@ -19,8 +19,9 @@ class TopicDitamap extends ditamap_1.Ditamap {
|
|
|
19
19
|
commands: commandNames.sort().map((command) => ({ command })),
|
|
20
20
|
});
|
|
21
21
|
// Override destination to include topic and subtopic
|
|
22
|
-
this.destination = path_1.join(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
22
|
+
this.destination = (0, path_1.join)(ditamap_1.Ditamap.outputDir, topic, filename);
|
|
23
23
|
}
|
|
24
|
+
// eslint-disable-next-line class-methods-use-this
|
|
24
25
|
getTemplateFileName() {
|
|
25
26
|
return 'topic_ditamap.hbs';
|
|
26
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic-ditamap.js","sourceRoot":"","sources":["../../src/ditamap/topic-ditamap.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAA4B;AAC5B,uCAAoC;AAEpC,MAAa,YAAa,SAAQ,iBAAO;IACvC,YAAmB,KAAa,EAAE,SAAmB,EAAE,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AC;IAC7B,CAAC;CACF;AAlBD,oCAkBC"}
|
package/lib/docs.js
CHANGED
|
@@ -19,7 +19,7 @@ const main_topic_intro_1 = require("./ditamap/main-topic-intro");
|
|
|
19
19
|
const subtopic_ditamap_1 = require("./ditamap/subtopic-ditamap");
|
|
20
20
|
const topic_ditamap_1 = require("./ditamap/topic-ditamap");
|
|
21
21
|
const utils_1 = require("./utils");
|
|
22
|
-
const templatesDir = path_1.join(__dirname, '..', 'templates');
|
|
22
|
+
const templatesDir = (0, path_1.join)(__dirname, '..', 'templates');
|
|
23
23
|
class Docs {
|
|
24
24
|
constructor(outputDir, plugins, hidden, topicMeta) {
|
|
25
25
|
this.outputDir = outputDir;
|
|
@@ -34,11 +34,11 @@ class Docs {
|
|
|
34
34
|
}
|
|
35
35
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
36
|
async populateTopic(topic, subtopics) {
|
|
37
|
-
const topicMeta = ts_types_1.ensureJsonMap(this.topicMeta[topic], `No topic meta for ${topic} - add this topic to the oclif section of the package.json.`);
|
|
38
|
-
let description = ts_types_1.asString(topicMeta.longDescription);
|
|
37
|
+
const topicMeta = (0, ts_types_1.ensureJsonMap)(this.topicMeta[topic], `No topic meta for ${topic} - add this topic to the oclif section of the package.json.`);
|
|
38
|
+
let description = (0, ts_types_1.asString)(topicMeta.longDescription);
|
|
39
39
|
if (!description && !topicMeta.external) {
|
|
40
40
|
// Punctuate the description in place of longDescription
|
|
41
|
-
description = utils_1.punctuate(ts_types_1.asString(topicMeta.description));
|
|
41
|
+
description = (0, utils_1.punctuate)((0, ts_types_1.asString)(topicMeta.description));
|
|
42
42
|
if (!description) {
|
|
43
43
|
utils_1.events.emit('warning', `No description for topic ${chalk.bold(topic)}. Skipping until topic owner adds topic metadata, that includes longDescription, in the oclif section in the package.json file within their plugin.`);
|
|
44
44
|
return;
|
|
@@ -50,32 +50,36 @@ class Docs {
|
|
|
50
50
|
for (const subtopic of Object.keys(subtopics)) {
|
|
51
51
|
const subtopicOrCommand = subtopics[subtopic];
|
|
52
52
|
try {
|
|
53
|
-
if (!ts_types_1.isArray(subtopicOrCommand)) {
|
|
53
|
+
if (!(0, ts_types_1.isArray)(subtopicOrCommand)) {
|
|
54
54
|
// If it is not subtopic (array) it is a command in the top-level topic
|
|
55
55
|
const command = subtopicOrCommand;
|
|
56
|
-
const commandMeta = this.resolveCommandMeta(ts_types_1.ensureString(command.id), command, 1);
|
|
56
|
+
const commandMeta = this.resolveCommandMeta((0, ts_types_1.ensureString)(command.id), command, 1);
|
|
57
|
+
// eslint-disable-next-line no-await-in-loop
|
|
57
58
|
await this.populateCommand(topic, null, command, commandMeta);
|
|
58
59
|
commandNames.push(subtopic);
|
|
59
60
|
continue;
|
|
60
61
|
}
|
|
61
|
-
const subTopicsMeta = ts_types_1.ensureJsonMap(topicMeta.subtopics);
|
|
62
|
+
const subTopicsMeta = (0, ts_types_1.ensureJsonMap)(topicMeta.subtopics);
|
|
62
63
|
if (!subTopicsMeta[subtopic]) {
|
|
63
64
|
const fullTopicPath = `${topic}:${subtopic}`;
|
|
64
65
|
utils_1.events.emit('warning', `No metadata for topic ${chalk.bold(fullTopicPath)}. That topic owner must add topic metadata in the oclif section in the package.json file within their plugin.`);
|
|
65
66
|
continue;
|
|
66
67
|
}
|
|
67
|
-
const subtopicMeta = ts_types_1.ensureJsonMap(subTopicsMeta[subtopic]);
|
|
68
|
+
const subtopicMeta = (0, ts_types_1.ensureJsonMap)(subTopicsMeta[subtopic]);
|
|
68
69
|
// The intro doc for this topic
|
|
70
|
+
// eslint-disable-next-line no-await-in-loop
|
|
69
71
|
await new main_topic_intro_1.MainTopicIntro(topic, subtopic, subtopicMeta).write();
|
|
70
72
|
subTopicNames.push(subtopic);
|
|
71
73
|
// Commands within the sub topic
|
|
72
74
|
const filenames = [];
|
|
73
75
|
for (const command of subtopicOrCommand) {
|
|
74
|
-
const fullTopic = ts_types_1.ensureString(command.id).replace(/:\w+$/, '');
|
|
75
|
-
const commandsInFullTopic = subtopicOrCommand.filter((cmd) => ts_types_1.ensureString(cmd.id).
|
|
76
|
-
const commandMeta = this.resolveCommandMeta(ts_types_1.ensureString(command.id), command, commandsInFullTopic.length);
|
|
76
|
+
const fullTopic = (0, ts_types_1.ensureString)(command.id).replace(/:\w+$/, '');
|
|
77
|
+
const commandsInFullTopic = subtopicOrCommand.filter((cmd) => (0, ts_types_1.ensureString)(cmd.id).startsWith(fullTopic));
|
|
78
|
+
const commandMeta = this.resolveCommandMeta((0, ts_types_1.ensureString)(command.id), command, commandsInFullTopic.length);
|
|
79
|
+
// eslint-disable-next-line no-await-in-loop
|
|
77
80
|
filenames.push(await this.populateCommand(topic, subtopic, command, commandMeta));
|
|
78
81
|
}
|
|
82
|
+
// eslint-disable-next-line no-await-in-loop
|
|
79
83
|
await new subtopic_ditamap_1.SubTopicDitamap(topic, subtopic, filenames).write();
|
|
80
84
|
}
|
|
81
85
|
catch (error) {
|
|
@@ -100,7 +104,7 @@ class Docs {
|
|
|
100
104
|
if (command.hidden && !this.hidden) {
|
|
101
105
|
continue;
|
|
102
106
|
}
|
|
103
|
-
const commandParts = ts_types_1.ensureString(command.id).split(':');
|
|
107
|
+
const commandParts = (0, ts_types_1.ensureString)(command.id).split(':');
|
|
104
108
|
if (commandParts.length === 1) {
|
|
105
109
|
continue; // Top level topic command. Just ignore for as it is usually help for the topic.
|
|
106
110
|
}
|
|
@@ -117,8 +121,8 @@ class Docs {
|
|
|
117
121
|
else {
|
|
118
122
|
const subtopic = commandParts[1];
|
|
119
123
|
try {
|
|
120
|
-
const topicMeta = ts_types_1.ensureJsonMap(this.topicMeta[topLevelTopic]);
|
|
121
|
-
const subTopicsMeta = ts_types_1.ensureJsonMap(topicMeta.subtopics);
|
|
124
|
+
const topicMeta = (0, ts_types_1.ensureJsonMap)(this.topicMeta[topLevelTopic]);
|
|
125
|
+
const subTopicsMeta = (0, ts_types_1.ensureJsonMap)(topicMeta.subtopics);
|
|
122
126
|
if (subTopicsMeta.hidden && !this.hidden) {
|
|
123
127
|
continue;
|
|
124
128
|
}
|
|
@@ -129,10 +133,10 @@ class Docs {
|
|
|
129
133
|
command.subtopic = subtopic;
|
|
130
134
|
const existingSubTopics = topics[subtopic];
|
|
131
135
|
let subtopicCommands = [];
|
|
132
|
-
if (ts_types_1.isArray(existingSubTopics)) {
|
|
136
|
+
if ((0, ts_types_1.isArray)(existingSubTopics)) {
|
|
133
137
|
subtopicCommands = existingSubTopics;
|
|
134
138
|
}
|
|
135
|
-
ts_types_1.ensureArray(subtopicCommands);
|
|
139
|
+
(0, ts_types_1.ensureArray)(subtopicCommands);
|
|
136
140
|
subtopicCommands.push(command);
|
|
137
141
|
topics[subtopic] = subtopicCommands;
|
|
138
142
|
}
|
|
@@ -144,15 +148,15 @@ class Docs {
|
|
|
144
148
|
async populateTemplate(commands) {
|
|
145
149
|
const topicsAndSubtopics = this.groupTopicsAndSubtopics(commands);
|
|
146
150
|
await new cli_reference_1.CLIReference().write();
|
|
147
|
-
await utils_1.copyStaticFile(this.outputDir, templatesDir, 'cli_reference_help.xml');
|
|
151
|
+
await (0, utils_1.copyStaticFile)(this.outputDir, templatesDir, 'cli_reference_help.xml');
|
|
148
152
|
const topics = Object.keys(topicsAndSubtopics);
|
|
149
153
|
// Generate one base file with all top-level topics.
|
|
150
154
|
await new base_ditamap_1.BaseDitamap(topics).write();
|
|
151
|
-
|
|
155
|
+
await Promise.all(topics.map((topic) => {
|
|
152
156
|
utils_1.events.emit('topic', { topic });
|
|
153
|
-
const subtopics = ts_types_1.ensure(topicsAndSubtopics[topic]);
|
|
154
|
-
|
|
155
|
-
}
|
|
157
|
+
const subtopics = (0, ts_types_1.ensure)(topicsAndSubtopics[topic]);
|
|
158
|
+
return this.populateTopic(topic, subtopics);
|
|
159
|
+
}));
|
|
156
160
|
}
|
|
157
161
|
resolveCommandMeta(commandId, command, commandsInTopic) {
|
|
158
162
|
const commandMeta = {};
|
|
@@ -163,11 +167,11 @@ class Docs {
|
|
|
163
167
|
let currentMeta;
|
|
164
168
|
for (part of commandParts) {
|
|
165
169
|
if (currentMeta) {
|
|
166
|
-
const subtopics = ts_types_1.ensureJsonMap(currentMeta.subtopics);
|
|
167
|
-
currentMeta = ts_types_1.ensureJsonMap(subtopics[part]);
|
|
170
|
+
const subtopics = (0, ts_types_1.ensureJsonMap)(currentMeta.subtopics);
|
|
171
|
+
currentMeta = (0, ts_types_1.ensureJsonMap)(subtopics[part]);
|
|
168
172
|
}
|
|
169
173
|
else {
|
|
170
|
-
currentMeta = ts_types_1.ensureJsonMap(this.topicMeta[part]);
|
|
174
|
+
currentMeta = (0, ts_types_1.ensureJsonMap)(this.topicMeta[part]);
|
|
171
175
|
}
|
|
172
176
|
// Collect all tiers of the meta, so the command will also pick up the topic state (isPilot, etc) if applicable
|
|
173
177
|
Object.assign(commandMeta, currentMeta);
|
|
@@ -178,17 +182,13 @@ class Docs {
|
|
|
178
182
|
// This means there wasn't meta information going all the way down to the command, which is ok.
|
|
179
183
|
return commandMeta;
|
|
180
184
|
}
|
|
181
|
-
else {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
commandMeta.description = command.description;
|
|
189
|
-
commandMeta.longDescription = command.longDescription || utils_1.punctuate(command.description);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
185
|
+
else if (commandsInTopic !== 1) {
|
|
186
|
+
utils_1.events.emit('warning', `subtopic "${part}" meta not found for command ${commandId}`);
|
|
187
|
+
}
|
|
188
|
+
else if (!commandMeta.description) {
|
|
189
|
+
// Since there is no command meta, just use the command description since that is what oclif does.
|
|
190
|
+
commandMeta.description = command.description;
|
|
191
|
+
commandMeta.longDescription = command.longDescription ?? (0, utils_1.punctuate)(command.description);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
return commandMeta;
|
package/lib/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../src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AAM,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,IAAI,gCAAgC,SAAS,EAAE,CAAC,CAAC;aACtF;iBAAM,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE;gBACnC,kGAAkG;gBAClG,WAAW,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;gBAC9C,WAAW,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,IAAA,iBAAS,EAAC,OAAO,CAAC,WAAqB,CAAC,CAAC;aACnG;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,eAAe,CAC3B,KAAa,EACb,QAAgB,EAChB,OAAmB,EACnB,WAAoB;QAEpB,oCAAoC;QACpC,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAClC,OAAO,EAAE,CAAC;SACX;QAED,MAAM,cAAc,GAAG,IAAI,iBAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QAC1E,MAAM,cAAc,CAAC,KAAK,EAAE,CAAC;QAC7B,OAAO,cAAc,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC;CACF;AApOD,oBAoOC"}
|
package/lib/utils.js
CHANGED
|
@@ -15,15 +15,15 @@ const path_1 = require("path");
|
|
|
15
15
|
const ts_types_1 = require("@salesforce/ts-types");
|
|
16
16
|
exports.events = new events_1.EventEmitter();
|
|
17
17
|
async function copyStaticFile(outputDir, fileDir, fileName) {
|
|
18
|
-
const source = path_1.join(fileDir, fileName);
|
|
19
|
-
const dest = path_1.join(outputDir, fileName);
|
|
18
|
+
const source = (0, path_1.join)(fileDir, fileName);
|
|
19
|
+
const dest = (0, path_1.join)(outputDir, fileName);
|
|
20
20
|
await fs.promises.mkdir(outputDir, { recursive: true });
|
|
21
21
|
await fs.promises.copyFile(source, dest);
|
|
22
22
|
}
|
|
23
23
|
exports.copyStaticFile = copyStaticFile;
|
|
24
24
|
function mergeDeep(target, source) {
|
|
25
25
|
Object.keys(source).forEach((key) => {
|
|
26
|
-
if (ts_types_1.isObject(target[key]) && ts_types_1.isObject(source[key])) {
|
|
26
|
+
if ((0, ts_types_1.isObject)(target[key]) && (0, ts_types_1.isObject)(source[key])) {
|
|
27
27
|
mergeDeep(target[key], source[key]);
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
@@ -39,7 +39,7 @@ function punctuate(description) {
|
|
|
39
39
|
const lines = description.split(os_1.EOL);
|
|
40
40
|
let mainDescription = lines[0];
|
|
41
41
|
mainDescription = mainDescription.charAt(0).toUpperCase() + mainDescription.substring(1);
|
|
42
|
-
if (mainDescription.
|
|
42
|
+
if (!mainDescription.endsWith('.')) {
|
|
43
43
|
mainDescription += '.';
|
|
44
44
|
}
|
|
45
45
|
return mainDescription;
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,sEAAsE;;;AAEtE,mCAAsC;AACtC,yBAAyB;AACzB,2BAAyB;AACzB,+BAA4B;AAC5B,mDAA4D;AAE/C,QAAA,MAAM,GAAG,IAAI,qBAAY,EAAE,CAAC;AAElC,KAAK,UAAU,cAAc,CAAC,SAAiB,EAAE,OAAe,EAAE,QAAgB;IACvF,MAAM,MAAM,GAAG,WAAI,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,sEAAsE;;;AAEtE,mCAAsC;AACtC,yBAAyB;AACzB,2BAAyB;AACzB,+BAA4B;AAC5B,mDAA4D;AAE/C,QAAA,MAAM,GAAG,IAAI,qBAAY,EAAE,CAAC;AAElC,KAAK,UAAU,cAAc,CAAC,SAAiB,EAAE,OAAe,EAAE,QAAgB;IACvF,MAAM,MAAM,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC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D,8BAaC;AAED,SAAgB,mBAAmB,CAAC,WAAmB;IACrD,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,QAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7E,CAAC;AAFD,kDAEC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.4.
|
|
1
|
+
{"version":"1.4.3","commands":{"commandreference:generate":{"id":"commandreference:generate","description":"generate the command reference guide located","strict":true,"usage":"<%= command.id %> [-d <string>] [-p <array>] [--hidden] [--erroronwarnings] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-command-reference","pluginAlias":"@salesforce/plugin-command-reference","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"output directory to put generated files","multiple":false,"default":"./tmp/root"},"plugins":{"name":"plugins","type":"option","char":"p","description":"comma separated list of plugin names to be part of the generation. Defaults to the oclif plugin in the current working directory","multiple":false},"hidden":{"name":"hidden","type":"boolean","description":"show hidden commands","allowNo":false},"erroronwarnings":{"name":"erroronwarnings","type":"boolean","description":"fail the command if there are any warnings","allowNo":false}},"args":[{"name":"file"}],"flagsConfig":{"outputdir":{"kind":"string","char":"d","description":"output directory to put generated files","default":"./tmp/root","input":[],"multiple":false,"type":"option"},"plugins":{"kind":"array","char":"p","description":"comma separated list of plugin names to be part of the generation. Defaults to the oclif plugin in the current working directory","input":[],"multiple":false,"type":"option"},"hidden":{"kind":"boolean","description":"show hidden commands","allowNo":false,"type":"boolean"},"erroronwarnings":{"kind":"boolean","description":"fail the command if there are any warnings","allowNo":false,"type":"boolean"}}}}}
|
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-command-reference",
|
|
3
3
|
"description": "Generate the Salesforce CLI command reference guide",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/plugin-command-reference/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@salesforce/command": "^5.
|
|
9
|
-
"@salesforce/core": "^3.
|
|
8
|
+
"@salesforce/command": "^5.2.11",
|
|
9
|
+
"@salesforce/core": "^3.30.10",
|
|
10
|
+
"@types/lodash.uniqby": "^4.7.7",
|
|
10
11
|
"chalk": "^3.0.0",
|
|
11
12
|
"handlebars": "4.7.7",
|
|
13
|
+
"lodash.uniqby": "^4.7.0",
|
|
12
14
|
"shelljs": "^0.8.5",
|
|
13
|
-
"tslib": "^
|
|
15
|
+
"tslib": "^2"
|
|
14
16
|
},
|
|
15
17
|
"devDependencies": {
|
|
16
|
-
"@salesforce/dev-config": "^3.0
|
|
17
|
-
"@salesforce/dev-scripts": "^
|
|
18
|
-
"@salesforce/plugin-alias": "^2.0
|
|
19
|
-
"@salesforce/plugin-signups": "^1.
|
|
18
|
+
"@salesforce/dev-config": "^3.1.0",
|
|
19
|
+
"@salesforce/dev-scripts": "^3.1.0",
|
|
20
|
+
"@salesforce/plugin-alias": "^2.1.0",
|
|
21
|
+
"@salesforce/plugin-signups": "^1.2.0",
|
|
20
22
|
"@salesforce/prettier-config": "^0.0.2",
|
|
21
23
|
"@semantic-release/changelog": "^5.0.0",
|
|
22
24
|
"@semantic-release/git": "^9.0.1",
|
|
23
25
|
"@types/shelljs": "^0.8.11",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
25
|
-
"@typescript-eslint/parser": "^
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
27
|
+
"@typescript-eslint/parser": "^5.33.0",
|
|
26
28
|
"chai": "^4.3.6",
|
|
27
|
-
"eslint": "^
|
|
28
|
-
"eslint-config-prettier": "^
|
|
29
|
-
"eslint-config-salesforce": "^
|
|
29
|
+
"eslint": "^8.21.0",
|
|
30
|
+
"eslint-config-prettier": "^8.5.0",
|
|
31
|
+
"eslint-config-salesforce": "^1.1.0",
|
|
30
32
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
31
|
-
"eslint-config-salesforce-typescript": "^
|
|
33
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
32
34
|
"eslint-plugin-header": "^3.0.0",
|
|
33
35
|
"eslint-plugin-import": "2.26.0",
|
|
34
|
-
"eslint-plugin-jsdoc": "^
|
|
35
|
-
"eslint-plugin-prettier": "^3.1.3",
|
|
36
|
+
"eslint-plugin-jsdoc": "^39.3.6",
|
|
36
37
|
"husky": "^7.0.4",
|
|
37
38
|
"mocha": "^9.1.3",
|
|
38
39
|
"nyc": "^15.1.0",
|
|
39
|
-
"oclif": "^3.
|
|
40
|
-
"prettier": "^2.
|
|
40
|
+
"oclif": "^3.1.2",
|
|
41
|
+
"prettier": "^2.7.1",
|
|
41
42
|
"pretty-quick": "^3.1.3",
|
|
42
|
-
"salesforce-alm": "^54.
|
|
43
|
+
"salesforce-alm": "^54.8.1",
|
|
43
44
|
"semantic-release": "^17.4.7",
|
|
44
45
|
"sinon": "10.0.0",
|
|
45
|
-
"ts-node": "^10.
|
|
46
|
-
"typescript": "4.
|
|
46
|
+
"ts-node": "^10.9.1",
|
|
47
|
+
"typescript": "^4.8.4"
|
|
47
48
|
},
|
|
48
49
|
"engines": {
|
|
49
50
|
"node": ">=14.0.0"
|
|
@@ -96,4 +97,4 @@
|
|
|
96
97
|
"publishConfig": {
|
|
97
98
|
"access": "public"
|
|
98
99
|
}
|
|
99
|
-
}
|
|
100
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
## [1.4.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.20...v1.4.0) (2022-06-29)
|
|
6
|
-
|
|
7
|
-
### Features
|
|
8
|
-
|
|
9
|
-
- parking orbit ([be2adf1](https://github.com/forcedotcom/plugin-command-reference/commit/be2adf1a49364feead6290fa384184fdf7793f13))
|
|
10
|
-
|
|
11
|
-
### [1.3.20](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.19...v1.3.20) (2022-05-24)
|
|
12
|
-
|
|
13
|
-
### [1.3.19](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.17...v1.3.19) (2022-05-17)
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
- add dependabot and versioning strategy ([6a13574](https://github.com/forcedotcom/plugin-command-reference/commit/6a13574724f9e317a0624bc0bb92e9f1dc7a689c))
|
|
18
|
-
- remove '$' in codeblocks ([79e2b7b](https://github.com/forcedotcom/plugin-command-reference/commit/79e2b7b8bb5eacfad43319e1ca7ed42d2705f419))
|
|
19
|
-
|
|
20
|
-
### [1.3.17](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.16...v1.3.17) (2021-11-19)
|
|
21
|
-
|
|
22
|
-
### Bug Fixes
|
|
23
|
-
|
|
24
|
-
- combination of compatible handlebars w/ typescript ([a8c9088](https://github.com/forcedotcom/plugin-command-reference/commit/a8c90884fa78b413928fa9bffcfb93b9ba690365))
|
|
25
|
-
- move generate to test command ([a803451](https://github.com/forcedotcom/plugin-command-reference/commit/a80345161da0057767c5d480a3e8047478831a2d))
|
|
26
|
-
- run command in test itself ([9923935](https://github.com/forcedotcom/plugin-command-reference/commit/99239351fa218fcb3cc3fd5798e7148451cbc048))
|
|
27
|
-
|
|
28
|
-
### [1.3.16](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.15...v1.3.16) (2021-09-30)
|
|
29
|
-
|
|
30
|
-
### Bug Fixes
|
|
31
|
-
|
|
32
|
-
- update for the combined sf/sfdx cli reference ([ed08b75](https://github.com/forcedotcom/plugin-command-reference/commit/ed08b759b4a42fb245c82ab348ce78803de132db))
|
|
33
|
-
|
|
34
|
-
### [1.3.15](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.14...v1.3.15) (2021-09-10)
|
|
35
|
-
|
|
36
|
-
### [1.3.14](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.13...v1.3.14) (2021-08-13)
|
|
37
|
-
|
|
38
|
-
### [1.3.13](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.12...v1.3.13) (2021-08-13)
|
|
39
|
-
|
|
40
|
-
### [1.3.12](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.11...v1.3.12) (2021-08-12)
|
|
41
|
-
|
|
42
|
-
### [1.3.11](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.10...v1.3.11) (2021-08-12)
|
|
43
|
-
|
|
44
|
-
### [1.3.10](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.9...v1.3.10) (2021-08-12)
|
|
45
|
-
|
|
46
|
-
### [1.3.9](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.8...v1.3.9) (2021-08-12)
|
|
47
|
-
|
|
48
|
-
### [1.3.8](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.7...v1.3.8) (2021-08-11)
|
|
49
|
-
|
|
50
|
-
### [1.3.7](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.6...v1.3.7) (2021-08-11)
|
|
51
|
-
|
|
52
|
-
### [1.3.6](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.5...v1.3.6) (2021-08-11)
|
|
53
|
-
|
|
54
|
-
### [1.3.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.4...v1.3.5) (2021-08-10)
|
|
55
|
-
|
|
56
|
-
## [1.3.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.3...v1.3.4) (2021-06-04)
|
|
57
|
-
|
|
58
|
-
### Bug Fixes
|
|
59
|
-
|
|
60
|
-
- list plug-ins and their version in a <ul> ([f0e3f20](https://github.com/forcedotcom/plugin-command-reference/commit/f0e3f201a19818bac9d714a9a3a00fd0c2721407))
|
|
61
|
-
|
|
62
|
-
## [1.3.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.2...v1.3.3) (2021-05-17)
|
|
63
|
-
|
|
64
|
-
### Bug Fixes
|
|
65
|
-
|
|
66
|
-
- async load oclif/core commands ([#26](https://github.com/forcedotcom/plugin-command-reference/issues/26)) ([caa788d](https://github.com/forcedotcom/plugin-command-reference/commit/caa788d4f0efedb5c6e598a6df32e4c65cc4f1b3))
|
|
67
|
-
|
|
68
|
-
## [1.3.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.1...v1.3.2) (2021-05-03)
|
|
69
|
-
|
|
70
|
-
### Bug Fixes
|
|
71
|
-
|
|
72
|
-
- force patch release ([9a72942](https://github.com/forcedotcom/plugin-command-reference/commit/9a72942dca2bbdb791a1f765fed067290f365254))
|
|
73
|
-
|
|
74
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-05-03)
|
|
75
|
-
|
|
76
|
-
### Bug Fixes
|
|
77
|
-
|
|
78
|
-
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
79
|
-
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
80
|
-
- bump version 1.3.2 to force release ([2d38cf5](https://github.com/forcedotcom/plugin-command-reference/commit/2d38cf5a5ed6090e51360bbcab5131e13f709893))
|
|
81
|
-
- bump version 1.3.2 to force release ([34d8c00](https://github.com/forcedotcom/plugin-command-reference/commit/34d8c001f9a33b430ea1eeabc884194815ee2d25))
|
|
82
|
-
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
83
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
84
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
85
|
-
|
|
86
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-30)
|
|
87
|
-
|
|
88
|
-
### Bug Fixes
|
|
89
|
-
|
|
90
|
-
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
91
|
-
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
92
|
-
- bump version 1.3.2 to force release ([34d8c00](https://github.com/forcedotcom/plugin-command-reference/commit/34d8c001f9a33b430ea1eeabc884194815ee2d25))
|
|
93
|
-
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
94
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
95
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
96
|
-
|
|
97
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
98
|
-
|
|
99
|
-
### Bug Fixes
|
|
100
|
-
|
|
101
|
-
- add auth to list of plugins ([0a5494a](https://github.com/forcedotcom/plugin-command-reference/commit/0a5494a96bec63c3519ae5ea726d7f5e09e79cef))
|
|
102
|
-
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
103
|
-
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
104
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
105
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
106
|
-
|
|
107
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
108
|
-
|
|
109
|
-
### Bug Fixes
|
|
110
|
-
|
|
111
|
-
- add back spaces that were mistakenly removed ([381d2f9](https://github.com/forcedotcom/plugin-command-reference/commit/381d2f92966f1dcdfa2149f086b693ad658a548a))
|
|
112
|
-
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
113
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
114
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
115
|
-
|
|
116
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-29)
|
|
117
|
-
|
|
118
|
-
### Bug Fixes
|
|
119
|
-
|
|
120
|
-
- fix deprecated warning message ([9fc5219](https://github.com/forcedotcom/plugin-command-reference/commit/9fc5219d476f5456b9ed6d2c9c27216560bbf8bb))
|
|
121
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
122
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
123
|
-
|
|
124
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-26)
|
|
125
|
-
|
|
126
|
-
### Bug Fixes
|
|
127
|
-
|
|
128
|
-
- undo commit to master ([cbc3195](https://github.com/forcedotcom/plugin-command-reference/commit/cbc31958c4797118159039b466cd4365576bee62))
|
|
129
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
130
|
-
|
|
131
|
-
## [1.3.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.3.0...v1.3.1) (2021-04-26)
|
|
132
|
-
|
|
133
|
-
### Bug Fixes
|
|
134
|
-
|
|
135
|
-
- undo commit to master ([47efe40](https://github.com/forcedotcom/plugin-command-reference/commit/47efe40dde6c19782de6a21b89e62f8dc5e2d66a))
|
|
136
|
-
|
|
137
|
-
# [1.3.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.6...v1.3.0) (2021-02-02)
|
|
138
|
-
|
|
139
|
-
### Features
|
|
140
|
-
|
|
141
|
-
- default to current working directory when no plugins are provided ([#15](https://github.com/forcedotcom/plugin-command-reference/issues/15)) ([57a66b2](https://github.com/forcedotcom/plugin-command-reference/commit/57a66b21093f896adc69d71a3025679770e6e7ad))
|
|
142
|
-
|
|
143
|
-
## [1.2.6](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.5...v1.2.6) (2021-02-01)
|
|
144
|
-
|
|
145
|
-
### Bug Fixes
|
|
146
|
-
|
|
147
|
-
- remove note about "sfdx force:doc:commands:list" ([2378f39](https://github.com/forcedotcom/plugin-command-reference/commit/2378f39a88923c294a2a2cb8c002372e85e819cf))
|
|
148
|
-
|
|
149
|
-
## [1.2.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.4...v1.2.5) (2021-02-01)
|
|
150
|
-
|
|
151
|
-
### Bug Fixes
|
|
152
|
-
|
|
153
|
-
- Add list of other plugins as a top-level topic ([800d797](https://github.com/forcedotcom/plugin-command-reference/commit/800d7973a9e1c29a38866b258e20c0006ecf8aa2))
|
|
154
|
-
|
|
155
|
-
## [1.2.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.3...v1.2.4) (2021-01-20)
|
|
156
|
-
|
|
157
|
-
### Bug Fixes
|
|
158
|
-
|
|
159
|
-
- remove <ph id="topic-title"> ([2180c1a](https://github.com/forcedotcom/plugin-command-reference/commit/2180c1aaf310fb9cfbda2b947e5f5b77bdf3e226))
|
|
160
|
-
|
|
161
|
-
## [1.2.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.2...v1.2.3) (2020-11-05)
|
|
162
|
-
|
|
163
|
-
### Bug Fixes
|
|
164
|
-
|
|
165
|
-
- fix rel notes link to point to main branch ([663483b](https://github.com/forcedotcom/plugin-command-reference/commit/663483bd3aab0f40c68ac6b6327c34a4edce1014))
|
|
166
|
-
|
|
167
|
-
## [1.2.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.1...v1.2.2) (2020-10-28)
|
|
168
|
-
|
|
169
|
-
### Bug Fixes
|
|
170
|
-
|
|
171
|
-
- rearrange command xml, rename setup guide, fix rn link ([b1ad787](https://github.com/forcedotcom/plugin-command-reference/commit/b1ad7874958bd2cbe38f19896cfc5964da213488))
|
|
172
|
-
|
|
173
|
-
## [1.2.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.2.0...v1.2.1) (2020-10-27)
|
|
174
|
-
|
|
175
|
-
### Bug Fixes
|
|
176
|
-
|
|
177
|
-
- don't duplicate examples ([cd6328b](https://github.com/forcedotcom/plugin-command-reference/commit/cd6328b5cbc4a58f11d309acade7a67513acaf58))
|
|
178
|
-
|
|
179
|
-
# [1.2.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.5...v1.2.0) (2020-10-21)
|
|
180
|
-
|
|
181
|
-
### Features
|
|
182
|
-
|
|
183
|
-
- add aliases and examples ([aaf61ad](https://github.com/forcedotcom/plugin-command-reference/commit/aaf61adf3508f69d899898876f03154218ff5a9b))
|
|
184
|
-
|
|
185
|
-
## [1.1.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.4...v1.1.5) (2020-10-01)
|
|
186
|
-
|
|
187
|
-
### Bug Fixes
|
|
188
|
-
|
|
189
|
-
- correct help ([b75dd61](https://github.com/forcedotcom/plugin-command-reference/commit/b75dd61281ec1671e20f9a52078da642ede2e0a6))
|
|
190
|
-
|
|
191
|
-
## [1.1.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.3...v1.1.4) (2020-10-01)
|
|
192
|
-
|
|
193
|
-
### Bug Fixes
|
|
194
|
-
|
|
195
|
-
- ensure unique ids ([d51f193](https://github.com/forcedotcom/plugin-command-reference/commit/d51f19350bab150da23575bfa27e94e467df99d6))
|
|
196
|
-
|
|
197
|
-
## [1.1.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.2...v1.1.3) (2020-08-12)
|
|
198
|
-
|
|
199
|
-
### Bug Fixes
|
|
200
|
-
|
|
201
|
-
- put back multiple flag descriptions ([4c340a8](https://github.com/forcedotcom/plugin-command-reference/commit/4c340a8f414d2e892e135797754883db040ff89a))
|
|
202
|
-
|
|
203
|
-
## [1.1.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.1...v1.1.2) (2020-08-12)
|
|
204
|
-
|
|
205
|
-
### Bug Fixes
|
|
206
|
-
|
|
207
|
-
- return parameters ([c713fd0](https://github.com/forcedotcom/plugin-command-reference/commit/c713fd0f7d3f93f64a7f76b9a430d43aeaca875f))
|
|
208
|
-
|
|
209
|
-
## [1.1.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.1.0...v1.1.1) (2020-08-06)
|
|
210
|
-
|
|
211
|
-
### Bug Fixes
|
|
212
|
-
|
|
213
|
-
- no multiline in description ([0b846b7](https://github.com/forcedotcom/plugin-command-reference/commit/0b846b7931a35e1cad4956fa918ece30650944f9))
|
|
214
|
-
|
|
215
|
-
# [1.1.0](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.7...v1.1.0) (2020-07-29)
|
|
216
|
-
|
|
217
|
-
### Features
|
|
218
|
-
|
|
219
|
-
- support no long description ([4b5dabc](https://github.com/forcedotcom/plugin-command-reference/commit/4b5dabc7acc30bd689bda110484e2c0e345d64da))
|
|
220
|
-
|
|
221
|
-
## [1.0.7](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.6...v1.0.7) (2020-03-11)
|
|
222
|
-
|
|
223
|
-
### Bug Fixes
|
|
224
|
-
|
|
225
|
-
- do not warn on single command topics ([b799259](https://github.com/forcedotcom/plugin-command-reference/commit/b799259ff941fc7a13157cded1e5bb0895d212ce))
|
|
226
|
-
|
|
227
|
-
## [1.0.6](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.5...v1.0.6) (2020-03-09)
|
|
228
|
-
|
|
229
|
-
### Bug Fixes
|
|
230
|
-
|
|
231
|
-
- add back tests and allow for external topics ([88a9229](https://github.com/forcedotcom/plugin-command-reference/commit/88a9229f55be479a48ba3d696e00ac792e71ce6e))
|
|
232
|
-
|
|
233
|
-
## [1.0.5](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.4...v1.0.5) (2020-03-03)
|
|
234
|
-
|
|
235
|
-
### Bug Fixes
|
|
236
|
-
|
|
237
|
-
- missing path join ([def2d07](https://github.com/forcedotcom/plugin-command-reference/commit/def2d0710f539793c52d36199fe4b78ab88e0afd))
|
|
238
|
-
|
|
239
|
-
## [1.0.4](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.3...v1.0.4) (2020-03-03)
|
|
240
|
-
|
|
241
|
-
### Bug Fixes
|
|
242
|
-
|
|
243
|
-
- path for templates, again =) ([ccd7396](https://github.com/forcedotcom/plugin-command-reference/commit/ccd7396a1c3de89298325f8b2508753cc6a3bdd9))
|
|
244
|
-
|
|
245
|
-
## [1.0.3](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.2...v1.0.3) (2020-03-03)
|
|
246
|
-
|
|
247
|
-
### Bug Fixes
|
|
248
|
-
|
|
249
|
-
- path for templates ([652f269](https://github.com/forcedotcom/plugin-command-reference/commit/652f269c4d8f57a2f3e1afb1b299079c5ccbe180))
|
|
250
|
-
|
|
251
|
-
## [1.0.2](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.1...v1.0.2) (2020-03-03)
|
|
252
|
-
|
|
253
|
-
### Bug Fixes
|
|
254
|
-
|
|
255
|
-
- user dirname for templates ([51b9b0b](https://github.com/forcedotcom/plugin-command-reference/commit/51b9b0b7f1c99e894e72d0f1d7042445a61ad653))
|
|
256
|
-
|
|
257
|
-
## [1.0.1](https://github.com/forcedotcom/plugin-command-reference/compare/v1.0.0...v1.0.1) (2020-03-03)
|
|
258
|
-
|
|
259
|
-
### Bug Fixes
|
|
260
|
-
|
|
261
|
-
- update invalid script in dev-scripts ([cae155a](https://github.com/forcedotcom/plugin-command-reference/commit/cae155aa1d7fa9a007c08bc01fb29b1272aad9be))
|
|
262
|
-
- **release:** add plugins to commit changelog and package ([aa70b82](https://github.com/forcedotcom/plugin-command-reference/commit/aa70b82e7323c218fb86e88011c7e1809d5b5fa3))
|