@enspirit/emb 0.20.0 → 0.20.2
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 +31 -31
- package/dist/src/docker/operations/containers/ContainerExecOperation.js +17 -2
- package/dist/src/monorepo/plugins/OnePasswordPlugin.js +1 -1
- package/dist/src/secrets/providers/OnePasswordProvider.d.ts +1 -0
- package/dist/src/secrets/providers/OnePasswordProvider.js +8 -0
- package/oclif.manifest.json +98 -98
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ $ npm install -g @enspirit/emb
|
|
|
14
14
|
$ emb COMMAND
|
|
15
15
|
running command...
|
|
16
16
|
$ emb (--version)
|
|
17
|
-
@enspirit/emb/0.20.
|
|
17
|
+
@enspirit/emb/0.20.2 darwin-x64 node-v22.18.0
|
|
18
18
|
$ emb --help [COMMAND]
|
|
19
19
|
USAGE
|
|
20
20
|
$ emb COMMAND
|
|
@@ -113,7 +113,7 @@ EXAMPLES
|
|
|
113
113
|
$ emb clean
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
_See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
116
|
+
_See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/clean.ts)_
|
|
117
117
|
|
|
118
118
|
## `emb components`
|
|
119
119
|
|
|
@@ -138,7 +138,7 @@ EXAMPLES
|
|
|
138
138
|
$ emb components
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
_See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
141
|
+
_See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/components/index.ts)_
|
|
142
142
|
|
|
143
143
|
## `emb components logs [COMPONENT]`
|
|
144
144
|
|
|
@@ -169,7 +169,7 @@ EXAMPLES
|
|
|
169
169
|
$ emb components logs --no-follow backend
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
_See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
172
|
+
_See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/components/logs.ts)_
|
|
173
173
|
|
|
174
174
|
## `emb components shell COMPONENT`
|
|
175
175
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
$ emb components shell
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
200
|
+
_See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/components/shell.ts)_
|
|
201
201
|
|
|
202
202
|
## `emb config print`
|
|
203
203
|
|
|
@@ -222,7 +222,7 @@ EXAMPLES
|
|
|
222
222
|
$ emb config print
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
-
_See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
225
|
+
_See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/config/print.ts)_
|
|
226
226
|
|
|
227
227
|
## `emb containers`
|
|
228
228
|
|
|
@@ -247,7 +247,7 @@ EXAMPLES
|
|
|
247
247
|
$ emb containers
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
_See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
250
|
+
_See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/containers/index.ts)_
|
|
251
251
|
|
|
252
252
|
## `emb containers prune`
|
|
253
253
|
|
|
@@ -271,7 +271,7 @@ EXAMPLES
|
|
|
271
271
|
$ emb containers prune
|
|
272
272
|
```
|
|
273
273
|
|
|
274
|
-
_See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
274
|
+
_See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/containers/prune.ts)_
|
|
275
275
|
|
|
276
276
|
## `emb down`
|
|
277
277
|
|
|
@@ -296,7 +296,7 @@ EXAMPLES
|
|
|
296
296
|
$ emb down
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
-
_See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
299
|
+
_See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/down.ts)_
|
|
300
300
|
|
|
301
301
|
## `emb help [COMMAND]`
|
|
302
302
|
|
|
@@ -342,7 +342,7 @@ EXAMPLES
|
|
|
342
342
|
$ emb images
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
_See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
345
|
+
_See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/index.ts)_
|
|
346
346
|
|
|
347
347
|
## `emb images delete`
|
|
348
348
|
|
|
@@ -367,7 +367,7 @@ EXAMPLES
|
|
|
367
367
|
$ emb images delete
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
_See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
370
|
+
_See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/delete.ts)_
|
|
371
371
|
|
|
372
372
|
## `emb images prune`
|
|
373
373
|
|
|
@@ -392,7 +392,7 @@ EXAMPLES
|
|
|
392
392
|
$ emb images prune
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
_See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
395
|
+
_See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/prune.ts)_
|
|
396
396
|
|
|
397
397
|
## `emb images push`
|
|
398
398
|
|
|
@@ -421,7 +421,7 @@ EXAMPLES
|
|
|
421
421
|
$ emb images push --registry my.registry.io --retag newtag
|
|
422
422
|
```
|
|
423
423
|
|
|
424
|
-
_See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
424
|
+
_See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/images/push.ts)_
|
|
425
425
|
|
|
426
426
|
## `emb kubernetes logs COMPONENT`
|
|
427
427
|
|
|
@@ -447,7 +447,7 @@ EXAMPLES
|
|
|
447
447
|
$ emb kubernetes logs
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
_See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
450
|
+
_See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/logs.ts)_
|
|
451
451
|
|
|
452
452
|
## `emb kubernetes ps`
|
|
453
453
|
|
|
@@ -470,7 +470,7 @@ EXAMPLES
|
|
|
470
470
|
$ emb kubernetes ps
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
-
_See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
473
|
+
_See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/ps.ts)_
|
|
474
474
|
|
|
475
475
|
## `emb kubernetes restart [DEPLOYMENT]`
|
|
476
476
|
|
|
@@ -495,7 +495,7 @@ EXAMPLES
|
|
|
495
495
|
$ emb kubernetes restart
|
|
496
496
|
```
|
|
497
497
|
|
|
498
|
-
_See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
498
|
+
_See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/restart.ts)_
|
|
499
499
|
|
|
500
500
|
## `emb kubernetes shell COMPONENT`
|
|
501
501
|
|
|
@@ -524,7 +524,7 @@ EXAMPLES
|
|
|
524
524
|
$ emb kubernetes shell
|
|
525
525
|
```
|
|
526
526
|
|
|
527
|
-
_See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
527
|
+
_See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/kubernetes/shell.ts)_
|
|
528
528
|
|
|
529
529
|
## `emb logs [COMPONENT]`
|
|
530
530
|
|
|
@@ -555,7 +555,7 @@ EXAMPLES
|
|
|
555
555
|
$ emb logs --no-follow backend
|
|
556
556
|
```
|
|
557
557
|
|
|
558
|
-
_See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
558
|
+
_See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/logs/index.ts)_
|
|
559
559
|
|
|
560
560
|
## `emb logs archive [COMPONENT]`
|
|
561
561
|
|
|
@@ -591,7 +591,7 @@ EXAMPLES
|
|
|
591
591
|
$ emb logs archive --tail 1000
|
|
592
592
|
```
|
|
593
593
|
|
|
594
|
-
_See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
594
|
+
_See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/logs/archive.ts)_
|
|
595
595
|
|
|
596
596
|
## `emb ps`
|
|
597
597
|
|
|
@@ -614,7 +614,7 @@ EXAMPLES
|
|
|
614
614
|
$ emb ps
|
|
615
615
|
```
|
|
616
616
|
|
|
617
|
-
_See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
617
|
+
_See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/ps.ts)_
|
|
618
618
|
|
|
619
619
|
## `emb resources`
|
|
620
620
|
|
|
@@ -639,7 +639,7 @@ EXAMPLES
|
|
|
639
639
|
$ emb resources
|
|
640
640
|
```
|
|
641
641
|
|
|
642
|
-
_See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
642
|
+
_See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/resources/index.ts)_
|
|
643
643
|
|
|
644
644
|
## `emb resources build [COMPONENT]`
|
|
645
645
|
|
|
@@ -669,7 +669,7 @@ EXAMPLES
|
|
|
669
669
|
$ emb resources build build --flavor development
|
|
670
670
|
```
|
|
671
671
|
|
|
672
|
-
_See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
672
|
+
_See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/resources/build.ts)_
|
|
673
673
|
|
|
674
674
|
## `emb restart [COMPONENT]`
|
|
675
675
|
|
|
@@ -697,7 +697,7 @@ EXAMPLES
|
|
|
697
697
|
$ emb restart
|
|
698
698
|
```
|
|
699
699
|
|
|
700
|
-
_See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
700
|
+
_See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/restart.ts)_
|
|
701
701
|
|
|
702
702
|
## `emb run TASK`
|
|
703
703
|
|
|
@@ -755,7 +755,7 @@ EXAMPLES
|
|
|
755
755
|
$ emb secrets --json
|
|
756
756
|
```
|
|
757
757
|
|
|
758
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
758
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/index.ts)_
|
|
759
759
|
|
|
760
760
|
## `emb secrets providers`
|
|
761
761
|
|
|
@@ -780,7 +780,7 @@ EXAMPLES
|
|
|
780
780
|
$ emb secrets providers
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
_See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
783
|
+
_See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/providers.ts)_
|
|
784
784
|
|
|
785
785
|
## `emb secrets validate`
|
|
786
786
|
|
|
@@ -810,7 +810,7 @@ EXAMPLES
|
|
|
810
810
|
$ emb secrets validate --json
|
|
811
811
|
```
|
|
812
812
|
|
|
813
|
-
_See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
813
|
+
_See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/secrets/validate.ts)_
|
|
814
814
|
|
|
815
815
|
## `emb shell COMPONENT`
|
|
816
816
|
|
|
@@ -863,7 +863,7 @@ EXAMPLES
|
|
|
863
863
|
$ emb start
|
|
864
864
|
```
|
|
865
865
|
|
|
866
|
-
_See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
866
|
+
_See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/start.ts)_
|
|
867
867
|
|
|
868
868
|
## `emb stop`
|
|
869
869
|
|
|
@@ -888,7 +888,7 @@ EXAMPLES
|
|
|
888
888
|
$ emb stop
|
|
889
889
|
```
|
|
890
890
|
|
|
891
|
-
_See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
891
|
+
_See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/stop.ts)_
|
|
892
892
|
|
|
893
893
|
## `emb tasks`
|
|
894
894
|
|
|
@@ -912,7 +912,7 @@ EXAMPLES
|
|
|
912
912
|
$ emb tasks
|
|
913
913
|
```
|
|
914
914
|
|
|
915
|
-
_See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
915
|
+
_See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/tasks/index.ts)_
|
|
916
916
|
|
|
917
917
|
## `emb tasks run TASK`
|
|
918
918
|
|
|
@@ -945,7 +945,7 @@ EXAMPLES
|
|
|
945
945
|
$ emb tasks run
|
|
946
946
|
```
|
|
947
947
|
|
|
948
|
-
_See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
948
|
+
_See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/tasks/run.ts)_
|
|
949
949
|
|
|
950
950
|
## `emb up [COMPONENT]`
|
|
951
951
|
|
|
@@ -974,7 +974,7 @@ EXAMPLES
|
|
|
974
974
|
$ emb up
|
|
975
975
|
```
|
|
976
976
|
|
|
977
|
-
_See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.20.
|
|
977
|
+
_See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.20.2/src/commands/up.ts)_
|
|
978
978
|
|
|
979
979
|
## `emb update [CHANNEL]`
|
|
980
980
|
|
|
@@ -44,10 +44,22 @@ export class ContainerExecOperation extends AbstractOperation {
|
|
|
44
44
|
};
|
|
45
45
|
const exec = await container.exec(options);
|
|
46
46
|
const stream = await exec.start({ hijack: true, stdin: true });
|
|
47
|
-
//
|
|
47
|
+
// Store resize handler for cleanup
|
|
48
|
+
let resizeHandler;
|
|
49
|
+
// Handle stdin and terminal resize for interactive commands
|
|
48
50
|
if (isInteractive && !this.out && process.stdin.isTTY) {
|
|
49
51
|
process.stdin.setRawMode?.(true);
|
|
50
52
|
process.stdin.pipe(stream);
|
|
53
|
+
// Resize exec session to match terminal dimensions
|
|
54
|
+
resizeHandler = () => {
|
|
55
|
+
const { rows, columns } = process.stdout;
|
|
56
|
+
if (rows && columns) {
|
|
57
|
+
exec.resize({ h: rows, w: columns }).catch(() => { });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
// Initial resize and listen for terminal resize events
|
|
61
|
+
resizeHandler();
|
|
62
|
+
process.stdout.on('resize', resizeHandler);
|
|
51
63
|
}
|
|
52
64
|
const out = input.interactive ? process.stdout : this.out;
|
|
53
65
|
if (out) {
|
|
@@ -56,9 +68,12 @@ export class ContainerExecOperation extends AbstractOperation {
|
|
|
56
68
|
await new Promise((resolve, reject) => {
|
|
57
69
|
const onError = (err) => reject(err);
|
|
58
70
|
const onEnd = async () => {
|
|
59
|
-
// Restore stdin raw mode if
|
|
71
|
+
// Restore stdin raw mode and remove resize handler if they were set
|
|
60
72
|
if (isInteractive && !this.out && process.stdin.isTTY) {
|
|
61
73
|
process.stdin.setRawMode?.(false);
|
|
74
|
+
if (resizeHandler) {
|
|
75
|
+
process.stdout.off('resize', resizeHandler);
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
exec.inspect((error, res) => {
|
|
64
79
|
if (error) {
|
|
@@ -29,8 +29,8 @@ export class OnePasswordPlugin extends AbstractPlugin {
|
|
|
29
29
|
async init() {
|
|
30
30
|
const resolvedConfig = this.resolveConfig();
|
|
31
31
|
this.provider = new OnePasswordProvider(resolvedConfig);
|
|
32
|
-
await this.provider.connect();
|
|
33
32
|
// Register the provider with the global SecretManager
|
|
33
|
+
// Connection is lazy - op CLI is only checked when secrets are actually fetched
|
|
34
34
|
const context = getContext();
|
|
35
35
|
if (context?.secrets) {
|
|
36
36
|
context.secrets.register('op', this.provider);
|
|
@@ -15,6 +15,7 @@ export interface OnePasswordProviderConfig {
|
|
|
15
15
|
* 2. Service account token (CI/CD) - Via `OP_SERVICE_ACCOUNT_TOKEN` env var
|
|
16
16
|
*/
|
|
17
17
|
export declare class OnePasswordProvider extends AbstractSecretProvider<OnePasswordProviderConfig> {
|
|
18
|
+
private connected;
|
|
18
19
|
/**
|
|
19
20
|
* Execute the `op` CLI command.
|
|
20
21
|
* Protected to allow mocking in tests.
|
|
@@ -11,6 +11,7 @@ import { OnePasswordError } from './OnePasswordError.js';
|
|
|
11
11
|
* 2. Service account token (CI/CD) - Via `OP_SERVICE_ACCOUNT_TOKEN` env var
|
|
12
12
|
*/
|
|
13
13
|
export class OnePasswordProvider extends AbstractSecretProvider {
|
|
14
|
+
connected = false;
|
|
14
15
|
/**
|
|
15
16
|
* Execute the `op` CLI command.
|
|
16
17
|
* Protected to allow mocking in tests.
|
|
@@ -20,12 +21,16 @@ export class OnePasswordProvider extends AbstractSecretProvider {
|
|
|
20
21
|
return execFileAsync('op', args);
|
|
21
22
|
}
|
|
22
23
|
async connect() {
|
|
24
|
+
if (this.connected) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
23
27
|
try {
|
|
24
28
|
const args = ['whoami'];
|
|
25
29
|
if (this.config.account) {
|
|
26
30
|
args.push('--account', this.config.account);
|
|
27
31
|
}
|
|
28
32
|
await this.execOp(args);
|
|
33
|
+
this.connected = true;
|
|
29
34
|
}
|
|
30
35
|
catch (error) {
|
|
31
36
|
const err = error;
|
|
@@ -45,9 +50,12 @@ export class OnePasswordProvider extends AbstractSecretProvider {
|
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
async disconnect() {
|
|
53
|
+
this.connected = false;
|
|
48
54
|
this.clearCache();
|
|
49
55
|
}
|
|
50
56
|
async fetchSecret(ref) {
|
|
57
|
+
// Ensure we're connected before fetching (lazy initialization)
|
|
58
|
+
await this.connect();
|
|
51
59
|
// Parse path as vault/item
|
|
52
60
|
const slashIndex = ref.path.indexOf('/');
|
|
53
61
|
if (slashIndex === -1) {
|
package/oclif.manifest.json
CHANGED
|
@@ -1231,18 +1231,21 @@
|
|
|
1231
1231
|
"shell.js"
|
|
1232
1232
|
]
|
|
1233
1233
|
},
|
|
1234
|
-
"
|
|
1234
|
+
"logs:archive": {
|
|
1235
1235
|
"aliases": [],
|
|
1236
1236
|
"args": {
|
|
1237
1237
|
"component": {
|
|
1238
|
-
"description": "
|
|
1238
|
+
"description": "The component(s) to archive logs for (all if omitted)",
|
|
1239
1239
|
"name": "component",
|
|
1240
1240
|
"required": false
|
|
1241
1241
|
}
|
|
1242
1242
|
},
|
|
1243
|
-
"description": "
|
|
1243
|
+
"description": "Archive docker compose logs to files (one file per component).",
|
|
1244
1244
|
"examples": [
|
|
1245
|
-
"<%= config.bin %> <%= command.id %>
|
|
1245
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1246
|
+
"<%= config.bin %> <%= command.id %> backend frontend",
|
|
1247
|
+
"<%= config.bin %> <%= command.id %> --timestamps",
|
|
1248
|
+
"<%= config.bin %> <%= command.id %> --tail 1000"
|
|
1246
1249
|
],
|
|
1247
1250
|
"flags": {
|
|
1248
1251
|
"json": {
|
|
@@ -1266,33 +1269,32 @@
|
|
|
1266
1269
|
"multiple": false,
|
|
1267
1270
|
"type": "option"
|
|
1268
1271
|
},
|
|
1269
|
-
"
|
|
1270
|
-
"
|
|
1271
|
-
"
|
|
1272
|
-
"
|
|
1272
|
+
"timestamps": {
|
|
1273
|
+
"char": "t",
|
|
1274
|
+
"description": "Include timestamps in logs",
|
|
1275
|
+
"name": "timestamps",
|
|
1276
|
+
"allowNo": false,
|
|
1277
|
+
"type": "boolean"
|
|
1278
|
+
},
|
|
1279
|
+
"tail": {
|
|
1280
|
+
"description": "Number of lines to show from the end of the logs",
|
|
1281
|
+
"name": "tail",
|
|
1273
1282
|
"hasDynamicHelp": false,
|
|
1274
1283
|
"multiple": false,
|
|
1275
1284
|
"type": "option"
|
|
1276
1285
|
},
|
|
1277
|
-
"
|
|
1278
|
-
"
|
|
1279
|
-
"
|
|
1280
|
-
"
|
|
1281
|
-
"
|
|
1282
|
-
"
|
|
1283
|
-
|
|
1284
|
-
"force": {
|
|
1285
|
-
"char": "f",
|
|
1286
|
-
"description": "Bypass the cache and force the build",
|
|
1287
|
-
"name": "force",
|
|
1288
|
-
"required": false,
|
|
1289
|
-
"allowNo": false,
|
|
1290
|
-
"type": "boolean"
|
|
1286
|
+
"output": {
|
|
1287
|
+
"char": "o",
|
|
1288
|
+
"description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
|
|
1289
|
+
"name": "output",
|
|
1290
|
+
"hasDynamicHelp": false,
|
|
1291
|
+
"multiple": false,
|
|
1292
|
+
"type": "option"
|
|
1291
1293
|
}
|
|
1292
1294
|
},
|
|
1293
1295
|
"hasDynamicHelp": false,
|
|
1294
1296
|
"hiddenAliases": [],
|
|
1295
|
-
"id": "
|
|
1297
|
+
"id": "logs:archive",
|
|
1296
1298
|
"pluginAlias": "@enspirit/emb",
|
|
1297
1299
|
"pluginName": "@enspirit/emb",
|
|
1298
1300
|
"pluginType": "core",
|
|
@@ -1304,25 +1306,27 @@
|
|
|
1304
1306
|
"src",
|
|
1305
1307
|
"cli",
|
|
1306
1308
|
"commands",
|
|
1307
|
-
"
|
|
1308
|
-
"
|
|
1309
|
+
"logs",
|
|
1310
|
+
"archive.js"
|
|
1309
1311
|
]
|
|
1310
1312
|
},
|
|
1311
|
-
"
|
|
1313
|
+
"logs": {
|
|
1312
1314
|
"aliases": [],
|
|
1313
|
-
"args": {
|
|
1314
|
-
|
|
1315
|
+
"args": {
|
|
1316
|
+
"component": {
|
|
1317
|
+
"description": "The component(s) you want to see the logs of (all if omitted)",
|
|
1318
|
+
"name": "component",
|
|
1319
|
+
"required": false
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
"description": "Get components logs.",
|
|
1315
1323
|
"examples": [
|
|
1316
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1324
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1325
|
+
"<%= config.bin %> <%= command.id %> backend",
|
|
1326
|
+
"<%= config.bin %> <%= command.id %> backend frontend",
|
|
1327
|
+
"<%= config.bin %> <%= command.id %> --no-follow backend"
|
|
1317
1328
|
],
|
|
1318
1329
|
"flags": {
|
|
1319
|
-
"json": {
|
|
1320
|
-
"description": "Format output as json.",
|
|
1321
|
-
"helpGroup": "GLOBAL",
|
|
1322
|
-
"name": "json",
|
|
1323
|
-
"allowNo": false,
|
|
1324
|
-
"type": "boolean"
|
|
1325
|
-
},
|
|
1326
1330
|
"verbose": {
|
|
1327
1331
|
"name": "verbose",
|
|
1328
1332
|
"allowNo": true,
|
|
@@ -1337,48 +1341,44 @@
|
|
|
1337
1341
|
"multiple": false,
|
|
1338
1342
|
"type": "option"
|
|
1339
1343
|
},
|
|
1340
|
-
"
|
|
1341
|
-
"
|
|
1342
|
-
"
|
|
1343
|
-
"
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1346
|
-
"type": "option"
|
|
1344
|
+
"follow": {
|
|
1345
|
+
"char": "f",
|
|
1346
|
+
"description": "Follow log output",
|
|
1347
|
+
"name": "follow",
|
|
1348
|
+
"allowNo": true,
|
|
1349
|
+
"type": "boolean"
|
|
1347
1350
|
}
|
|
1348
1351
|
},
|
|
1349
1352
|
"hasDynamicHelp": false,
|
|
1350
1353
|
"hiddenAliases": [],
|
|
1351
|
-
"id": "
|
|
1354
|
+
"id": "logs",
|
|
1352
1355
|
"pluginAlias": "@enspirit/emb",
|
|
1353
1356
|
"pluginName": "@enspirit/emb",
|
|
1354
1357
|
"pluginType": "core",
|
|
1355
|
-
"strict":
|
|
1356
|
-
"enableJsonFlag":
|
|
1358
|
+
"strict": false,
|
|
1359
|
+
"enableJsonFlag": false,
|
|
1357
1360
|
"isESM": true,
|
|
1358
1361
|
"relativePath": [
|
|
1359
1362
|
"dist",
|
|
1360
1363
|
"src",
|
|
1361
1364
|
"cli",
|
|
1362
1365
|
"commands",
|
|
1363
|
-
"
|
|
1366
|
+
"logs",
|
|
1364
1367
|
"index.js"
|
|
1365
1368
|
]
|
|
1366
1369
|
},
|
|
1367
|
-
"
|
|
1370
|
+
"resources:build": {
|
|
1368
1371
|
"aliases": [],
|
|
1369
1372
|
"args": {
|
|
1370
1373
|
"component": {
|
|
1371
|
-
"description": "
|
|
1374
|
+
"description": "List of resources to build (defaults to all)",
|
|
1372
1375
|
"name": "component",
|
|
1373
1376
|
"required": false
|
|
1374
1377
|
}
|
|
1375
1378
|
},
|
|
1376
|
-
"description": "
|
|
1379
|
+
"description": "Build the resources of the monorepo",
|
|
1377
1380
|
"examples": [
|
|
1378
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1379
|
-
"<%= config.bin %> <%= command.id %> backend frontend",
|
|
1380
|
-
"<%= config.bin %> <%= command.id %> --timestamps",
|
|
1381
|
-
"<%= config.bin %> <%= command.id %> --tail 1000"
|
|
1381
|
+
"<%= config.bin %> <%= command.id %> build --flavor development"
|
|
1382
1382
|
],
|
|
1383
1383
|
"flags": {
|
|
1384
1384
|
"json": {
|
|
@@ -1402,32 +1402,33 @@
|
|
|
1402
1402
|
"multiple": false,
|
|
1403
1403
|
"type": "option"
|
|
1404
1404
|
},
|
|
1405
|
-
"
|
|
1406
|
-
"
|
|
1407
|
-
"
|
|
1408
|
-
"
|
|
1409
|
-
"allowNo": false,
|
|
1410
|
-
"type": "boolean"
|
|
1411
|
-
},
|
|
1412
|
-
"tail": {
|
|
1413
|
-
"description": "Number of lines to show from the end of the logs",
|
|
1414
|
-
"name": "tail",
|
|
1405
|
+
"flavor": {
|
|
1406
|
+
"description": "Specify the flavor to use.",
|
|
1407
|
+
"name": "flavor",
|
|
1408
|
+
"required": false,
|
|
1415
1409
|
"hasDynamicHelp": false,
|
|
1416
1410
|
"multiple": false,
|
|
1417
1411
|
"type": "option"
|
|
1418
1412
|
},
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1423
|
-
"
|
|
1424
|
-
"
|
|
1425
|
-
|
|
1413
|
+
"dry-run": {
|
|
1414
|
+
"description": "Do not build the resources but only produce build meta information",
|
|
1415
|
+
"name": "dry-run",
|
|
1416
|
+
"required": false,
|
|
1417
|
+
"allowNo": false,
|
|
1418
|
+
"type": "boolean"
|
|
1419
|
+
},
|
|
1420
|
+
"force": {
|
|
1421
|
+
"char": "f",
|
|
1422
|
+
"description": "Bypass the cache and force the build",
|
|
1423
|
+
"name": "force",
|
|
1424
|
+
"required": false,
|
|
1425
|
+
"allowNo": false,
|
|
1426
|
+
"type": "boolean"
|
|
1426
1427
|
}
|
|
1427
1428
|
},
|
|
1428
1429
|
"hasDynamicHelp": false,
|
|
1429
1430
|
"hiddenAliases": [],
|
|
1430
|
-
"id": "
|
|
1431
|
+
"id": "resources:build",
|
|
1431
1432
|
"pluginAlias": "@enspirit/emb",
|
|
1432
1433
|
"pluginName": "@enspirit/emb",
|
|
1433
1434
|
"pluginType": "core",
|
|
@@ -1439,27 +1440,25 @@
|
|
|
1439
1440
|
"src",
|
|
1440
1441
|
"cli",
|
|
1441
1442
|
"commands",
|
|
1442
|
-
"
|
|
1443
|
-
"
|
|
1443
|
+
"resources",
|
|
1444
|
+
"build.js"
|
|
1444
1445
|
]
|
|
1445
1446
|
},
|
|
1446
|
-
"
|
|
1447
|
+
"resources": {
|
|
1447
1448
|
"aliases": [],
|
|
1448
|
-
"args": {
|
|
1449
|
-
|
|
1450
|
-
"description": "The component(s) you want to see the logs of (all if omitted)",
|
|
1451
|
-
"name": "component",
|
|
1452
|
-
"required": false
|
|
1453
|
-
}
|
|
1454
|
-
},
|
|
1455
|
-
"description": "Get components logs.",
|
|
1449
|
+
"args": {},
|
|
1450
|
+
"description": "List resources.",
|
|
1456
1451
|
"examples": [
|
|
1457
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1458
|
-
"<%= config.bin %> <%= command.id %> backend",
|
|
1459
|
-
"<%= config.bin %> <%= command.id %> backend frontend",
|
|
1460
|
-
"<%= config.bin %> <%= command.id %> --no-follow backend"
|
|
1452
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1461
1453
|
],
|
|
1462
1454
|
"flags": {
|
|
1455
|
+
"json": {
|
|
1456
|
+
"description": "Format output as json.",
|
|
1457
|
+
"helpGroup": "GLOBAL",
|
|
1458
|
+
"name": "json",
|
|
1459
|
+
"allowNo": false,
|
|
1460
|
+
"type": "boolean"
|
|
1461
|
+
},
|
|
1463
1462
|
"verbose": {
|
|
1464
1463
|
"name": "verbose",
|
|
1465
1464
|
"allowNo": true,
|
|
@@ -1474,29 +1473,30 @@
|
|
|
1474
1473
|
"multiple": false,
|
|
1475
1474
|
"type": "option"
|
|
1476
1475
|
},
|
|
1477
|
-
"
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1482
|
-
"
|
|
1476
|
+
"flavor": {
|
|
1477
|
+
"description": "Specify the flavor to use.",
|
|
1478
|
+
"name": "flavor",
|
|
1479
|
+
"required": false,
|
|
1480
|
+
"hasDynamicHelp": false,
|
|
1481
|
+
"multiple": false,
|
|
1482
|
+
"type": "option"
|
|
1483
1483
|
}
|
|
1484
1484
|
},
|
|
1485
1485
|
"hasDynamicHelp": false,
|
|
1486
1486
|
"hiddenAliases": [],
|
|
1487
|
-
"id": "
|
|
1487
|
+
"id": "resources",
|
|
1488
1488
|
"pluginAlias": "@enspirit/emb",
|
|
1489
1489
|
"pluginName": "@enspirit/emb",
|
|
1490
1490
|
"pluginType": "core",
|
|
1491
|
-
"strict":
|
|
1492
|
-
"enableJsonFlag":
|
|
1491
|
+
"strict": true,
|
|
1492
|
+
"enableJsonFlag": true,
|
|
1493
1493
|
"isESM": true,
|
|
1494
1494
|
"relativePath": [
|
|
1495
1495
|
"dist",
|
|
1496
1496
|
"src",
|
|
1497
1497
|
"cli",
|
|
1498
1498
|
"commands",
|
|
1499
|
-
"
|
|
1499
|
+
"resources",
|
|
1500
1500
|
"index.js"
|
|
1501
1501
|
]
|
|
1502
1502
|
},
|
|
@@ -1801,5 +1801,5 @@
|
|
|
1801
1801
|
]
|
|
1802
1802
|
}
|
|
1803
1803
|
},
|
|
1804
|
-
"version": "0.20.
|
|
1804
|
+
"version": "0.20.2"
|
|
1805
1805
|
}
|