hereya-cli 0.5.5 → 0.5.6
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 +17 -17
- package/dist/iac/cdk.js +13 -7
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g hereya-cli
|
|
|
20
20
|
$ hereya COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ hereya (--version)
|
|
23
|
-
hereya-cli/0.5.
|
|
23
|
+
hereya-cli/0.5.6 linux-x64 node-v20.13.1
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -70,7 +70,7 @@ EXAMPLES
|
|
|
70
70
|
$ hereya add cloudy/docker_postgres
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
73
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/add/index.ts)_
|
|
74
74
|
|
|
75
75
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
76
76
|
|
|
@@ -95,7 +95,7 @@ EXAMPLES
|
|
|
95
95
|
$ hereya bootstrap local
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
98
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/bootstrap/index.ts)_
|
|
99
99
|
|
|
100
100
|
## `hereya deploy`
|
|
101
101
|
|
|
@@ -116,7 +116,7 @@ EXAMPLES
|
|
|
116
116
|
$ hereya deploy
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
119
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/deploy/index.ts)_
|
|
120
120
|
|
|
121
121
|
## `hereya down`
|
|
122
122
|
|
|
@@ -138,7 +138,7 @@ EXAMPLES
|
|
|
138
138
|
$ hereya down
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
141
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/down/index.ts)_
|
|
142
142
|
|
|
143
143
|
## `hereya env`
|
|
144
144
|
|
|
@@ -161,7 +161,7 @@ EXAMPLES
|
|
|
161
161
|
$ hereya env -w dev
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
164
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/env/index.ts)_
|
|
165
165
|
|
|
166
166
|
## `hereya help [COMMAND]`
|
|
167
167
|
|
|
@@ -207,7 +207,7 @@ EXAMPLES
|
|
|
207
207
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
210
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/init/index.ts)_
|
|
211
211
|
|
|
212
212
|
## `hereya remote exec [PKGPATH]`
|
|
213
213
|
|
|
@@ -231,7 +231,7 @@ EXAMPLES
|
|
|
231
231
|
$ hereya remote exec
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
_See code: [src/commands/remote/exec/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
234
|
+
_See code: [src/commands/remote/exec/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/remote/exec/index.ts)_
|
|
235
235
|
|
|
236
236
|
## `hereya remove PACKAGE`
|
|
237
237
|
|
|
@@ -254,7 +254,7 @@ EXAMPLES
|
|
|
254
254
|
$ hereya remove cloudy/docker_postgres
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
257
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/remove/index.ts)_
|
|
258
258
|
|
|
259
259
|
## `hereya run CMD`
|
|
260
260
|
|
|
@@ -280,7 +280,7 @@ EXAMPLES
|
|
|
280
280
|
$ hereya run -w uat -- node index.js
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
283
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/run/index.ts)_
|
|
284
284
|
|
|
285
285
|
## `hereya undeploy`
|
|
286
286
|
|
|
@@ -301,7 +301,7 @@ EXAMPLES
|
|
|
301
301
|
$ hereya undeploy
|
|
302
302
|
```
|
|
303
303
|
|
|
304
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
304
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/undeploy/index.ts)_
|
|
305
305
|
|
|
306
306
|
## `hereya up`
|
|
307
307
|
|
|
@@ -323,7 +323,7 @@ EXAMPLES
|
|
|
323
323
|
$ hereya up
|
|
324
324
|
```
|
|
325
325
|
|
|
326
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
326
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/up/index.ts)_
|
|
327
327
|
|
|
328
328
|
## `hereya workspace create NAME`
|
|
329
329
|
|
|
@@ -343,7 +343,7 @@ EXAMPLES
|
|
|
343
343
|
$ hereya workspace create dev
|
|
344
344
|
```
|
|
345
345
|
|
|
346
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
346
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/workspace/create/index.ts)_
|
|
347
347
|
|
|
348
348
|
## `hereya workspace delete NAME`
|
|
349
349
|
|
|
@@ -363,7 +363,7 @@ EXAMPLES
|
|
|
363
363
|
$ hereya workspace delete dev
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
366
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/workspace/delete/index.ts)_
|
|
367
367
|
|
|
368
368
|
## `hereya workspace env`
|
|
369
369
|
|
|
@@ -383,7 +383,7 @@ EXAMPLES
|
|
|
383
383
|
$ hereya workspace env -w dev
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
386
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/workspace/env/index.ts)_
|
|
387
387
|
|
|
388
388
|
## `hereya workspace install PACKAGE`
|
|
389
389
|
|
|
@@ -409,7 +409,7 @@ EXAMPLES
|
|
|
409
409
|
$ hereya workspace install hereya/aws-cognito
|
|
410
410
|
```
|
|
411
411
|
|
|
412
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
412
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/workspace/install/index.ts)_
|
|
413
413
|
|
|
414
414
|
## `hereya workspace uninstall PACKAGE`
|
|
415
415
|
|
|
@@ -435,5 +435,5 @@ EXAMPLES
|
|
|
435
435
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.
|
|
438
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.5.6/src/commands/workspace/uninstall/index.ts)_
|
|
439
439
|
<!-- commandsstop -->
|
package/dist/iac/cdk.js
CHANGED
|
@@ -7,8 +7,8 @@ export class Cdk {
|
|
|
7
7
|
async apply(input) {
|
|
8
8
|
try {
|
|
9
9
|
const { remainingEnv, serializedParameters, serializedWorkspaceEnv } = await this.serializedParametersAndContext(input);
|
|
10
|
-
runShell('
|
|
11
|
-
'deploy', '--require-approval', 'never', ...serializedWorkspaceEnv, ...serializedParameters,
|
|
10
|
+
runShell('npx', [
|
|
11
|
+
'aws-cdk', 'deploy', '--require-approval', 'never', ...serializedWorkspaceEnv, ...serializedParameters,
|
|
12
12
|
], {
|
|
13
13
|
directory: input.pkgPath,
|
|
14
14
|
env: {
|
|
@@ -27,8 +27,8 @@ export class Cdk {
|
|
|
27
27
|
try {
|
|
28
28
|
const env = await this.getEnv(input.id);
|
|
29
29
|
const { remainingEnv, serializedParameters, serializedWorkspaceEnv } = await this.serializedParametersAndContext(input);
|
|
30
|
-
runShell('
|
|
31
|
-
'destroy', '--force', ...serializedWorkspaceEnv, ...serializedParameters
|
|
30
|
+
runShell('npx', [
|
|
31
|
+
'aws-cdk', 'destroy', '--force', ...serializedWorkspaceEnv, ...serializedParameters
|
|
32
32
|
], {
|
|
33
33
|
directory: input.pkgPath,
|
|
34
34
|
env: {
|
|
@@ -53,11 +53,17 @@ export class Cdk {
|
|
|
53
53
|
async getParameterNames(input) {
|
|
54
54
|
const workDir = input.pkgPath;
|
|
55
55
|
runShell('npm', ['install'], { directory: workDir });
|
|
56
|
-
|
|
57
|
-
'synth',
|
|
56
|
+
runShell('npx', [
|
|
57
|
+
'aws-cdk', 'synth',
|
|
58
58
|
], {
|
|
59
59
|
directory: workDir,
|
|
60
|
-
env: { ...
|
|
60
|
+
env: { ...input.env, ...input.parameters },
|
|
61
|
+
});
|
|
62
|
+
const result = runShell('npx', [
|
|
63
|
+
'aws-cdk', 'synth',
|
|
64
|
+
], {
|
|
65
|
+
directory: workDir,
|
|
66
|
+
env: { ...input.env, ...input.parameters },
|
|
61
67
|
stdio: 'pipe',
|
|
62
68
|
});
|
|
63
69
|
const stackYamlPath = path.join(workDir, '.stack.yaml');
|
package/oclif.manifest.json
CHANGED