hereya-cli 0.2.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/README.md +392 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +6 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/backend/common.d.ts +126 -0
- package/dist/backend/common.js +1 -0
- package/dist/backend/index.d.ts +4 -0
- package/dist/backend/index.js +5 -0
- package/dist/backend/local.d.ts +16 -0
- package/dist/backend/local.js +231 -0
- package/dist/commands/add/index.d.ts +13 -0
- package/dist/commands/add/index.js +96 -0
- package/dist/commands/bootstrap/index.d.ts +12 -0
- package/dist/commands/bootstrap/index.js +28 -0
- package/dist/commands/down/index.d.ts +10 -0
- package/dist/commands/down/index.js +78 -0
- package/dist/commands/env/index.d.ts +10 -0
- package/dist/commands/env/index.js +46 -0
- package/dist/commands/init/index.d.ts +13 -0
- package/dist/commands/init/index.js +46 -0
- package/dist/commands/remote/exec/index.d.ts +12 -0
- package/dist/commands/remote/exec/index.js +65 -0
- package/dist/commands/remove/index.d.ts +12 -0
- package/dist/commands/remove/index.js +80 -0
- package/dist/commands/run/index.d.ts +14 -0
- package/dist/commands/run/index.js +60 -0
- package/dist/commands/up/index.d.ts +10 -0
- package/dist/commands/up/index.js +121 -0
- package/dist/commands/workspace/create/index.d.ts +9 -0
- package/dist/commands/workspace/create/index.js +25 -0
- package/dist/commands/workspace/delete/index.d.ts +9 -0
- package/dist/commands/workspace/delete/index.js +24 -0
- package/dist/commands/workspace/env/index.d.ts +9 -0
- package/dist/commands/workspace/env/index.js +28 -0
- package/dist/commands/workspace/install/index.d.ts +14 -0
- package/dist/commands/workspace/install/index.js +74 -0
- package/dist/commands/workspace/uninstall/index.d.ts +14 -0
- package/dist/commands/workspace/uninstall/index.js +85 -0
- package/dist/iac/cdk.d.ts +8 -0
- package/dist/iac/cdk.js +83 -0
- package/dist/iac/common.d.ts +29 -0
- package/dist/iac/common.js +5 -0
- package/dist/iac/index.d.ts +16 -0
- package/dist/iac/index.js +18 -0
- package/dist/iac/terraform.d.ts +6 -0
- package/dist/iac/terraform.js +67 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/infrastructure/aws.d.ts +8 -0
- package/dist/infrastructure/aws.js +28 -0
- package/dist/infrastructure/common.d.ts +59 -0
- package/dist/infrastructure/common.js +7 -0
- package/dist/infrastructure/index.d.ts +43 -0
- package/dist/infrastructure/index.js +82 -0
- package/dist/infrastructure/local.d.ts +14 -0
- package/dist/infrastructure/local.js +81 -0
- package/dist/lib/config/common.d.ts +34 -0
- package/dist/lib/config/common.js +1 -0
- package/dist/lib/config/index.d.ts +3 -0
- package/dist/lib/config/index.js +5 -0
- package/dist/lib/config/simple.d.ts +8 -0
- package/dist/lib/config/simple.js +41 -0
- package/dist/lib/env/index.d.ts +27 -0
- package/dist/lib/env/index.js +42 -0
- package/dist/lib/env-utils.d.ts +8 -0
- package/dist/lib/env-utils.js +20 -0
- package/dist/lib/filesystem.d.ts +1 -0
- package/dist/lib/filesystem.js +15 -0
- package/dist/lib/object-utils.d.ts +4 -0
- package/dist/lib/object-utils.js +9 -0
- package/dist/lib/package/common.d.ts +15 -0
- package/dist/lib/package/common.js +1 -0
- package/dist/lib/package/github.d.ts +4 -0
- package/dist/lib/package/github.js +32 -0
- package/dist/lib/package/index.d.ts +30 -0
- package/dist/lib/package/index.js +45 -0
- package/dist/lib/parameter/index.d.ts +34 -0
- package/dist/lib/parameter/index.js +47 -0
- package/dist/lib/shell.d.ts +9 -0
- package/dist/lib/shell.js +16 -0
- package/dist/lib/yaml-utils.d.ts +5 -0
- package/dist/lib/yaml-utils.js +27 -0
- package/oclif.manifest.json +610 -0
- package/package.json +86 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"add": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"package": {
|
|
7
|
+
"description": "The package to add. Packages are gitHub repositories. Use the format owner/repository",
|
|
8
|
+
"name": "package",
|
|
9
|
+
"required": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Add a package to the project.",
|
|
13
|
+
"examples": [
|
|
14
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres"
|
|
15
|
+
],
|
|
16
|
+
"flags": {
|
|
17
|
+
"chdir": {
|
|
18
|
+
"description": "directory to run command in",
|
|
19
|
+
"name": "chdir",
|
|
20
|
+
"required": false,
|
|
21
|
+
"hasDynamicHelp": false,
|
|
22
|
+
"multiple": false,
|
|
23
|
+
"type": "option"
|
|
24
|
+
},
|
|
25
|
+
"parameter": {
|
|
26
|
+
"char": "p",
|
|
27
|
+
"description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
|
|
28
|
+
"name": "parameter",
|
|
29
|
+
"default": [],
|
|
30
|
+
"hasDynamicHelp": false,
|
|
31
|
+
"multiple": true,
|
|
32
|
+
"type": "option"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"hasDynamicHelp": false,
|
|
36
|
+
"hiddenAliases": [],
|
|
37
|
+
"id": "add",
|
|
38
|
+
"pluginAlias": "hereya-cli",
|
|
39
|
+
"pluginName": "hereya-cli",
|
|
40
|
+
"pluginType": "core",
|
|
41
|
+
"strict": true,
|
|
42
|
+
"enableJsonFlag": false,
|
|
43
|
+
"isESM": true,
|
|
44
|
+
"relativePath": [
|
|
45
|
+
"dist",
|
|
46
|
+
"commands",
|
|
47
|
+
"add",
|
|
48
|
+
"index.js"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"bootstrap": {
|
|
52
|
+
"aliases": [],
|
|
53
|
+
"args": {
|
|
54
|
+
"infrastructureType": {
|
|
55
|
+
"description": "infrastructure to bootstrap. Options are local, aws, azure, gcp",
|
|
56
|
+
"name": "infrastructureType",
|
|
57
|
+
"required": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
61
|
+
"examples": [
|
|
62
|
+
"<%= config.bin %> <%= command.id %> aws",
|
|
63
|
+
"<%= config.bin %> <%= command.id %> local"
|
|
64
|
+
],
|
|
65
|
+
"flags": {
|
|
66
|
+
"force": {
|
|
67
|
+
"char": "f",
|
|
68
|
+
"description": "redeploy hereya resources if already deployed",
|
|
69
|
+
"name": "force",
|
|
70
|
+
"allowNo": false,
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"hasDynamicHelp": false,
|
|
75
|
+
"hiddenAliases": [],
|
|
76
|
+
"id": "bootstrap",
|
|
77
|
+
"pluginAlias": "hereya-cli",
|
|
78
|
+
"pluginName": "hereya-cli",
|
|
79
|
+
"pluginType": "core",
|
|
80
|
+
"strict": true,
|
|
81
|
+
"enableJsonFlag": false,
|
|
82
|
+
"isESM": true,
|
|
83
|
+
"relativePath": [
|
|
84
|
+
"dist",
|
|
85
|
+
"commands",
|
|
86
|
+
"bootstrap",
|
|
87
|
+
"index.js"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"down": {
|
|
91
|
+
"aliases": [],
|
|
92
|
+
"args": {},
|
|
93
|
+
"description": "Destroy all packages in the project.",
|
|
94
|
+
"examples": [
|
|
95
|
+
"<%= config.bin %> <%= command.id %>"
|
|
96
|
+
],
|
|
97
|
+
"flags": {
|
|
98
|
+
"chdir": {
|
|
99
|
+
"description": "directory to run command in",
|
|
100
|
+
"name": "chdir",
|
|
101
|
+
"required": false,
|
|
102
|
+
"hasDynamicHelp": false,
|
|
103
|
+
"multiple": false,
|
|
104
|
+
"type": "option"
|
|
105
|
+
},
|
|
106
|
+
"workspace": {
|
|
107
|
+
"char": "w",
|
|
108
|
+
"description": "name of the workspace to install the packages for",
|
|
109
|
+
"name": "workspace",
|
|
110
|
+
"required": false,
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"multiple": false,
|
|
113
|
+
"type": "option"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"hasDynamicHelp": false,
|
|
117
|
+
"hiddenAliases": [],
|
|
118
|
+
"id": "down",
|
|
119
|
+
"pluginAlias": "hereya-cli",
|
|
120
|
+
"pluginName": "hereya-cli",
|
|
121
|
+
"pluginType": "core",
|
|
122
|
+
"strict": true,
|
|
123
|
+
"enableJsonFlag": false,
|
|
124
|
+
"isESM": true,
|
|
125
|
+
"relativePath": [
|
|
126
|
+
"dist",
|
|
127
|
+
"commands",
|
|
128
|
+
"down",
|
|
129
|
+
"index.js"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"env": {
|
|
133
|
+
"aliases": [],
|
|
134
|
+
"args": {},
|
|
135
|
+
"description": "Print project environment variables.",
|
|
136
|
+
"examples": [
|
|
137
|
+
"<%= config.bin %> <%= command.id %>",
|
|
138
|
+
"<%= config.bin %> <%= command.id %> -w dev"
|
|
139
|
+
],
|
|
140
|
+
"flags": {
|
|
141
|
+
"chdir": {
|
|
142
|
+
"description": "project root directory",
|
|
143
|
+
"name": "chdir",
|
|
144
|
+
"required": false,
|
|
145
|
+
"hasDynamicHelp": false,
|
|
146
|
+
"multiple": false,
|
|
147
|
+
"type": "option"
|
|
148
|
+
},
|
|
149
|
+
"workspace": {
|
|
150
|
+
"char": "w",
|
|
151
|
+
"description": "name of the workspace to print the env vars for",
|
|
152
|
+
"name": "workspace",
|
|
153
|
+
"required": false,
|
|
154
|
+
"hasDynamicHelp": false,
|
|
155
|
+
"multiple": false,
|
|
156
|
+
"type": "option"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"hasDynamicHelp": false,
|
|
160
|
+
"hiddenAliases": [],
|
|
161
|
+
"id": "env",
|
|
162
|
+
"pluginAlias": "hereya-cli",
|
|
163
|
+
"pluginName": "hereya-cli",
|
|
164
|
+
"pluginType": "core",
|
|
165
|
+
"strict": true,
|
|
166
|
+
"enableJsonFlag": false,
|
|
167
|
+
"isESM": true,
|
|
168
|
+
"relativePath": [
|
|
169
|
+
"dist",
|
|
170
|
+
"commands",
|
|
171
|
+
"env",
|
|
172
|
+
"index.js"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"init": {
|
|
176
|
+
"aliases": [],
|
|
177
|
+
"args": {
|
|
178
|
+
"project": {
|
|
179
|
+
"description": "project name",
|
|
180
|
+
"name": "project",
|
|
181
|
+
"required": true
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"description": "Initialize hereya in a project directory.",
|
|
185
|
+
"examples": [
|
|
186
|
+
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace",
|
|
187
|
+
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace --chdir=./myProject"
|
|
188
|
+
],
|
|
189
|
+
"flags": {
|
|
190
|
+
"chdir": {
|
|
191
|
+
"description": "directory to run command in",
|
|
192
|
+
"name": "chdir",
|
|
193
|
+
"required": false,
|
|
194
|
+
"hasDynamicHelp": false,
|
|
195
|
+
"multiple": false,
|
|
196
|
+
"type": "option"
|
|
197
|
+
},
|
|
198
|
+
"workspace": {
|
|
199
|
+
"char": "w",
|
|
200
|
+
"description": "workspace to set as default",
|
|
201
|
+
"name": "workspace",
|
|
202
|
+
"required": true,
|
|
203
|
+
"hasDynamicHelp": false,
|
|
204
|
+
"multiple": false,
|
|
205
|
+
"type": "option"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"hasDynamicHelp": false,
|
|
209
|
+
"hiddenAliases": [],
|
|
210
|
+
"id": "init",
|
|
211
|
+
"pluginAlias": "hereya-cli",
|
|
212
|
+
"pluginName": "hereya-cli",
|
|
213
|
+
"pluginType": "core",
|
|
214
|
+
"strict": true,
|
|
215
|
+
"enableJsonFlag": false,
|
|
216
|
+
"isESM": true,
|
|
217
|
+
"relativePath": [
|
|
218
|
+
"dist",
|
|
219
|
+
"commands",
|
|
220
|
+
"init",
|
|
221
|
+
"index.js"
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"remove": {
|
|
225
|
+
"aliases": [],
|
|
226
|
+
"args": {
|
|
227
|
+
"package": {
|
|
228
|
+
"description": "The package to remove. Packages are gitHub repositories. Use the format owner/repository",
|
|
229
|
+
"name": "package",
|
|
230
|
+
"required": true
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"description": "Remove a package from the project.",
|
|
234
|
+
"examples": [
|
|
235
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres"
|
|
236
|
+
],
|
|
237
|
+
"flags": {
|
|
238
|
+
"chdir": {
|
|
239
|
+
"description": "directory to run command in",
|
|
240
|
+
"name": "chdir",
|
|
241
|
+
"required": false,
|
|
242
|
+
"hasDynamicHelp": false,
|
|
243
|
+
"multiple": false,
|
|
244
|
+
"type": "option"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"hasDynamicHelp": false,
|
|
248
|
+
"hiddenAliases": [],
|
|
249
|
+
"id": "remove",
|
|
250
|
+
"pluginAlias": "hereya-cli",
|
|
251
|
+
"pluginName": "hereya-cli",
|
|
252
|
+
"pluginType": "core",
|
|
253
|
+
"strict": true,
|
|
254
|
+
"enableJsonFlag": false,
|
|
255
|
+
"isESM": true,
|
|
256
|
+
"relativePath": [
|
|
257
|
+
"dist",
|
|
258
|
+
"commands",
|
|
259
|
+
"remove",
|
|
260
|
+
"index.js"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"run": {
|
|
264
|
+
"aliases": [],
|
|
265
|
+
"args": {
|
|
266
|
+
"cmd": {
|
|
267
|
+
"description": "command to run",
|
|
268
|
+
"name": "cmd",
|
|
269
|
+
"required": true
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"description": "Run a command with hereya env vars.",
|
|
273
|
+
"examples": [
|
|
274
|
+
"<%= config.bin %> <%= command.id %> -- npm run dev",
|
|
275
|
+
"<%= config.bin %> <%= command.id %> -w uat -- node index.js"
|
|
276
|
+
],
|
|
277
|
+
"flags": {
|
|
278
|
+
"chdir": {
|
|
279
|
+
"description": "directory to run command in",
|
|
280
|
+
"name": "chdir",
|
|
281
|
+
"required": false,
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"type": "option"
|
|
285
|
+
},
|
|
286
|
+
"workspace": {
|
|
287
|
+
"char": "w",
|
|
288
|
+
"description": "name of the workspace to run the command in",
|
|
289
|
+
"name": "workspace",
|
|
290
|
+
"required": false,
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"multiple": false,
|
|
293
|
+
"type": "option"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"hasDynamicHelp": false,
|
|
297
|
+
"hiddenAliases": [],
|
|
298
|
+
"id": "run",
|
|
299
|
+
"pluginAlias": "hereya-cli",
|
|
300
|
+
"pluginName": "hereya-cli",
|
|
301
|
+
"pluginType": "core",
|
|
302
|
+
"strict": false,
|
|
303
|
+
"enableJsonFlag": false,
|
|
304
|
+
"isESM": true,
|
|
305
|
+
"relativePath": [
|
|
306
|
+
"dist",
|
|
307
|
+
"commands",
|
|
308
|
+
"run",
|
|
309
|
+
"index.js"
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"up": {
|
|
313
|
+
"aliases": [],
|
|
314
|
+
"args": {},
|
|
315
|
+
"description": "Provision all packages in the project.",
|
|
316
|
+
"examples": [
|
|
317
|
+
"<%= config.bin %> <%= command.id %>"
|
|
318
|
+
],
|
|
319
|
+
"flags": {
|
|
320
|
+
"chdir": {
|
|
321
|
+
"description": "directory to run command in",
|
|
322
|
+
"name": "chdir",
|
|
323
|
+
"required": false,
|
|
324
|
+
"hasDynamicHelp": false,
|
|
325
|
+
"multiple": false,
|
|
326
|
+
"type": "option"
|
|
327
|
+
},
|
|
328
|
+
"workspace": {
|
|
329
|
+
"char": "w",
|
|
330
|
+
"description": "name of the workspace to install the packages for",
|
|
331
|
+
"name": "workspace",
|
|
332
|
+
"required": false,
|
|
333
|
+
"hasDynamicHelp": false,
|
|
334
|
+
"multiple": false,
|
|
335
|
+
"type": "option"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"hasDynamicHelp": false,
|
|
339
|
+
"hiddenAliases": [],
|
|
340
|
+
"id": "up",
|
|
341
|
+
"pluginAlias": "hereya-cli",
|
|
342
|
+
"pluginName": "hereya-cli",
|
|
343
|
+
"pluginType": "core",
|
|
344
|
+
"strict": true,
|
|
345
|
+
"enableJsonFlag": false,
|
|
346
|
+
"isESM": true,
|
|
347
|
+
"relativePath": [
|
|
348
|
+
"dist",
|
|
349
|
+
"commands",
|
|
350
|
+
"up",
|
|
351
|
+
"index.js"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"remote:exec": {
|
|
355
|
+
"aliases": [],
|
|
356
|
+
"args": {
|
|
357
|
+
"pkgPath": {
|
|
358
|
+
"description": "The path to the package to provision or destroy",
|
|
359
|
+
"name": "pkgPath",
|
|
360
|
+
"required": false
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"description": "remotely provision or destroy a package",
|
|
364
|
+
"examples": [
|
|
365
|
+
"<%= config.bin %> <%= command.id %>"
|
|
366
|
+
],
|
|
367
|
+
"flags": {
|
|
368
|
+
"output": {
|
|
369
|
+
"char": "o",
|
|
370
|
+
"description": "The path to store the output env in",
|
|
371
|
+
"name": "output",
|
|
372
|
+
"required": false,
|
|
373
|
+
"hasDynamicHelp": false,
|
|
374
|
+
"multiple": false,
|
|
375
|
+
"type": "option"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"hasDynamicHelp": false,
|
|
379
|
+
"hiddenAliases": [],
|
|
380
|
+
"id": "remote:exec",
|
|
381
|
+
"pluginAlias": "hereya-cli",
|
|
382
|
+
"pluginName": "hereya-cli",
|
|
383
|
+
"pluginType": "core",
|
|
384
|
+
"strict": true,
|
|
385
|
+
"enableJsonFlag": false,
|
|
386
|
+
"isESM": true,
|
|
387
|
+
"relativePath": [
|
|
388
|
+
"dist",
|
|
389
|
+
"commands",
|
|
390
|
+
"remote",
|
|
391
|
+
"exec",
|
|
392
|
+
"index.js"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"workspace:create": {
|
|
396
|
+
"aliases": [],
|
|
397
|
+
"args": {
|
|
398
|
+
"name": {
|
|
399
|
+
"description": "name of the workspace to create",
|
|
400
|
+
"name": "name",
|
|
401
|
+
"required": true
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"description": "Create a new workspace if it does not exist.",
|
|
405
|
+
"examples": [
|
|
406
|
+
"<%= config.bin %> <%= command.id %> dev"
|
|
407
|
+
],
|
|
408
|
+
"flags": {},
|
|
409
|
+
"hasDynamicHelp": false,
|
|
410
|
+
"hiddenAliases": [],
|
|
411
|
+
"id": "workspace:create",
|
|
412
|
+
"pluginAlias": "hereya-cli",
|
|
413
|
+
"pluginName": "hereya-cli",
|
|
414
|
+
"pluginType": "core",
|
|
415
|
+
"strict": true,
|
|
416
|
+
"enableJsonFlag": false,
|
|
417
|
+
"isESM": true,
|
|
418
|
+
"relativePath": [
|
|
419
|
+
"dist",
|
|
420
|
+
"commands",
|
|
421
|
+
"workspace",
|
|
422
|
+
"create",
|
|
423
|
+
"index.js"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"workspace:delete": {
|
|
427
|
+
"aliases": [],
|
|
428
|
+
"args": {
|
|
429
|
+
"name": {
|
|
430
|
+
"description": "name of the workspace to delete",
|
|
431
|
+
"name": "name",
|
|
432
|
+
"required": true
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"description": "Delete a workspace if it exists.",
|
|
436
|
+
"examples": [
|
|
437
|
+
"<%= config.bin %> <%= command.id %> dev"
|
|
438
|
+
],
|
|
439
|
+
"flags": {},
|
|
440
|
+
"hasDynamicHelp": false,
|
|
441
|
+
"hiddenAliases": [],
|
|
442
|
+
"id": "workspace:delete",
|
|
443
|
+
"pluginAlias": "hereya-cli",
|
|
444
|
+
"pluginName": "hereya-cli",
|
|
445
|
+
"pluginType": "core",
|
|
446
|
+
"strict": true,
|
|
447
|
+
"enableJsonFlag": false,
|
|
448
|
+
"isESM": true,
|
|
449
|
+
"relativePath": [
|
|
450
|
+
"dist",
|
|
451
|
+
"commands",
|
|
452
|
+
"workspace",
|
|
453
|
+
"delete",
|
|
454
|
+
"index.js"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
"workspace:env": {
|
|
458
|
+
"aliases": [],
|
|
459
|
+
"args": {},
|
|
460
|
+
"description": "Print workspace env vars.",
|
|
461
|
+
"examples": [
|
|
462
|
+
"<%= config.bin %> <%= command.id %> -w dev"
|
|
463
|
+
],
|
|
464
|
+
"flags": {
|
|
465
|
+
"workspace": {
|
|
466
|
+
"char": "w",
|
|
467
|
+
"description": "name of the workspace to print env vars for",
|
|
468
|
+
"name": "workspace",
|
|
469
|
+
"required": true,
|
|
470
|
+
"hasDynamicHelp": false,
|
|
471
|
+
"multiple": false,
|
|
472
|
+
"type": "option"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"hasDynamicHelp": false,
|
|
476
|
+
"hiddenAliases": [],
|
|
477
|
+
"id": "workspace:env",
|
|
478
|
+
"pluginAlias": "hereya-cli",
|
|
479
|
+
"pluginName": "hereya-cli",
|
|
480
|
+
"pluginType": "core",
|
|
481
|
+
"strict": true,
|
|
482
|
+
"enableJsonFlag": false,
|
|
483
|
+
"isESM": true,
|
|
484
|
+
"relativePath": [
|
|
485
|
+
"dist",
|
|
486
|
+
"commands",
|
|
487
|
+
"workspace",
|
|
488
|
+
"env",
|
|
489
|
+
"index.js"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
"workspace:install": {
|
|
493
|
+
"aliases": [],
|
|
494
|
+
"args": {
|
|
495
|
+
"package": {
|
|
496
|
+
"description": "The package to add. Packages are gitHub repositories. Use the format owner/repository",
|
|
497
|
+
"name": "package",
|
|
498
|
+
"required": true
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"description": "Add a package to the workspace.",
|
|
502
|
+
"examples": [
|
|
503
|
+
"<%= config.bin %> <%= command.id %> hereya/aws-cognito"
|
|
504
|
+
],
|
|
505
|
+
"flags": {
|
|
506
|
+
"parameter": {
|
|
507
|
+
"char": "p",
|
|
508
|
+
"description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
|
|
509
|
+
"name": "parameter",
|
|
510
|
+
"default": [],
|
|
511
|
+
"hasDynamicHelp": false,
|
|
512
|
+
"multiple": true,
|
|
513
|
+
"type": "option"
|
|
514
|
+
},
|
|
515
|
+
"parameter-file": {
|
|
516
|
+
"char": "f",
|
|
517
|
+
"description": "path to a file containing parameters for the package",
|
|
518
|
+
"name": "parameter-file",
|
|
519
|
+
"hasDynamicHelp": false,
|
|
520
|
+
"multiple": false,
|
|
521
|
+
"type": "option"
|
|
522
|
+
},
|
|
523
|
+
"workspace": {
|
|
524
|
+
"char": "w",
|
|
525
|
+
"description": "name of the workspace to add the package to",
|
|
526
|
+
"name": "workspace",
|
|
527
|
+
"required": true,
|
|
528
|
+
"hasDynamicHelp": false,
|
|
529
|
+
"multiple": false,
|
|
530
|
+
"type": "option"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"hasDynamicHelp": false,
|
|
534
|
+
"hiddenAliases": [],
|
|
535
|
+
"id": "workspace:install",
|
|
536
|
+
"pluginAlias": "hereya-cli",
|
|
537
|
+
"pluginName": "hereya-cli",
|
|
538
|
+
"pluginType": "core",
|
|
539
|
+
"strict": true,
|
|
540
|
+
"enableJsonFlag": false,
|
|
541
|
+
"isESM": true,
|
|
542
|
+
"relativePath": [
|
|
543
|
+
"dist",
|
|
544
|
+
"commands",
|
|
545
|
+
"workspace",
|
|
546
|
+
"install",
|
|
547
|
+
"index.js"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"workspace:uninstall": {
|
|
551
|
+
"aliases": [],
|
|
552
|
+
"args": {
|
|
553
|
+
"package": {
|
|
554
|
+
"description": "The package to remove. Packages are gitHub repositories. Use the format owner/repository",
|
|
555
|
+
"name": "package",
|
|
556
|
+
"required": true
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"description": "Remove a package from a workspace.",
|
|
560
|
+
"examples": [
|
|
561
|
+
"<%= config.bin %> <%= command.id %> hereya/aws-cognito"
|
|
562
|
+
],
|
|
563
|
+
"flags": {
|
|
564
|
+
"parameter": {
|
|
565
|
+
"char": "p",
|
|
566
|
+
"description": "parameter for the package, in the form of 'key=value'. Can be specified multiple times.",
|
|
567
|
+
"name": "parameter",
|
|
568
|
+
"default": [],
|
|
569
|
+
"hasDynamicHelp": false,
|
|
570
|
+
"multiple": true,
|
|
571
|
+
"type": "option"
|
|
572
|
+
},
|
|
573
|
+
"parameter-file": {
|
|
574
|
+
"char": "f",
|
|
575
|
+
"description": "path to a file containing parameters for the package",
|
|
576
|
+
"name": "parameter-file",
|
|
577
|
+
"hasDynamicHelp": false,
|
|
578
|
+
"multiple": false,
|
|
579
|
+
"type": "option"
|
|
580
|
+
},
|
|
581
|
+
"workspace": {
|
|
582
|
+
"char": "w",
|
|
583
|
+
"description": "name of the workspace to remove the package from",
|
|
584
|
+
"name": "workspace",
|
|
585
|
+
"required": true,
|
|
586
|
+
"hasDynamicHelp": false,
|
|
587
|
+
"multiple": false,
|
|
588
|
+
"type": "option"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"hasDynamicHelp": false,
|
|
592
|
+
"hiddenAliases": [],
|
|
593
|
+
"id": "workspace:uninstall",
|
|
594
|
+
"pluginAlias": "hereya-cli",
|
|
595
|
+
"pluginName": "hereya-cli",
|
|
596
|
+
"pluginType": "core",
|
|
597
|
+
"strict": true,
|
|
598
|
+
"enableJsonFlag": false,
|
|
599
|
+
"isESM": true,
|
|
600
|
+
"relativePath": [
|
|
601
|
+
"dist",
|
|
602
|
+
"commands",
|
|
603
|
+
"workspace",
|
|
604
|
+
"uninstall",
|
|
605
|
+
"index.js"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"version": "0.2.1"
|
|
610
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hereya-cli",
|
|
3
|
+
"description": "Developer's Package Manager for Seamless Infrastructure Integration.",
|
|
4
|
+
"version": "0.2.1",
|
|
5
|
+
"author": "The Hereya team",
|
|
6
|
+
"bin": {
|
|
7
|
+
"hereya": "./bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/hereya/hereya-cli/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@aws-sdk/client-cloudformation": "^3.577.0",
|
|
12
|
+
"@aws-sdk/client-sts": "^3.582.0",
|
|
13
|
+
"@esm2cjs/execa": "^6.1.1-cjs.1",
|
|
14
|
+
"@oclif/core": "^3",
|
|
15
|
+
"@oclif/plugin-help": "^6",
|
|
16
|
+
"@oclif/plugin-plugins": "^5",
|
|
17
|
+
"@octokit/rest": "^20.1.1",
|
|
18
|
+
"simple-git": "^3.24.0",
|
|
19
|
+
"yaml": "^2.4.2",
|
|
20
|
+
"zod": "^3.23.8"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
24
|
+
"@oclif/test": "^3",
|
|
25
|
+
"@types/chai": "^4",
|
|
26
|
+
"@types/mocha": "^10",
|
|
27
|
+
"@types/mock-fs": "^4.13.4",
|
|
28
|
+
"@types/node": "^18",
|
|
29
|
+
"chai": "^4",
|
|
30
|
+
"eslint": "^8",
|
|
31
|
+
"eslint-config-oclif": "^5",
|
|
32
|
+
"eslint-config-oclif-typescript": "^3",
|
|
33
|
+
"eslint-config-prettier": "^9",
|
|
34
|
+
"mocha": "^10",
|
|
35
|
+
"mock-fs": "^5.2.0",
|
|
36
|
+
"nock": "^13.5.4",
|
|
37
|
+
"oclif": "^4",
|
|
38
|
+
"shx": "^0.3.3",
|
|
39
|
+
"sinon": "^18.0.0",
|
|
40
|
+
"ts-node": "^10",
|
|
41
|
+
"typescript": "^5"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"/bin",
|
|
48
|
+
"/dist",
|
|
49
|
+
"/oclif.manifest.json"
|
|
50
|
+
],
|
|
51
|
+
"homepage": "https://github.com/hereya/hereya-cli",
|
|
52
|
+
"keywords": [
|
|
53
|
+
"oclif"
|
|
54
|
+
],
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"main": "dist/index.js",
|
|
57
|
+
"type": "module",
|
|
58
|
+
"oclif": {
|
|
59
|
+
"bin": "hereya",
|
|
60
|
+
"dirname": "hereya",
|
|
61
|
+
"commands": "./dist/commands",
|
|
62
|
+
"plugins": [
|
|
63
|
+
"@oclif/plugin-help"
|
|
64
|
+
],
|
|
65
|
+
"topicSeparator": " ",
|
|
66
|
+
"topics": {
|
|
67
|
+
"workspace": {
|
|
68
|
+
"description": "Manage Hereya workspaces"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"repository": "hereya/hereya-cli",
|
|
73
|
+
"scripts": {
|
|
74
|
+
"generate": "oclif generate command $COMMAND && shx mkdir src/commands/$COMMAND && shx mv src/commands/$COMMAND.ts src/commands/$COMMAND/index.ts && shx mv test/commands/$COMMAND.test.ts src/commands/$COMMAND/index.test.ts && shx rm -rf test",
|
|
75
|
+
"dev": "./bin/dev.js",
|
|
76
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
77
|
+
"lint": "eslint .",
|
|
78
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
79
|
+
"posttest": "yarn lint",
|
|
80
|
+
"prepack": "oclif manifest && oclif readme",
|
|
81
|
+
"test": "mocha --forbid-only \"src/**/*.test.ts\"",
|
|
82
|
+
"version": "oclif readme && git add README.md",
|
|
83
|
+
"doc": "yarn build && yarn run version && shx rm -rf dist"
|
|
84
|
+
},
|
|
85
|
+
"types": "dist/index.d.ts"
|
|
86
|
+
}
|