hereya-cli 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,44 @@
1
1
  {
2
2
  "commands": {
3
+ "bootstrap": {
4
+ "aliases": [],
5
+ "args": {
6
+ "infrastructureType": {
7
+ "description": "infrastructure to bootstrap. Options are local, aws",
8
+ "name": "infrastructureType",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Install necessary resources for hereya operations in an infrastructure.",
13
+ "examples": [
14
+ "<%= config.bin %> <%= command.id %> aws",
15
+ "<%= config.bin %> <%= command.id %> local"
16
+ ],
17
+ "flags": {
18
+ "force": {
19
+ "char": "f",
20
+ "description": "redeploy hereya resources if already deployed",
21
+ "name": "force",
22
+ "allowNo": false,
23
+ "type": "boolean"
24
+ }
25
+ },
26
+ "hasDynamicHelp": false,
27
+ "hiddenAliases": [],
28
+ "id": "bootstrap",
29
+ "pluginAlias": "hereya-cli",
30
+ "pluginName": "hereya-cli",
31
+ "pluginType": "core",
32
+ "strict": true,
33
+ "enableJsonFlag": false,
34
+ "isESM": true,
35
+ "relativePath": [
36
+ "dist",
37
+ "commands",
38
+ "bootstrap",
39
+ "index.js"
40
+ ]
41
+ },
3
42
  "add": {
4
43
  "aliases": [],
5
44
  "args": {
@@ -63,45 +102,6 @@
63
102
  "index.js"
64
103
  ]
65
104
  },
66
- "bootstrap": {
67
- "aliases": [],
68
- "args": {
69
- "infrastructureType": {
70
- "description": "infrastructure to bootstrap. Options are local, aws",
71
- "name": "infrastructureType",
72
- "required": true
73
- }
74
- },
75
- "description": "Install necessary resources for hereya operations in an infrastructure.",
76
- "examples": [
77
- "<%= config.bin %> <%= command.id %> aws",
78
- "<%= config.bin %> <%= command.id %> local"
79
- ],
80
- "flags": {
81
- "force": {
82
- "char": "f",
83
- "description": "redeploy hereya resources if already deployed",
84
- "name": "force",
85
- "allowNo": false,
86
- "type": "boolean"
87
- }
88
- },
89
- "hasDynamicHelp": false,
90
- "hiddenAliases": [],
91
- "id": "bootstrap",
92
- "pluginAlias": "hereya-cli",
93
- "pluginName": "hereya-cli",
94
- "pluginType": "core",
95
- "strict": true,
96
- "enableJsonFlag": false,
97
- "isESM": true,
98
- "relativePath": [
99
- "dist",
100
- "commands",
101
- "bootstrap",
102
- "index.js"
103
- ]
104
- },
105
105
  "delete-state": {
106
106
  "aliases": [],
107
107
  "args": {},
@@ -193,47 +193,42 @@
193
193
  "index.js"
194
194
  ]
195
195
  },
196
- "down": {
196
+ "env": {
197
197
  "aliases": [],
198
- "args": {},
199
- "description": "Destroy all packages in the project.",
198
+ "args": {
199
+ "name": {
200
+ "description": "name of the env to display",
201
+ "name": "name",
202
+ "required": false
203
+ }
204
+ },
205
+ "description": "Print project environment variables.",
200
206
  "examples": [
201
- "<%= config.bin %> <%= command.id %>"
207
+ "<%= config.bin %> <%= command.id %>",
208
+ "<%= config.bin %> <%= command.id %> myEnv",
209
+ "<%= config.bin %> <%= command.id %> -w dev",
210
+ "<%= config.bin %> <%= command.id %> -w dev -l"
202
211
  ],
203
212
  "flags": {
204
213
  "chdir": {
205
- "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
214
+ "description": "project root directory",
206
215
  "name": "chdir",
207
216
  "required": false,
208
217
  "hasDynamicHelp": false,
209
218
  "multiple": false,
210
219
  "type": "option"
211
220
  },
212
- "debug": {
213
- "description": "enable debug mode",
214
- "name": "debug",
215
- "allowNo": false,
216
- "type": "boolean"
217
- },
218
- "deploy": {
219
- "description": "destroy deployment companion packages",
220
- "name": "deploy",
221
+ "list": {
222
+ "char": "l",
223
+ "description": "list only the env vars without values",
224
+ "name": "list",
221
225
  "required": false,
222
226
  "allowNo": false,
223
227
  "type": "boolean"
224
228
  },
225
- "select": {
226
- "char": "s",
227
- "description": "select the packages to destroy",
228
- "name": "select",
229
- "default": [],
230
- "hasDynamicHelp": false,
231
- "multiple": true,
232
- "type": "option"
233
- },
234
229
  "workspace": {
235
230
  "char": "w",
236
- "description": "name of the workspace to destroy the packages for",
231
+ "description": "name of the workspace to print the env vars for",
237
232
  "name": "workspace",
238
233
  "required": false,
239
234
  "hasDynamicHelp": false,
@@ -243,7 +238,7 @@
243
238
  },
244
239
  "hasDynamicHelp": false,
245
240
  "hiddenAliases": [],
246
- "id": "down",
241
+ "id": "env",
247
242
  "pluginAlias": "hereya-cli",
248
243
  "pluginName": "hereya-cli",
249
244
  "pluginType": "core",
@@ -253,46 +248,51 @@
253
248
  "relativePath": [
254
249
  "dist",
255
250
  "commands",
256
- "down",
251
+ "env",
257
252
  "index.js"
258
253
  ]
259
254
  },
260
- "env": {
255
+ "down": {
261
256
  "aliases": [],
262
- "args": {
263
- "name": {
264
- "description": "name of the env to display",
265
- "name": "name",
266
- "required": false
267
- }
268
- },
269
- "description": "Print project environment variables.",
257
+ "args": {},
258
+ "description": "Destroy all packages in the project.",
270
259
  "examples": [
271
- "<%= config.bin %> <%= command.id %>",
272
- "<%= config.bin %> <%= command.id %> myEnv",
273
- "<%= config.bin %> <%= command.id %> -w dev",
274
- "<%= config.bin %> <%= command.id %> -w dev -l"
260
+ "<%= config.bin %> <%= command.id %>"
275
261
  ],
276
262
  "flags": {
277
263
  "chdir": {
278
- "description": "project root directory",
264
+ "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
279
265
  "name": "chdir",
280
266
  "required": false,
281
267
  "hasDynamicHelp": false,
282
268
  "multiple": false,
283
269
  "type": "option"
284
270
  },
285
- "list": {
286
- "char": "l",
287
- "description": "list only the env vars without values",
288
- "name": "list",
271
+ "debug": {
272
+ "description": "enable debug mode",
273
+ "name": "debug",
274
+ "allowNo": false,
275
+ "type": "boolean"
276
+ },
277
+ "deploy": {
278
+ "description": "destroy deployment companion packages",
279
+ "name": "deploy",
289
280
  "required": false,
290
281
  "allowNo": false,
291
282
  "type": "boolean"
292
283
  },
284
+ "select": {
285
+ "char": "s",
286
+ "description": "select the packages to destroy",
287
+ "name": "select",
288
+ "default": [],
289
+ "hasDynamicHelp": false,
290
+ "multiple": true,
291
+ "type": "option"
292
+ },
293
293
  "workspace": {
294
294
  "char": "w",
295
- "description": "name of the workspace to print the env vars for",
295
+ "description": "name of the workspace to destroy the packages for",
296
296
  "name": "workspace",
297
297
  "required": false,
298
298
  "hasDynamicHelp": false,
@@ -302,7 +302,7 @@
302
302
  },
303
303
  "hasDynamicHelp": false,
304
304
  "hiddenAliases": [],
305
- "id": "env",
305
+ "id": "down",
306
306
  "pluginAlias": "hereya-cli",
307
307
  "pluginName": "hereya-cli",
308
308
  "pluginType": "core",
@@ -312,7 +312,7 @@
312
312
  "relativePath": [
313
313
  "dist",
314
314
  "commands",
315
- "env",
315
+ "down",
316
316
  "index.js"
317
317
  ]
318
318
  },
@@ -1345,6 +1345,14 @@
1345
1345
  "<%= config.bin %> <%= command.id %> dev"
1346
1346
  ],
1347
1347
  "flags": {
1348
+ "deployment": {
1349
+ "char": "d",
1350
+ "description": "mark workspace as a deployment workspace",
1351
+ "name": "deployment",
1352
+ "required": false,
1353
+ "allowNo": false,
1354
+ "type": "boolean"
1355
+ },
1348
1356
  "mirror": {
1349
1357
  "description": "workspace to mirror",
1350
1358
  "name": "mirror",
@@ -1558,11 +1566,19 @@
1558
1566
  "required": true
1559
1567
  }
1560
1568
  },
1561
- "description": "Set AWS profile for a workspace (cloud backend only).",
1569
+ "description": "Set AWS profile and deployment status for a workspace (cloud backend only).",
1562
1570
  "examples": [
1563
1571
  "<%= config.bin %> <%= command.id %> prod-profile -w production"
1564
1572
  ],
1565
1573
  "flags": {
1574
+ "deployment": {
1575
+ "char": "d",
1576
+ "description": "mark workspace as a deployment workspace (use --no-deployment to unset)",
1577
+ "name": "deployment",
1578
+ "required": false,
1579
+ "allowNo": true,
1580
+ "type": "boolean"
1581
+ },
1566
1582
  "workspace": {
1567
1583
  "char": "w",
1568
1584
  "description": "workspace name",
@@ -1770,5 +1786,5 @@
1770
1786
  ]
1771
1787
  }
1772
1788
  },
1773
- "version": "0.50.0"
1789
+ "version": "0.52.0"
1774
1790
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.50.0",
4
+ "version": "0.52.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"
@@ -52,7 +52,7 @@
52
52
  "oclif": "^4.17.27",
53
53
  "shx": "^0.3.4",
54
54
  "sinon": "^19.0.2",
55
- "ts-node": "^10.9.2",
55
+ "tsx": "^4.20.3",
56
56
  "typescript": "^5.7.3"
57
57
  },
58
58
  "engines": {