hereya-cli 0.12.0 → 0.13.1
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/LICENSE +13 -0
- package/README.md +31 -25
- package/dist/commands/add/index.d.ts +1 -0
- package/dist/commands/add/index.js +19 -9
- package/dist/commands/deploy/index.d.ts +1 -0
- package/dist/commands/deploy/index.js +16 -1
- package/dist/commands/down/index.d.ts +1 -0
- package/dist/commands/down/index.js +11 -1
- package/dist/commands/remove/index.d.ts +1 -0
- package/dist/commands/remove/index.js +17 -7
- package/dist/commands/undeploy/index.d.ts +1 -0
- package/dist/commands/undeploy/index.js +12 -4
- package/dist/commands/up/index.d.ts +1 -0
- package/dist/commands/up/index.js +21 -5
- package/dist/infrastructure/index.js +57 -51
- package/dist/lib/log.d.ts +4 -0
- package/dist/lib/log.js +29 -0
- package/dist/lib/package/github.d.ts +1 -1
- package/dist/lib/package/github.js +17 -17
- package/dist/lib/package/index.js +0 -2
- package/dist/lib/shell.d.ts +2 -0
- package/dist/lib/shell.js +8 -1
- package/oclif.manifest.json +115 -79
- package/package.json +4 -3
package/oclif.manifest.json
CHANGED
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
"multiple": false,
|
|
23
23
|
"type": "option"
|
|
24
24
|
},
|
|
25
|
+
"debug": {
|
|
26
|
+
"description": "enable debug mode",
|
|
27
|
+
"name": "debug",
|
|
28
|
+
"allowNo": false,
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
25
31
|
"parameter": {
|
|
26
32
|
"char": "p",
|
|
27
33
|
"description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
|
|
@@ -48,35 +54,32 @@
|
|
|
48
54
|
"index.js"
|
|
49
55
|
]
|
|
50
56
|
},
|
|
51
|
-
"
|
|
57
|
+
"bootstrap": {
|
|
52
58
|
"aliases": [],
|
|
53
|
-
"args": {
|
|
54
|
-
|
|
59
|
+
"args": {
|
|
60
|
+
"infrastructureType": {
|
|
61
|
+
"description": "infrastructure to bootstrap. Options are local, aws",
|
|
62
|
+
"name": "infrastructureType",
|
|
63
|
+
"required": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
55
67
|
"examples": [
|
|
56
|
-
"<%= config.bin %> <%= command.id %>"
|
|
68
|
+
"<%= config.bin %> <%= command.id %> aws",
|
|
69
|
+
"<%= config.bin %> <%= command.id %> local"
|
|
57
70
|
],
|
|
58
71
|
"flags": {
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"type": "option"
|
|
66
|
-
},
|
|
67
|
-
"workspace": {
|
|
68
|
-
"char": "w",
|
|
69
|
-
"description": "name of the workspace to deploy the packages for",
|
|
70
|
-
"name": "workspace",
|
|
71
|
-
"required": true,
|
|
72
|
-
"hasDynamicHelp": false,
|
|
73
|
-
"multiple": false,
|
|
74
|
-
"type": "option"
|
|
72
|
+
"force": {
|
|
73
|
+
"char": "f",
|
|
74
|
+
"description": "redeploy hereya resources if already deployed",
|
|
75
|
+
"name": "force",
|
|
76
|
+
"allowNo": false,
|
|
77
|
+
"type": "boolean"
|
|
75
78
|
}
|
|
76
79
|
},
|
|
77
80
|
"hasDynamicHelp": false,
|
|
78
81
|
"hiddenAliases": [],
|
|
79
|
-
"id": "
|
|
82
|
+
"id": "bootstrap",
|
|
80
83
|
"pluginAlias": "hereya-cli",
|
|
81
84
|
"pluginName": "hereya-cli",
|
|
82
85
|
"pluginType": "core",
|
|
@@ -86,36 +89,45 @@
|
|
|
86
89
|
"relativePath": [
|
|
87
90
|
"dist",
|
|
88
91
|
"commands",
|
|
89
|
-
"
|
|
92
|
+
"bootstrap",
|
|
90
93
|
"index.js"
|
|
91
94
|
]
|
|
92
95
|
},
|
|
93
|
-
"
|
|
96
|
+
"deploy": {
|
|
94
97
|
"aliases": [],
|
|
95
|
-
"args": {
|
|
96
|
-
|
|
97
|
-
"description": "infrastructure to bootstrap. Options are local, aws",
|
|
98
|
-
"name": "infrastructureType",
|
|
99
|
-
"required": true
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
98
|
+
"args": {},
|
|
99
|
+
"description": "Deploy a hereya project using the project deployment package",
|
|
103
100
|
"examples": [
|
|
104
|
-
"<%= config.bin %> <%= command.id %>
|
|
105
|
-
"<%= config.bin %> <%= command.id %> local"
|
|
101
|
+
"<%= config.bin %> <%= command.id %>"
|
|
106
102
|
],
|
|
107
103
|
"flags": {
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
104
|
+
"chdir": {
|
|
105
|
+
"description": "directory to run command in",
|
|
106
|
+
"name": "chdir",
|
|
107
|
+
"required": false,
|
|
108
|
+
"hasDynamicHelp": false,
|
|
109
|
+
"multiple": false,
|
|
110
|
+
"type": "option"
|
|
111
|
+
},
|
|
112
|
+
"debug": {
|
|
113
|
+
"description": "enable debug mode",
|
|
114
|
+
"name": "debug",
|
|
112
115
|
"allowNo": false,
|
|
113
116
|
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
"workspace": {
|
|
119
|
+
"char": "w",
|
|
120
|
+
"description": "name of the workspace to deploy the packages for",
|
|
121
|
+
"name": "workspace",
|
|
122
|
+
"required": true,
|
|
123
|
+
"hasDynamicHelp": false,
|
|
124
|
+
"multiple": false,
|
|
125
|
+
"type": "option"
|
|
114
126
|
}
|
|
115
127
|
},
|
|
116
128
|
"hasDynamicHelp": false,
|
|
117
129
|
"hiddenAliases": [],
|
|
118
|
-
"id": "
|
|
130
|
+
"id": "deploy",
|
|
119
131
|
"pluginAlias": "hereya-cli",
|
|
120
132
|
"pluginName": "hereya-cli",
|
|
121
133
|
"pluginType": "core",
|
|
@@ -125,7 +137,7 @@
|
|
|
125
137
|
"relativePath": [
|
|
126
138
|
"dist",
|
|
127
139
|
"commands",
|
|
128
|
-
"
|
|
140
|
+
"deploy",
|
|
129
141
|
"index.js"
|
|
130
142
|
]
|
|
131
143
|
},
|
|
@@ -145,6 +157,12 @@
|
|
|
145
157
|
"multiple": false,
|
|
146
158
|
"type": "option"
|
|
147
159
|
},
|
|
160
|
+
"debug": {
|
|
161
|
+
"description": "enable debug mode",
|
|
162
|
+
"name": "debug",
|
|
163
|
+
"allowNo": false,
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
148
166
|
"deploy": {
|
|
149
167
|
"description": "destroy deployment companion packages",
|
|
150
168
|
"name": "deploy",
|
|
@@ -307,6 +325,12 @@
|
|
|
307
325
|
"hasDynamicHelp": false,
|
|
308
326
|
"multiple": false,
|
|
309
327
|
"type": "option"
|
|
328
|
+
},
|
|
329
|
+
"debug": {
|
|
330
|
+
"description": "enable debug mode",
|
|
331
|
+
"name": "debug",
|
|
332
|
+
"allowNo": false,
|
|
333
|
+
"type": "boolean"
|
|
310
334
|
}
|
|
311
335
|
},
|
|
312
336
|
"hasDynamicHelp": false,
|
|
@@ -429,6 +453,12 @@
|
|
|
429
453
|
"multiple": false,
|
|
430
454
|
"type": "option"
|
|
431
455
|
},
|
|
456
|
+
"debug": {
|
|
457
|
+
"description": "enable debug mode",
|
|
458
|
+
"name": "debug",
|
|
459
|
+
"allowNo": false,
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
},
|
|
432
462
|
"workspace": {
|
|
433
463
|
"char": "w",
|
|
434
464
|
"description": "name of the workspace to undeploy the packages for",
|
|
@@ -471,6 +501,12 @@
|
|
|
471
501
|
"multiple": false,
|
|
472
502
|
"type": "option"
|
|
473
503
|
},
|
|
504
|
+
"debug": {
|
|
505
|
+
"description": "enable debug mode",
|
|
506
|
+
"name": "debug",
|
|
507
|
+
"allowNo": false,
|
|
508
|
+
"type": "boolean"
|
|
509
|
+
},
|
|
474
510
|
"deploy": {
|
|
475
511
|
"description": "provision deployment companion packages",
|
|
476
512
|
"name": "deploy",
|
|
@@ -732,51 +768,26 @@
|
|
|
732
768
|
"index.js"
|
|
733
769
|
]
|
|
734
770
|
},
|
|
735
|
-
"workspace:env:
|
|
771
|
+
"workspace:env:unset": {
|
|
736
772
|
"aliases": [],
|
|
737
773
|
"args": {},
|
|
738
|
-
"description": "
|
|
774
|
+
"description": "unset an env var for a workspace",
|
|
739
775
|
"examples": [
|
|
740
|
-
"<%= config.bin %> <%= command.id %> -w my-workspace -n myVar
|
|
776
|
+
"<%= config.bin %> <%= command.id %> -w my-workspace -n myVar"
|
|
741
777
|
],
|
|
742
778
|
"flags": {
|
|
743
|
-
"infra": {
|
|
744
|
-
"char": "i",
|
|
745
|
-
"description": "the infrastructure to store the env var in",
|
|
746
|
-
"name": "infra",
|
|
747
|
-
"required": true,
|
|
748
|
-
"hasDynamicHelp": false,
|
|
749
|
-
"multiple": false,
|
|
750
|
-
"type": "option"
|
|
751
|
-
},
|
|
752
779
|
"name": {
|
|
753
780
|
"char": "n",
|
|
754
|
-
"description": "name of the env var to
|
|
781
|
+
"description": "name of the env var to unset",
|
|
755
782
|
"name": "name",
|
|
756
783
|
"required": true,
|
|
757
784
|
"hasDynamicHelp": false,
|
|
758
785
|
"multiple": false,
|
|
759
786
|
"type": "option"
|
|
760
787
|
},
|
|
761
|
-
"sensitive": {
|
|
762
|
-
"char": "s",
|
|
763
|
-
"description": "whether the env var is sensitive",
|
|
764
|
-
"name": "sensitive",
|
|
765
|
-
"allowNo": false,
|
|
766
|
-
"type": "boolean"
|
|
767
|
-
},
|
|
768
|
-
"value": {
|
|
769
|
-
"char": "v",
|
|
770
|
-
"description": "value of the env var to set",
|
|
771
|
-
"name": "value",
|
|
772
|
-
"required": true,
|
|
773
|
-
"hasDynamicHelp": false,
|
|
774
|
-
"multiple": false,
|
|
775
|
-
"type": "option"
|
|
776
|
-
},
|
|
777
788
|
"workspace": {
|
|
778
789
|
"char": "w",
|
|
779
|
-
"description": "name of the workspace to
|
|
790
|
+
"description": "name of the workspace to unset an env var for",
|
|
780
791
|
"name": "workspace",
|
|
781
792
|
"required": true,
|
|
782
793
|
"hasDynamicHelp": false,
|
|
@@ -786,7 +797,7 @@
|
|
|
786
797
|
},
|
|
787
798
|
"hasDynamicHelp": false,
|
|
788
799
|
"hiddenAliases": [],
|
|
789
|
-
"id": "workspace:env:
|
|
800
|
+
"id": "workspace:env:unset",
|
|
790
801
|
"pluginAlias": "hereya-cli",
|
|
791
802
|
"pluginName": "hereya-cli",
|
|
792
803
|
"pluginType": "core",
|
|
@@ -798,30 +809,55 @@
|
|
|
798
809
|
"commands",
|
|
799
810
|
"workspace",
|
|
800
811
|
"env",
|
|
801
|
-
"
|
|
812
|
+
"unset",
|
|
802
813
|
"index.js"
|
|
803
814
|
]
|
|
804
815
|
},
|
|
805
|
-
"workspace:env:
|
|
816
|
+
"workspace:env:set": {
|
|
806
817
|
"aliases": [],
|
|
807
818
|
"args": {},
|
|
808
|
-
"description": "
|
|
819
|
+
"description": "set an env var for a workspace",
|
|
809
820
|
"examples": [
|
|
810
|
-
"<%= config.bin %> <%= command.id %> -w my-workspace -n myVar"
|
|
821
|
+
"<%= config.bin %> <%= command.id %> -w my-workspace -n myVar -v my-value -i aws -s"
|
|
811
822
|
],
|
|
812
823
|
"flags": {
|
|
824
|
+
"infra": {
|
|
825
|
+
"char": "i",
|
|
826
|
+
"description": "the infrastructure to store the env var in",
|
|
827
|
+
"name": "infra",
|
|
828
|
+
"required": true,
|
|
829
|
+
"hasDynamicHelp": false,
|
|
830
|
+
"multiple": false,
|
|
831
|
+
"type": "option"
|
|
832
|
+
},
|
|
813
833
|
"name": {
|
|
814
834
|
"char": "n",
|
|
815
|
-
"description": "name of the env var to
|
|
835
|
+
"description": "name of the env var to set",
|
|
816
836
|
"name": "name",
|
|
817
837
|
"required": true,
|
|
818
838
|
"hasDynamicHelp": false,
|
|
819
839
|
"multiple": false,
|
|
820
840
|
"type": "option"
|
|
821
841
|
},
|
|
842
|
+
"sensitive": {
|
|
843
|
+
"char": "s",
|
|
844
|
+
"description": "whether the env var is sensitive",
|
|
845
|
+
"name": "sensitive",
|
|
846
|
+
"allowNo": false,
|
|
847
|
+
"type": "boolean"
|
|
848
|
+
},
|
|
849
|
+
"value": {
|
|
850
|
+
"char": "v",
|
|
851
|
+
"description": "value of the env var to set",
|
|
852
|
+
"name": "value",
|
|
853
|
+
"required": true,
|
|
854
|
+
"hasDynamicHelp": false,
|
|
855
|
+
"multiple": false,
|
|
856
|
+
"type": "option"
|
|
857
|
+
},
|
|
822
858
|
"workspace": {
|
|
823
859
|
"char": "w",
|
|
824
|
-
"description": "name of the workspace to
|
|
860
|
+
"description": "name of the workspace to set an env var for",
|
|
825
861
|
"name": "workspace",
|
|
826
862
|
"required": true,
|
|
827
863
|
"hasDynamicHelp": false,
|
|
@@ -831,7 +867,7 @@
|
|
|
831
867
|
},
|
|
832
868
|
"hasDynamicHelp": false,
|
|
833
869
|
"hiddenAliases": [],
|
|
834
|
-
"id": "workspace:env:
|
|
870
|
+
"id": "workspace:env:set",
|
|
835
871
|
"pluginAlias": "hereya-cli",
|
|
836
872
|
"pluginName": "hereya-cli",
|
|
837
873
|
"pluginType": "core",
|
|
@@ -843,10 +879,10 @@
|
|
|
843
879
|
"commands",
|
|
844
880
|
"workspace",
|
|
845
881
|
"env",
|
|
846
|
-
"
|
|
882
|
+
"set",
|
|
847
883
|
"index.js"
|
|
848
884
|
]
|
|
849
885
|
}
|
|
850
886
|
},
|
|
851
|
-
"version": "0.
|
|
887
|
+
"version": "0.13.1"
|
|
852
888
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hereya-cli",
|
|
3
3
|
"description": "Infrastructure as Package",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"author": "Hereya Developers",
|
|
6
6
|
"bin": {
|
|
7
7
|
"hereya": "./bin/run.js"
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"@oclif/core": "^3",
|
|
20
20
|
"@oclif/plugin-help": "^6",
|
|
21
21
|
"@oclif/plugin-plugins": "^5",
|
|
22
|
-
"
|
|
22
|
+
"cli-spinners": "^3.2.0",
|
|
23
23
|
"glob": "^10.4.1",
|
|
24
24
|
"ignore": "^5.3.1",
|
|
25
|
+
"ora": "^8.1.1",
|
|
25
26
|
"simple-git": "^3.24.0",
|
|
26
27
|
"unzip-stream": "^0.3.4",
|
|
27
28
|
"yaml": "^2.4.2",
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@oclif/prettier-config": "^0.2.1",
|
|
32
|
-
"@oclif/test": "^4",
|
|
33
|
+
"@oclif/test": "^4.1.8",
|
|
33
34
|
"@types/chai": "^4",
|
|
34
35
|
"@types/mocha": "^10",
|
|
35
36
|
"@types/mock-fs": "^4.13.4",
|