Skip to content

Commit c713fd0

Browse files
committed
fix: return parameters
1 parent c4dce5f commit c713fd0

File tree

3 files changed

+7
-35
lines changed

3 files changed

+7
-35
lines changed

src/ditamap/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class Command extends Ditamap {
7373
}
7474

7575
public getParametersForTemplate(flags: Dictionary<CommandHelpInfo>) {
76-
Object.entries(flags)
76+
return Object.entries(flags)
7777
.filter(([, flag]) => !flag.hidden)
7878
.map(([flagName, flag]) => {
7979
const description = this.formatParagraphs(flag.longDescription || punctuate(flag.description));

test/endtoend.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ describe('salesforcedx', () => {
5353
const dita = loadTestDitamapFile(join('force', 'source', 'cli_reference_force_source_push.xml'));
5454
expect(/shortdesc">Pushes changed/.test(dita)).to.be.true;
5555
});
56+
it('creates parameters', async () => {
57+
const dita = loadTestDitamapFile(join('force', 'alias', 'cli_reference_force_alias_list.xml'));
58+
expect(/<title><ph>Parameters<\/ph><\/title>/.test(dita)).to.be.true;
59+
});
5660
});

yarn.lock

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@ debug@^2.2.0, debug@^2.3.3:
25662566
dependencies:
25672567
ms "2.0.0"
25682568

2569-
debuglog@*, debuglog@^1.0.1:
2569+
debuglog@^1.0.1:
25702570
version "1.0.1"
25712571
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
25722572
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -4355,7 +4355,7 @@ import-lazy@^2.1.0:
43554355
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
43564356
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=
43574357

4358-
imurmurhash@*, imurmurhash@^0.1.4:
4358+
imurmurhash@^0.1.4:
43594359
version "0.1.4"
43604360
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
43614361
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -5399,11 +5399,6 @@ lockfile@^1.0.4:
53995399
dependencies:
54005400
signal-exit "^3.0.2"
54015401

5402-
lodash._baseindexof@*:
5403-
version "3.1.0"
5404-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
5405-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
5406-
54075402
lodash._baseuniq@~4.6.0:
54085403
version "4.6.0"
54095404
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -5412,33 +5407,11 @@ lodash._baseuniq@~4.6.0:
54125407
lodash._createset "~4.0.0"
54135408
lodash._root "~3.0.0"
54145409

5415-
lodash._bindcallback@*:
5416-
version "3.0.1"
5417-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
5418-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
5419-
5420-
lodash._cacheindexof@*:
5421-
version "3.0.2"
5422-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
5423-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
5424-
5425-
lodash._createcache@*:
5426-
version "3.1.2"
5427-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
5428-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
5429-
dependencies:
5430-
lodash._getnative "^3.0.0"
5431-
54325410
lodash._createset@~4.0.0:
54335411
version "4.0.3"
54345412
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
54355413
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
54365414

5437-
lodash._getnative@*, lodash._getnative@^3.0.0:
5438-
version "3.9.1"
5439-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
5440-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
5441-
54425415
lodash._reinterpolate@^3.0.0:
54435416
version "3.0.0"
54445417
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
@@ -5514,11 +5487,6 @@ lodash.once@^4.0.0:
55145487
resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
55155488
integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=
55165489

5517-
lodash.restparam@*:
5518-
version "3.6.1"
5519-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
5520-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
5521-
55225490
lodash.template@^4.0.2, lodash.template@^4.4.0:
55235491
version "4.5.0"
55245492
resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab"

0 commit comments

Comments
 (0)