@enspirit/emb 0.20.0 → 0.20.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
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.1 darwin-arm64 node-v22.21.1
|
|
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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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) {
|
package/oclif.manifest.json
CHANGED