@forge/cli 5.1.1-next.7 → 5.2.0-next.7
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 +108 -0
- package/npm-shrinkwrap.json +217 -86
- package/out/command-line/command.d.ts +1 -0
- package/out/command-line/command.d.ts.map +1 -1
- package/out/command-line/command.js +13 -12
- package/out/command-line/controller/prerequisites-controller.d.ts.map +1 -1
- package/out/command-line/controller/prerequisites-controller.js +1 -1
- package/out/command-line/controller/settings-controller.d.ts +1 -1
- package/out/command-line/controller/settings-controller.d.ts.map +1 -1
- package/out/command-line/controller/settings-controller.js +2 -2
- package/out/command-line/index.js +1 -1
- package/out/command-line/register-environment-variables-commands.d.ts.map +1 -1
- package/out/command-line/register-environment-variables-commands.js +38 -35
- package/out/command-line/register-installation-commands.d.ts.map +1 -1
- package/out/command-line/register-installation-commands.js +36 -36
- package/out/command-line/register-settings-commands.d.ts.map +1 -1
- package/out/command-line/register-settings-commands.js +3 -2
- package/out/command-line/view/settings-view.d.ts +3 -1
- package/out/command-line/view/settings-view.d.ts.map +1 -1
- package/out/command-line/view/settings-view.js +11 -6
- package/out/command-line/view/tunnel-view.js +1 -1
- package/out/service/tunnel-service.d.ts.map +1 -1
- package/out/service/tunnel-service.js +6 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
+
## 5.2.0-next.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [05b306b]
|
|
8
|
+
- Updated dependencies [d54a534]
|
|
9
|
+
- @forge/manifest@4.4.0-next.3
|
|
10
|
+
- @forge/bundler@3.1.2-next.7
|
|
11
|
+
- @forge/cli-shared@3.2.0-next.7
|
|
12
|
+
- @forge/lint@3.2.6-next.7
|
|
13
|
+
|
|
14
|
+
## 5.2.0-next.6
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [dfc74ba]
|
|
19
|
+
- @forge/manifest@4.4.0-next.2
|
|
20
|
+
- @forge/cli-shared@3.2.0-next.6
|
|
21
|
+
- @forge/lint@3.2.6-next.6
|
|
22
|
+
- @forge/bundler@3.1.2-next.6
|
|
23
|
+
|
|
24
|
+
## 5.2.0-next.5
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- b372c40: Add option to display installations and other tables as JSON
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [b372c40]
|
|
33
|
+
- @forge/cli-shared@3.2.0-next.5
|
|
34
|
+
- @forge/bundler@3.1.2-next.5
|
|
35
|
+
- @forge/lint@3.2.6-next.5
|
|
36
|
+
|
|
37
|
+
## 5.2.0-next.4
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [f93ae31]
|
|
42
|
+
- @forge/manifest@4.3.1-next.1
|
|
43
|
+
- @forge/cli-shared@3.2.0-next.4
|
|
44
|
+
- @forge/lint@3.2.6-next.4
|
|
45
|
+
- @forge/bundler@3.1.2-next.4
|
|
46
|
+
|
|
47
|
+
## 5.2.0-next.3
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [a1c8607]
|
|
52
|
+
- @forge/cli-shared@3.2.0-next.3
|
|
53
|
+
- @forge/bundler@3.1.2-next.3
|
|
54
|
+
- @forge/lint@3.2.6-next.3
|
|
55
|
+
|
|
56
|
+
## 5.2.0-next.2
|
|
57
|
+
|
|
58
|
+
### Minor Changes
|
|
59
|
+
|
|
60
|
+
- 94c798f: Exit with error when a Forge command is not recognised
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [94c798f]
|
|
65
|
+
- @forge/cli-shared@3.2.0-next.2
|
|
66
|
+
- @forge/bundler@3.1.2-next.2
|
|
67
|
+
- @forge/lint@3.2.6-next.2
|
|
68
|
+
|
|
69
|
+
## 5.2.0-next.1
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [d6ec15d]
|
|
74
|
+
- @forge/manifest@4.3.1-next.0
|
|
75
|
+
- @forge/cli-shared@3.2.0-next.1
|
|
76
|
+
- @forge/lint@3.2.6-next.1
|
|
77
|
+
- @forge/bundler@3.1.2-next.1
|
|
78
|
+
|
|
79
|
+
## 5.2.0-next.0
|
|
80
|
+
|
|
81
|
+
### Minor Changes
|
|
82
|
+
|
|
83
|
+
- 7a27bcd: Display an error when prompting if not run in a terminal
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- Updated dependencies [7a27bcd]
|
|
88
|
+
- @forge/cli-shared@3.2.0-next.0
|
|
89
|
+
- @forge/bundler@3.1.2-next.0
|
|
90
|
+
- @forge/lint@3.2.6-next.0
|
|
91
|
+
|
|
92
|
+
## 5.1.1
|
|
93
|
+
|
|
94
|
+
### Patch Changes
|
|
95
|
+
|
|
96
|
+
- 24d04be: Removed keytar as a package dependency from @forge/cli
|
|
97
|
+
- Updated dependencies [00b6b59]
|
|
98
|
+
- Updated dependencies [0871a3b]
|
|
99
|
+
- Updated dependencies [1c51c99]
|
|
100
|
+
- Updated dependencies [63d168c]
|
|
101
|
+
- Updated dependencies [cbe3fb69]
|
|
102
|
+
- Updated dependencies [f8d567a]
|
|
103
|
+
- Updated dependencies [47a47a4]
|
|
104
|
+
- Updated dependencies [aa3a70e]
|
|
105
|
+
- @forge/bundler@3.1.1
|
|
106
|
+
- @forge/manifest@4.3.0
|
|
107
|
+
- @forge/egress@1.1.1
|
|
108
|
+
- @forge/cli-shared@3.1.1
|
|
109
|
+
- @forge/lint@3.2.5
|
|
110
|
+
|
|
3
111
|
## 5.1.1-next.7
|
|
4
112
|
|
|
5
113
|
### Patch Changes
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-next.7",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "5.
|
|
9
|
+
"version": "5.2.0-next.7",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "3.1.
|
|
14
|
-
"@forge/cli-shared": "3.
|
|
15
|
-
"@forge/egress": "^1.1.1
|
|
16
|
-
"@forge/lint": "3.2.
|
|
17
|
-
"@forge/manifest": "4.
|
|
13
|
+
"@forge/bundler": "3.1.2-next.7",
|
|
14
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
15
|
+
"@forge/egress": "^1.1.1",
|
|
16
|
+
"@forge/lint": "3.2.6-next.7",
|
|
17
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
18
18
|
"@forge/util": "1.2.0",
|
|
19
19
|
"ajv": "^6.12.5",
|
|
20
20
|
"archiver": "^5.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/didyoumean": "^1.2.0",
|
|
55
55
|
"@types/fs-extra": "^8.0.1",
|
|
56
56
|
"@types/hidefile": "^3.0.0",
|
|
57
|
-
"@types/inquirer": "^
|
|
57
|
+
"@types/inquirer": "^8.2.4",
|
|
58
58
|
"@types/jest": "^26.0.0",
|
|
59
59
|
"@types/js-yaml": "^3.12.2",
|
|
60
60
|
"@types/minimatch": "^3.0.3",
|
|
@@ -694,9 +694,9 @@
|
|
|
694
694
|
"integrity": "sha512-+GFtFqBhFzwKaKmeEfw1jWQgZJNX4q11CCx1fSPFJB49Fdjb7k3lx74jAyzHlX0UWnm6DMK+/cYT7j5t6G9LfA=="
|
|
695
695
|
},
|
|
696
696
|
"node_modules/@forge/bundler": {
|
|
697
|
-
"version": "3.1.
|
|
698
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-3.1.
|
|
699
|
-
"integrity": "sha512-
|
|
697
|
+
"version": "3.1.2-next.7",
|
|
698
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-3.1.2-next.7.tgz",
|
|
699
|
+
"integrity": "sha512-GimUnh7fW1C+c12FrNSO6WQ0Z0XLO1QiLBvbYxGCQ3+5Grp+gjyq392TZq70x16OmSffqJGis5CxvXA6qGVXpA==",
|
|
700
700
|
"dependencies": {
|
|
701
701
|
"@babel/core": "^7.16.7",
|
|
702
702
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
@@ -706,8 +706,8 @@
|
|
|
706
706
|
"@babel/preset-typescript": "^7.16.7",
|
|
707
707
|
"@forge/api": "2.7.0",
|
|
708
708
|
"@forge/babel-plugin-transform-ui": "1.1.0",
|
|
709
|
-
"@forge/cli-shared": "3.
|
|
710
|
-
"@forge/lint": "3.2.
|
|
709
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
710
|
+
"@forge/lint": "3.2.6-next.7",
|
|
711
711
|
"assert": "^1.1.1",
|
|
712
712
|
"babel-loader": "^8.2.3",
|
|
713
713
|
"browserify-zlib": "^0.2.0",
|
|
@@ -741,11 +741,11 @@
|
|
|
741
741
|
}
|
|
742
742
|
},
|
|
743
743
|
"node_modules/@forge/cli-shared": {
|
|
744
|
-
"version": "3.
|
|
745
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.
|
|
746
|
-
"integrity": "sha512-
|
|
744
|
+
"version": "3.2.0-next.7",
|
|
745
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.2.0-next.7.tgz",
|
|
746
|
+
"integrity": "sha512-U4Ar+l0f8FoDDT+xHFg5Q3U+y1yYgOunVk/Q4sS7pZNEacJLeSU4KiUusdgpMO8G0NSQ3hgUAHBqas7SDQssUw==",
|
|
747
747
|
"dependencies": {
|
|
748
|
-
"@forge/manifest": "4.
|
|
748
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
749
749
|
"@forge/util": "1.2.0",
|
|
750
750
|
"array.prototype.flatmap": "^1.2.3",
|
|
751
751
|
"case": "^1.6.2",
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
"graphql": "^15.8.0",
|
|
764
764
|
"graphql-request": "3.4.0",
|
|
765
765
|
"ignore-walk": "^3.0.3",
|
|
766
|
-
"inquirer": "^
|
|
766
|
+
"inquirer": "^8.2.4",
|
|
767
767
|
"io-ts": "^2.0.6",
|
|
768
768
|
"keytar": "^7.9.0",
|
|
769
769
|
"launchdarkly-node-client-sdk": "^2.0.3",
|
|
@@ -778,21 +778,21 @@
|
|
|
778
778
|
}
|
|
779
779
|
},
|
|
780
780
|
"node_modules/@forge/egress": {
|
|
781
|
-
"version": "1.1.1
|
|
782
|
-
"resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.1.1
|
|
783
|
-
"integrity": "sha512-
|
|
781
|
+
"version": "1.1.1",
|
|
782
|
+
"resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.1.1.tgz",
|
|
783
|
+
"integrity": "sha512-ycnIIOKyurzchlocjjvTwqtQNsCF98XRT+YvwVwZWwKZ0OmSzPcXPZImrIFw3dF1qySwRwRL31R0xZ1HYUEs8w==",
|
|
784
784
|
"dependencies": {
|
|
785
785
|
"minimatch": "^5.1.0"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
788
|
"node_modules/@forge/lint": {
|
|
789
|
-
"version": "3.2.
|
|
790
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.
|
|
791
|
-
"integrity": "sha512-
|
|
789
|
+
"version": "3.2.6-next.7",
|
|
790
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.6-next.7.tgz",
|
|
791
|
+
"integrity": "sha512-v9yUx8tSxya9uBEipxWm93+bXW4pyDz1O7a9rB4w/wMadkaNNXZDmETlLaBrTNFDTnzcptRioTMvl3eqNHuTUw==",
|
|
792
792
|
"dependencies": {
|
|
793
|
-
"@forge/cli-shared": "3.
|
|
794
|
-
"@forge/egress": "^1.1.1
|
|
795
|
-
"@forge/manifest": "4.
|
|
793
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
794
|
+
"@forge/egress": "^1.1.1",
|
|
795
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
796
796
|
"@typescript-eslint/typescript-estree": "^3.5.0",
|
|
797
797
|
"atlassian-openapi": "^1.0.13",
|
|
798
798
|
"cross-spawn": "^7.0.1",
|
|
@@ -800,9 +800,9 @@
|
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
802
|
"node_modules/@forge/manifest": {
|
|
803
|
-
"version": "4.
|
|
804
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.
|
|
805
|
-
"integrity": "sha512-
|
|
803
|
+
"version": "4.4.0-next.3",
|
|
804
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.4.0-next.3.tgz",
|
|
805
|
+
"integrity": "sha512-yRZjYYP+0VOJEkleSpgAWwBWlsyFadp5fGFFSUavclwtEhhW4QOeJe0snHq2ogh+mLFY/phDdX6pgFNUbXRnoQ==",
|
|
806
806
|
"dependencies": {
|
|
807
807
|
"@forge/util": "1.2.0",
|
|
808
808
|
"ajv": "^6.12.5",
|
|
@@ -3731,26 +3731,28 @@
|
|
|
3731
3731
|
"integrity": "sha1-op2kJbSIBvNHZ6Tvzjlyaa8oQyw= sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
|
|
3732
3732
|
},
|
|
3733
3733
|
"node_modules/inquirer": {
|
|
3734
|
-
"version": "
|
|
3735
|
-
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-
|
|
3736
|
-
"integrity": "sha1-
|
|
3734
|
+
"version": "8.2.4",
|
|
3735
|
+
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz",
|
|
3736
|
+
"integrity": "sha1-3b/obKL2dkmmfapvEFHBKPaE8LQ= sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==",
|
|
3737
3737
|
"dependencies": {
|
|
3738
3738
|
"ansi-escapes": "^4.2.1",
|
|
3739
|
-
"chalk": "^4.1.
|
|
3739
|
+
"chalk": "^4.1.1",
|
|
3740
3740
|
"cli-cursor": "^3.1.0",
|
|
3741
3741
|
"cli-width": "^3.0.0",
|
|
3742
3742
|
"external-editor": "^3.0.3",
|
|
3743
3743
|
"figures": "^3.0.0",
|
|
3744
|
-
"lodash": "^4.17.
|
|
3744
|
+
"lodash": "^4.17.21",
|
|
3745
3745
|
"mute-stream": "0.0.8",
|
|
3746
|
+
"ora": "^5.4.1",
|
|
3746
3747
|
"run-async": "^2.4.0",
|
|
3747
|
-
"rxjs": "^
|
|
3748
|
+
"rxjs": "^7.5.5",
|
|
3748
3749
|
"string-width": "^4.1.0",
|
|
3749
3750
|
"strip-ansi": "^6.0.0",
|
|
3750
|
-
"through": "^2.3.6"
|
|
3751
|
+
"through": "^2.3.6",
|
|
3752
|
+
"wrap-ansi": "^7.0.0"
|
|
3751
3753
|
},
|
|
3752
3754
|
"engines": {
|
|
3753
|
-
"node": ">=
|
|
3755
|
+
"node": ">=12.0.0"
|
|
3754
3756
|
}
|
|
3755
3757
|
},
|
|
3756
3758
|
"node_modules/inquirer/node_modules/chalk": {
|
|
@@ -3768,6 +3770,52 @@
|
|
|
3768
3770
|
"url": "https://github.com/chalk/chalk?sponsor=1"
|
|
3769
3771
|
}
|
|
3770
3772
|
},
|
|
3773
|
+
"node_modules/inquirer/node_modules/cli-spinners": {
|
|
3774
|
+
"version": "2.7.0",
|
|
3775
|
+
"resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz",
|
|
3776
|
+
"integrity": "sha1-+BX9MLX56qwC22BMeiMe18sveXo= sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==",
|
|
3777
|
+
"engines": {
|
|
3778
|
+
"node": ">=6"
|
|
3779
|
+
},
|
|
3780
|
+
"funding": {
|
|
3781
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
3782
|
+
}
|
|
3783
|
+
},
|
|
3784
|
+
"node_modules/inquirer/node_modules/ora": {
|
|
3785
|
+
"version": "5.4.1",
|
|
3786
|
+
"resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
|
|
3787
|
+
"integrity": "sha1-GyZ4Qmr0rEpQkAjl5KyemVnbnhg= sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
|
|
3788
|
+
"dependencies": {
|
|
3789
|
+
"bl": "^4.1.0",
|
|
3790
|
+
"chalk": "^4.1.0",
|
|
3791
|
+
"cli-cursor": "^3.1.0",
|
|
3792
|
+
"cli-spinners": "^2.5.0",
|
|
3793
|
+
"is-interactive": "^1.0.0",
|
|
3794
|
+
"is-unicode-supported": "^0.1.0",
|
|
3795
|
+
"log-symbols": "^4.1.0",
|
|
3796
|
+
"strip-ansi": "^6.0.0",
|
|
3797
|
+
"wcwidth": "^1.0.1"
|
|
3798
|
+
},
|
|
3799
|
+
"engines": {
|
|
3800
|
+
"node": ">=10"
|
|
3801
|
+
},
|
|
3802
|
+
"funding": {
|
|
3803
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"node_modules/inquirer/node_modules/rxjs": {
|
|
3807
|
+
"version": "7.5.7",
|
|
3808
|
+
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz",
|
|
3809
|
+
"integrity": "sha1-LsDVf9yJ7OIg0ucCcwro8eSd7zk= sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==",
|
|
3810
|
+
"dependencies": {
|
|
3811
|
+
"tslib": "^2.1.0"
|
|
3812
|
+
}
|
|
3813
|
+
},
|
|
3814
|
+
"node_modules/inquirer/node_modules/tslib": {
|
|
3815
|
+
"version": "2.3.1",
|
|
3816
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
|
3817
|
+
"integrity": "sha1-6KM1rdXOrlGqJh0ypJAVjvBC7wE= sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
|
3818
|
+
},
|
|
3771
3819
|
"node_modules/internal-slot": {
|
|
3772
3820
|
"version": "1.0.3",
|
|
3773
3821
|
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz",
|
|
@@ -3986,6 +4034,17 @@
|
|
|
3986
4034
|
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
|
3987
4035
|
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
|
|
3988
4036
|
},
|
|
4037
|
+
"node_modules/is-unicode-supported": {
|
|
4038
|
+
"version": "0.1.0",
|
|
4039
|
+
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
|
|
4040
|
+
"integrity": "sha1-PybHaoCVk7Ur+i7LVxDtJ3m1Iqc= sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
|
|
4041
|
+
"engines": {
|
|
4042
|
+
"node": ">=10"
|
|
4043
|
+
},
|
|
4044
|
+
"funding": {
|
|
4045
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
4046
|
+
}
|
|
4047
|
+
},
|
|
3989
4048
|
"node_modules/is-weakref": {
|
|
3990
4049
|
"version": "1.0.2",
|
|
3991
4050
|
"resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
|
|
@@ -4352,6 +4411,36 @@
|
|
|
4352
4411
|
"resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",
|
|
4353
4412
|
"integrity": "sha1-SLtQiECfFvGCFmZkHETdGqrjzYg="
|
|
4354
4413
|
},
|
|
4414
|
+
"node_modules/log-symbols": {
|
|
4415
|
+
"version": "4.1.0",
|
|
4416
|
+
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
|
|
4417
|
+
"integrity": "sha1-P727lbRoOsn8eFER55LlWNSr1QM= sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
|
|
4418
|
+
"dependencies": {
|
|
4419
|
+
"chalk": "^4.1.0",
|
|
4420
|
+
"is-unicode-supported": "^0.1.0"
|
|
4421
|
+
},
|
|
4422
|
+
"engines": {
|
|
4423
|
+
"node": ">=10"
|
|
4424
|
+
},
|
|
4425
|
+
"funding": {
|
|
4426
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4429
|
+
"node_modules/log-symbols/node_modules/chalk": {
|
|
4430
|
+
"version": "4.1.2",
|
|
4431
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
|
4432
|
+
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE= sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
|
4433
|
+
"dependencies": {
|
|
4434
|
+
"ansi-styles": "^4.1.0",
|
|
4435
|
+
"supports-color": "^7.1.0"
|
|
4436
|
+
},
|
|
4437
|
+
"engines": {
|
|
4438
|
+
"node": ">=10"
|
|
4439
|
+
},
|
|
4440
|
+
"funding": {
|
|
4441
|
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
|
4442
|
+
}
|
|
4443
|
+
},
|
|
4355
4444
|
"node_modules/lower-case": {
|
|
4356
4445
|
"version": "2.0.2",
|
|
4357
4446
|
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
|
|
@@ -5805,17 +5894,6 @@
|
|
|
5805
5894
|
"node": ">=0.12.0"
|
|
5806
5895
|
}
|
|
5807
5896
|
},
|
|
5808
|
-
"node_modules/rxjs": {
|
|
5809
|
-
"version": "6.6.7",
|
|
5810
|
-
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
|
5811
|
-
"integrity": "sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
|
5812
|
-
"dependencies": {
|
|
5813
|
-
"tslib": "^1.9.0"
|
|
5814
|
-
},
|
|
5815
|
-
"engines": {
|
|
5816
|
-
"npm": ">=2.0.0"
|
|
5817
|
-
}
|
|
5818
|
-
},
|
|
5819
5897
|
"node_modules/safe-buffer": {
|
|
5820
5898
|
"version": "5.2.1",
|
|
5821
5899
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
|
@@ -7600,9 +7678,9 @@
|
|
|
7600
7678
|
"integrity": "sha512-+GFtFqBhFzwKaKmeEfw1jWQgZJNX4q11CCx1fSPFJB49Fdjb7k3lx74jAyzHlX0UWnm6DMK+/cYT7j5t6G9LfA=="
|
|
7601
7679
|
},
|
|
7602
7680
|
"@forge/bundler": {
|
|
7603
|
-
"version": "3.1.
|
|
7604
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-3.1.
|
|
7605
|
-
"integrity": "sha512-
|
|
7681
|
+
"version": "3.1.2-next.7",
|
|
7682
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-3.1.2-next.7.tgz",
|
|
7683
|
+
"integrity": "sha512-GimUnh7fW1C+c12FrNSO6WQ0Z0XLO1QiLBvbYxGCQ3+5Grp+gjyq392TZq70x16OmSffqJGis5CxvXA6qGVXpA==",
|
|
7606
7684
|
"requires": {
|
|
7607
7685
|
"@babel/core": "^7.16.7",
|
|
7608
7686
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
@@ -7612,8 +7690,8 @@
|
|
|
7612
7690
|
"@babel/preset-typescript": "^7.16.7",
|
|
7613
7691
|
"@forge/api": "2.7.0",
|
|
7614
7692
|
"@forge/babel-plugin-transform-ui": "1.1.0",
|
|
7615
|
-
"@forge/cli-shared": "3.
|
|
7616
|
-
"@forge/lint": "3.2.
|
|
7693
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
7694
|
+
"@forge/lint": "3.2.6-next.7",
|
|
7617
7695
|
"assert": "^1.1.1",
|
|
7618
7696
|
"babel-loader": "^8.2.3",
|
|
7619
7697
|
"browserify-zlib": "^0.2.0",
|
|
@@ -7644,11 +7722,11 @@
|
|
|
7644
7722
|
}
|
|
7645
7723
|
},
|
|
7646
7724
|
"@forge/cli-shared": {
|
|
7647
|
-
"version": "3.
|
|
7648
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.
|
|
7649
|
-
"integrity": "sha512-
|
|
7725
|
+
"version": "3.2.0-next.7",
|
|
7726
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.2.0-next.7.tgz",
|
|
7727
|
+
"integrity": "sha512-U4Ar+l0f8FoDDT+xHFg5Q3U+y1yYgOunVk/Q4sS7pZNEacJLeSU4KiUusdgpMO8G0NSQ3hgUAHBqas7SDQssUw==",
|
|
7650
7728
|
"requires": {
|
|
7651
|
-
"@forge/manifest": "4.
|
|
7729
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
7652
7730
|
"@forge/util": "1.2.0",
|
|
7653
7731
|
"array.prototype.flatmap": "^1.2.3",
|
|
7654
7732
|
"case": "^1.6.2",
|
|
@@ -7666,7 +7744,7 @@
|
|
|
7666
7744
|
"graphql": "^15.8.0",
|
|
7667
7745
|
"graphql-request": "3.4.0",
|
|
7668
7746
|
"ignore-walk": "^3.0.3",
|
|
7669
|
-
"inquirer": "^
|
|
7747
|
+
"inquirer": "^8.2.4",
|
|
7670
7748
|
"io-ts": "^2.0.6",
|
|
7671
7749
|
"keytar": "^7.9.0",
|
|
7672
7750
|
"launchdarkly-node-client-sdk": "^2.0.3",
|
|
@@ -7681,21 +7759,21 @@
|
|
|
7681
7759
|
}
|
|
7682
7760
|
},
|
|
7683
7761
|
"@forge/egress": {
|
|
7684
|
-
"version": "1.1.1
|
|
7685
|
-
"resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.1.1
|
|
7686
|
-
"integrity": "sha512-
|
|
7762
|
+
"version": "1.1.1",
|
|
7763
|
+
"resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.1.1.tgz",
|
|
7764
|
+
"integrity": "sha512-ycnIIOKyurzchlocjjvTwqtQNsCF98XRT+YvwVwZWwKZ0OmSzPcXPZImrIFw3dF1qySwRwRL31R0xZ1HYUEs8w==",
|
|
7687
7765
|
"requires": {
|
|
7688
7766
|
"minimatch": "^5.1.0"
|
|
7689
7767
|
}
|
|
7690
7768
|
},
|
|
7691
7769
|
"@forge/lint": {
|
|
7692
|
-
"version": "3.2.
|
|
7693
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.
|
|
7694
|
-
"integrity": "sha512-
|
|
7770
|
+
"version": "3.2.6-next.7",
|
|
7771
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.2.6-next.7.tgz",
|
|
7772
|
+
"integrity": "sha512-v9yUx8tSxya9uBEipxWm93+bXW4pyDz1O7a9rB4w/wMadkaNNXZDmETlLaBrTNFDTnzcptRioTMvl3eqNHuTUw==",
|
|
7695
7773
|
"requires": {
|
|
7696
|
-
"@forge/cli-shared": "3.
|
|
7697
|
-
"@forge/egress": "^1.1.1
|
|
7698
|
-
"@forge/manifest": "4.
|
|
7774
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
7775
|
+
"@forge/egress": "^1.1.1",
|
|
7776
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
7699
7777
|
"@typescript-eslint/typescript-estree": "^3.5.0",
|
|
7700
7778
|
"atlassian-openapi": "^1.0.13",
|
|
7701
7779
|
"cross-spawn": "^7.0.1",
|
|
@@ -7703,9 +7781,9 @@
|
|
|
7703
7781
|
}
|
|
7704
7782
|
},
|
|
7705
7783
|
"@forge/manifest": {
|
|
7706
|
-
"version": "4.
|
|
7707
|
-
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.
|
|
7708
|
-
"integrity": "sha512-
|
|
7784
|
+
"version": "4.4.0-next.3",
|
|
7785
|
+
"resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.4.0-next.3.tgz",
|
|
7786
|
+
"integrity": "sha512-yRZjYYP+0VOJEkleSpgAWwBWlsyFadp5fGFFSUavclwtEhhW4QOeJe0snHq2ogh+mLFY/phDdX6pgFNUbXRnoQ==",
|
|
7709
7787
|
"requires": {
|
|
7710
7788
|
"@forge/util": "1.2.0",
|
|
7711
7789
|
"ajv": "^6.12.5",
|
|
@@ -10065,23 +10143,25 @@
|
|
|
10065
10143
|
"integrity": "sha1-op2kJbSIBvNHZ6Tvzjlyaa8oQyw= sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
|
|
10066
10144
|
},
|
|
10067
10145
|
"inquirer": {
|
|
10068
|
-
"version": "
|
|
10069
|
-
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-
|
|
10070
|
-
"integrity": "sha1-
|
|
10146
|
+
"version": "8.2.4",
|
|
10147
|
+
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz",
|
|
10148
|
+
"integrity": "sha1-3b/obKL2dkmmfapvEFHBKPaE8LQ= sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==",
|
|
10071
10149
|
"requires": {
|
|
10072
10150
|
"ansi-escapes": "^4.2.1",
|
|
10073
|
-
"chalk": "^4.1.
|
|
10151
|
+
"chalk": "^4.1.1",
|
|
10074
10152
|
"cli-cursor": "^3.1.0",
|
|
10075
10153
|
"cli-width": "^3.0.0",
|
|
10076
10154
|
"external-editor": "^3.0.3",
|
|
10077
10155
|
"figures": "^3.0.0",
|
|
10078
|
-
"lodash": "^4.17.
|
|
10156
|
+
"lodash": "^4.17.21",
|
|
10079
10157
|
"mute-stream": "0.0.8",
|
|
10158
|
+
"ora": "^5.4.1",
|
|
10080
10159
|
"run-async": "^2.4.0",
|
|
10081
|
-
"rxjs": "^
|
|
10160
|
+
"rxjs": "^7.5.5",
|
|
10082
10161
|
"string-width": "^4.1.0",
|
|
10083
10162
|
"strip-ansi": "^6.0.0",
|
|
10084
|
-
"through": "^2.3.6"
|
|
10163
|
+
"through": "^2.3.6",
|
|
10164
|
+
"wrap-ansi": "^7.0.0"
|
|
10085
10165
|
},
|
|
10086
10166
|
"dependencies": {
|
|
10087
10167
|
"chalk": {
|
|
@@ -10092,6 +10172,40 @@
|
|
|
10092
10172
|
"ansi-styles": "^4.1.0",
|
|
10093
10173
|
"supports-color": "^7.1.0"
|
|
10094
10174
|
}
|
|
10175
|
+
},
|
|
10176
|
+
"cli-spinners": {
|
|
10177
|
+
"version": "2.7.0",
|
|
10178
|
+
"resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz",
|
|
10179
|
+
"integrity": "sha1-+BX9MLX56qwC22BMeiMe18sveXo= sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw=="
|
|
10180
|
+
},
|
|
10181
|
+
"ora": {
|
|
10182
|
+
"version": "5.4.1",
|
|
10183
|
+
"resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
|
|
10184
|
+
"integrity": "sha1-GyZ4Qmr0rEpQkAjl5KyemVnbnhg= sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
|
|
10185
|
+
"requires": {
|
|
10186
|
+
"bl": "^4.1.0",
|
|
10187
|
+
"chalk": "^4.1.0",
|
|
10188
|
+
"cli-cursor": "^3.1.0",
|
|
10189
|
+
"cli-spinners": "^2.5.0",
|
|
10190
|
+
"is-interactive": "^1.0.0",
|
|
10191
|
+
"is-unicode-supported": "^0.1.0",
|
|
10192
|
+
"log-symbols": "^4.1.0",
|
|
10193
|
+
"strip-ansi": "^6.0.0",
|
|
10194
|
+
"wcwidth": "^1.0.1"
|
|
10195
|
+
}
|
|
10196
|
+
},
|
|
10197
|
+
"rxjs": {
|
|
10198
|
+
"version": "7.5.7",
|
|
10199
|
+
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz",
|
|
10200
|
+
"integrity": "sha1-LsDVf9yJ7OIg0ucCcwro8eSd7zk= sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==",
|
|
10201
|
+
"requires": {
|
|
10202
|
+
"tslib": "^2.1.0"
|
|
10203
|
+
}
|
|
10204
|
+
},
|
|
10205
|
+
"tslib": {
|
|
10206
|
+
"version": "2.3.1",
|
|
10207
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
|
10208
|
+
"integrity": "sha1-6KM1rdXOrlGqJh0ypJAVjvBC7wE= sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
|
10095
10209
|
}
|
|
10096
10210
|
}
|
|
10097
10211
|
},
|
|
@@ -10233,6 +10347,11 @@
|
|
|
10233
10347
|
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
|
10234
10348
|
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
|
|
10235
10349
|
},
|
|
10350
|
+
"is-unicode-supported": {
|
|
10351
|
+
"version": "0.1.0",
|
|
10352
|
+
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
|
|
10353
|
+
"integrity": "sha1-PybHaoCVk7Ur+i7LVxDtJ3m1Iqc= sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="
|
|
10354
|
+
},
|
|
10236
10355
|
"is-weakref": {
|
|
10237
10356
|
"version": "1.0.2",
|
|
10238
10357
|
"resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
|
|
@@ -10547,6 +10666,26 @@
|
|
|
10547
10666
|
"resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",
|
|
10548
10667
|
"integrity": "sha1-SLtQiECfFvGCFmZkHETdGqrjzYg="
|
|
10549
10668
|
},
|
|
10669
|
+
"log-symbols": {
|
|
10670
|
+
"version": "4.1.0",
|
|
10671
|
+
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
|
|
10672
|
+
"integrity": "sha1-P727lbRoOsn8eFER55LlWNSr1QM= sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
|
|
10673
|
+
"requires": {
|
|
10674
|
+
"chalk": "^4.1.0",
|
|
10675
|
+
"is-unicode-supported": "^0.1.0"
|
|
10676
|
+
},
|
|
10677
|
+
"dependencies": {
|
|
10678
|
+
"chalk": {
|
|
10679
|
+
"version": "4.1.2",
|
|
10680
|
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
|
10681
|
+
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE= sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
|
10682
|
+
"requires": {
|
|
10683
|
+
"ansi-styles": "^4.1.0",
|
|
10684
|
+
"supports-color": "^7.1.0"
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
},
|
|
10550
10689
|
"lower-case": {
|
|
10551
10690
|
"version": "2.0.2",
|
|
10552
10691
|
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
|
|
@@ -11732,14 +11871,6 @@
|
|
|
11732
11871
|
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
|
|
11733
11872
|
"integrity": "sha1-hEDsz5nqPnC9QJ1JqriOEMGJpFU= sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ=="
|
|
11734
11873
|
},
|
|
11735
|
-
"rxjs": {
|
|
11736
|
-
"version": "6.6.7",
|
|
11737
|
-
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
|
11738
|
-
"integrity": "sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk= sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
|
11739
|
-
"requires": {
|
|
11740
|
-
"tslib": "^1.9.0"
|
|
11741
|
-
}
|
|
11742
|
-
},
|
|
11743
11874
|
"safe-buffer": {
|
|
11744
11875
|
"version": "5.2.1",
|
|
11745
11876
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
|
@@ -63,6 +63,7 @@ export declare class Command {
|
|
|
63
63
|
getCommands(): Command[];
|
|
64
64
|
environmentOption(): this;
|
|
65
65
|
siteAndProductOption(): this;
|
|
66
|
+
jsonOption(): this;
|
|
66
67
|
requireNoAuthentication(): this;
|
|
67
68
|
requireNoAnalyticsConsent(): this;
|
|
68
69
|
private satisfiesNonInteractiveOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command-line/command.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,cAAc,EAAU,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAsB,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AASxF,OAAO,EAAQ,EAAE,EAAmB,MAAM,mBAAmB,CAAC;AAI9D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,aAAK,oBAAoB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACpD,aAAK,YAAY,GAAG,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,+BAA+B,CAAC;IAAC,SAAS,EAAE,GAAG,CAAA;CAAE,GAA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AAO,CAAC,oBAAoB;IAyB5B,OAAO,CAAC,kBAAkB,CAExB;IAEF,OAAO,CAAC,cAAc;IAqCtB,OAAO,CAAC,eAAe;CAyBxB"}
|
|
@@ -63,7 +63,9 @@ class Command {
|
|
|
63
63
|
if (this.requiresAnalyticsConsent) {
|
|
64
64
|
await this.preCommandController.verifyAnalyticsPreferences((_a = options === null || options === void 0 ? void 0 : options.nonInteractive) !== null && _a !== void 0 ? _a : false)();
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
if (!(options === null || options === void 0 ? void 0 : options.json)) {
|
|
67
|
+
this.checkVersion();
|
|
68
|
+
}
|
|
67
69
|
if (this.cliDetails) {
|
|
68
70
|
attributes = { version: this.cliDetails.version, latest: this.cliDetails.latest };
|
|
69
71
|
}
|
|
@@ -92,7 +94,7 @@ class Command {
|
|
|
92
94
|
}
|
|
93
95
|
else {
|
|
94
96
|
this.analyticsClient.reportFailure((_c = this.analyticsName) !== null && _c !== void 0 ? _c : cmdName, cred, attributes, e);
|
|
95
|
-
cli_shared_4.exitOnError(this.ui
|
|
97
|
+
cli_shared_4.exitOnError(this.ui, e);
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
};
|
|
@@ -192,10 +194,9 @@ class Command {
|
|
|
192
194
|
return;
|
|
193
195
|
}
|
|
194
196
|
if (Command.isUnknownCommand(err) || Command.isExcessCommands(err)) {
|
|
195
|
-
this.unknownCommand(argv);
|
|
196
|
-
return;
|
|
197
|
+
return this.unknownCommand(argv);
|
|
197
198
|
}
|
|
198
|
-
return cli_shared_4.exitOnError(this.ui
|
|
199
|
+
return cli_shared_4.exitOnError(this.ui, err);
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
getDefinedCommands() {
|
|
@@ -226,6 +227,10 @@ class Command {
|
|
|
226
227
|
});
|
|
227
228
|
return this;
|
|
228
229
|
}
|
|
230
|
+
jsonOption() {
|
|
231
|
+
this.option('--json', cli_shared_3.Text.optionJson);
|
|
232
|
+
return this;
|
|
233
|
+
}
|
|
229
234
|
requireNoAuthentication() {
|
|
230
235
|
this.requiresAuthentication = false;
|
|
231
236
|
return this;
|
|
@@ -315,18 +320,14 @@ class Command {
|
|
|
315
320
|
return cmd._hidden !== true;
|
|
316
321
|
})
|
|
317
322
|
.map((cmd) => cmd.name()));
|
|
318
|
-
|
|
323
|
+
const errorText = cli_shared_3.Text.invalidCmd(argv.slice(2, lastCommandIndex + 2).join(' '));
|
|
319
324
|
if (suggestions.length) {
|
|
320
325
|
errorMessage.push(`Did you mean:`);
|
|
321
326
|
const suggestionsPrefixed = suggestions.map((suggestion) => [...argv.slice(2, lastCommandIndex + 1), suggestion].join(' '));
|
|
322
327
|
errorMessage.push(suggestionsPrefixed.join('\n'));
|
|
323
|
-
errorMessage.push(cli_shared_3.Text.invalidCmdHelp);
|
|
324
|
-
this.ui.info(errorMessage.join('\n\n'));
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
errorMessage.push(cli_shared_3.Text.invalidCmdHelp);
|
|
328
|
-
this.ui.error(new Error(errorMessage.join(' ')));
|
|
329
328
|
}
|
|
329
|
+
errorMessage.push(cli_shared_3.Text.invalidCmdHelp);
|
|
330
|
+
return cli_shared_4.exitOnError(this.ui, new Error(errorText), errorMessage.join('\n\n'));
|
|
330
331
|
}
|
|
331
332
|
assertValidArgs(argv) {
|
|
332
333
|
const args = argv.slice(2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prerequisites-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/prerequisites-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,iBAAiB,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAI7F,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFV,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,UAAU,GAAG,SAAS;IAG/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"prerequisites-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/prerequisites-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAe,iBAAiB,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAI7F,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFV,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,UAAU,GAAG,SAAS;IAG/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,OAAO,CAAC,gBAAgB;YAgBV,kBAAkB;CAMjC"}
|
|
@@ -18,7 +18,7 @@ class PrerequisitesController {
|
|
|
18
18
|
checkNodeVersion() {
|
|
19
19
|
const userNodeVersion = getNodeVersion_1.getNodeVersion();
|
|
20
20
|
if (this.cliDetails && !semver_1.satisfies(userNodeVersion, this.cliDetails.compatibleNodeVersion)) {
|
|
21
|
-
cli_shared_1.exitOnError(this.logger
|
|
21
|
+
cli_shared_1.exitOnError(this.logger, new Error(cli_shared_1.Text.error.outdatedNodeVersion(this.cliDetails.compatibleNodeVersion, userNodeVersion)), null);
|
|
22
22
|
}
|
|
23
23
|
if (!semver_1.satisfies(userNodeVersion, version_info_1.supportedNodeVersion)) {
|
|
24
24
|
this.logger.warn(cli_shared_1.Text.warning.unsupportedNodeVersion(userNodeVersion));
|
|
@@ -11,7 +11,7 @@ export declare class SettingsController {
|
|
|
11
11
|
SETTINGS_MAP: {
|
|
12
12
|
[key in AllowedSettingType]: [string, SettingGetter, SettingSetter];
|
|
13
13
|
};
|
|
14
|
-
showSettings(): void;
|
|
14
|
+
showSettings(json?: boolean): void;
|
|
15
15
|
private parseBoolean;
|
|
16
16
|
setSettings(preference: unknown, value: string): void;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/settings-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,eAAO,MAAM,gBAAgB,8BAA+B,CAAC;AAE7D,aAAK,kBAAkB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAM1D,aAAK,aAAa,GAAG,MAAM,OAAO,GAAG,SAAS,CAAC;AAC/C,aAAK,aAAa,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;AAE5C,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAgB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAhE,YAAY,EAAE,YAAY,EAAmB,mBAAmB,EAAE,mBAAmB;IAElH,YAAY,EAAE;SAAG,GAAG,IAAI,kBAAkB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC;KAAE,CAMnF;IAEK,YAAY;
|
|
1
|
+
{"version":3,"file":"settings-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/settings-controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,eAAO,MAAM,gBAAgB,8BAA+B,CAAC;AAE7D,aAAK,kBAAkB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAM1D,aAAK,aAAa,GAAG,MAAM,OAAO,GAAG,SAAS,CAAC;AAC/C,aAAK,aAAa,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;AAE5C,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAgB,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAhE,YAAY,EAAE,YAAY,EAAmB,mBAAmB,EAAE,mBAAmB;IAElH,YAAY,EAAE;SAAG,GAAG,IAAI,kBAAkB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC;KAAE,CAMnF;IAEK,YAAY,CAAC,IAAI,CAAC,EAAE,OAAO;IAQlC,OAAO,CAAC,YAAY;IAWb,WAAW,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;CAYtD"}
|
|
@@ -18,12 +18,12 @@ class SettingsController {
|
|
|
18
18
|
]
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
showSettings() {
|
|
21
|
+
showSettings(json) {
|
|
22
22
|
const settings = exports.ALLOWED_SETTINGS.map((setting) => {
|
|
23
23
|
const [desc, getSetting] = this.SETTINGS_MAP[setting];
|
|
24
24
|
return [setting, desc, getSetting()];
|
|
25
25
|
});
|
|
26
|
-
this.settingsView.showSettings(settings);
|
|
26
|
+
this.settingsView.showSettings(settings, json);
|
|
27
27
|
}
|
|
28
28
|
parseBoolean(value) {
|
|
29
29
|
switch (value) {
|
|
@@ -53,7 +53,7 @@ const registerEvents = ({ cmd, ui }) => {
|
|
|
53
53
|
throw new command_1.WrapperError(err, 'cli');
|
|
54
54
|
});
|
|
55
55
|
process.on('unhandledRejection', (reason, promise) => {
|
|
56
|
-
cli_shared_1.exitOnError(ui
|
|
56
|
+
cli_shared_1.exitOnError(ui, new Error(cli_shared_1.Text.error.unhandledRejection(reason, promise)));
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
exports.main = async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-environment-variables-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-environment-variables-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register-environment-variables-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-environment-variables-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA2HtD,eAAO,MAAM,gBAAgB,qBAAsB,YAAY,KAAG,IAOjE,CAAC"}
|
|
@@ -2,44 +2,42 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerCommands = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
6
5
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
7
6
|
const cli_shared_2 = require("@forge/cli-shared");
|
|
8
|
-
const cli_shared_3 = require("@forge/cli-shared");
|
|
9
7
|
const COMMAND_NAME = 'variables';
|
|
10
8
|
const SET_COMMAND_NAME = 'set';
|
|
11
9
|
const registerSetEnvironmentVariableCommand = ({ cmd, ui, commands: { setEnvironmentVariableCommand } }) => {
|
|
12
10
|
cmd
|
|
13
11
|
.command(`${SET_COMMAND_NAME} [key] [value]`)
|
|
14
12
|
.requireAppId()
|
|
15
|
-
.description(
|
|
16
|
-
.option('--encrypt',
|
|
13
|
+
.description(cli_shared_1.Text.varsSet.cmd.desc)
|
|
14
|
+
.option('--encrypt', cli_shared_1.Text.varsSet.optionSecret, false)
|
|
17
15
|
.environmentOption()
|
|
18
16
|
.action(async (key, value, { environment, encrypt }) => {
|
|
19
|
-
ui.info(
|
|
20
|
-
ui.info(
|
|
17
|
+
ui.info(cli_shared_1.Text.varsSet.overview(environment, cli_shared_2.environmentToOption));
|
|
18
|
+
ui.info(cli_shared_1.Text.ctrlC);
|
|
21
19
|
ui.emptyLine();
|
|
22
20
|
if (!value && !encrypt) {
|
|
23
|
-
ui.info(
|
|
21
|
+
ui.info(cli_shared_1.Text.varsSet.encryptInfo);
|
|
24
22
|
ui.emptyLine();
|
|
25
23
|
encrypt =
|
|
26
|
-
(await ui.promptForList(
|
|
27
|
-
|
|
24
|
+
(await ui.promptForList(cli_shared_1.Text.varsSet.promptEncrypt, [cli_shared_1.Text.varsSet.yes, cli_shared_1.Text.varsSet.no])) ===
|
|
25
|
+
cli_shared_1.Text.varsSet.yes;
|
|
28
26
|
ui.emptyLine();
|
|
29
27
|
}
|
|
30
28
|
if (!key) {
|
|
31
|
-
ui.info(
|
|
29
|
+
ui.info(cli_shared_1.Text.varsSet.keyInfo);
|
|
32
30
|
ui.emptyLine();
|
|
33
|
-
key = await ui.promptForText(
|
|
31
|
+
key = await ui.promptForText(cli_shared_1.Text.varsSet.promptKey);
|
|
34
32
|
}
|
|
35
33
|
if (!value) {
|
|
36
34
|
value = encrypt
|
|
37
|
-
? await ui.promptForSecret(
|
|
38
|
-
: await ui.promptForText(
|
|
35
|
+
? await ui.promptForSecret(cli_shared_1.Text.varsSet.promptValue)
|
|
36
|
+
: await ui.promptForText(cli_shared_1.Text.varsSet.promptValue);
|
|
39
37
|
ui.emptyLine();
|
|
40
38
|
}
|
|
41
|
-
await ui.displayProgress(() => setEnvironmentVariableCommand.execute({ environment, encrypt, key, value }),
|
|
42
|
-
ui.info(
|
|
39
|
+
await ui.displayProgress(() => setEnvironmentVariableCommand.execute({ environment, encrypt, key, value }), cli_shared_1.Text.varsSet.cmd.start, cli_shared_1.Text.varsSet.cmd.success);
|
|
40
|
+
ui.info(cli_shared_1.Text.varsList.hint);
|
|
43
41
|
});
|
|
44
42
|
};
|
|
45
43
|
const UNSET_COMMAND_NAME = 'unset';
|
|
@@ -47,14 +45,14 @@ const registerDeleteEnvironmentVariableCommand = ({ cmd, ui, commands: { deleteE
|
|
|
47
45
|
cmd
|
|
48
46
|
.command(`${UNSET_COMMAND_NAME} <key>`)
|
|
49
47
|
.requireAppId()
|
|
50
|
-
.description(
|
|
48
|
+
.description(cli_shared_1.Text.varsUnset.cmd.desc)
|
|
51
49
|
.environmentOption()
|
|
52
50
|
.action(async (key, { environment }) => {
|
|
53
|
-
ui.info(
|
|
54
|
-
ui.info(
|
|
51
|
+
ui.info(cli_shared_1.Text.varsUnset.cmd.start(environment, cli_shared_2.environmentToOption));
|
|
52
|
+
ui.info(cli_shared_1.Text.ctrlC);
|
|
55
53
|
await deleteEnvironmentVariableCommand.execute({ environment, key });
|
|
56
|
-
ui.info(
|
|
57
|
-
ui.info(
|
|
54
|
+
ui.info(cli_shared_1.Text.varsUnset.cmd.success(key));
|
|
55
|
+
ui.info(cli_shared_1.Text.varsList.hint);
|
|
58
56
|
});
|
|
59
57
|
};
|
|
60
58
|
const LIST_COMMAND_NAME = 'list';
|
|
@@ -62,23 +60,28 @@ const registerListEnvironmentVariableCommand = ({ cmd, ui, commands: { listEnvir
|
|
|
62
60
|
cmd
|
|
63
61
|
.command(LIST_COMMAND_NAME)
|
|
64
62
|
.requireAppId()
|
|
65
|
-
.description(
|
|
63
|
+
.description(cli_shared_1.Text.varsList.cmd)
|
|
66
64
|
.environmentOption()
|
|
67
|
-
.
|
|
65
|
+
.jsonOption()
|
|
66
|
+
.action(async ({ environment, json }) => {
|
|
68
67
|
const variables = await listEnvironmentVariablesCommand.execute({ environment });
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
ui.table([
|
|
69
|
+
['encrypted', 'Encrypted?'],
|
|
70
|
+
['key', 'Key'],
|
|
71
|
+
['value', 'Value']
|
|
72
|
+
], variables === null || variables === void 0 ? void 0 : variables.map(({ encrypt: encrypted, key, value }) => ({
|
|
73
|
+
encrypted,
|
|
74
|
+
key,
|
|
75
|
+
value: encrypted ? cli_shared_1.Text.varsList.encryptedValue : value
|
|
76
|
+
})), {
|
|
77
|
+
json,
|
|
78
|
+
emptyMessage: cli_shared_1.Text.varsList.empty(environment, cli_shared_2.environmentToOption),
|
|
79
|
+
preMessage: cli_shared_1.Text.varsList.overview(environment, cli_shared_2.environmentToOption),
|
|
80
|
+
postMessage: cli_shared_1.Text.varsList.postfix,
|
|
81
|
+
format: {
|
|
82
|
+
encrypted: (value) => (value ? '✔' : '')
|
|
77
83
|
}
|
|
78
|
-
}
|
|
79
|
-
ui.info(cli_shared_2.Text.varsList.overview(environment, cli_shared_3.environmentToOption));
|
|
80
|
-
ui.info(table.toString());
|
|
81
|
-
ui.info(cli_shared_2.Text.varsList.postfix);
|
|
84
|
+
});
|
|
82
85
|
});
|
|
83
86
|
};
|
|
84
87
|
const DEPRECATED_SET_COMMAND = 'variables:set';
|
|
@@ -91,7 +94,7 @@ const registerVariablesSubcommandStubs = ({ cmd, controllers: { stubController }
|
|
|
91
94
|
};
|
|
92
95
|
exports.registerCommands = (_a) => {
|
|
93
96
|
var { cmd } = _a, deps = tslib_1.__rest(_a, ["cmd"]);
|
|
94
|
-
const variables = cmd.command(COMMAND_NAME).description(
|
|
97
|
+
const variables = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.variables.description);
|
|
95
98
|
registerVariablesSubcommandStubs(Object.assign({ cmd }, deps));
|
|
96
99
|
registerSetEnvironmentVariableCommand(Object.assign({ cmd: variables }, deps));
|
|
97
100
|
registerDeleteEnvironmentVariableCommand(Object.assign({ cmd: variables }, deps));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-installation-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-installation-commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register-installation-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-installation-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAqD/D,eAAO,MAAM,sBAAsB,cACtB,MAAM,6CAC0B,YAAY,kBAwBxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,oBACnB,YAAY,EAAE,6CACY,YAAY,kBA+CxD,CAAC;AAgEF,eAAO,MAAM,gBAAgB,qBAAsB,YAAY,KAAG,IAejE,CAAC"}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerCommands = exports.performMultipleUninstalls = exports.performSingleUninstall = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
6
5
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
7
|
-
const cli_shared_2 = require("@forge/cli-shared");
|
|
8
6
|
const shared_1 = require("../installations/shared");
|
|
9
7
|
const errors_1 = require("./errors");
|
|
10
8
|
const COMMAND_NAME = 'install';
|
|
@@ -13,10 +11,10 @@ const registerInstallAppCommand = ({ cmd, controllers: { installController } })
|
|
|
13
11
|
.requireAppId()
|
|
14
12
|
.environmentOption()
|
|
15
13
|
.siteAndProductOption()
|
|
16
|
-
.option('--upgrade',
|
|
17
|
-
.option('--confirm-scopes',
|
|
14
|
+
.option('--upgrade', cli_shared_1.Text.install.optionUpgrade)
|
|
15
|
+
.option('--confirm-scopes', cli_shared_1.Text.install.optionConfirmScopes)
|
|
18
16
|
.nonInteractiveOption('--site', '--product', '--environment')
|
|
19
|
-
.description(
|
|
17
|
+
.description(cli_shared_1.Text.install.cmd.description)
|
|
20
18
|
.action(async ({ environment, site, product, upgrade, confirmScopes, nonInteractive }) => {
|
|
21
19
|
await installController.run({ environment, site, product, upgrade, confirmScopes, nonInteractive });
|
|
22
20
|
});
|
|
@@ -26,33 +24,35 @@ const registerListInstallationsCommand = ({ cmd, ui, services: { installationsSe
|
|
|
26
24
|
cmd
|
|
27
25
|
.command(LIST_COMMAND_NAME)
|
|
28
26
|
.requireAppId()
|
|
29
|
-
.
|
|
30
|
-
.
|
|
27
|
+
.jsonOption()
|
|
28
|
+
.description(cli_shared_1.Text.installList.cmd)
|
|
29
|
+
.action(async ({ json }) => {
|
|
31
30
|
const { installations } = await installationsService.listAppInstallations();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
ui.table([
|
|
32
|
+
['id', 'Installation ID'],
|
|
33
|
+
['environment', 'Environment'],
|
|
34
|
+
['site', 'Site'],
|
|
35
|
+
['product', 'Product'],
|
|
36
|
+
['version', 'Version']
|
|
37
|
+
], installations.map(({ id, environmentKey, product, site, version: { isLatest } }) => ({
|
|
38
|
+
id,
|
|
39
|
+
environment: cli_shared_1.environmentToOption(environmentKey),
|
|
40
|
+
site,
|
|
41
|
+
product: cli_shared_1.capitalizeProduct(product),
|
|
42
|
+
version: cli_shared_1.Text.install.booleanToScope(isLatest)
|
|
43
|
+
})), {
|
|
44
|
+
json,
|
|
45
|
+
emptyMessage: cli_shared_1.Text.installList.noInstallations,
|
|
46
|
+
preMessage: cli_shared_1.Text.installList.banner
|
|
47
|
+
});
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
exports.performSingleUninstall = async (installId, { ui, commands: { uninstallAppCommand } }) => {
|
|
51
|
-
const installation = await ui.displayProgress(() => uninstallAppCommand.execute(installId),
|
|
51
|
+
const installation = await ui.displayProgress(() => uninstallAppCommand.execute(installId), cli_shared_1.Text.uninstall.cmd.start, (result) => ({
|
|
52
52
|
successful: !!result.successful,
|
|
53
|
-
message:
|
|
53
|
+
message: cli_shared_1.Text.uninstall.cmd.success(false)
|
|
54
54
|
}));
|
|
55
|
-
const uninstallMessageFormat = installation.successful ?
|
|
55
|
+
const uninstallMessageFormat = installation.successful ? cli_shared_1.Text.uninstall.done : cli_shared_1.Text.uninstall.failed;
|
|
56
56
|
const uninstallMessage = uninstallMessageFormat(cli_shared_1.capitalizeProduct(installation.product), installation.site, installation.environmentKey, cli_shared_1.environmentToOption, false);
|
|
57
57
|
if (installation.successful) {
|
|
58
58
|
ui.info(uninstallMessage);
|
|
@@ -64,16 +64,16 @@ exports.performSingleUninstall = async (installId, { ui, commands: { uninstallAp
|
|
|
64
64
|
exports.performMultipleUninstalls = async (appsToUninstall, { ui, commands: { uninstallAppCommand } }) => {
|
|
65
65
|
const filteredInstallations = appsToUninstall.filter(({ product }) => product !== 'identity');
|
|
66
66
|
const hasMultipleNonIdentityApps = filteredInstallations.length > 1;
|
|
67
|
-
const uninstalledApps = await ui.displayProgress(() => uninstallAppCommand.batchExecute([], appsToUninstall),
|
|
67
|
+
const uninstalledApps = await ui.displayProgress(() => uninstallAppCommand.batchExecute([], appsToUninstall), cli_shared_1.Text.uninstall.cmd.start, (result) => {
|
|
68
68
|
const isSuccessful = !result.some(({ successful }) => successful === false);
|
|
69
69
|
return {
|
|
70
70
|
successful: isSuccessful,
|
|
71
|
-
message:
|
|
71
|
+
message: cli_shared_1.Text.uninstall.cmd.success(hasMultipleNonIdentityApps)
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
74
|
const deferredErrors = [];
|
|
75
75
|
uninstalledApps.forEach((uninstall) => {
|
|
76
|
-
const uninstallMessageFormat = uninstall.successful ?
|
|
76
|
+
const uninstallMessageFormat = uninstall.successful ? cli_shared_1.Text.uninstall.done : cli_shared_1.Text.uninstall.failed;
|
|
77
77
|
const formattedMessage = uninstallMessageFormat(cli_shared_1.capitalizeProduct(uninstall.product), uninstall.site, uninstall.environmentKey, cli_shared_1.environmentToOption, hasMultipleNonIdentityApps);
|
|
78
78
|
if (uninstall.successful && uninstall.product !== 'identity') {
|
|
79
79
|
ui.info(formattedMessage);
|
|
@@ -88,7 +88,7 @@ exports.performMultipleUninstalls = async (appsToUninstall, { ui, commands: { un
|
|
|
88
88
|
throw new errors_1.DeferredErrors(deferredErrors);
|
|
89
89
|
}
|
|
90
90
|
if (hasMultipleNonIdentityApps) {
|
|
91
|
-
ui.info(
|
|
91
|
+
ui.info(cli_shared_1.Text.uninstall.interactive.done);
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
const registerUninstallCommand = (deps) => {
|
|
@@ -96,23 +96,23 @@ const registerUninstallCommand = (deps) => {
|
|
|
96
96
|
cmd
|
|
97
97
|
.command('uninstall [installationId]')
|
|
98
98
|
.requireAppId()
|
|
99
|
-
.description(
|
|
99
|
+
.description(cli_shared_1.Text.uninstall.cmd.desc)
|
|
100
100
|
.action(async (installationId) => {
|
|
101
101
|
const { installations } = await installationsService.listAppInstallations();
|
|
102
102
|
if (!installations.length) {
|
|
103
|
-
ui.info(
|
|
103
|
+
ui.info(cli_shared_1.Text.installList.noInstallations);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
const installId = installationId === null || installationId === void 0 ? void 0 : installationId.trim();
|
|
107
107
|
if (installId && installId.length > 0) {
|
|
108
|
-
ui.info(
|
|
109
|
-
ui.info(
|
|
108
|
+
ui.info(cli_shared_1.Text.uninstall.info);
|
|
109
|
+
ui.info(cli_shared_1.Text.ctrlC);
|
|
110
110
|
ui.emptyLine();
|
|
111
111
|
await exports.performSingleUninstall(installId, deps);
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
114
|
const filteredInstallations = installations.filter((install) => install.product !== 'identity' && install.product !== 'jira-servicedesk');
|
|
115
|
-
const selectedSitesIndexes = await ui.promptForTable(
|
|
115
|
+
const selectedSitesIndexes = await ui.promptForTable(cli_shared_1.Text.uninstall.interactive.desc, cli_shared_1.Text.uninstall.interactive.progressInfo, ['Environment', 'Site', 'Product'], filteredInstallations.map(({ id, environmentKey, product, site }) => ({
|
|
116
116
|
names: [cli_shared_1.environmentToOption(environmentKey), site, cli_shared_1.capitalizeProduct(product)],
|
|
117
117
|
value: id
|
|
118
118
|
})));
|
|
@@ -132,7 +132,7 @@ const registerUninstallCommand = (deps) => {
|
|
|
132
132
|
const DEPRECATED_LIST_COMMAND = 'install:list';
|
|
133
133
|
exports.registerCommands = (_a) => {
|
|
134
134
|
var { cmd } = _a, deps = tslib_1.__rest(_a, ["cmd"]);
|
|
135
|
-
const install = cmd.command(COMMAND_NAME).description(
|
|
135
|
+
const install = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.variables.description);
|
|
136
136
|
registerUninstallCommand(Object.assign({ cmd }, deps));
|
|
137
137
|
cmd.deprecatedCommand(DEPRECATED_LIST_COMMAND, `${COMMAND_NAME} ${LIST_COMMAND_NAME}`, deps.controllers.stubController);
|
|
138
138
|
registerInstallAppCommand(Object.assign({ cmd: install }, deps));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-settings-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-settings-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"register-settings-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-settings-commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAgCtD,eAAO,MAAM,gBAAgB,qBAAsB,YAAY,SAK9D,CAAC"}
|
|
@@ -13,8 +13,9 @@ const registerSettingsList = ({ cmd, controllers: { settingsController } }) => {
|
|
|
13
13
|
.description(cli_shared_1.Text.settings.list.description)
|
|
14
14
|
.requireNoAuthentication()
|
|
15
15
|
.requireNoAnalyticsConsent()
|
|
16
|
-
.
|
|
17
|
-
|
|
16
|
+
.jsonOption()
|
|
17
|
+
.action(async ({ json }) => {
|
|
18
|
+
settingsController.showSettings(json);
|
|
18
19
|
return { analytics: {} };
|
|
19
20
|
});
|
|
20
21
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { UI } from '@forge/cli-shared';
|
|
2
|
+
declare type PreferenceValue = boolean | undefined;
|
|
2
3
|
export declare class SettingsView {
|
|
3
4
|
private readonly ui;
|
|
4
5
|
constructor(ui: UI);
|
|
5
|
-
showSettings(preferences: [string, string,
|
|
6
|
+
showSettings(preferences: [string, string, PreferenceValue][], json?: boolean): void;
|
|
6
7
|
setSuccess(setting: string, value: string): void;
|
|
7
8
|
}
|
|
9
|
+
export {};
|
|
8
10
|
//# sourceMappingURL=settings-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/settings-view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/settings-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAE7C,aAAK,eAAe,GAAG,OAAO,GAAG,SAAS,CAAC;AAE3C,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAE5B,YAAY,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,OAAO;IAiB7E,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAIjD"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SettingsView = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
|
|
6
4
|
const cli_shared_1 = require("@forge/cli-shared");
|
|
7
5
|
class SettingsView {
|
|
8
6
|
constructor(ui) {
|
|
9
7
|
this.ui = ui;
|
|
10
8
|
}
|
|
11
|
-
showSettings(preferences) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
showSettings(preferences, json) {
|
|
10
|
+
this.ui.table([
|
|
11
|
+
['setting', 'Setting'],
|
|
12
|
+
['description', 'Description'],
|
|
13
|
+
['value', 'Value']
|
|
14
|
+
], preferences.map(([preference, desc, value]) => ({ setting: preference, description: desc, value })), {
|
|
15
|
+
json,
|
|
16
|
+
format: {
|
|
17
|
+
value: (value) => (value === undefined ? 'Not set' : String(value))
|
|
18
|
+
}
|
|
19
|
+
});
|
|
15
20
|
}
|
|
16
21
|
setSuccess(setting, value) {
|
|
17
22
|
this.ui.info(cli_shared_1.Text.settings.set.success(setting, value));
|
|
@@ -17,7 +17,7 @@ class TunnelView {
|
|
|
17
17
|
const handler = (err) => {
|
|
18
18
|
if (this.ui.debugEnabled)
|
|
19
19
|
this.ui.error(err);
|
|
20
|
-
exitFn(this.ui
|
|
20
|
+
exitFn(this.ui, new Error(cli_shared_1.Text.tunnel.error.tunnelPackageMissing));
|
|
21
21
|
};
|
|
22
22
|
return handler;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-service.d.ts","sourceRoot":"","sources":["../../src/service/tunnel-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACX,sBAAsB,EACtB,+BAA+B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAOpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAKD,eAAO,MAAM,cAAc,wBAAwB,CAAC;AAcpD,eAAO,MAAM,UAAU,QAEuB,CAAC;AAE/C,qBAAa,uBAAwB,SAAQ,WAAW;CAAG;AAE3D,8BAAsB,aAAa;IACrB,SAAS,CAAC,QAAQ,CAAC,4BAA4B,EAAE,4BAA4B;gBAA1D,4BAA4B,EAAE,4BAA4B;aAEzE,GAAG,CACjB,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,+BAA+B,EACtC,YAAY,EAAE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A;KAAE;IAYvF,SAAS,CAAC,qBAAqB,IAAI,MAAM,EAAE;IAQ3C,SAAS,CAAC,gBAAgB,IAAI,MAAM,EAAE;CAsBvC;AAED,qBAAa,kBAAmB,SAAQ,aAAa;IACtC,GAAG,CACd,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,sBAAsB,EAC7B,YAAY,EAAE,OAAO,EACrB,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,GAC5B,OAAO,CAAC,IAAI,CAAC;CA0BjB;AAED,qBAAa,mBAAoB,SAAQ,aAAa;IAGlD,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAFjC,4BAA4B,EAAE,4BAA4B,EACzC,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,sBAAsB;IAK9C,GAAG,CACd,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,+BAA+B,EACtC,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,IAAI,CAAC;IA2BH,eAAe,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;YAKnD,qBAAqB;CASpC"}
|
|
@@ -121,6 +121,12 @@ class TunnelService {
|
|
|
121
121
|
if (process.env.FORGE_DEV_DOCKER_TUNNEL) {
|
|
122
122
|
options.push(`-v=${path_1.join(__dirname, '../../../forge-tunnel/hardcopied_node_modules/node_modules')}:/tunnel/node_modules:cached`, `-v=${path_1.join(__dirname, '../../../forge-tunnel/out')}:/tunnel/out:cached`);
|
|
123
123
|
}
|
|
124
|
+
if (process.env.FORGE_TUNNEL_MOUNT_DIRECTORIES) {
|
|
125
|
+
const mounts = process.env.FORGE_TUNNEL_MOUNT_DIRECTORIES.split(',');
|
|
126
|
+
mounts.forEach((mount) => {
|
|
127
|
+
options.push(`-v=${mount}:cached`);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
124
130
|
return options;
|
|
125
131
|
}
|
|
126
132
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-next.7",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"postinstall": "node -e \"process.exitCode = fs.existsSync('./out/bin/postinstall.js')\" || node ./out/bin/postinstall.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/bundler": "3.1.
|
|
22
|
-
"@forge/cli-shared": "3.
|
|
23
|
-
"@forge/egress": "^1.1.1
|
|
24
|
-
"@forge/lint": "3.2.
|
|
25
|
-
"@forge/manifest": "4.
|
|
21
|
+
"@forge/bundler": "3.1.2-next.7",
|
|
22
|
+
"@forge/cli-shared": "3.2.0-next.7",
|
|
23
|
+
"@forge/egress": "^1.1.1",
|
|
24
|
+
"@forge/lint": "3.2.6-next.7",
|
|
25
|
+
"@forge/manifest": "4.4.0-next.3",
|
|
26
26
|
"@forge/util": "1.2.0",
|
|
27
27
|
"ajv": "^6.12.5",
|
|
28
28
|
"archiver": "^5.2.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/didyoumean": "^1.2.0",
|
|
60
60
|
"@types/fs-extra": "^8.0.1",
|
|
61
61
|
"@types/hidefile": "^3.0.0",
|
|
62
|
-
"@types/inquirer": "^
|
|
62
|
+
"@types/inquirer": "^8.2.4",
|
|
63
63
|
"@types/jest": "^26.0.0",
|
|
64
64
|
"@types/js-yaml": "^3.12.2",
|
|
65
65
|
"@types/minimatch": "^3.0.3",
|