hereya-cli 0.18.0 → 0.20.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.
- package/README.md +24 -24
- package/bin/dev.js +1 -1
- package/dist/backend/common.d.ts +4 -4
- package/dist/backend/local.js +10 -2
- package/dist/commands/add/index.d.ts +4 -4
- package/dist/commands/add/index.js +12 -21
- package/dist/commands/bootstrap/index.d.ts +2 -2
- package/dist/commands/deploy/index.d.ts +3 -3
- package/dist/commands/deploy/index.js +45 -36
- package/dist/commands/down/index.d.ts +4 -4
- package/dist/commands/down/index.js +10 -21
- package/dist/commands/env/index.d.ts +4 -4
- package/dist/commands/env/index.js +6 -2
- package/dist/commands/env/set/index.d.ts +4 -4
- package/dist/commands/init/index.d.ts +3 -3
- package/dist/commands/remove/index.d.ts +3 -3
- package/dist/commands/remove/index.js +9 -19
- package/dist/commands/run/index.d.ts +3 -3
- package/dist/commands/run/index.js +7 -3
- package/dist/commands/unbootstrap/index.d.ts +2 -2
- package/dist/commands/undeploy/index.d.ts +3 -3
- package/dist/commands/undeploy/index.js +21 -24
- package/dist/commands/up/index.d.ts +4 -4
- package/dist/commands/up/index.js +24 -32
- package/dist/commands/workspace/create/index.d.ts +1 -1
- package/dist/commands/workspace/delete/index.d.ts +1 -1
- package/dist/commands/workspace/env/index.d.ts +3 -3
- package/dist/commands/workspace/env/set/index.d.ts +5 -5
- package/dist/commands/workspace/env/unset/index.d.ts +2 -2
- package/dist/commands/workspace/install/index.d.ts +5 -5
- package/dist/commands/workspace/install/index.js +8 -3
- package/dist/commands/workspace/uninstall/index.d.ts +5 -5
- package/dist/commands/workspace/uninstall/index.js +8 -3
- package/dist/executor/index.d.ts +11 -0
- package/dist/executor/index.js +8 -0
- package/dist/executor/interface.d.ts +41 -0
- package/dist/executor/interface.js +1 -0
- package/dist/executor/local.d.ts +7 -0
- package/dist/executor/local.js +56 -0
- package/dist/iac/cdk.js +5 -5
- package/dist/iac/index.js +5 -5
- package/dist/iac/terraform.js +7 -7
- package/dist/infrastructure/aws.js +1 -1
- package/dist/infrastructure/common.d.ts +2 -2
- package/dist/infrastructure/index.d.ts +3 -3
- package/dist/infrastructure/index.js +6 -6
- package/dist/infrastructure/local.js +1 -1
- package/dist/lib/env/index.d.ts +4 -0
- package/dist/lib/env/index.js +11 -3
- package/dist/lib/env-utils.d.ts +0 -7
- package/dist/lib/env-utils.js +0 -18
- package/dist/lib/log.js +1 -1
- package/dist/lib/package/common.d.ts +1 -0
- package/dist/lib/package/index.d.ts +1 -0
- package/dist/lib/package/index.js +3 -3
- package/dist/lib/package/local.d.ts +1 -1
- package/dist/lib/package/local.js +17 -4
- package/dist/lib/shell.d.ts +17 -7
- package/dist/lib/shell.js +73 -14
- package/dist/lib/yaml-utils.js +1 -1
- package/oclif.manifest.json +72 -72
- package/package.json +37 -37
package/oclif.manifest.json
CHANGED
|
@@ -54,6 +54,45 @@
|
|
|
54
54
|
"index.js"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
+
"bootstrap": {
|
|
58
|
+
"aliases": [],
|
|
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.",
|
|
67
|
+
"examples": [
|
|
68
|
+
"<%= config.bin %> <%= command.id %> aws",
|
|
69
|
+
"<%= config.bin %> <%= command.id %> local"
|
|
70
|
+
],
|
|
71
|
+
"flags": {
|
|
72
|
+
"force": {
|
|
73
|
+
"char": "f",
|
|
74
|
+
"description": "redeploy hereya resources if already deployed",
|
|
75
|
+
"name": "force",
|
|
76
|
+
"allowNo": false,
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"hasDynamicHelp": false,
|
|
81
|
+
"hiddenAliases": [],
|
|
82
|
+
"id": "bootstrap",
|
|
83
|
+
"pluginAlias": "hereya-cli",
|
|
84
|
+
"pluginName": "hereya-cli",
|
|
85
|
+
"pluginType": "core",
|
|
86
|
+
"strict": true,
|
|
87
|
+
"enableJsonFlag": false,
|
|
88
|
+
"isESM": true,
|
|
89
|
+
"relativePath": [
|
|
90
|
+
"dist",
|
|
91
|
+
"commands",
|
|
92
|
+
"bootstrap",
|
|
93
|
+
"index.js"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
57
96
|
"deploy": {
|
|
58
97
|
"aliases": [],
|
|
59
98
|
"args": {},
|
|
@@ -102,45 +141,6 @@
|
|
|
102
141
|
"index.js"
|
|
103
142
|
]
|
|
104
143
|
},
|
|
105
|
-
"bootstrap": {
|
|
106
|
-
"aliases": [],
|
|
107
|
-
"args": {
|
|
108
|
-
"infrastructureType": {
|
|
109
|
-
"description": "infrastructure to bootstrap. Options are local, aws",
|
|
110
|
-
"name": "infrastructureType",
|
|
111
|
-
"required": true
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
115
|
-
"examples": [
|
|
116
|
-
"<%= config.bin %> <%= command.id %> aws",
|
|
117
|
-
"<%= config.bin %> <%= command.id %> local"
|
|
118
|
-
],
|
|
119
|
-
"flags": {
|
|
120
|
-
"force": {
|
|
121
|
-
"char": "f",
|
|
122
|
-
"description": "redeploy hereya resources if already deployed",
|
|
123
|
-
"name": "force",
|
|
124
|
-
"allowNo": false,
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"hasDynamicHelp": false,
|
|
129
|
-
"hiddenAliases": [],
|
|
130
|
-
"id": "bootstrap",
|
|
131
|
-
"pluginAlias": "hereya-cli",
|
|
132
|
-
"pluginName": "hereya-cli",
|
|
133
|
-
"pluginType": "core",
|
|
134
|
-
"strict": true,
|
|
135
|
-
"enableJsonFlag": false,
|
|
136
|
-
"isESM": true,
|
|
137
|
-
"relativePath": [
|
|
138
|
-
"dist",
|
|
139
|
-
"commands",
|
|
140
|
-
"bootstrap",
|
|
141
|
-
"index.js"
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
144
|
"down": {
|
|
145
145
|
"aliases": [],
|
|
146
146
|
"args": {},
|
|
@@ -304,19 +304,18 @@
|
|
|
304
304
|
"index.js"
|
|
305
305
|
]
|
|
306
306
|
},
|
|
307
|
-
"
|
|
307
|
+
"remove": {
|
|
308
308
|
"aliases": [],
|
|
309
309
|
"args": {
|
|
310
|
-
"
|
|
311
|
-
"description": "
|
|
312
|
-
"name": "
|
|
310
|
+
"package": {
|
|
311
|
+
"description": "The package to remove. Packages are gitHub repositories. Use the format owner/repository",
|
|
312
|
+
"name": "package",
|
|
313
313
|
"required": true
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
|
-
"description": "
|
|
316
|
+
"description": "Remove a package from the project.",
|
|
317
317
|
"examples": [
|
|
318
|
-
"<%= config.bin %> <%= command.id %>
|
|
319
|
-
"<%= config.bin %> <%= command.id %> -w uat -- node index.js"
|
|
318
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres"
|
|
320
319
|
],
|
|
321
320
|
"flags": {
|
|
322
321
|
"chdir": {
|
|
@@ -327,44 +326,42 @@
|
|
|
327
326
|
"multiple": false,
|
|
328
327
|
"type": "option"
|
|
329
328
|
},
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
"
|
|
335
|
-
"hasDynamicHelp": false,
|
|
336
|
-
"multiple": false,
|
|
337
|
-
"type": "option"
|
|
329
|
+
"debug": {
|
|
330
|
+
"description": "enable debug mode",
|
|
331
|
+
"name": "debug",
|
|
332
|
+
"allowNo": false,
|
|
333
|
+
"type": "boolean"
|
|
338
334
|
}
|
|
339
335
|
},
|
|
340
336
|
"hasDynamicHelp": false,
|
|
341
337
|
"hiddenAliases": [],
|
|
342
|
-
"id": "
|
|
338
|
+
"id": "remove",
|
|
343
339
|
"pluginAlias": "hereya-cli",
|
|
344
340
|
"pluginName": "hereya-cli",
|
|
345
341
|
"pluginType": "core",
|
|
346
|
-
"strict":
|
|
342
|
+
"strict": true,
|
|
347
343
|
"enableJsonFlag": false,
|
|
348
344
|
"isESM": true,
|
|
349
345
|
"relativePath": [
|
|
350
346
|
"dist",
|
|
351
347
|
"commands",
|
|
352
|
-
"
|
|
348
|
+
"remove",
|
|
353
349
|
"index.js"
|
|
354
350
|
]
|
|
355
351
|
},
|
|
356
|
-
"
|
|
352
|
+
"run": {
|
|
357
353
|
"aliases": [],
|
|
358
354
|
"args": {
|
|
359
|
-
"
|
|
360
|
-
"description": "
|
|
361
|
-
"name": "
|
|
355
|
+
"cmd": {
|
|
356
|
+
"description": "command to run",
|
|
357
|
+
"name": "cmd",
|
|
362
358
|
"required": true
|
|
363
359
|
}
|
|
364
360
|
},
|
|
365
|
-
"description": "
|
|
361
|
+
"description": "Run a command with hereya env vars.",
|
|
366
362
|
"examples": [
|
|
367
|
-
"<%= config.bin %> <%= command.id %>
|
|
363
|
+
"<%= config.bin %> <%= command.id %> -- npm run dev",
|
|
364
|
+
"<%= config.bin %> <%= command.id %> -w uat -- node index.js"
|
|
368
365
|
],
|
|
369
366
|
"flags": {
|
|
370
367
|
"chdir": {
|
|
@@ -375,26 +372,29 @@
|
|
|
375
372
|
"multiple": false,
|
|
376
373
|
"type": "option"
|
|
377
374
|
},
|
|
378
|
-
"
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
"
|
|
382
|
-
"
|
|
375
|
+
"workspace": {
|
|
376
|
+
"char": "w",
|
|
377
|
+
"description": "name of the workspace to run the command in",
|
|
378
|
+
"name": "workspace",
|
|
379
|
+
"required": false,
|
|
380
|
+
"hasDynamicHelp": false,
|
|
381
|
+
"multiple": false,
|
|
382
|
+
"type": "option"
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
385
|
"hasDynamicHelp": false,
|
|
386
386
|
"hiddenAliases": [],
|
|
387
|
-
"id": "
|
|
387
|
+
"id": "run",
|
|
388
388
|
"pluginAlias": "hereya-cli",
|
|
389
389
|
"pluginName": "hereya-cli",
|
|
390
390
|
"pluginType": "core",
|
|
391
|
-
"strict":
|
|
391
|
+
"strict": false,
|
|
392
392
|
"enableJsonFlag": false,
|
|
393
393
|
"isESM": true,
|
|
394
394
|
"relativePath": [
|
|
395
395
|
"dist",
|
|
396
396
|
"commands",
|
|
397
|
-
"
|
|
397
|
+
"run",
|
|
398
398
|
"index.js"
|
|
399
399
|
]
|
|
400
400
|
},
|
|
@@ -954,5 +954,5 @@
|
|
|
954
954
|
]
|
|
955
955
|
}
|
|
956
956
|
},
|
|
957
|
-
"version": "0.
|
|
957
|
+
"version": "0.20.0"
|
|
958
958
|
}
|
package/package.json
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hereya-cli",
|
|
3
3
|
"description": "Infrastructure as Package",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"author": "Hereya Developers",
|
|
6
6
|
"bin": {
|
|
7
7
|
"hereya": "./bin/run.js"
|
|
8
8
|
},
|
|
9
9
|
"bugs": "https://github.com/hereya/hereya-cli/issues",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
12
|
-
"@aws-sdk/client-codebuild": "^3.
|
|
13
|
-
"@aws-sdk/client-s3": "^3.
|
|
14
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
15
|
-
"@aws-sdk/client-ssm": "^3.
|
|
16
|
-
"@aws-sdk/client-sts": "^3.
|
|
17
|
-
"@aws-sdk/lib-storage": "^3.
|
|
11
|
+
"@aws-sdk/client-cloudformation": "^3.744.0",
|
|
12
|
+
"@aws-sdk/client-codebuild": "^3.747.0",
|
|
13
|
+
"@aws-sdk/client-s3": "^3.744.0",
|
|
14
|
+
"@aws-sdk/client-secrets-manager": "^3.744.0",
|
|
15
|
+
"@aws-sdk/client-ssm": "^3.744.0",
|
|
16
|
+
"@aws-sdk/client-sts": "^3.744.0",
|
|
17
|
+
"@aws-sdk/lib-storage": "^3.744.0",
|
|
18
18
|
"@esm2cjs/execa": "^6.1.1-cjs.1",
|
|
19
|
-
"@oclif/core": "^
|
|
20
|
-
"@oclif/plugin-help": "^6",
|
|
21
|
-
"@oclif/plugin-plugins": "^5",
|
|
22
|
-
"glob": "^
|
|
23
|
-
"ignore": "^
|
|
19
|
+
"@oclif/core": "^4.2.6",
|
|
20
|
+
"@oclif/plugin-help": "^6.2.25",
|
|
21
|
+
"@oclif/plugin-plugins": "^5.4.31",
|
|
22
|
+
"glob": "^11.0.1",
|
|
23
|
+
"ignore": "^7.0.3",
|
|
24
24
|
"listr2": "^8.2.5",
|
|
25
|
-
"simple-git": "^3.
|
|
25
|
+
"simple-git": "^3.27.0",
|
|
26
26
|
"typescript-retry-decorator": "^2.4.2",
|
|
27
27
|
"unzip-stream": "^0.3.4",
|
|
28
|
-
"yaml": "^2.
|
|
29
|
-
"zod": "^3.
|
|
28
|
+
"yaml": "^2.7.0",
|
|
29
|
+
"zod": "^3.24.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@oclif/prettier-config": "^0.2.1",
|
|
33
|
-
"@oclif/test": "^4.1.
|
|
34
|
-
"@types/chai": "^
|
|
35
|
-
"@types/mocha": "^10",
|
|
33
|
+
"@oclif/test": "^4.1.9",
|
|
34
|
+
"@types/chai": "^5.0.1",
|
|
35
|
+
"@types/mocha": "^10.0.10",
|
|
36
36
|
"@types/mock-fs": "^4.13.4",
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^22",
|
|
38
38
|
"@types/sinon": "^17.0.3",
|
|
39
39
|
"@types/unzip-stream": "^0.3.4",
|
|
40
|
-
"chai": "^
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint-config-oclif": "^
|
|
43
|
-
"eslint-config-
|
|
44
|
-
"eslint-
|
|
45
|
-
"mocha": "^
|
|
46
|
-
"mock-fs": "^5.
|
|
47
|
-
"nock": "^
|
|
48
|
-
"oclif": "^4",
|
|
49
|
-
"shx": "^0.3.
|
|
50
|
-
"sinon": "^
|
|
51
|
-
"ts-node": "^10",
|
|
52
|
-
"typescript": "^5"
|
|
40
|
+
"chai": "^5.1.2",
|
|
41
|
+
"eslint": "^9.20.1",
|
|
42
|
+
"eslint-config-oclif": "^6.0.10",
|
|
43
|
+
"eslint-config-prettier": "^10.0.1",
|
|
44
|
+
"eslint-plugin-chai-friendly": "^1.0.1",
|
|
45
|
+
"mocha": "^11.1.0",
|
|
46
|
+
"mock-fs": "^5.5.0",
|
|
47
|
+
"nock": "^14.0.1",
|
|
48
|
+
"oclif": "^4.17.27",
|
|
49
|
+
"shx": "^0.3.4",
|
|
50
|
+
"sinon": "^19.0.2",
|
|
51
|
+
"ts-node": "^10.9.2",
|
|
52
|
+
"typescript": "^5.7.3"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
55
|
+
"node": ">=20.0.0"
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
58
|
+
"bin",
|
|
59
|
+
"dist",
|
|
60
|
+
"oclif.manifest.json"
|
|
61
61
|
],
|
|
62
62
|
"homepage": "https://github.com/hereya/hereya-cli",
|
|
63
63
|
"keywords": [
|