@salesforce/sf-plugins-core 1.21.7 → 1.21.8
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/deployer.d.ts +1 -1
- package/lib/util.d.ts +1 -7
- package/lib/util.js +2 -1
- package/package.json +1 -1
package/lib/deployer.d.ts
CHANGED
package/lib/util.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { EnvironmentVariable, OrgConfigProperties, SfdxPropertyKeys } from '@salesforce/core';
|
|
2
|
-
|
|
3
|
-
header: string;
|
|
4
|
-
body: Array<{
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
} | undefined>;
|
|
8
|
-
};
|
|
2
|
+
import { HelpSection } from '@oclif/core';
|
|
9
3
|
/**
|
|
10
4
|
* Function to build a help section for command help.
|
|
11
5
|
* Takes a string to be used as section header text and an array of enums
|
package/lib/util.js
CHANGED
|
@@ -42,10 +42,11 @@ function toHelpSection(header, ...vars) {
|
|
|
42
42
|
return Object.entries(v).map(([name, description]) => ({ name, description }));
|
|
43
43
|
}
|
|
44
44
|
})
|
|
45
|
-
.filter(
|
|
45
|
+
.filter(isHelpSectionBodyEntry);
|
|
46
46
|
return { header, body };
|
|
47
47
|
}
|
|
48
48
|
exports.toHelpSection = toHelpSection;
|
|
49
|
+
const isHelpSectionBodyEntry = (entry) => typeof entry === 'object' && entry !== null && 'name' in entry && 'description' in entry;
|
|
49
50
|
function parseVarArgs(args, argv) {
|
|
50
51
|
const final = {};
|
|
51
52
|
const argVals = Object.values(args);
|