@oclif/core 3.20.1-dev.1 → 3.21.1
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.
|
@@ -155,7 +155,7 @@ class Table {
|
|
|
155
155
|
getCSVRow(d) {
|
|
156
156
|
const values = this.columns.map((col) => d[col.key] || '');
|
|
157
157
|
const lineToBeEscaped = values.find((e) => e.includes('"') || e.includes('\n') || e.includes('\r\n') || e.includes('\r') || e.includes(','));
|
|
158
|
-
return values.map((e) => (lineToBeEscaped ? `"${e.
|
|
158
|
+
return values.map((e) => (lineToBeEscaped ? `"${e.replaceAll('"', '""')}"` : e));
|
|
159
159
|
}
|
|
160
160
|
outputCSV() {
|
|
161
161
|
const { columns, data, options } = this;
|
package/lib/parser/parse.js
CHANGED
package/lib/parser/validate.js
CHANGED
|
@@ -34,7 +34,8 @@ async function validate(parse) {
|
|
|
34
34
|
parse,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
if
|
|
37
|
+
// Only add if it's required and undefined. Allow falsy values like empty strings and 0.
|
|
38
|
+
if (arg.required && parse.output.args[name] === undefined) {
|
|
38
39
|
missingRequiredArgs.push(arg);
|
|
39
40
|
}
|
|
40
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/core",
|
|
3
3
|
"description": "base library for oclif CLIs",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.21.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@oclif/plugin-help": "^6",
|
|
39
39
|
"@oclif/plugin-plugins": "^4",
|
|
40
40
|
"@oclif/prettier-config": "^0.2.1",
|
|
41
|
-
"@oclif/test": "^3.1
|
|
41
|
+
"@oclif/test": "^3.2.1",
|
|
42
42
|
"@types/ansi-styles": "^3.2.1",
|
|
43
43
|
"@types/benchmark": "^2.1.5",
|
|
44
44
|
"@types/chai": "^4.3.11",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"chai-as-promised": "^7.1.1",
|
|
64
64
|
"commitlint": "^17.8.1",
|
|
65
65
|
"cross-env": "^7.0.3",
|
|
66
|
-
"eslint": "^8.
|
|
67
|
-
"eslint-config-oclif": "^5.0.
|
|
66
|
+
"eslint": "^8.57.0",
|
|
67
|
+
"eslint-config-oclif": "^5.0.4",
|
|
68
68
|
"eslint-config-oclif-typescript": "^3.0.48",
|
|
69
69
|
"eslint-config-prettier": "^9.1.0",
|
|
70
70
|
"fancy-test": "^3.0.11",
|