@hubspot/cli 4.1.8-beta.8 → 4.2.0
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/lang/en.lyaml +2 -2
- package/lib/sandboxes.js +4 -3
- package/package.json +2 -2
package/lang/en.lyaml
CHANGED
|
@@ -998,7 +998,7 @@ en:
|
|
|
998
998
|
invalidName: "You entered an invalid name. Please try again."
|
|
999
999
|
nameRequired: "The name may not be blank. Please try again."
|
|
1000
1000
|
spacesInName: "The name may not contain spaces. Please try again."
|
|
1001
|
-
accountNameExists: "Account name \"{{ name }}\" already exists, please enter a different name."
|
|
1001
|
+
accountNameExists: "Account with name \"{{ name }}\" already exists in the CLI config, please enter a different name."
|
|
1002
1002
|
personalAccessKeyPrompt:
|
|
1003
1003
|
enterAccountId: "Enter the account ID for your account (the number under the DOMAIN column at https://app.hubspot.com/myaccounts-beta ): "
|
|
1004
1004
|
enterClientId: "Enter your OAuth2 client ID: "
|
|
@@ -1077,7 +1077,7 @@ en:
|
|
|
1077
1077
|
errors:
|
|
1078
1078
|
invalidName: "You entered an invalid name. Please try again."
|
|
1079
1079
|
nameRequired: "The name may not be blank. Please try again."
|
|
1080
|
-
accountNameExists: "Account name \"{{ name }}\" already exists, please enter a different name."
|
|
1080
|
+
accountNameExists: "Account with name \"{{ name }}\" already exists in the CLI config, please enter a different name."
|
|
1081
1081
|
selectAccountName: "Select the sandbox account you want to delete"
|
|
1082
1082
|
selectParentAccountName: "Select the account that the sandbox belongs to"
|
|
1083
1083
|
type:
|
package/lib/sandboxes.js
CHANGED
|
@@ -256,19 +256,20 @@ const saveSandboxToConfig = async (env, result, force = false) => {
|
|
|
256
256
|
const invalidAccountName = accountNameExistsInConfig(nameForConfig);
|
|
257
257
|
if (invalidAccountName) {
|
|
258
258
|
if (!force) {
|
|
259
|
-
logger.log(
|
|
259
|
+
logger.log('');
|
|
260
|
+
logger.warn(
|
|
260
261
|
i18n(
|
|
261
262
|
`cli.lib.prompts.enterAccountNamePrompt.errors.accountNameExists`,
|
|
262
263
|
{ name: nameForConfig }
|
|
263
264
|
)
|
|
264
265
|
);
|
|
265
266
|
const { name: promptName } = await enterAccountNamePrompt(
|
|
266
|
-
nameForConfig
|
|
267
|
+
nameForConfig + `_${result.sandbox.sandboxHubId}`
|
|
267
268
|
);
|
|
268
269
|
validName = promptName;
|
|
269
270
|
} else {
|
|
270
271
|
// Basic invalid name handling when force flag is passed
|
|
271
|
-
validName = nameForConfig + `_${
|
|
272
|
+
validName = nameForConfig + `_${result.sandbox.sandboxHubId}`;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
275
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "CLI for working with HubSpot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a60ba8c2375e1102cfc98826147dbadaa94e8f31"
|
|
47
47
|
}
|