@hubspot/cli 5.2.1-beta.7 → 5.2.1-beta.9
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/commands/accounts/clean.js +4 -4
- package/commands/accounts/info.js +2 -2
- package/commands/accounts/list.js +2 -2
- package/commands/accounts/rename.js +2 -2
- package/commands/accounts.js +2 -2
- package/commands/auth.js +4 -6
- package/commands/cms/lighthouseScore.js +3 -3
- package/commands/cms.js +2 -2
- package/commands/config.js +2 -2
- package/commands/customObject/schema/create.js +1 -1
- package/commands/customObject/schema/update.js +1 -1
- package/commands/customObject.js +2 -2
- package/commands/fetch.js +5 -5
- package/commands/filemanager/fetch.js +3 -3
- package/commands/filemanager/upload.js +3 -3
- package/commands/filemanager.js +3 -3
- package/commands/functions/deploy.js +3 -3
- package/commands/functions/list.js +3 -3
- package/commands/functions/server.js +3 -3
- package/commands/functions.js +2 -2
- package/commands/hubdb/clear.js +3 -3
- package/commands/hubdb/create.js +3 -3
- package/commands/hubdb/delete.js +3 -3
- package/commands/hubdb/fetch.js +3 -3
- package/commands/hubdb.js +2 -2
- package/commands/init.js +4 -6
- package/commands/lint.js +2 -2
- package/commands/list.js +3 -3
- package/commands/logs.js +3 -3
- package/commands/module/marketplace-validate.js +4 -4
- package/commands/module.js +2 -2
- package/commands/mv.js +3 -3
- package/commands/open.js +3 -3
- package/commands/project/create.js +3 -3
- package/commands/project/deploy.js +3 -3
- package/commands/project/dev.js +12 -4
- package/commands/project/download.js +2 -2
- package/commands/project/listBuilds.js +3 -3
- package/commands/project/logs.js +3 -3
- package/commands/project/migrateApp.js +29 -12
- package/commands/project/open.js +4 -4
- package/commands/project/upload.js +11 -6
- package/commands/project/watch.js +3 -3
- package/commands/project.js +2 -2
- package/commands/remove.js +3 -3
- package/commands/sandbox/create.js +12 -12
- package/commands/sandbox/delete.js +4 -4
- package/commands/sandbox/sync.js +4 -4
- package/commands/sandbox.js +2 -2
- package/commands/secrets/addSecret.js +3 -3
- package/commands/secrets/deleteSecret.js +3 -3
- package/commands/secrets/listSecrets.js +3 -3
- package/commands/secrets/updateSecret.js +3 -3
- package/commands/secrets.js +2 -2
- package/commands/theme/marketplace-validate.js +4 -4
- package/commands/theme/preview.js +2 -2
- package/commands/upload.js +4 -4
- package/commands/watch.js +6 -9
- package/jest.config.js +1 -0
- package/lang/en.lyaml +34 -36
- package/lib/LocalDevManager.js +61 -8
- package/lib/__tests__/{commonOpts.js → commonOpts.test.js} +3 -0
- package/lib/__tests__/downloadProjectPrompt.test.js +31 -0
- package/lib/__tests__/projects.test.js +13 -17
- package/lib/__tests__/{serverlessLogs.js → serverlessLogs.test.js} +1 -0
- package/lib/buildAccount.js +197 -0
- package/lib/developerTestAccounts.js +52 -4
- package/lib/localDev.js +31 -19
- package/lib/marketplace-validate.js +11 -3
- package/lib/projects.js +45 -3
- package/lib/prompts/accountNamePrompt.js +81 -0
- package/lib/prompts/activeInstallConfirmationPrompt.js +20 -0
- package/lib/prompts/createProjectPrompt.js +4 -0
- package/lib/prompts/downloadProjectPrompt.js +4 -5
- package/lib/prompts/personalAccessKeyPrompt.js +2 -2
- package/lib/prompts/sandboxesPrompt.js +12 -41
- package/lib/prompts/selectPublicAppPrompt.js +9 -14
- package/lib/sandboxes.js +160 -1
- package/package.json +4 -4
- package/lib/developerTestAccountCreate.js +0 -186
- package/lib/prompts/developerTestAccountNamePrompt.js +0 -29
- package/lib/prompts/enterAccountNamePrompt.js +0 -33
- package/lib/sandboxCreate.js +0 -318
- /package/lib/__tests__/{validation.js → validation.test.js} +0 -0
|
@@ -127,10 +127,10 @@ exports.handler = async options => {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
exports.builder = yargs => {
|
|
130
|
-
addConfigOptions(yargs
|
|
131
|
-
addAccountOptions(yargs
|
|
132
|
-
addUseEnvironmentOptions(yargs
|
|
133
|
-
addTestingOptions(yargs
|
|
130
|
+
addConfigOptions(yargs);
|
|
131
|
+
addAccountOptions(yargs);
|
|
132
|
+
addUseEnvironmentOptions(yargs);
|
|
133
|
+
addTestingOptions(yargs);
|
|
134
134
|
|
|
135
135
|
yargs.example([['$0 accounts clean']]);
|
|
136
136
|
|
|
@@ -39,8 +39,8 @@ exports.handler = async options => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
exports.builder = yargs => {
|
|
42
|
-
addConfigOptions(yargs
|
|
43
|
-
addAccountOptions(yargs
|
|
42
|
+
addConfigOptions(yargs);
|
|
43
|
+
addAccountOptions(yargs);
|
|
44
44
|
|
|
45
45
|
yargs.example([
|
|
46
46
|
['$0 accounts info', i18n(`${i18nKey}.examples.default`)],
|
|
@@ -104,8 +104,8 @@ exports.handler = async options => {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
exports.builder = yargs => {
|
|
107
|
-
addConfigOptions(yargs
|
|
108
|
-
addAccountOptions(yargs
|
|
107
|
+
addConfigOptions(yargs);
|
|
108
|
+
addAccountOptions(yargs);
|
|
109
109
|
|
|
110
110
|
yargs.example([['$0 accounts list']]);
|
|
111
111
|
|
|
@@ -34,8 +34,8 @@ exports.handler = async options => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
exports.builder = yargs => {
|
|
37
|
-
addConfigOptions(yargs
|
|
38
|
-
addAccountOptions(yargs
|
|
37
|
+
addConfigOptions(yargs);
|
|
38
|
+
addAccountOptions(yargs);
|
|
39
39
|
|
|
40
40
|
yargs.positional('accountName', {
|
|
41
41
|
describe: i18n(`${i18nKey}.positionals.accountName.describe`),
|
package/commands/accounts.js
CHANGED
|
@@ -13,8 +13,8 @@ exports.command = 'accounts';
|
|
|
13
13
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
14
14
|
|
|
15
15
|
exports.builder = yargs => {
|
|
16
|
-
addConfigOptions(yargs
|
|
17
|
-
addAccountOptions(yargs
|
|
16
|
+
addConfigOptions(yargs);
|
|
17
|
+
addAccountOptions(yargs);
|
|
18
18
|
|
|
19
19
|
yargs
|
|
20
20
|
.command({
|
package/commands/auth.js
CHANGED
|
@@ -31,9 +31,7 @@ const {
|
|
|
31
31
|
personalAccessKeyPrompt,
|
|
32
32
|
OAUTH_FLOW,
|
|
33
33
|
} = require('../lib/prompts/personalAccessKeyPrompt');
|
|
34
|
-
const {
|
|
35
|
-
enterAccountNamePrompt,
|
|
36
|
-
} = require('../lib/prompts/enterAccountNamePrompt');
|
|
34
|
+
const { cliAccountNamePrompt } = require('../lib/prompts/accountNamePrompt');
|
|
37
35
|
const {
|
|
38
36
|
setAsDefaultAccountPrompt,
|
|
39
37
|
} = require('../lib/prompts/setAsDefaultAccountPrompt');
|
|
@@ -129,7 +127,7 @@ exports.handler = async options => {
|
|
|
129
127
|
validName = updatedConfig.name;
|
|
130
128
|
|
|
131
129
|
if (!validName) {
|
|
132
|
-
const { name: namePrompt } = await
|
|
130
|
+
const { name: namePrompt } = await cliAccountNamePrompt(defaultName);
|
|
133
131
|
validName = namePrompt;
|
|
134
132
|
}
|
|
135
133
|
|
|
@@ -218,8 +216,8 @@ exports.builder = yargs => {
|
|
|
218
216
|
},
|
|
219
217
|
});
|
|
220
218
|
|
|
221
|
-
addConfigOptions(yargs
|
|
222
|
-
addTestingOptions(yargs
|
|
219
|
+
addConfigOptions(yargs);
|
|
220
|
+
addTestingOptions(yargs);
|
|
223
221
|
|
|
224
222
|
return yargs;
|
|
225
223
|
};
|
|
@@ -310,9 +310,9 @@ exports.builder = yargs => {
|
|
|
310
310
|
],
|
|
311
311
|
]);
|
|
312
312
|
|
|
313
|
-
addConfigOptions(yargs
|
|
314
|
-
addAccountOptions(yargs
|
|
315
|
-
addUseEnvironmentOptions(yargs
|
|
313
|
+
addConfigOptions(yargs);
|
|
314
|
+
addAccountOptions(yargs);
|
|
315
|
+
addUseEnvironmentOptions(yargs);
|
|
316
316
|
|
|
317
317
|
return yargs;
|
|
318
318
|
};
|
package/commands/cms.js
CHANGED
|
@@ -10,8 +10,8 @@ exports.command = 'cms';
|
|
|
10
10
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
11
11
|
|
|
12
12
|
exports.builder = yargs => {
|
|
13
|
-
addConfigOptions(yargs
|
|
14
|
-
addAccountOptions(yargs
|
|
13
|
+
addConfigOptions(yargs);
|
|
14
|
+
addAccountOptions(yargs);
|
|
15
15
|
|
|
16
16
|
yargs
|
|
17
17
|
.command(lighthouseScore)
|
package/commands/config.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.command = 'config';
|
|
|
8
8
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
9
9
|
|
|
10
10
|
exports.builder = yargs => {
|
|
11
|
-
addConfigOptions(yargs
|
|
12
|
-
addAccountOptions(yargs
|
|
11
|
+
addConfigOptions(yargs);
|
|
12
|
+
addAccountOptions(yargs);
|
|
13
13
|
|
|
14
14
|
yargs.command(set).demandCommand(1, '');
|
|
15
15
|
|
package/commands/customObject.js
CHANGED
package/commands/fetch.js
CHANGED
|
@@ -56,11 +56,11 @@ exports.handler = async options => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
exports.builder = yargs => {
|
|
59
|
-
addConfigOptions(yargs
|
|
60
|
-
addAccountOptions(yargs
|
|
61
|
-
addOverwriteOptions(yargs
|
|
62
|
-
addModeOptions(yargs, { read: true }
|
|
63
|
-
addUseEnvironmentOptions(yargs
|
|
59
|
+
addConfigOptions(yargs);
|
|
60
|
+
addAccountOptions(yargs);
|
|
61
|
+
addOverwriteOptions(yargs);
|
|
62
|
+
addModeOptions(yargs, { read: true });
|
|
63
|
+
addUseEnvironmentOptions(yargs);
|
|
64
64
|
|
|
65
65
|
yargs.positional('src', {
|
|
66
66
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
|
@@ -50,9 +50,9 @@ exports.handler = async options => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
exports.builder = yargs => {
|
|
53
|
-
addConfigOptions(yargs
|
|
54
|
-
addAccountOptions(yargs
|
|
55
|
-
addUseEnvironmentOptions(yargs
|
|
53
|
+
addConfigOptions(yargs);
|
|
54
|
+
addAccountOptions(yargs);
|
|
55
|
+
addUseEnvironmentOptions(yargs);
|
|
56
56
|
|
|
57
57
|
yargs.positional('src', {
|
|
58
58
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
|
@@ -141,9 +141,9 @@ exports.handler = async options => {
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
exports.builder = yargs => {
|
|
144
|
-
addConfigOptions(yargs
|
|
145
|
-
addAccountOptions(yargs
|
|
146
|
-
addUseEnvironmentOptions(yargs
|
|
144
|
+
addConfigOptions(yargs);
|
|
145
|
+
addAccountOptions(yargs);
|
|
146
|
+
addUseEnvironmentOptions(yargs);
|
|
147
147
|
|
|
148
148
|
yargs.positional('src', {
|
|
149
149
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/filemanager.js
CHANGED
|
@@ -13,9 +13,9 @@ exports.command = 'filemanager';
|
|
|
13
13
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
14
14
|
|
|
15
15
|
exports.builder = yargs => {
|
|
16
|
-
addOverwriteOptions(yargs
|
|
17
|
-
addConfigOptions(yargs
|
|
18
|
-
addAccountOptions(yargs
|
|
16
|
+
addOverwriteOptions(yargs);
|
|
17
|
+
addConfigOptions(yargs);
|
|
18
|
+
addAccountOptions(yargs);
|
|
19
19
|
|
|
20
20
|
yargs
|
|
21
21
|
.command(upload)
|
|
@@ -112,9 +112,9 @@ exports.builder = yargs => {
|
|
|
112
112
|
],
|
|
113
113
|
]);
|
|
114
114
|
|
|
115
|
-
addConfigOptions(yargs
|
|
116
|
-
addAccountOptions(yargs
|
|
117
|
-
addUseEnvironmentOptions(yargs
|
|
115
|
+
addConfigOptions(yargs);
|
|
116
|
+
addAccountOptions(yargs);
|
|
117
|
+
addUseEnvironmentOptions(yargs);
|
|
118
118
|
|
|
119
119
|
return yargs;
|
|
120
120
|
};
|
|
@@ -52,9 +52,9 @@ exports.handler = async options => {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
exports.builder = yargs => {
|
|
55
|
-
addConfigOptions(yargs
|
|
56
|
-
addAccountOptions(yargs
|
|
57
|
-
addUseEnvironmentOptions(yargs
|
|
55
|
+
addConfigOptions(yargs);
|
|
56
|
+
addAccountOptions(yargs);
|
|
57
|
+
addUseEnvironmentOptions(yargs);
|
|
58
58
|
|
|
59
59
|
yargs.options({
|
|
60
60
|
json: {
|
|
@@ -68,9 +68,9 @@ exports.builder = yargs => {
|
|
|
68
68
|
],
|
|
69
69
|
]);
|
|
70
70
|
|
|
71
|
-
addConfigOptions(yargs
|
|
72
|
-
addAccountOptions(yargs
|
|
73
|
-
addUseEnvironmentOptions(yargs
|
|
71
|
+
addConfigOptions(yargs);
|
|
72
|
+
addAccountOptions(yargs);
|
|
73
|
+
addUseEnvironmentOptions(yargs);
|
|
74
74
|
|
|
75
75
|
return yargs;
|
|
76
76
|
};
|
package/commands/functions.js
CHANGED
|
@@ -10,8 +10,8 @@ exports.command = 'functions';
|
|
|
10
10
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
11
11
|
|
|
12
12
|
exports.builder = yargs => {
|
|
13
|
-
addConfigOptions(yargs
|
|
14
|
-
addAccountOptions(yargs
|
|
13
|
+
addConfigOptions(yargs);
|
|
14
|
+
addAccountOptions(yargs);
|
|
15
15
|
|
|
16
16
|
yargs
|
|
17
17
|
.command({
|
package/commands/hubdb/clear.js
CHANGED
|
@@ -57,9 +57,9 @@ exports.handler = async options => {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
exports.builder = yargs => {
|
|
60
|
-
addAccountOptions(yargs
|
|
61
|
-
addConfigOptions(yargs
|
|
62
|
-
addUseEnvironmentOptions(yargs
|
|
60
|
+
addAccountOptions(yargs);
|
|
61
|
+
addConfigOptions(yargs);
|
|
62
|
+
addUseEnvironmentOptions(yargs);
|
|
63
63
|
|
|
64
64
|
yargs.positional('tableId', {
|
|
65
65
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb/create.js
CHANGED
|
@@ -61,9 +61,9 @@ exports.handler = async options => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
exports.builder = yargs => {
|
|
64
|
-
addAccountOptions(yargs
|
|
65
|
-
addConfigOptions(yargs
|
|
66
|
-
addUseEnvironmentOptions(yargs
|
|
64
|
+
addAccountOptions(yargs);
|
|
65
|
+
addConfigOptions(yargs);
|
|
66
|
+
addUseEnvironmentOptions(yargs);
|
|
67
67
|
|
|
68
68
|
yargs.positional('src', {
|
|
69
69
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/hubdb/delete.js
CHANGED
|
@@ -45,9 +45,9 @@ exports.handler = async options => {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
exports.builder = yargs => {
|
|
48
|
-
addAccountOptions(yargs
|
|
49
|
-
addConfigOptions(yargs
|
|
50
|
-
addUseEnvironmentOptions(yargs
|
|
48
|
+
addAccountOptions(yargs);
|
|
49
|
+
addConfigOptions(yargs);
|
|
50
|
+
addUseEnvironmentOptions(yargs);
|
|
51
51
|
|
|
52
52
|
yargs.positional('tableId', {
|
|
53
53
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb/fetch.js
CHANGED
|
@@ -42,9 +42,9 @@ exports.handler = async options => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.builder = yargs => {
|
|
45
|
-
addAccountOptions(yargs
|
|
46
|
-
addConfigOptions(yargs
|
|
47
|
-
addUseEnvironmentOptions(yargs
|
|
45
|
+
addAccountOptions(yargs);
|
|
46
|
+
addConfigOptions(yargs);
|
|
47
|
+
addUseEnvironmentOptions(yargs);
|
|
48
48
|
|
|
49
49
|
yargs.positional('tableId', {
|
|
50
50
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb.js
CHANGED
|
@@ -11,8 +11,8 @@ exports.command = 'hubdb';
|
|
|
11
11
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
12
12
|
|
|
13
13
|
exports.builder = yargs => {
|
|
14
|
-
addConfigOptions(yargs
|
|
15
|
-
addAccountOptions(yargs
|
|
14
|
+
addConfigOptions(yargs);
|
|
15
|
+
addAccountOptions(yargs);
|
|
16
16
|
|
|
17
17
|
yargs
|
|
18
18
|
.command(clearCommand)
|
package/commands/init.js
CHANGED
|
@@ -40,9 +40,7 @@ const {
|
|
|
40
40
|
OAUTH_FLOW,
|
|
41
41
|
personalAccessKeyPrompt,
|
|
42
42
|
} = require('../lib/prompts/personalAccessKeyPrompt');
|
|
43
|
-
const {
|
|
44
|
-
enterAccountNamePrompt,
|
|
45
|
-
} = require('../lib/prompts/enterAccountNamePrompt');
|
|
43
|
+
const { cliAccountNamePrompt } = require('../lib/prompts/accountNamePrompt');
|
|
46
44
|
const { logDebugInfo } = require('../lib/debugInfo');
|
|
47
45
|
const { authenticateWithOauth } = require('../lib/oauth');
|
|
48
46
|
const { EXIT_CODES } = require('../lib/enums/exitCodes');
|
|
@@ -63,7 +61,7 @@ const personalAccessKeyConfigCreationFlow = async (env, account) => {
|
|
|
63
61
|
try {
|
|
64
62
|
const token = await getAccessToken(personalAccessKey, env);
|
|
65
63
|
const defaultName = token.hubName ? toKebabCase(token.hubName) : null;
|
|
66
|
-
const { name } = await
|
|
64
|
+
const { name } = await cliAccountNamePrompt(defaultName);
|
|
67
65
|
|
|
68
66
|
updatedConfig = updateConfigWithAccessToken(
|
|
69
67
|
token,
|
|
@@ -193,8 +191,8 @@ exports.builder = yargs => {
|
|
|
193
191
|
},
|
|
194
192
|
});
|
|
195
193
|
|
|
196
|
-
addConfigOptions(yargs
|
|
197
|
-
addTestingOptions(yargs
|
|
194
|
+
addConfigOptions(yargs);
|
|
195
|
+
addTestingOptions(yargs);
|
|
198
196
|
|
|
199
197
|
return yargs;
|
|
200
198
|
};
|
package/commands/lint.js
CHANGED
|
@@ -53,8 +53,8 @@ exports.handler = async options => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
exports.builder = yargs => {
|
|
56
|
-
addConfigOptions(yargs
|
|
57
|
-
addAccountOptions(yargs
|
|
56
|
+
addConfigOptions(yargs);
|
|
57
|
+
addAccountOptions(yargs);
|
|
58
58
|
yargs.positional('path', {
|
|
59
59
|
describe: i18n(`${i18nKey}.positionals.path.describe`),
|
|
60
60
|
type: 'string',
|
package/commands/list.js
CHANGED
|
@@ -87,9 +87,9 @@ exports.builder = yargs => {
|
|
|
87
87
|
});
|
|
88
88
|
yargs.example([['$0 list'], ['$0 list /'], ['$0 list serverless']]);
|
|
89
89
|
|
|
90
|
-
addConfigOptions(yargs
|
|
91
|
-
addAccountOptions(yargs
|
|
92
|
-
addUseEnvironmentOptions(yargs
|
|
90
|
+
addConfigOptions(yargs);
|
|
91
|
+
addAccountOptions(yargs);
|
|
92
|
+
addUseEnvironmentOptions(yargs);
|
|
93
93
|
|
|
94
94
|
return yargs;
|
|
95
95
|
};
|
package/commands/logs.js
CHANGED
|
@@ -131,9 +131,9 @@ exports.builder = yargs => {
|
|
|
131
131
|
['$0 logs my-endpoint --follow', i18n(`${i18nKey}.examples.follow`)],
|
|
132
132
|
]);
|
|
133
133
|
|
|
134
|
-
addConfigOptions(yargs
|
|
135
|
-
addAccountOptions(yargs
|
|
136
|
-
addUseEnvironmentOptions(yargs
|
|
134
|
+
addConfigOptions(yargs);
|
|
135
|
+
addAccountOptions(yargs);
|
|
136
|
+
addUseEnvironmentOptions(yargs);
|
|
137
137
|
|
|
138
138
|
return yargs;
|
|
139
139
|
};
|
|
@@ -48,16 +48,16 @@ exports.handler = async options => {
|
|
|
48
48
|
accountId,
|
|
49
49
|
validationId
|
|
50
50
|
);
|
|
51
|
-
processValidationErrors(validationResults);
|
|
51
|
+
processValidationErrors(i18nKey, validationResults);
|
|
52
52
|
displayValidationResults(i18nKey, validationResults);
|
|
53
53
|
|
|
54
54
|
process.exit();
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.builder = yargs => {
|
|
58
|
-
addConfigOptions(yargs
|
|
59
|
-
addAccountOptions(yargs
|
|
60
|
-
addUseEnvironmentOptions(yargs
|
|
58
|
+
addConfigOptions(yargs);
|
|
59
|
+
addAccountOptions(yargs);
|
|
60
|
+
addUseEnvironmentOptions(yargs);
|
|
61
61
|
|
|
62
62
|
yargs.positional('src', {
|
|
63
63
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/module.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.command = 'module';
|
|
|
8
8
|
exports.describe = false; //i18n(`${i18nKey}.describe`);
|
|
9
9
|
|
|
10
10
|
exports.builder = yargs => {
|
|
11
|
-
addConfigOptions(yargs
|
|
12
|
-
addAccountOptions(yargs
|
|
11
|
+
addConfigOptions(yargs);
|
|
12
|
+
addAccountOptions(yargs);
|
|
13
13
|
|
|
14
14
|
yargs.command(marketplaceValidate).demandCommand(1, '');
|
|
15
15
|
|
package/commands/mv.js
CHANGED
|
@@ -77,9 +77,9 @@ exports.handler = async options => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
exports.builder = yargs => {
|
|
80
|
-
addConfigOptions(yargs
|
|
81
|
-
addAccountOptions(yargs
|
|
82
|
-
addUseEnvironmentOptions(yargs
|
|
80
|
+
addConfigOptions(yargs);
|
|
81
|
+
addAccountOptions(yargs);
|
|
82
|
+
addUseEnvironmentOptions(yargs);
|
|
83
83
|
yargs.positional('srcPath', {
|
|
84
84
|
describe: 'Remote hubspot path',
|
|
85
85
|
type: 'string',
|
package/commands/open.js
CHANGED
|
@@ -67,9 +67,9 @@ exports.builder = yargs => {
|
|
|
67
67
|
['$0 open sn'],
|
|
68
68
|
]);
|
|
69
69
|
|
|
70
|
-
addConfigOptions(yargs
|
|
71
|
-
addAccountOptions(yargs
|
|
72
|
-
addUseEnvironmentOptions(yargs
|
|
70
|
+
addConfigOptions(yargs);
|
|
71
|
+
addAccountOptions(yargs);
|
|
72
|
+
addUseEnvironmentOptions(yargs);
|
|
73
73
|
|
|
74
74
|
return yargs;
|
|
75
75
|
};
|
|
@@ -93,9 +93,9 @@ exports.builder = yargs => {
|
|
|
93
93
|
|
|
94
94
|
yargs.example([['$0 project create', i18n(`${i18nKey}.examples.default`)]]);
|
|
95
95
|
|
|
96
|
-
addConfigOptions(yargs
|
|
97
|
-
addAccountOptions(yargs
|
|
98
|
-
addUseEnvironmentOptions(yargs
|
|
96
|
+
addConfigOptions(yargs);
|
|
97
|
+
addAccountOptions(yargs);
|
|
98
|
+
addUseEnvironmentOptions(yargs);
|
|
99
99
|
|
|
100
100
|
return yargs;
|
|
101
101
|
};
|
|
@@ -142,9 +142,9 @@ exports.builder = yargs => {
|
|
|
142
142
|
],
|
|
143
143
|
]);
|
|
144
144
|
|
|
145
|
-
addConfigOptions(yargs
|
|
146
|
-
addAccountOptions(yargs
|
|
147
|
-
addUseEnvironmentOptions(yargs
|
|
145
|
+
addConfigOptions(yargs);
|
|
146
|
+
addAccountOptions(yargs);
|
|
147
|
+
addUseEnvironmentOptions(yargs);
|
|
148
148
|
|
|
149
149
|
return yargs;
|
|
150
150
|
};
|
package/commands/project/dev.js
CHANGED
|
@@ -25,6 +25,7 @@ const {
|
|
|
25
25
|
uiAccountDescription,
|
|
26
26
|
uiBetaTag,
|
|
27
27
|
uiCommandReference,
|
|
28
|
+
uiLink,
|
|
28
29
|
} = require('../../lib/ui');
|
|
29
30
|
const SpinniesManager = require('../../lib/ui/SpinniesManager');
|
|
30
31
|
const LocalDevManager = require('../../lib/LocalDevManager');
|
|
@@ -70,6 +71,13 @@ exports.handler = async options => {
|
|
|
70
71
|
|
|
71
72
|
uiBetaTag(i18n(`${i18nKey}.logs.betaMessage`));
|
|
72
73
|
|
|
74
|
+
logger.log(
|
|
75
|
+
uiLink(
|
|
76
|
+
i18n(`${i18nKey}.logs.learnMoreLocalDevServer`),
|
|
77
|
+
'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
|
|
73
81
|
if (!projectConfig) {
|
|
74
82
|
logger.error(i18n(`${i18nKey}.errors.noProjectConfig`));
|
|
75
83
|
process.exit(EXIT_CODES.ERROR);
|
|
@@ -232,10 +240,10 @@ exports.handler = async options => {
|
|
|
232
240
|
};
|
|
233
241
|
|
|
234
242
|
exports.builder = yargs => {
|
|
235
|
-
addConfigOptions(yargs
|
|
236
|
-
addAccountOptions(yargs
|
|
237
|
-
addUseEnvironmentOptions(yargs
|
|
238
|
-
addTestingOptions(yargs
|
|
243
|
+
addConfigOptions(yargs);
|
|
244
|
+
addAccountOptions(yargs);
|
|
245
|
+
addUseEnvironmentOptions(yargs);
|
|
246
|
+
addTestingOptions(yargs);
|
|
239
247
|
|
|
240
248
|
yargs.example([['$0 project dev', i18n(`${i18nKey}.examples.default`)]]);
|
|
241
249
|
|
|
@@ -67,7 +67,7 @@ exports.handler = async options => {
|
|
|
67
67
|
})
|
|
68
68
|
);
|
|
69
69
|
let { name: promptedProjectName } = await downloadProjectPrompt(options);
|
|
70
|
-
|
|
70
|
+
projectName = promptedProjectName || project;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const absoluteDestPath = dest ? path.resolve(getCwd(), dest) : getCwd();
|
|
@@ -114,7 +114,7 @@ exports.handler = async options => {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
exports.builder = yargs => {
|
|
117
|
-
addUseEnvironmentOptions(yargs
|
|
117
|
+
addUseEnvironmentOptions(yargs);
|
|
118
118
|
|
|
119
119
|
yargs.options({
|
|
120
120
|
project: {
|
|
@@ -155,9 +155,9 @@ exports.builder = yargs => {
|
|
|
155
155
|
],
|
|
156
156
|
]);
|
|
157
157
|
|
|
158
|
-
addConfigOptions(yargs
|
|
159
|
-
addAccountOptions(yargs
|
|
160
|
-
addUseEnvironmentOptions(yargs
|
|
158
|
+
addConfigOptions(yargs);
|
|
159
|
+
addAccountOptions(yargs);
|
|
160
|
+
addUseEnvironmentOptions(yargs);
|
|
161
161
|
|
|
162
162
|
return yargs;
|
|
163
163
|
};
|
package/commands/project/logs.js
CHANGED
|
@@ -308,9 +308,9 @@ exports.builder = yargs => {
|
|
|
308
308
|
],
|
|
309
309
|
]);
|
|
310
310
|
|
|
311
|
-
addConfigOptions(yargs
|
|
312
|
-
addAccountOptions(yargs
|
|
313
|
-
addUseEnvironmentOptions(yargs
|
|
311
|
+
addConfigOptions(yargs);
|
|
312
|
+
addAccountOptions(yargs);
|
|
313
|
+
addUseEnvironmentOptions(yargs);
|
|
314
314
|
|
|
315
315
|
return yargs;
|
|
316
316
|
};
|