@hubspot/cli 8.6.0-beta.1 → 8.7.0-beta.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/api/releases.d.ts +36 -0
- package/api/releases.js +41 -0
- package/bin/cli.js +3 -3
- package/commands/account/auth.js +2 -2
- package/commands/account/clean.js +2 -2
- package/commands/account/createOverride.js +2 -2
- package/commands/account/info.js +2 -2
- package/commands/account/link.js +2 -2
- package/commands/account/list.js +2 -2
- package/commands/account/remove.js +2 -2
- package/commands/account/removeOverride.js +2 -2
- package/commands/account/rename.js +2 -2
- package/commands/account/unlink.js +2 -2
- package/commands/account/use.js +2 -2
- package/commands/api.js +2 -2
- package/commands/app/migrate.js +2 -2
- package/commands/app/secret/add.js +2 -2
- package/commands/app/secret/delete.js +2 -2
- package/commands/app/secret/list.js +2 -2
- package/commands/app/secret/update.js +2 -2
- package/commands/auth.js +2 -2
- package/commands/cms/app/create.js +2 -2
- package/commands/cms/convertFields.js +2 -2
- package/commands/cms/delete.js +2 -2
- package/commands/cms/fetch.js +2 -2
- package/commands/cms/function/create.js +2 -2
- package/commands/cms/function/deploy.js +2 -2
- package/commands/cms/function/list.js +2 -2
- package/commands/cms/function/logs.js +2 -2
- package/commands/cms/function/server.js +2 -2
- package/commands/cms/getReactModule.js +2 -2
- package/commands/cms/lighthouseScore.js +2 -2
- package/commands/cms/lint.js +2 -2
- package/commands/cms/list.js +2 -2
- package/commands/cms/module/create.js +8 -2
- package/commands/cms/module/marketplace-validate.js +2 -2
- package/commands/cms/mv.js +2 -2
- package/commands/cms/template/create.js +2 -2
- package/commands/cms/theme/create.js +2 -2
- package/commands/cms/theme/generate-selectors.js +2 -2
- package/commands/cms/theme/marketplace-validate.js +2 -2
- package/commands/cms/theme/preview.js +2 -2
- package/commands/cms/upload.js +2 -2
- package/commands/cms/watch.js +2 -2
- package/commands/cms/webpack/create.js +2 -2
- package/commands/completion.js +2 -2
- package/commands/config/migrate.js +2 -2
- package/commands/config/set.js +2 -2
- package/commands/customObject/create.js +2 -2
- package/commands/customObject/createSchema.js +2 -2
- package/commands/customObject/deleteSchema.js +2 -2
- package/commands/customObject/fetchAllSchemas.js +2 -2
- package/commands/customObject/fetchSchema.js +2 -2
- package/commands/customObject/listSchemas.js +2 -2
- package/commands/customObject/updateSchema.js +2 -2
- package/commands/doctor.js +2 -2
- package/commands/feedback.js +2 -2
- package/commands/filemanager/fetch.js +2 -2
- package/commands/filemanager/upload.js +2 -2
- package/commands/getStarted.js +2 -2
- package/commands/hubdb/clear.js +2 -2
- package/commands/hubdb/create.js +2 -2
- package/commands/hubdb/delete.js +2 -2
- package/commands/hubdb/fetch.js +2 -2
- package/commands/hubdb/list.js +2 -2
- package/commands/init.js +2 -2
- package/commands/mcp/setup.js +2 -2
- package/commands/mcp/start.js +2 -2
- package/commands/open.js +2 -2
- package/commands/project/add.js +2 -2
- package/commands/project/appInstallStatus.d.ts +2 -2
- package/commands/project/appInstallStatus.js +3 -2
- package/commands/project/create.js +2 -2
- package/commands/project/delete.js +2 -2
- package/commands/project/deploy.js +2 -2
- package/commands/project/dev/index.js +2 -2
- package/commands/project/download.js +2 -2
- package/commands/project/info.d.ts +2 -2
- package/commands/project/info.js +3 -2
- package/commands/project/installDeps.js +2 -2
- package/commands/project/lint.js +7 -5
- package/commands/project/list.d.ts +2 -2
- package/commands/project/list.js +3 -2
- package/commands/project/listBuilds.js +2 -2
- package/commands/project/logs.js +2 -2
- package/commands/project/migrate.js +2 -2
- package/commands/project/open.js +2 -2
- package/commands/project/profile/add.js +2 -2
- package/commands/project/profile/delete.js +2 -2
- package/commands/project/release/create.d.ts +7 -0
- package/commands/project/release/create.js +159 -0
- package/commands/project/release/info.d.ts +6 -0
- package/commands/project/release/info.js +147 -0
- package/commands/project/release/list.d.ts +6 -0
- package/commands/project/release/list.js +111 -0
- package/commands/project/release.d.ts +3 -0
- package/commands/project/release.js +20 -0
- package/commands/project/updateDeps.js +2 -2
- package/commands/project/upload.d.ts +3 -0
- package/commands/project/upload.js +77 -9
- package/commands/project/validate.js +2 -2
- package/commands/project/watch.js +2 -2
- package/commands/project.js +2 -0
- package/commands/sandbox/create.js +2 -2
- package/commands/sandbox/delete.js +2 -2
- package/commands/secret/addSecret.js +2 -2
- package/commands/secret/deleteSecret.js +2 -2
- package/commands/secret/listSecret.js +2 -2
- package/commands/secret/updateSecret.js +2 -2
- package/commands/testAccount/create.js +2 -2
- package/commands/testAccount/createConfig.js +2 -2
- package/commands/testAccount/delete.js +2 -2
- package/commands/testAccount/importData.js +2 -2
- package/commands/upgrade.js +2 -2
- package/lang/en.d.ts +92 -0
- package/lang/en.js +92 -0
- package/lib/api/usageTracking.d.ts +29 -0
- package/lib/api/usageTracking.js +28 -0
- package/lib/commonOpts.js +0 -1
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +1 -0
- package/lib/projects/localDev/helpers/project.js +1 -1
- package/lib/projects/npmAuditOnUpload.d.ts +10 -0
- package/lib/projects/npmAuditOnUpload.js +73 -0
- package/lib/projects/pollProjectBuildAndDeploy.d.ts +5 -1
- package/lib/projects/pollProjectBuildAndDeploy.js +3 -2
- package/lib/projects/preview.d.ts +7 -0
- package/lib/projects/preview.js +48 -0
- package/lib/projects/uieLinting.d.ts +4 -0
- package/lib/projects/uieLinting.js +36 -1
- package/lib/projects/upload.d.ts +3 -1
- package/lib/projects/upload.js +26 -6
- package/lib/projects/validateLintConfigOnUpload.d.ts +9 -0
- package/lib/projects/validateLintConfigOnUpload.js +45 -0
- package/lib/projects/workspaces.d.ts +11 -1
- package/lib/projects/workspaces.js +27 -12
- package/lib/usageTracking.d.ts +7 -17
- package/lib/usageTracking.js +43 -29
- package/lib/yargs/makeWrappedYargsHandler.d.ts +3 -0
- package/lib/yargs/{makeYargsHandlerWithUsageTracking.js → makeWrappedYargsHandler.js} +29 -3
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +2 -2
- package/mcp-server/tools/cms/HsCreateModuleTool.js +4 -5
- package/mcp-server/tools/cms/HsCreateTemplateTool.js +2 -2
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +2 -3
- package/mcp-server/tools/cms/HsListFunctionsTool.js +2 -3
- package/mcp-server/tools/cms/HsListTool.js +2 -2
- package/mcp-server/utils/toolUsageTracking.js +10 -6
- package/package.json +4 -4
- package/lib/yargs/makeYargsHandlerWithUsageTracking.d.ts +0 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SUBBUILD_TYPES } from '@hubspot/local-dev-lib/enums/build';
|
|
2
|
+
import { HubSpotPromise, QueryParams } from '@hubspot/local-dev-lib/types/Http';
|
|
3
|
+
import { ValueOf } from '@hubspot/local-dev-lib/types/Utils';
|
|
4
|
+
export type Release = {
|
|
5
|
+
releaseTag: string;
|
|
6
|
+
buildId: number;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
components?: Array<{
|
|
9
|
+
buildType: ValueOf<typeof SUBBUILD_TYPES>;
|
|
10
|
+
buildName?: string;
|
|
11
|
+
rootPath?: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export type FetchListReleasesResponse = {
|
|
16
|
+
results: Array<Release>;
|
|
17
|
+
paging: {
|
|
18
|
+
next: {
|
|
19
|
+
after: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type AutoReleaseResponse = {
|
|
24
|
+
releaseTag: string;
|
|
25
|
+
status: string;
|
|
26
|
+
appId: number;
|
|
27
|
+
};
|
|
28
|
+
export type AutoReleaseStatusResponse = {
|
|
29
|
+
status: 'PENDING' | 'COMPLETE';
|
|
30
|
+
currentReleaseTag?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare function createRelease(accountId: number, projectName: string, buildId: number): HubSpotPromise<Release>;
|
|
33
|
+
export declare function listReleases(accountId: number, projectName: string, params?: QueryParams): HubSpotPromise<FetchListReleasesResponse>;
|
|
34
|
+
export declare function getReleaseInfo(accountId: number, projectName: string, releaseTag: string): HubSpotPromise<Release>;
|
|
35
|
+
export declare function triggerAutoRelease(accountId: number, projectId: number, buildId: number, targetPortalId: number): HubSpotPromise<AutoReleaseResponse>;
|
|
36
|
+
export declare function getAutoReleaseStatus(accountId: number, projectId: number, targetPortalId: number, expectedReleaseTag: string, appId: number): HubSpotPromise<AutoReleaseStatusResponse>;
|
package/api/releases.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { http } from '@hubspot/local-dev-lib/http';
|
|
2
|
+
const PROJECTS_API_PATH = 'dfs/v1/projects';
|
|
3
|
+
const PROJECTS_DEPLOY_API_PATH = 'dfs/deploy/v1';
|
|
4
|
+
export function createRelease(accountId, projectName, buildId) {
|
|
5
|
+
return http.post(accountId, {
|
|
6
|
+
url: `${PROJECTS_API_PATH}/${encodeURIComponent(projectName)}/releases`,
|
|
7
|
+
data: { buildId },
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export function listReleases(accountId, projectName, params = {}) {
|
|
11
|
+
return http.get(accountId, {
|
|
12
|
+
url: `${PROJECTS_API_PATH}/${encodeURIComponent(projectName)}/releases`,
|
|
13
|
+
params,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export function getReleaseInfo(accountId, projectName, releaseTag) {
|
|
17
|
+
return http.get(accountId, {
|
|
18
|
+
url: `${PROJECTS_API_PATH}/${encodeURIComponent(projectName)}/releases/${encodeURIComponent(releaseTag)}`,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export function triggerAutoRelease(accountId, projectId, buildId, targetPortalId) {
|
|
22
|
+
return http.post(accountId, {
|
|
23
|
+
url: `${PROJECTS_DEPLOY_API_PATH}/auto-release`,
|
|
24
|
+
data: {
|
|
25
|
+
projectId,
|
|
26
|
+
buildId,
|
|
27
|
+
targetPortalId,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export function getAutoReleaseStatus(accountId, projectId, targetPortalId, expectedReleaseTag, appId) {
|
|
32
|
+
return http.get(accountId, {
|
|
33
|
+
url: `${PROJECTS_DEPLOY_API_PATH}/auto-release/status`,
|
|
34
|
+
params: {
|
|
35
|
+
projectId,
|
|
36
|
+
targetPortalId,
|
|
37
|
+
expectedReleaseTag,
|
|
38
|
+
appId,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
package/bin/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import yargs from 'yargs';
|
|
3
|
-
import { logError } from '../lib/errorHandlers/index.js';
|
|
3
|
+
import { logError, debugError } from '../lib/errorHandlers/index.js';
|
|
4
4
|
import { setCLILogLevel, getCommandName } from '../lib/commonOpts.js';
|
|
5
5
|
import { trackHelpUsage, trackConvertFieldsUsage, } from '../lib/usageTracking.js';
|
|
6
6
|
import { EXIT_CODES } from '../lib/enums/exitCodes.js';
|
|
@@ -132,11 +132,11 @@ const argvWithSuggestions = await parseYargsOrExit(parser, handleFailure);
|
|
|
132
132
|
if ('help' in argvWithSuggestions && argvWithSuggestions.help !== undefined) {
|
|
133
133
|
(async () => {
|
|
134
134
|
await trackHelpUsage(getCommandName(argvWithSuggestions));
|
|
135
|
-
})();
|
|
135
|
+
})().catch(debugError);
|
|
136
136
|
}
|
|
137
137
|
if ('convertFields' in argvWithSuggestions &&
|
|
138
138
|
argvWithSuggestions.convertFields !== undefined) {
|
|
139
139
|
(async () => {
|
|
140
140
|
await trackConvertFieldsUsage(getCommandName(argvWithSuggestions));
|
|
141
|
-
})();
|
|
141
|
+
})().catch(debugError);
|
|
142
142
|
}
|
package/commands/account/auth.js
CHANGED
|
@@ -6,7 +6,7 @@ import { trackAuthAction } from '../../lib/usageTracking.js';
|
|
|
6
6
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
7
7
|
import { uiFeatureHighlight } from '../../lib/ui/index.js';
|
|
8
8
|
import { parseStringToNumber } from '../../lib/parsing.js';
|
|
9
|
-
import {
|
|
9
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
10
10
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
11
11
|
import { commands } from '../../lang/en.js';
|
|
12
12
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
@@ -86,7 +86,7 @@ const builder = makeYargsBuilder(accountAuthBuilder, command, commands.account.s
|
|
|
86
86
|
const accountAuthCommand = {
|
|
87
87
|
command,
|
|
88
88
|
describe,
|
|
89
|
-
handler:
|
|
89
|
+
handler: makeWrappedYargsHandler('account-auth', handler),
|
|
90
90
|
builder,
|
|
91
91
|
};
|
|
92
92
|
export default accountAuthCommand;
|
|
@@ -8,7 +8,7 @@ import { promptUser } from '../../lib/prompts/promptUtils.js';
|
|
|
8
8
|
import { selectAccountFromConfig } from '../../lib/prompts/accountsPrompt.js';
|
|
9
9
|
import SpinniesManager from '../../lib/ui/SpinniesManager.js';
|
|
10
10
|
import { uiAccountDescription } from '../../lib/ui/index.js';
|
|
11
|
-
import {
|
|
11
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
12
12
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
13
13
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
14
14
|
import { commands } from '../../lang/en.js';
|
|
@@ -120,7 +120,7 @@ const builder = makeYargsBuilder(accountCleanBuilder, command, describe, {
|
|
|
120
120
|
const accountCleanCommand = {
|
|
121
121
|
command,
|
|
122
122
|
describe,
|
|
123
|
-
handler:
|
|
123
|
+
handler: makeWrappedYargsHandler('accounts-clean', handler),
|
|
124
124
|
builder,
|
|
125
125
|
};
|
|
126
126
|
export default accountCleanCommand;
|
|
@@ -8,7 +8,7 @@ import { promptUser } from '../../lib/prompts/promptUtils.js';
|
|
|
8
8
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
9
9
|
import { selectAccountFromConfig } from '../../lib/prompts/accountsPrompt.js';
|
|
10
10
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
11
|
-
import {
|
|
11
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
12
12
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
13
13
|
import { commands } from '../../lang/en.js';
|
|
14
14
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
@@ -90,7 +90,7 @@ const builder = makeYargsBuilder(accountCreateOverrideBuilder, command, describe
|
|
|
90
90
|
const accountCreateOverrideCommand = {
|
|
91
91
|
command,
|
|
92
92
|
describe,
|
|
93
|
-
handler:
|
|
93
|
+
handler: makeWrappedYargsHandler('account-createOverride', handler),
|
|
94
94
|
builder,
|
|
95
95
|
};
|
|
96
96
|
export default accountCreateOverrideCommand;
|
package/commands/account/info.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getAccessToken } from '@hubspot/local-dev-lib/personalAccessKey';
|
|
|
6
6
|
import { uiAccountDescription } from '../../lib/ui/index.js';
|
|
7
7
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
8
8
|
import { indent } from '../../lib/ui/index.js';
|
|
9
|
-
import {
|
|
9
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
10
10
|
import { commands } from '../../lang/en.js';
|
|
11
11
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
12
12
|
import { renderList } from '../../ui/render.js';
|
|
@@ -88,7 +88,7 @@ const builder = makeYargsBuilder(accountInfoBuilder, command, describe, {
|
|
|
88
88
|
const accountInfoCommand = {
|
|
89
89
|
command,
|
|
90
90
|
describe,
|
|
91
|
-
handler:
|
|
91
|
+
handler: makeWrappedYargsHandler('account-info', handler),
|
|
92
92
|
builder,
|
|
93
93
|
};
|
|
94
94
|
export default accountInfoCommand;
|
package/commands/account/link.js
CHANGED
|
@@ -13,7 +13,7 @@ import { hasDeprecatedConfigConflict, writeLinkedSettings, } from '../../lib/lin
|
|
|
13
13
|
import { renderLinkedAccountsTable } from '../../lib/link/renderLinkedAccountsTable.js';
|
|
14
14
|
import { commands } from '../../lang/en.js';
|
|
15
15
|
import { debugError } from '../../lib/errorHandlers/index.js';
|
|
16
|
-
import {
|
|
16
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
17
17
|
const command = 'link';
|
|
18
18
|
// Hide the command until we're done testing and ready to make linking GA
|
|
19
19
|
// const describe = commands.account.subcommands.link.describe;
|
|
@@ -83,7 +83,7 @@ const builder = makeYargsBuilder(linkBuilder, command, commands.account.subcomma
|
|
|
83
83
|
const linkCommand = {
|
|
84
84
|
command,
|
|
85
85
|
describe,
|
|
86
|
-
handler:
|
|
86
|
+
handler: makeWrappedYargsHandler('account-link', handler),
|
|
87
87
|
builder,
|
|
88
88
|
};
|
|
89
89
|
export default linkCommand;
|
package/commands/account/list.js
CHANGED
|
@@ -3,7 +3,7 @@ import { getDefaultAccountOverrideFilePath } from '@hubspot/local-dev-lib/config
|
|
|
3
3
|
import { getHsSettingsFileIfExists, getHsSettingsFilePath, } from '@hubspot/local-dev-lib/config/hsSettings';
|
|
4
4
|
import { getCwd } from '@hubspot/local-dev-lib/path';
|
|
5
5
|
import { indent } from '../../lib/ui/index.js';
|
|
6
|
-
import {
|
|
6
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
7
7
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
8
8
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
9
9
|
import { commands } from '../../lang/en.js';
|
|
@@ -57,7 +57,7 @@ const builder = makeYargsBuilder(accountListBuilder, command, describe, {
|
|
|
57
57
|
const accountListCommand = {
|
|
58
58
|
command,
|
|
59
59
|
describe,
|
|
60
|
-
handler:
|
|
60
|
+
handler: makeWrappedYargsHandler('accounts-list', handler),
|
|
61
61
|
builder,
|
|
62
62
|
};
|
|
63
63
|
export default accountListCommand;
|
|
@@ -4,7 +4,7 @@ import { getDefaultAccountOverrideAccountId, getDefaultAccountOverrideFilePath,
|
|
|
4
4
|
import { promptUser } from '../../lib/prompts/promptUtils.js';
|
|
5
5
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
6
6
|
import { selectAccountFromConfig } from '../../lib/prompts/accountsPrompt.js';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
9
9
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
10
10
|
import { commands } from '../../lang/en.js';
|
|
@@ -82,7 +82,7 @@ const builder = makeYargsBuilder(accountRemoveBuilder, command, describe, {
|
|
|
82
82
|
const accountRemoveCommand = {
|
|
83
83
|
command,
|
|
84
84
|
describe,
|
|
85
|
-
handler:
|
|
85
|
+
handler: makeWrappedYargsHandler('accounts-remove', handler),
|
|
86
86
|
builder,
|
|
87
87
|
};
|
|
88
88
|
export default accountRemoveCommand;
|
|
@@ -5,7 +5,7 @@ import { DEFAULT_ACCOUNT_OVERRIDE_FILE_NAME } from '@hubspot/local-dev-lib/const
|
|
|
5
5
|
import { promptUser } from '../../lib/prompts/promptUtils.js';
|
|
6
6
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
7
7
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
8
|
-
import {
|
|
8
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
9
9
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
10
10
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
11
11
|
import { commands } from '../../lang/en.js';
|
|
@@ -66,7 +66,7 @@ const builder = makeYargsBuilder(accountRemoveOverrideBuilder, command, describe
|
|
|
66
66
|
const accountRemoveOverrideCommand = {
|
|
67
67
|
command,
|
|
68
68
|
describe,
|
|
69
|
-
handler:
|
|
69
|
+
handler: makeWrappedYargsHandler('account-removeOverride', handler),
|
|
70
70
|
builder,
|
|
71
71
|
};
|
|
72
72
|
export default accountRemoveOverrideCommand;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renameConfigAccount } from '@hubspot/local-dev-lib/config';
|
|
2
2
|
import { commands } from '../../lang/en.js';
|
|
3
3
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
4
|
-
import {
|
|
4
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
5
5
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
6
6
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
7
7
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
@@ -44,7 +44,7 @@ const builder = makeYargsBuilder(accountRenameBuilder, command, describe, {
|
|
|
44
44
|
const accountRenameCommand = {
|
|
45
45
|
command,
|
|
46
46
|
describe,
|
|
47
|
-
handler:
|
|
47
|
+
handler: makeWrappedYargsHandler('accounts-rename', handler),
|
|
48
48
|
builder,
|
|
49
49
|
};
|
|
50
50
|
export default accountRenameCommand;
|
|
@@ -9,7 +9,7 @@ import { ActionHandlers } from '../../lib/link/index.js';
|
|
|
9
9
|
import { hasDeprecatedConfigConflict, isDirectoryLinked, writeLinkedSettings, } from '../../lib/link/linkUtils.js';
|
|
10
10
|
import { commands } from '../../lang/en.js';
|
|
11
11
|
import { DEFAULT_HS_SETTINGS_PATH } from '@hubspot/local-dev-lib/constants/config';
|
|
12
|
-
import {
|
|
12
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
13
13
|
const command = 'unlink';
|
|
14
14
|
// Hide the command until we're done testing and ready to make linking GA
|
|
15
15
|
// const describe = commands.account.subcommands.link.describe;
|
|
@@ -64,7 +64,7 @@ const builder = makeYargsBuilder(unlinkBuilder, command, commands.account.subcom
|
|
|
64
64
|
const unlinkCommand = {
|
|
65
65
|
command,
|
|
66
66
|
describe,
|
|
67
|
-
handler:
|
|
67
|
+
handler: makeWrappedYargsHandler('account-unlink', handler),
|
|
68
68
|
builder,
|
|
69
69
|
};
|
|
70
70
|
export default unlinkCommand;
|
package/commands/account/use.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ENVIRONMENTS } from '@hubspot/local-dev-lib/constants/environments';
|
|
|
6
6
|
import { commands } from '../../lang/en.js';
|
|
7
7
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
8
8
|
import { selectAccountFromConfig, AUTHENTICATE_NEW_ACCOUNT_VALUE, } from '../../lib/prompts/accountsPrompt.js';
|
|
9
|
-
import {
|
|
9
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
10
10
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
11
11
|
import { authenticateNewAccount } from '../../lib/accountAuth.js';
|
|
12
12
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
@@ -146,7 +146,7 @@ const builder = makeYargsBuilder(accountUseBuilder, command, describe, {
|
|
|
146
146
|
const accountUseCommand = {
|
|
147
147
|
command,
|
|
148
148
|
describe,
|
|
149
|
-
handler:
|
|
149
|
+
handler: makeWrappedYargsHandler('accounts-use', handler),
|
|
150
150
|
builder,
|
|
151
151
|
};
|
|
152
152
|
export default accountUseCommand;
|
package/commands/api.js
CHANGED
|
@@ -5,7 +5,7 @@ import { logError, debugError, ApiErrorContext, } from '../lib/errorHandlers/ind
|
|
|
5
5
|
import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
|
|
6
6
|
import { commands } from '../lang/en.js';
|
|
7
7
|
import { EXIT_CODES } from '../lib/enums/exitCodes.js';
|
|
8
|
-
import {
|
|
8
|
+
import { makeWrappedYargsHandler } from '../lib/yargs/makeWrappedYargsHandler.js';
|
|
9
9
|
import { makeYargsBuilder } from '../lib/yargsUtils.js';
|
|
10
10
|
import { uiLogger } from '../lib/ui/logger.js';
|
|
11
11
|
const HTTP_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
|
|
@@ -159,6 +159,6 @@ const apiCommand = {
|
|
|
159
159
|
command,
|
|
160
160
|
describe,
|
|
161
161
|
builder,
|
|
162
|
-
handler:
|
|
162
|
+
handler: makeWrappedYargsHandler('api', handler),
|
|
163
163
|
};
|
|
164
164
|
export default apiCommand;
|
package/commands/app/migrate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getConfigAccountById } from '@hubspot/local-dev-lib/config';
|
|
2
2
|
import { PLATFORM_VERSIONS } from '@hubspot/project-parsing-lib/constants';
|
|
3
|
-
import {
|
|
3
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
4
4
|
import { trackCommandMetadataUsage } from '../../lib/usageTracking.js';
|
|
5
5
|
import { commands } from '../../lang/en.js';
|
|
6
6
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
@@ -90,7 +90,7 @@ const builder = makeYargsBuilder(appMigrateBuilder, command, commands.project.mi
|
|
|
90
90
|
const migrateCommand = {
|
|
91
91
|
command,
|
|
92
92
|
describe,
|
|
93
|
-
handler:
|
|
93
|
+
handler: makeWrappedYargsHandler('app-migrate', handler),
|
|
94
94
|
builder,
|
|
95
95
|
};
|
|
96
96
|
export default migrateCommand;
|
|
@@ -4,7 +4,7 @@ import { secretValuePrompt, secretNamePrompt, } from '../../../lib/prompts/secre
|
|
|
4
4
|
import { selectAppPrompt } from '../../../lib/prompts/selectAppPrompt.js';
|
|
5
5
|
import { commands } from '../../../lang/en.js';
|
|
6
6
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
9
9
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
10
10
|
import { uiBetaTag } from '../../../lib/ui/index.js';
|
|
@@ -56,7 +56,7 @@ const builder = makeYargsBuilder(addAppSecretBuilder, command, describe, {
|
|
|
56
56
|
const addAppSecretCommand = {
|
|
57
57
|
command,
|
|
58
58
|
describe,
|
|
59
|
-
handler:
|
|
59
|
+
handler: makeWrappedYargsHandler('app-secret-add', handler),
|
|
60
60
|
builder,
|
|
61
61
|
};
|
|
62
62
|
export default addAppSecretCommand;
|
|
@@ -4,7 +4,7 @@ import { confirmPrompt, listPrompt } from '../../../lib/prompts/promptUtils.js';
|
|
|
4
4
|
import { selectAppPrompt } from '../../../lib/prompts/selectAppPrompt.js';
|
|
5
5
|
import { commands } from '../../../lang/en.js';
|
|
6
6
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
9
9
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
10
10
|
import { uiBetaTag } from '../../../lib/ui/index.js';
|
|
@@ -79,7 +79,7 @@ const builder = makeYargsBuilder(deleteAppSecretBuilder, command, describe, {
|
|
|
79
79
|
const deleteAppSecretCommand = {
|
|
80
80
|
command,
|
|
81
81
|
describe,
|
|
82
|
-
handler:
|
|
82
|
+
handler: makeWrappedYargsHandler('app-secret-delete', handler),
|
|
83
83
|
builder,
|
|
84
84
|
};
|
|
85
85
|
export default deleteAppSecretCommand;
|
|
@@ -2,7 +2,7 @@ import { fetchAppSecrets } from '@hubspot/local-dev-lib/api/devSecrets';
|
|
|
2
2
|
import { logError } from '../../../lib/errorHandlers/index.js';
|
|
3
3
|
import { commands } from '../../../lang/en.js';
|
|
4
4
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
5
|
-
import {
|
|
5
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
6
6
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
7
7
|
import { selectAppPrompt } from '../../../lib/prompts/selectAppPrompt.js';
|
|
8
8
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
@@ -56,7 +56,7 @@ const builder = makeYargsBuilder(listAppSecretBuilder, command, describe, {
|
|
|
56
56
|
const listAppSecretCommand = {
|
|
57
57
|
command,
|
|
58
58
|
describe,
|
|
59
|
-
handler:
|
|
59
|
+
handler: makeWrappedYargsHandler('app-secret-list', handler),
|
|
60
60
|
builder,
|
|
61
61
|
};
|
|
62
62
|
export default listAppSecretCommand;
|
|
@@ -5,7 +5,7 @@ import { selectAppPrompt } from '../../../lib/prompts/selectAppPrompt.js';
|
|
|
5
5
|
import { listPrompt } from '../../../lib/prompts/promptUtils.js';
|
|
6
6
|
import { commands } from '../../../lang/en.js';
|
|
7
7
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
8
|
-
import {
|
|
8
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
9
9
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
10
10
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
11
11
|
import { uiBetaTag } from '../../../lib/ui/index.js';
|
|
@@ -69,7 +69,7 @@ const builder = makeYargsBuilder(updateAppSecretBuilder, command, describe, {
|
|
|
69
69
|
const updateAppSecretCommand = {
|
|
70
70
|
command,
|
|
71
71
|
describe,
|
|
72
|
-
handler:
|
|
72
|
+
handler: makeWrappedYargsHandler('app-secret-update', handler),
|
|
73
73
|
builder,
|
|
74
74
|
};
|
|
75
75
|
export default updateAppSecretCommand;
|
package/commands/auth.js
CHANGED
|
@@ -17,7 +17,7 @@ import { EXIT_CODES } from '../lib/enums/exitCodes.js';
|
|
|
17
17
|
import { uiFeatureHighlight } from '../lib/ui/index.js';
|
|
18
18
|
import { logError } from '../lib/errorHandlers/index.js';
|
|
19
19
|
import { isPromptExitError } from '../lib/errors/PromptExitError.js';
|
|
20
|
-
import {
|
|
20
|
+
import { makeWrappedYargsHandler } from '../lib/yargs/makeWrappedYargsHandler.js';
|
|
21
21
|
import { commands } from '../lang/en.js';
|
|
22
22
|
import { uiLogger } from '../lib/ui/logger.js';
|
|
23
23
|
import { parseStringToNumber } from '../lib/parsing.js';
|
|
@@ -184,7 +184,7 @@ const builder = makeYargsBuilder(authBuilder, command, commands.auth.verboseDesc
|
|
|
184
184
|
const authCommand = {
|
|
185
185
|
command,
|
|
186
186
|
describe,
|
|
187
|
-
handler:
|
|
187
|
+
handler: makeWrappedYargsHandler('auth', handler),
|
|
188
188
|
builder,
|
|
189
189
|
};
|
|
190
190
|
export default authCommand;
|
|
@@ -4,7 +4,7 @@ import { resolveLocalPath } from '../../../lib/filesystem.js';
|
|
|
4
4
|
import { commands } from '../../../lang/en.js';
|
|
5
5
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
6
6
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
9
9
|
import { isPromptExitError } from '../../../lib/errors/PromptExitError.js';
|
|
10
10
|
import assets from '../../../lib/cmsAssets/index.js';
|
|
@@ -80,6 +80,6 @@ const appCreateCommand = {
|
|
|
80
80
|
command,
|
|
81
81
|
describe,
|
|
82
82
|
builder,
|
|
83
|
-
handler:
|
|
83
|
+
handler: makeWrappedYargsHandler('create', handler),
|
|
84
84
|
};
|
|
85
85
|
export default appCreateCommand;
|
|
@@ -10,7 +10,7 @@ import { FieldsJs, isConvertableFieldJs, } from '@hubspot/local-dev-lib/cms/hand
|
|
|
10
10
|
import { trackConvertFieldsUsage } from '../../lib/usageTracking.js';
|
|
11
11
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
12
12
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
13
|
-
import {
|
|
13
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
14
14
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
15
15
|
const command = 'convert-fields';
|
|
16
16
|
const describe = commands.convertFields.describe;
|
|
@@ -91,7 +91,7 @@ const builder = makeYargsBuilder(convertFieldsBuilder, command, describe);
|
|
|
91
91
|
const convertFieldsCommand = {
|
|
92
92
|
command,
|
|
93
93
|
describe,
|
|
94
|
-
handler:
|
|
94
|
+
handler: makeWrappedYargsHandler('convert-fields', handler),
|
|
95
95
|
builder,
|
|
96
96
|
};
|
|
97
97
|
export default convertFieldsCommand;
|
package/commands/cms/delete.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { deleteFile } from '@hubspot/local-dev-lib/api/fileMapper';
|
|
2
2
|
import { logError, ApiErrorContext } from '../../lib/errorHandlers/index.js';
|
|
3
3
|
import { commands } from '../../lang/en.js';
|
|
4
|
-
import {
|
|
4
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
5
5
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
6
6
|
import { uiLogger } from '../../lib/ui/logger.js';
|
|
7
7
|
const command = 'delete <path>';
|
|
@@ -36,7 +36,7 @@ const builder = makeYargsBuilder(cmsDeleteBuilder, command, describe, {
|
|
|
36
36
|
const cmsDeleteCommand = {
|
|
37
37
|
command,
|
|
38
38
|
describe,
|
|
39
|
-
handler:
|
|
39
|
+
handler: makeWrappedYargsHandler('delete', handler),
|
|
40
40
|
builder,
|
|
41
41
|
};
|
|
42
42
|
export default cmsDeleteCommand;
|
package/commands/cms/fetch.js
CHANGED
|
@@ -3,7 +3,7 @@ import { addCmsPublishModeOptions, addOverwriteOptions, getCmsPublishMode, } fro
|
|
|
3
3
|
import { resolveLocalPath } from '../../lib/filesystem.js';
|
|
4
4
|
import { validateCmsPublishMode } from '../../lib/validation.js';
|
|
5
5
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
6
|
-
import {
|
|
6
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
7
7
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
8
8
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
9
9
|
import { commands } from '../../lang/en.js';
|
|
@@ -74,7 +74,7 @@ const builder = makeYargsBuilder(fetchBuilder, command, describe, {
|
|
|
74
74
|
const fetchCommand = {
|
|
75
75
|
command,
|
|
76
76
|
describe,
|
|
77
|
-
handler:
|
|
77
|
+
handler: makeWrappedYargsHandler('fetch', handler),
|
|
78
78
|
builder,
|
|
79
79
|
};
|
|
80
80
|
export default fetchCommand;
|
|
@@ -5,7 +5,7 @@ import { commands } from '../../../lang/en.js';
|
|
|
5
5
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
6
6
|
import { HTTP_METHODS } from '../../../types/Cms.js';
|
|
7
7
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
8
|
-
import {
|
|
8
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
9
9
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
10
10
|
import { isPromptExitError } from '../../../lib/errors/PromptExitError.js';
|
|
11
11
|
import assets from '../../../lib/cmsAssets/index.js';
|
|
@@ -83,6 +83,6 @@ const functionCreateCommand = {
|
|
|
83
83
|
command,
|
|
84
84
|
describe,
|
|
85
85
|
builder,
|
|
86
|
-
handler:
|
|
86
|
+
handler: makeWrappedYargsHandler('create', handler),
|
|
87
87
|
};
|
|
88
88
|
export default functionCreateCommand;
|
|
@@ -7,7 +7,7 @@ import { uiAccountDescription } from '../../../lib/ui/index.js';
|
|
|
7
7
|
import { poll } from '../../../lib/polling.js';
|
|
8
8
|
import { outputBuildLog } from '../../../lib/serverlessLogs.js';
|
|
9
9
|
import { commands } from '../../../lang/en.js';
|
|
10
|
-
import {
|
|
10
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
11
11
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
12
12
|
function isFunctionBuildError(e) {
|
|
13
13
|
return (typeof e === 'object' && e !== null && 'status' in e && e.status === 'ERROR');
|
|
@@ -82,7 +82,7 @@ const builder = makeYargsBuilder(functionDeployBuilder, command, describe, {
|
|
|
82
82
|
const functionDeployCommand = {
|
|
83
83
|
command,
|
|
84
84
|
describe,
|
|
85
|
-
handler:
|
|
85
|
+
handler: makeWrappedYargsHandler('function-deploy', handler),
|
|
86
86
|
builder,
|
|
87
87
|
};
|
|
88
88
|
export default functionDeployCommand;
|
|
@@ -4,7 +4,7 @@ import { uiLogger } from '../../../lib/ui/logger.js';
|
|
|
4
4
|
import { logError, ApiErrorContext } from '../../../lib/errorHandlers/index.js';
|
|
5
5
|
import { commands } from '../../../lang/en.js';
|
|
6
6
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
9
9
|
import { renderTable } from '../../../ui/render.js';
|
|
10
10
|
const command = ['list', 'ls'];
|
|
@@ -57,7 +57,7 @@ const builder = makeYargsBuilder(functionListBuilder, command, describe, {
|
|
|
57
57
|
const functionListCommand = {
|
|
58
58
|
command,
|
|
59
59
|
describe,
|
|
60
|
-
handler:
|
|
60
|
+
handler: makeWrappedYargsHandler('function-list', handler),
|
|
61
61
|
builder,
|
|
62
62
|
};
|
|
63
63
|
export default functionListCommand;
|
|
@@ -4,7 +4,7 @@ import { tailLogs } from '../../../lib/serverlessLogs.js';
|
|
|
4
4
|
import { promptUser } from '../../../lib/prompts/promptUtils.js';
|
|
5
5
|
import { EXIT_CODES } from '../../../lib/enums/exitCodes.js';
|
|
6
6
|
import { isHubSpotHttpError } from '@hubspot/local-dev-lib/errors/index';
|
|
7
|
-
import {
|
|
7
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
8
8
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
9
9
|
import { uiLogger } from '../../../lib/ui/logger.js';
|
|
10
10
|
import { commands } from '../../../lang/en.js';
|
|
@@ -125,6 +125,6 @@ const logsCommand = {
|
|
|
125
125
|
command,
|
|
126
126
|
describe,
|
|
127
127
|
builder,
|
|
128
|
-
handler:
|
|
128
|
+
handler: makeWrappedYargsHandler('logs', handler),
|
|
129
129
|
};
|
|
130
130
|
export default logsCommand;
|
|
@@ -2,7 +2,7 @@ import { uiLogger } from '../../../lib/ui/logger.js';
|
|
|
2
2
|
// This package is not typed, so we need to use require
|
|
3
3
|
import { start as startTestServer } from '@hubspot/serverless-dev-runtime';
|
|
4
4
|
import { commands } from '../../../lang/en.js';
|
|
5
|
-
import {
|
|
5
|
+
import { makeWrappedYargsHandler } from '../../../lib/yargs/makeWrappedYargsHandler.js';
|
|
6
6
|
import { makeYargsBuilder } from '../../../lib/yargsUtils.js';
|
|
7
7
|
const command = 'server <path>';
|
|
8
8
|
const describe = undefined;
|
|
@@ -62,7 +62,7 @@ const builder = makeYargsBuilder(functionServerBuilder, command, describe, {
|
|
|
62
62
|
const functionServerCommand = {
|
|
63
63
|
command,
|
|
64
64
|
describe,
|
|
65
|
-
handler:
|
|
65
|
+
handler: makeWrappedYargsHandler('functions-server', handler),
|
|
66
66
|
builder,
|
|
67
67
|
};
|
|
68
68
|
export default functionServerCommand;
|
|
@@ -7,7 +7,7 @@ import { uiLogger } from '../../lib/ui/logger.js';
|
|
|
7
7
|
import { logError } from '../../lib/errorHandlers/index.js';
|
|
8
8
|
import { listPrompt } from '../../lib/prompts/promptUtils.js';
|
|
9
9
|
import { EXIT_CODES } from '../../lib/enums/exitCodes.js';
|
|
10
|
-
import {
|
|
10
|
+
import { makeWrappedYargsHandler } from '../../lib/yargs/makeWrappedYargsHandler.js';
|
|
11
11
|
import { makeYargsBuilder } from '../../lib/yargsUtils.js';
|
|
12
12
|
const command = 'get-react-module [name] [dest]';
|
|
13
13
|
const describe = commands.cms.subcommands.getReactModule.describe;
|
|
@@ -70,7 +70,7 @@ const builder = makeYargsBuilder(cmsGetReactModuleBuilder, command, describe, {
|
|
|
70
70
|
const cmsGetReactModuleCommand = {
|
|
71
71
|
command,
|
|
72
72
|
describe,
|
|
73
|
-
handler:
|
|
73
|
+
handler: makeWrappedYargsHandler('get-react-module', handler),
|
|
74
74
|
builder,
|
|
75
75
|
};
|
|
76
76
|
export default cmsGetReactModuleCommand;
|