@forge/cli 0.0.0-experimental-a9f00a0 → 0.0.0-experimental-deeb8f6
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/CHANGELOG.md +8 -6
- package/npm-shrinkwrap.json +222 -3885
- package/out/bin/cli.d.ts +0 -1
- package/out/bin/cli.d.ts.map +1 -1
- package/out/bin/cli.js +1 -4
- package/package.json +3 -56
- package/out/analytics-client/analytics-client.d.ts +0 -4
- package/out/analytics-client/analytics-client.d.ts.map +0 -1
- package/out/analytics-client/analytics-client.js +0 -6
- package/out/analytics-client/analytics-message-handler.d.ts +0 -17
- package/out/analytics-client/analytics-message-handler.d.ts.map +0 -1
- package/out/analytics-client/analytics-message-handler.js +0 -15
- package/out/autocomplete/autocomplete-config.json +0 -243
- package/out/autocomplete/index.d.ts +0 -5
- package/out/autocomplete/index.d.ts.map +0 -1
- package/out/autocomplete/index.js +0 -40
- package/out/autocomplete/isSupportedShell.d.ts +0 -2
- package/out/autocomplete/isSupportedShell.d.ts.map +0 -1
- package/out/autocomplete/isSupportedShell.js +0 -11
- package/out/autocomplete/types.d.ts +0 -14
- package/out/autocomplete/types.d.ts.map +0 -1
- package/out/autocomplete/types.js +0 -2
- package/out/autocomplete/util.d.ts +0 -6
- package/out/autocomplete/util.d.ts.map +0 -1
- package/out/autocomplete/util.js +0 -13
- package/out/bin/postinstall.d.ts +0 -2
- package/out/bin/postinstall.d.ts.map +0 -1
- package/out/bin/postinstall.js +0 -10
- package/out/command-line/anon-user-id.d.ts +0 -3
- package/out/command-line/anon-user-id.d.ts.map +0 -1
- package/out/command-line/anon-user-id.js +0 -17
- package/out/command-line/command.d.ts +0 -79
- package/out/command-line/command.d.ts.map +0 -1
- package/out/command-line/command.js +0 -348
- package/out/command-line/controller/assertUnreachable.d.ts +0 -2
- package/out/command-line/controller/assertUnreachable.d.ts.map +0 -1
- package/out/command-line/controller/assertUnreachable.js +0 -7
- package/out/command-line/controller/autocomplete-controller.d.ts +0 -12
- package/out/command-line/controller/autocomplete-controller.d.ts.map +0 -1
- package/out/command-line/controller/autocomplete-controller.js +0 -54
- package/out/command-line/controller/deploy-controller.d.ts +0 -43
- package/out/command-line/controller/deploy-controller.d.ts.map +0 -1
- package/out/command-line/controller/deploy-controller.js +0 -139
- package/out/command-line/controller/feedback-controller.d.ts +0 -9
- package/out/command-line/controller/feedback-controller.d.ts.map +0 -1
- package/out/command-line/controller/feedback-controller.js +0 -19
- package/out/command-line/controller/getNodeVersion.d.ts +0 -2
- package/out/command-line/controller/getNodeVersion.d.ts.map +0 -1
- package/out/command-line/controller/getNodeVersion.js +0 -7
- package/out/command-line/controller/install-controller.d.ts +0 -35
- package/out/command-line/controller/install-controller.d.ts.map +0 -1
- package/out/command-line/controller/install-controller.js +0 -154
- package/out/command-line/controller/lint-controller.d.ts +0 -9
- package/out/command-line/controller/lint-controller.d.ts.map +0 -1
- package/out/command-line/controller/lint-controller.js +0 -20
- package/out/command-line/controller/pre-command-controller.d.ts +0 -25
- package/out/command-line/controller/pre-command-controller.d.ts.map +0 -1
- package/out/command-line/controller/pre-command-controller.js +0 -57
- package/out/command-line/controller/prerequisites-controller.d.ts +0 -11
- package/out/command-line/controller/prerequisites-controller.d.ts.map +0 -1
- package/out/command-line/controller/prerequisites-controller.js +0 -34
- package/out/command-line/controller/settings-controller.d.ts +0 -19
- package/out/command-line/controller/settings-controller.d.ts.map +0 -1
- package/out/command-line/controller/settings-controller.js +0 -48
- package/out/command-line/controller/stubController.d.ts +0 -9
- package/out/command-line/controller/stubController.d.ts.map +0 -1
- package/out/command-line/controller/stubController.js +0 -15
- package/out/command-line/controller/tunnel-controller.d.ts +0 -14
- package/out/command-line/controller/tunnel-controller.d.ts.map +0 -1
- package/out/command-line/controller/tunnel-controller.js +0 -42
- package/out/command-line/dependency-injection.d.ts +0 -69
- package/out/command-line/dependency-injection.d.ts.map +0 -1
- package/out/command-line/dependency-injection.js +0 -186
- package/out/command-line/environment.d.ts +0 -2
- package/out/command-line/environment.d.ts.map +0 -1
- package/out/command-line/environment.js +0 -15
- package/out/command-line/errors.d.ts +0 -6
- package/out/command-line/errors.d.ts.map +0 -1
- package/out/command-line/errors.js +0 -12
- package/out/command-line/index.d.ts +0 -5
- package/out/command-line/index.d.ts.map +0 -1
- package/out/command-line/index.js +0 -66
- package/out/command-line/register-app-commands.d.ts +0 -10
- package/out/command-line/register-app-commands.d.ts.map +0 -1
- package/out/command-line/register-app-commands.js +0 -128
- package/out/command-line/register-authentication-command.d.ts +0 -16
- package/out/command-line/register-authentication-command.d.ts.map +0 -1
- package/out/command-line/register-authentication-command.js +0 -92
- package/out/command-line/register-autocomplete-commands.d.ts +0 -3
- package/out/command-line/register-autocomplete-commands.d.ts.map +0 -1
- package/out/command-line/register-autocomplete-commands.js +0 -13
- package/out/command-line/register-deployment-commands.d.ts +0 -22
- package/out/command-line/register-deployment-commands.d.ts.map +0 -1
- package/out/command-line/register-deployment-commands.js +0 -15
- package/out/command-line/register-environment-variables-commands.d.ts +0 -3
- package/out/command-line/register-environment-variables-commands.d.ts.map +0 -1
- package/out/command-line/register-environment-variables-commands.js +0 -99
- package/out/command-line/register-feedback-commands.d.ts +0 -3
- package/out/command-line/register-feedback-commands.d.ts.map +0 -1
- package/out/command-line/register-feedback-commands.js +0 -31
- package/out/command-line/register-installation-commands.d.ts +0 -6
- package/out/command-line/register-installation-commands.d.ts.map +0 -1
- package/out/command-line/register-installation-commands.js +0 -140
- package/out/command-line/register-lint-command.d.ts +0 -8
- package/out/command-line/register-lint-command.d.ts.map +0 -1
- package/out/command-line/register-lint-command.js +0 -15
- package/out/command-line/register-log-commands.d.ts +0 -4
- package/out/command-line/register-log-commands.d.ts.map +0 -1
- package/out/command-line/register-log-commands.js +0 -138
- package/out/command-line/register-providers-commands.d.ts +0 -3
- package/out/command-line/register-providers-commands.d.ts.map +0 -1
- package/out/command-line/register-providers-commands.js +0 -43
- package/out/command-line/register-settings-commands.d.ts +0 -3
- package/out/command-line/register-settings-commands.d.ts.map +0 -1
- package/out/command-line/register-settings-commands.js +0 -37
- package/out/command-line/register-tunnel-commands.d.ts +0 -3
- package/out/command-line/register-tunnel-commands.d.ts.map +0 -1
- package/out/command-line/register-tunnel-commands.js +0 -14
- package/out/command-line/register-webtrigger-commands.d.ts +0 -3
- package/out/command-line/register-webtrigger-commands.d.ts.map +0 -1
- package/out/command-line/register-webtrigger-commands.js +0 -55
- package/out/command-line/unique-machine-id.d.ts +0 -3
- package/out/command-line/unique-machine-id.d.ts.map +0 -1
- package/out/command-line/unique-machine-id.js +0 -18
- package/out/command-line/version-info.d.ts +0 -8
- package/out/command-line/version-info.d.ts.map +0 -1
- package/out/command-line/version-info.js +0 -34
- package/out/command-line/view/analytics-settings-view.d.ts +0 -7
- package/out/command-line/view/analytics-settings-view.d.ts.map +0 -1
- package/out/command-line/view/analytics-settings-view.js +0 -18
- package/out/command-line/view/deploy-view.d.ts +0 -21
- package/out/command-line/view/deploy-view.d.ts.map +0 -1
- package/out/command-line/view/deploy-view.js +0 -57
- package/out/command-line/view/install-view.d.ts +0 -18
- package/out/command-line/view/install-view.d.ts.map +0 -1
- package/out/command-line/view/install-view.js +0 -55
- package/out/command-line/view/lint-view.d.ts +0 -12
- package/out/command-line/view/lint-view.d.ts.map +0 -1
- package/out/command-line/view/lint-view.js +0 -31
- package/out/command-line/view/lite-lint-view.d.ts +0 -10
- package/out/command-line/view/lite-lint-view.d.ts.map +0 -1
- package/out/command-line/view/lite-lint-view.js +0 -18
- package/out/command-line/view/settings-view.d.ts +0 -8
- package/out/command-line/view/settings-view.d.ts.map +0 -1
- package/out/command-line/view/settings-view.js +0 -21
- package/out/command-line/view/tunnel-view.d.ts +0 -18
- package/out/command-line/view/tunnel-view.d.ts.map +0 -1
- package/out/command-line/view/tunnel-view.js +0 -89
- package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts +0 -24
- package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts.map +0 -1
- package/out/deploy/deployer/deploy-monitor-graphql-client.js +0 -57
- package/out/deploy/deployer/deployer.d.ts +0 -31
- package/out/deploy/deployer/deployer.d.ts.map +0 -1
- package/out/deploy/deployer/deployer.js +0 -154
- package/out/deploy/deployer/index.d.ts +0 -4
- package/out/deploy/deployer/index.d.ts.map +0 -1
- package/out/deploy/deployer/index.js +0 -6
- package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts +0 -19
- package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +0 -1
- package/out/deploy/deployer/trigger-deploy-graphql-client.js +0 -45
- package/out/deploy/index.d.ts +0 -5
- package/out/deploy/index.d.ts.map +0 -1
- package/out/deploy/index.js +0 -7
- package/out/deploy/package-upload-deploy.d.ts +0 -18
- package/out/deploy/package-upload-deploy.d.ts.map +0 -1
- package/out/deploy/package-upload-deploy.js +0 -28
- package/out/deploy/packager/archiver.d.ts +0 -24
- package/out/deploy/packager/archiver.d.ts.map +0 -1
- package/out/deploy/packager/archiver.js +0 -62
- package/out/deploy/packager/index.d.ts +0 -3
- package/out/deploy/packager/index.d.ts.map +0 -1
- package/out/deploy/packager/index.js +0 -5
- package/out/deploy/packager/packager.d.ts +0 -33
- package/out/deploy/packager/packager.d.ts.map +0 -1
- package/out/deploy/packager/packager.js +0 -38
- package/out/deploy/uploader/artifact-graphql-client.d.ts +0 -26
- package/out/deploy/uploader/artifact-graphql-client.d.ts.map +0 -1
- package/out/deploy/uploader/artifact-graphql-client.js +0 -92
- package/out/deploy/uploader/index.d.ts +0 -3
- package/out/deploy/uploader/index.d.ts.map +0 -1
- package/out/deploy/uploader/index.js +0 -5
- package/out/deploy/uploader/uploader.d.ts +0 -19
- package/out/deploy/uploader/uploader.d.ts.map +0 -1
- package/out/deploy/uploader/uploader.js +0 -43
- package/out/environment-variables/delete-environment-variable.d.ts +0 -18
- package/out/environment-variables/delete-environment-variable.d.ts.map +0 -1
- package/out/environment-variables/delete-environment-variable.js +0 -14
- package/out/environment-variables/graphql-client.d.ts +0 -16
- package/out/environment-variables/graphql-client.d.ts.map +0 -1
- package/out/environment-variables/graphql-client.js +0 -105
- package/out/environment-variables/list-environment-variables.d.ts +0 -22
- package/out/environment-variables/list-environment-variables.d.ts.map +0 -1
- package/out/environment-variables/list-environment-variables.js +0 -14
- package/out/environment-variables/set-environment-variable.d.ts +0 -20
- package/out/environment-variables/set-environment-variable.d.ts.map +0 -1
- package/out/environment-variables/set-environment-variable.js +0 -14
- package/out/installations/graphql-client.d.ts +0 -59
- package/out/installations/graphql-client.d.ts.map +0 -1
- package/out/installations/graphql-client.js +0 -346
- package/out/installations/install-app-site.d.ts +0 -21
- package/out/installations/install-app-site.d.ts.map +0 -1
- package/out/installations/install-app-site.js +0 -19
- package/out/installations/shared.d.ts +0 -5
- package/out/installations/shared.d.ts.map +0 -1
- package/out/installations/shared.js +0 -19
- package/out/installations/uninstall-app.d.ts +0 -25
- package/out/installations/uninstall-app.d.ts.map +0 -1
- package/out/installations/uninstall-app.js +0 -43
- package/out/migration-keys/graphql-client.d.ts +0 -8
- package/out/migration-keys/graphql-client.d.ts.map +0 -1
- package/out/migration-keys/graphql-client.js +0 -55
- package/out/providers/configure-provider.d.ts +0 -19
- package/out/providers/configure-provider.d.ts.map +0 -1
- package/out/providers/configure-provider.js +0 -14
- package/out/providers/graphql-client.d.ts +0 -12
- package/out/providers/graphql-client.d.ts.map +0 -1
- package/out/providers/graphql-client.js +0 -47
- package/out/service/cached-config-service.d.ts +0 -8
- package/out/service/cached-config-service.d.ts.map +0 -1
- package/out/service/cached-config-service.js +0 -16
- package/out/service/command-suggestion-service.d.ts +0 -4
- package/out/service/command-suggestion-service.d.ts.map +0 -1
- package/out/service/command-suggestion-service.js +0 -17
- package/out/service/docker-service.d.ts +0 -24
- package/out/service/docker-service.d.ts.map +0 -1
- package/out/service/docker-service.js +0 -71
- package/out/service/installation-service.d.ts +0 -51
- package/out/service/installation-service.d.ts.map +0 -1
- package/out/service/installation-service.js +0 -89
- package/out/service/lint-service.d.ts +0 -23
- package/out/service/lint-service.d.ts.map +0 -1
- package/out/service/lint-service.js +0 -39
- package/out/service/lite-lint-service.d.ts +0 -10
- package/out/service/lite-lint-service.d.ts.map +0 -1
- package/out/service/lite-lint-service.js +0 -27
- package/out/service/migration-keys-service.d.ts +0 -19
- package/out/service/migration-keys-service.d.ts.map +0 -1
- package/out/service/migration-keys-service.js +0 -14
- package/out/service/port-finding-service.d.ts +0 -12
- package/out/service/port-finding-service.d.ts.map +0 -1
- package/out/service/port-finding-service.js +0 -34
- package/out/service/resource-packaging-service.d.ts +0 -46
- package/out/service/resource-packaging-service.d.ts.map +0 -1
- package/out/service/resource-packaging-service.js +0 -128
- package/out/service/resources-uploader-service.d.ts +0 -16
- package/out/service/resources-uploader-service.d.ts.map +0 -1
- package/out/service/resources-uploader-service.js +0 -34
- package/out/service/tunnel-analytics-service.d.ts +0 -6
- package/out/service/tunnel-analytics-service.d.ts.map +0 -1
- package/out/service/tunnel-analytics-service.js +0 -13
- package/out/service/tunnel-service.d.ts +0 -47
- package/out/service/tunnel-service.d.ts.map +0 -1
- package/out/service/tunnel-service.js +0 -187
- package/out/storage/local-file-storage.d.ts +0 -17
- package/out/storage/local-file-storage.d.ts.map +0 -1
- package/out/storage/local-file-storage.js +0 -53
- package/out/webtrigger/get-webtrigger-url.d.ts +0 -27
- package/out/webtrigger/get-webtrigger-url.d.ts.map +0 -1
- package/out/webtrigger/get-webtrigger-url.js +0 -23
- package/out/webtrigger/graphql-client.d.ts +0 -14
- package/out/webtrigger/graphql-client.d.ts.map +0 -1
- package/out/webtrigger/graphql-client.js +0 -52
- package/out/workers/analytics-message-worker.d.ts +0 -12
- package/out/workers/analytics-message-worker.d.ts.map +0 -1
- package/out/workers/analytics-message-worker.js +0 -29
- package/out/workers/forge-cli-workers.d.ts +0 -2
- package/out/workers/forge-cli-workers.d.ts.map +0 -1
- package/out/workers/forge-cli-workers.js +0 -21
- package/out/workers/tunnel-clean-up-worker.d.ts +0 -8
- package/out/workers/tunnel-clean-up-worker.d.ts.map +0 -1
- package/out/workers/tunnel-clean-up-worker.js +0 -31
- package/out/workers/version-check-worker.d.ts +0 -8
- package/out/workers/version-check-worker.d.ts.map +0 -1
- package/out/workers/version-check-worker.js +0 -20
- package/out/workers/worker-info.d.ts +0 -8
- package/out/workers/worker-info.d.ts.map +0 -1
- package/out/workers/worker-info.js +0 -14
- package/out/workers/worker.d.ts +0 -6
- package/out/workers/worker.d.ts.map +0 -1
- package/out/workers/worker.js +0 -7
- package/out/workers/workers-starter.d.ts +0 -5
- package/out/workers/workers-starter.d.ts.map +0 -1
- package/out/workers/workers-starter.js +0 -22
package/out/bin/cli.d.ts
CHANGED
package/out/bin/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":""}
|
package/out/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-deeb8f6",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,63 +14,10 @@
|
|
|
14
14
|
"compile": "tsc -b -v",
|
|
15
15
|
"dev": "NODE_ENV=development ts-node src/bin/cli.ts",
|
|
16
16
|
"inspect": "node -r ts-node/register --inspect-brk src/bin/cli.ts",
|
|
17
|
-
"postbuild": "chmod +x out/bin/*.js
|
|
18
|
-
"postinstall": "node -e \"process.exitCode = fs.existsSync('./out/bin/postinstall.js')\" || node ./out/bin/postinstall.js"
|
|
17
|
+
"postbuild": "chmod +x out/bin/*.js"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
21
|
-
"
|
|
22
|
-
"@forge/lint": "3.2.1",
|
|
23
|
-
"@forge/manifest": "3.9.1",
|
|
24
|
-
"ajv": "^6.12.5",
|
|
25
|
-
"archiver": "^5.2.0",
|
|
26
|
-
"case": "^1.6.2",
|
|
27
|
-
"cheerio": "^0.22.0",
|
|
28
|
-
"cli-table3": "^0.6.1",
|
|
29
|
-
"command-exists": "^1.2.8",
|
|
30
|
-
"commander": "^7.0.0",
|
|
31
|
-
"cross-spawn": "^7.0.1",
|
|
32
|
-
"dayjs": "^1.9.7",
|
|
33
|
-
"didyoumean": "^1.2.1",
|
|
34
|
-
"env-paths": "^2.2.0",
|
|
35
|
-
"fs-extra": "^8.1.0",
|
|
36
|
-
"hidefile": "^3.0.0",
|
|
37
|
-
"latest-version": "^5.1.0",
|
|
38
|
-
"lodash": "^4.17.20",
|
|
39
|
-
"mkdirp": "^1.0.3",
|
|
40
|
-
"node-fetch": "2.6.1",
|
|
41
|
-
"node-machine-id": "^1.1.12",
|
|
42
|
-
"omelette": "^0.4.15-1",
|
|
43
|
-
"ora": "^4.0.3",
|
|
44
|
-
"portfinder": "^1.0.25",
|
|
45
|
-
"sanitize-filename": "^1.6.3",
|
|
46
|
-
"semver": "^6.3.0",
|
|
47
|
-
"tmp": "^0.1.0",
|
|
48
|
-
"tslib": "^1.11.0",
|
|
49
|
-
"uuid": "^3.4.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@types/archiver": "^5.1.0",
|
|
53
|
-
"@types/cheerio": "^0.22.21",
|
|
54
|
-
"@types/command-exists": "^1.2.0",
|
|
55
|
-
"@types/cross-spawn": "^6.0.1",
|
|
56
|
-
"@types/didyoumean": "^1.2.0",
|
|
57
|
-
"@types/fs-extra": "^8.0.1",
|
|
58
|
-
"@types/hidefile": "^3.0.0",
|
|
59
|
-
"@types/inquirer": "^6.5.0",
|
|
60
|
-
"@types/jest": "^26.0.0",
|
|
61
|
-
"@types/js-yaml": "^3.12.2",
|
|
62
|
-
"@types/minimatch": "^3.0.3",
|
|
63
|
-
"@types/mkdirp": "^1.0.0",
|
|
64
|
-
"@types/node": "^12.12.63",
|
|
65
|
-
"@types/node-fetch": "^2.5.7",
|
|
66
|
-
"@types/omelette": "^0.4.1",
|
|
67
|
-
"@types/semver": "^6.0.1",
|
|
68
|
-
"@types/tmp": "^0.1.0",
|
|
69
|
-
"@types/unzipper": "^0.10.1",
|
|
70
|
-
"@types/uuid": "^3.4.7",
|
|
71
|
-
"@types/webpack": "^5.28.0",
|
|
72
|
-
"jest-fixtures": "^0.6.0",
|
|
73
|
-
"memfs": "^3.4.1"
|
|
20
|
+
"tmp": "^0.1.0"
|
|
74
21
|
},
|
|
75
22
|
"optionalDependencies": {
|
|
76
23
|
"keytar": "^7.9.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-client.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-client.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;AAE3D,qBAAa,uBAAuB;CAAG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum EventType {
|
|
2
|
-
TRACK = "track",
|
|
3
|
-
OPERATIONAL = "operational",
|
|
4
|
-
UI = "ui"
|
|
5
|
-
}
|
|
6
|
-
export interface AnalyticsMessage {
|
|
7
|
-
id: string;
|
|
8
|
-
eventType: EventType;
|
|
9
|
-
event: unknown;
|
|
10
|
-
}
|
|
11
|
-
export interface MessageHandler<T> {
|
|
12
|
-
handleMessage(message: T): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export declare class AnalyticsMessageHandler implements MessageHandler<AnalyticsMessage> {
|
|
15
|
-
handleMessage: (message: AnalyticsMessage | undefined) => Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=analytics-message-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-message-handler.d.ts","sourceRoot":"","sources":["../../src/analytics-client/analytics-message-handler.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,EAAE,OAAO;CACV;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,aAAa,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,qBAAa,uBAAwB,YAAW,cAAc,CAAC,gBAAgB,CAAC;IAMvE,aAAa,YAAmB,gBAAgB,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC,CAAW;CAC/F"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnalyticsMessageHandler = exports.EventType = void 0;
|
|
4
|
-
var EventType;
|
|
5
|
-
(function (EventType) {
|
|
6
|
-
EventType["TRACK"] = "track";
|
|
7
|
-
EventType["OPERATIONAL"] = "operational";
|
|
8
|
-
EventType["UI"] = "ui";
|
|
9
|
-
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
10
|
-
class AnalyticsMessageHandler {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.handleMessage = async (message) => void 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.AnalyticsMessageHandler = AnalyticsMessageHandler;
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commands": {
|
|
3
|
-
"autocomplete": {
|
|
4
|
-
"--verbose": {
|
|
5
|
-
"requireUserArg": false
|
|
6
|
-
},
|
|
7
|
-
"--help": {
|
|
8
|
-
"requireUserArg": false
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"create": {
|
|
12
|
-
"--verbose": {
|
|
13
|
-
"requireUserArg": false
|
|
14
|
-
},
|
|
15
|
-
"--template": {
|
|
16
|
-
"requireUserArg": true
|
|
17
|
-
},
|
|
18
|
-
"--directory": {
|
|
19
|
-
"requireUserArg": true
|
|
20
|
-
},
|
|
21
|
-
"--help": {
|
|
22
|
-
"requireUserArg": false
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"deploy": {
|
|
26
|
-
"--verbose": {
|
|
27
|
-
"requireUserArg": false
|
|
28
|
-
},
|
|
29
|
-
"--no-verify": {
|
|
30
|
-
"requireUserArg": false
|
|
31
|
-
},
|
|
32
|
-
"--environment": {
|
|
33
|
-
"requireUserArg": true
|
|
34
|
-
},
|
|
35
|
-
"--help": {
|
|
36
|
-
"requireUserArg": false
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"feedback": {
|
|
40
|
-
"--verbose": {
|
|
41
|
-
"requireUserArg": false
|
|
42
|
-
},
|
|
43
|
-
"--help": {
|
|
44
|
-
"requireUserArg": false
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"install": {
|
|
48
|
-
"--verbose": {
|
|
49
|
-
"requireUserArg": false
|
|
50
|
-
},
|
|
51
|
-
"--environment": {
|
|
52
|
-
"requireUserArg": true
|
|
53
|
-
},
|
|
54
|
-
"--site": {
|
|
55
|
-
"requireUserArg": true
|
|
56
|
-
},
|
|
57
|
-
"--product": {
|
|
58
|
-
"requireUserArg": true
|
|
59
|
-
},
|
|
60
|
-
"--upgrade": {
|
|
61
|
-
"requireUserArg": false
|
|
62
|
-
},
|
|
63
|
-
"--confirm-scopes": {
|
|
64
|
-
"requireUserArg": false
|
|
65
|
-
},
|
|
66
|
-
"--help": {
|
|
67
|
-
"requireUserArg": false
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"install:list": {
|
|
71
|
-
"--verbose": {
|
|
72
|
-
"requireUserArg": false
|
|
73
|
-
},
|
|
74
|
-
"--help": {
|
|
75
|
-
"requireUserArg": false
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"lint": {
|
|
79
|
-
"--verbose": {
|
|
80
|
-
"requireUserArg": false
|
|
81
|
-
},
|
|
82
|
-
"--fix": {
|
|
83
|
-
"requireUserArg": false
|
|
84
|
-
},
|
|
85
|
-
"--environment": {
|
|
86
|
-
"requireUserArg": true
|
|
87
|
-
},
|
|
88
|
-
"--help": {
|
|
89
|
-
"requireUserArg": false
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"login": {
|
|
93
|
-
"--verbose": {
|
|
94
|
-
"requireUserArg": false
|
|
95
|
-
},
|
|
96
|
-
"--email": {
|
|
97
|
-
"requireUserArg": true
|
|
98
|
-
},
|
|
99
|
-
"--token": {
|
|
100
|
-
"requireUserArg": true
|
|
101
|
-
},
|
|
102
|
-
"--help": {
|
|
103
|
-
"requireUserArg": false
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"logout": {
|
|
107
|
-
"--verbose": {
|
|
108
|
-
"requireUserArg": false
|
|
109
|
-
},
|
|
110
|
-
"--help": {
|
|
111
|
-
"requireUserArg": false
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"logs": {
|
|
115
|
-
"--verbose": {
|
|
116
|
-
"requireUserArg": false
|
|
117
|
-
},
|
|
118
|
-
"--environment": {
|
|
119
|
-
"requireUserArg": true
|
|
120
|
-
},
|
|
121
|
-
"--invocation": {
|
|
122
|
-
"requireUserArg": true
|
|
123
|
-
},
|
|
124
|
-
"--limit": {
|
|
125
|
-
"requireUserArg": true
|
|
126
|
-
},
|
|
127
|
-
"--since": {
|
|
128
|
-
"requireUserArg": true
|
|
129
|
-
},
|
|
130
|
-
"--grouped": {
|
|
131
|
-
"requireUserArg": false
|
|
132
|
-
},
|
|
133
|
-
"--help": {
|
|
134
|
-
"requireUserArg": false
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"providers": {
|
|
138
|
-
"--verbose": {
|
|
139
|
-
"requireUserArg": false
|
|
140
|
-
},
|
|
141
|
-
"--help": {
|
|
142
|
-
"requireUserArg": false
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"register": {
|
|
146
|
-
"--verbose": {
|
|
147
|
-
"requireUserArg": false
|
|
148
|
-
},
|
|
149
|
-
"--help": {
|
|
150
|
-
"requireUserArg": false
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"settings": {
|
|
154
|
-
"--verbose": {
|
|
155
|
-
"requireUserArg": false
|
|
156
|
-
},
|
|
157
|
-
"--help": {
|
|
158
|
-
"requireUserArg": false
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"tunnel": {
|
|
162
|
-
"--verbose": {
|
|
163
|
-
"requireUserArg": false
|
|
164
|
-
},
|
|
165
|
-
"--debug": {
|
|
166
|
-
"requireUserArg": false
|
|
167
|
-
},
|
|
168
|
-
"--help": {
|
|
169
|
-
"requireUserArg": false
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"uninstall": {
|
|
173
|
-
"--verbose": {
|
|
174
|
-
"requireUserArg": false
|
|
175
|
-
},
|
|
176
|
-
"--help": {
|
|
177
|
-
"requireUserArg": false
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"variables": {
|
|
181
|
-
"--verbose": {
|
|
182
|
-
"requireUserArg": false
|
|
183
|
-
},
|
|
184
|
-
"--help": {
|
|
185
|
-
"requireUserArg": false
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"variables:list": {
|
|
189
|
-
"--verbose": {
|
|
190
|
-
"requireUserArg": false
|
|
191
|
-
},
|
|
192
|
-
"--help": {
|
|
193
|
-
"requireUserArg": false
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"variables:set": {
|
|
197
|
-
"--verbose": {
|
|
198
|
-
"requireUserArg": false
|
|
199
|
-
},
|
|
200
|
-
"--help": {
|
|
201
|
-
"requireUserArg": false
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"variables:unset": {
|
|
205
|
-
"--verbose": {
|
|
206
|
-
"requireUserArg": false
|
|
207
|
-
},
|
|
208
|
-
"--help": {
|
|
209
|
-
"requireUserArg": false
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
"webtrigger": {
|
|
213
|
-
"--verbose": {
|
|
214
|
-
"requireUserArg": false
|
|
215
|
-
},
|
|
216
|
-
"--functionKey": {
|
|
217
|
-
"requireUserArg": true
|
|
218
|
-
},
|
|
219
|
-
"--help": {
|
|
220
|
-
"requireUserArg": false
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"whoami": {
|
|
224
|
-
"--verbose": {
|
|
225
|
-
"requireUserArg": false
|
|
226
|
-
},
|
|
227
|
-
"--help": {
|
|
228
|
-
"requireUserArg": false
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"options": {
|
|
233
|
-
"--version": {
|
|
234
|
-
"requireUserArg": false
|
|
235
|
-
},
|
|
236
|
-
"--verbose": {
|
|
237
|
-
"requireUserArg": false
|
|
238
|
-
},
|
|
239
|
-
"--help": {
|
|
240
|
-
"requireUserArg": false
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import omelette from 'omelette';
|
|
2
|
-
import { AutocompleteConfig } from './types';
|
|
3
|
-
export declare const processAutocompleteFactory: (autocompleteConfig: AutocompleteConfig) => (_: any, { line, reply }: any) => void;
|
|
4
|
-
export declare const autocomplete: omelette.Instance;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/autocomplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAM7C,eAAO,MAAM,0BAA0B,uBAAwB,kBAAkB,SAC/C,GAAG,mBAAmB,GAAG,SAuC1D,CAAC;AAEF,eAAO,MAAM,YAAY,mBAAsD,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.autocomplete = exports.processAutocompleteFactory = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const omelette_1 = tslib_1.__importDefault(require("omelette"));
|
|
6
|
-
const autocomplete_config_json_1 = tslib_1.__importDefault(require("./autocomplete-config.json"));
|
|
7
|
-
const util_1 = require("./util");
|
|
8
|
-
const autocompleteConfig = autocomplete_config_json_1.default;
|
|
9
|
-
exports.processAutocompleteFactory = (autocompleteConfig) => {
|
|
10
|
-
const processAutocomplete = (_, { line, reply }) => {
|
|
11
|
-
var _a;
|
|
12
|
-
const splitLine = line.split(' ');
|
|
13
|
-
const numArgs = splitLine.length;
|
|
14
|
-
if (numArgs === 2) {
|
|
15
|
-
if (splitLine.slice(-1)[0].startsWith('-')) {
|
|
16
|
-
reply(Object.keys(autocompleteConfig.options));
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
reply(Object.keys(autocompleteConfig.commands));
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
const command = splitLine[1];
|
|
23
|
-
if (!autocompleteConfig.commands.hasOwnProperty(command)) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const commandOptions = autocompleteConfig.commands[command];
|
|
27
|
-
const lastArg = splitLine.slice(-2, -1)[0];
|
|
28
|
-
if ((_a = commandOptions[lastArg]) === null || _a === void 0 ? void 0 : _a.requireUserArg) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
const userOptionsSelected = util_1.getUserOptionsSelectedFromSplitLine(splitLine);
|
|
32
|
-
const remainingOptions = util_1.getRemainingOptions(commandOptions, userOptionsSelected);
|
|
33
|
-
reply(Object.keys(remainingOptions));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
return processAutocomplete;
|
|
37
|
-
};
|
|
38
|
-
exports.autocomplete = omelette_1.default(process.env.AUTOCOMPLETE_ALIAS || 'forge');
|
|
39
|
-
exports.autocomplete.on('complete', exports.processAutocompleteFactory(autocompleteConfig));
|
|
40
|
-
exports.autocomplete.init();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSupportedShell.d.ts","sourceRoot":"","sources":["../../src/autocomplete/isSupportedShell.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,IAAI,OAAO,CAQ1C"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSupportedShell = void 0;
|
|
4
|
-
function isSupportedShell() {
|
|
5
|
-
const shell = process.env.SHELL;
|
|
6
|
-
if (!shell) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
return /bash/.test(shell) || /zsh/.test(shell) || /fish/.test(shell);
|
|
10
|
-
}
|
|
11
|
-
exports.isSupportedShell = isSupportedShell;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface Option {
|
|
2
|
-
requireUserArg: boolean;
|
|
3
|
-
}
|
|
4
|
-
export interface CommandOptions {
|
|
5
|
-
[key: string]: Option;
|
|
6
|
-
}
|
|
7
|
-
export interface CommandConfig {
|
|
8
|
-
[key: string]: CommandOptions;
|
|
9
|
-
}
|
|
10
|
-
export interface AutocompleteConfig {
|
|
11
|
-
commands: CommandConfig;
|
|
12
|
-
options: CommandOptions;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/autocomplete/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,aAAa,CAAC;IACxB,OAAO,EAAE,cAAc,CAAC;CACzB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CommandOptions } from './types';
|
|
2
|
-
export declare const getUserOptionsSelectedFromSplitLine: (splitLine: string[]) => string[];
|
|
3
|
-
export declare const getRemainingOptions: (commandOptions: CommandOptions, userSelectedOptions: string[]) => {
|
|
4
|
-
[x: string]: import("./types").Option;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/autocomplete/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,mCAAmC,cAAe,MAAM,EAAE,aAEtE,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBAAoB,cAAc,uBAAuB,MAAM,EAAE;;CAQhG,CAAC"}
|
package/out/autocomplete/util.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRemainingOptions = exports.getUserOptionsSelectedFromSplitLine = void 0;
|
|
4
|
-
exports.getUserOptionsSelectedFromSplitLine = (splitLine) => {
|
|
5
|
-
return splitLine.slice(2).filter((o) => o.startsWith('--'));
|
|
6
|
-
};
|
|
7
|
-
exports.getRemainingOptions = (commandOptions, userSelectedOptions) => {
|
|
8
|
-
const commandOptionsClone = Object.assign({}, commandOptions);
|
|
9
|
-
for (const option of userSelectedOptions) {
|
|
10
|
-
delete commandOptionsClone[option];
|
|
11
|
-
}
|
|
12
|
-
return commandOptionsClone;
|
|
13
|
-
};
|
package/out/bin/postinstall.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../../src/bin/postinstall.ts"],"names":[],"mappings":""}
|
package/out/bin/postinstall.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cli_shared_1 = require("@forge/cli-shared");
|
|
4
|
-
const workers_starter_1 = require("../workers/workers-starter");
|
|
5
|
-
const isSupportedShell_1 = require("../autocomplete/isSupportedShell");
|
|
6
|
-
const ui = new cli_shared_1.CommandLineUI(() => true);
|
|
7
|
-
if (isSupportedShell_1.isSupportedShell()) {
|
|
8
|
-
ui.info(cli_shared_1.Text.autocomplete.postinstall);
|
|
9
|
-
}
|
|
10
|
-
new workers_starter_1.WorkersStarter(undefined);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anon-user-id.d.ts","sourceRoot":"","sources":["../../src/command-line/anon-user-id.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;AACnD,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAnonId = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const uuid_1 = tslib_1.__importDefault(require("uuid"));
|
|
6
|
-
const cli_shared_1 = require("@forge/cli-shared");
|
|
7
|
-
const ANON_ID_CACHE_KEY = 'anonId';
|
|
8
|
-
function getAnonId(createNew = false) {
|
|
9
|
-
const cachedConf = cli_shared_1.CachedConf.getCache('@forge/cli');
|
|
10
|
-
return cachedConf.cached(ANON_ID_CACHE_KEY, () => {
|
|
11
|
-
if (!createNew) {
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
return uuid_1.default();
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.getAnonId = getAnonId;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import commander, { CommanderError, OutputConfiguration } from 'commander';
|
|
2
|
-
import { AnalyticsClientReporter } from '../analytics-client/analytics-client';
|
|
3
|
-
import { PersonalApiCredentialsValidated } from '@forge/cli-shared';
|
|
4
|
-
import { UI } from '@forge/cli-shared';
|
|
5
|
-
import { CLIDetails } from '@forge/cli-shared';
|
|
6
|
-
import { PreCommandController } from './controller/pre-command-controller';
|
|
7
|
-
import { StubController } from './controller/stubController';
|
|
8
|
-
declare type PreconditionCallback = (...args: any[]) => any;
|
|
9
|
-
declare type ActionResult = Promise<{
|
|
10
|
-
creds?: PersonalApiCredentialsValidated;
|
|
11
|
-
analytics: any;
|
|
12
|
-
} | void>;
|
|
13
|
-
export declare class WrapperError extends CommanderError {
|
|
14
|
-
private readonly commandName;
|
|
15
|
-
constructor(error: CommanderError, commandName: string);
|
|
16
|
-
getCommandName: () => string;
|
|
17
|
-
}
|
|
18
|
-
export interface ErrorWithAnalytics {
|
|
19
|
-
getAttributes: () => Record<string, string | string[]>;
|
|
20
|
-
}
|
|
21
|
-
export declare class Command {
|
|
22
|
-
private readonly ui;
|
|
23
|
-
private readonly analyticsClient;
|
|
24
|
-
private readonly preCommandController;
|
|
25
|
-
private readonly cliDetails;
|
|
26
|
-
private readonly expectsArguments;
|
|
27
|
-
private readonly analyticsName?;
|
|
28
|
-
get verbose(): boolean;
|
|
29
|
-
static reportHelp: (cmd: Command, cmdError: WrapperError) => Promise<undefined>;
|
|
30
|
-
private static isError;
|
|
31
|
-
private static isHelpTriggered;
|
|
32
|
-
private static isVersionTriggered;
|
|
33
|
-
private static isUnknownCommand;
|
|
34
|
-
private static isExcessCommands;
|
|
35
|
-
private static concatenateNames;
|
|
36
|
-
private readonly cmd;
|
|
37
|
-
private newCommand;
|
|
38
|
-
private requiresAnalyticsConsent;
|
|
39
|
-
private requiredOptionFlags;
|
|
40
|
-
private preconditionFn;
|
|
41
|
-
private options;
|
|
42
|
-
private commands;
|
|
43
|
-
constructor(ui: UI, analyticsClient: AnalyticsClientReporter, preCommandController: PreCommandController, cliDetails: CLIDetails | undefined, cmd?: commander.Command, expectsArguments?: boolean, analyticsName?: string | undefined);
|
|
44
|
-
version(str: string, flags?: string): this;
|
|
45
|
-
command(name: string, opts?: commander.CommandOptions): Command;
|
|
46
|
-
deprecatedCommand(oldName: string, newName: string, stubController: StubController): void;
|
|
47
|
-
getAnalyticsName(): string | undefined;
|
|
48
|
-
deprecate(newCommand: string): this;
|
|
49
|
-
description(desc: string): this;
|
|
50
|
-
option(flags: string, description: string, defaultValue?: any): this;
|
|
51
|
-
option(flags: string, description: string, fn: (userValue: any, defaultValue?: any) => any, defaultValue?: any): this;
|
|
52
|
-
precondition(fn: PreconditionCallback): this;
|
|
53
|
-
requireManifestFile(): this;
|
|
54
|
-
requireAppId(): this;
|
|
55
|
-
nonInteractiveOption(...args: string[]): this;
|
|
56
|
-
action(fn: (...args: any[]) => ActionResult): this;
|
|
57
|
-
parse(argv: string[]): Promise<undefined>;
|
|
58
|
-
exitOverride: (listener: (err: any) => void) => this;
|
|
59
|
-
getDefinedCommands(): commander.Command[];
|
|
60
|
-
getDefinedOptions(): commander.Option[];
|
|
61
|
-
getCmdName(): string;
|
|
62
|
-
getCommands(): Command[];
|
|
63
|
-
environmentOption(): this;
|
|
64
|
-
siteAndProductOption(): this;
|
|
65
|
-
requireNoAuthentication(): this;
|
|
66
|
-
requireNoAnalyticsConsent(): this;
|
|
67
|
-
private satisfiesNonInteractiveOptions;
|
|
68
|
-
actionProcessor: (cb: (...cbArgs: any[]) => ActionResult, ...args: any[]) => Promise<void>;
|
|
69
|
-
configureOutput(obj: OutputConfiguration): this;
|
|
70
|
-
private checkPreconditions;
|
|
71
|
-
private checkVersion;
|
|
72
|
-
private validateContext;
|
|
73
|
-
private findLastValidCommand;
|
|
74
|
-
private outputRelevantHelp;
|
|
75
|
-
private unknownCommand;
|
|
76
|
-
private assertValidArgs;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
79
|
-
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command-line/command.ts"],"names":[],"mappings":"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"}
|