@underlingscloud/cli 0.2.1 → 0.2.2
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/dist/commands/run.js +4 -10
- package/package.json +2 -2
package/dist/commands/run.js
CHANGED
|
@@ -135,17 +135,11 @@ const env = async (options) => {
|
|
|
135
135
|
switch (format) {
|
|
136
136
|
case 'yaml':
|
|
137
137
|
// YAML format for gcloud --env-vars-file
|
|
138
|
+
// Always quote values to prevent gcloud from interpreting
|
|
139
|
+
// numeric strings as integers (e.g. phone numbers, numeric IDs)
|
|
138
140
|
for (const [key, value] of sorted) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (needsQuote) {
|
|
142
|
-
// Use double-quoted YAML string, escaping backslashes and double quotes
|
|
143
|
-
const escaped = value.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n');
|
|
144
|
-
console.log(`${key}: "${escaped}"`);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
console.log(`${key}: ${value}`);
|
|
148
|
-
}
|
|
141
|
+
const escaped = value.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n');
|
|
142
|
+
console.log(`${key}: "${escaped}"`);
|
|
149
143
|
}
|
|
150
144
|
break;
|
|
151
145
|
case 'docker-build-args':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@underlingscloud/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Underlings Developer Utilities CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"directory": "packages/cli"
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT"
|
|
40
|
-
}
|
|
40
|
+
}
|