@enspirit/emb 0.13.0 → 0.13.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 +1 -1
- package/dist/src/cli/commands/kubernetes/shell.js +1 -19
- package/dist/src/config/schema.d.ts +2 -2
- package/dist/src/config/schema.json +1 -1
- package/dist/src/utils/streams.d.ts +1 -0
- package/dist/src/utils/streams.js +17 -0
- package/oclif.manifest.json +201 -201
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,25 +2,7 @@ import { Exec } from '@kubernetes/client-node';
|
|
|
2
2
|
import { Args, Flags } from '@oclif/core';
|
|
3
3
|
import { getContext, KubernetesCommand } from '../../index.js';
|
|
4
4
|
import { GetDeploymentPodsOperation } from '../../../kubernetes/operations/GetDeploymentPodsOperation.js';
|
|
5
|
-
|
|
6
|
-
const wasRaw = stdin.isRaw;
|
|
7
|
-
const { isTTY } = stdin;
|
|
8
|
-
if (isTTY) {
|
|
9
|
-
stdin.setRawMode?.(true);
|
|
10
|
-
stdin.resume();
|
|
11
|
-
// Do NOT set encoding; keep it binary so control chars pass through.
|
|
12
|
-
}
|
|
13
|
-
// Let the remote shell handle Ctrl+C. If you prefer local exit on ^C, uncomment:
|
|
14
|
-
// stdin.on('data', (buf) => { if (buf.equals(Buffer.from([3]))) process.exit(130); });
|
|
15
|
-
return () => {
|
|
16
|
-
if (isTTY) {
|
|
17
|
-
stdin.setRawMode?.(Boolean(wasRaw));
|
|
18
|
-
if (!wasRaw) {
|
|
19
|
-
stdin.pause();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}
|
|
5
|
+
import { enableRawMode } from '../../../utils/streams.js';
|
|
24
6
|
export default class PodShellCommand extends KubernetesCommand {
|
|
25
7
|
static aliases = ['shell'];
|
|
26
8
|
static description = 'Get a shell on a deployed component.';
|
|
@@ -11,7 +11,7 @@ export type TaskConfig = TaskConfig1 & {
|
|
|
11
11
|
options?: {
|
|
12
12
|
[k: string]: unknown;
|
|
13
13
|
};
|
|
14
|
-
pre?:
|
|
14
|
+
pre?: QualifiedIdentifier[];
|
|
15
15
|
/**
|
|
16
16
|
* Variables to pass onto the task
|
|
17
17
|
*/
|
|
@@ -30,6 +30,7 @@ export type TaskConfig = TaskConfig1 & {
|
|
|
30
30
|
export type TaskConfig1 = {
|
|
31
31
|
[k: string]: unknown;
|
|
32
32
|
};
|
|
33
|
+
export type QualifiedIdentifier = string;
|
|
33
34
|
export type ResourceConfig = {
|
|
34
35
|
[k: string]: unknown;
|
|
35
36
|
} & {
|
|
@@ -37,7 +38,6 @@ export type ResourceConfig = {
|
|
|
37
38
|
params?: unknown;
|
|
38
39
|
dependencies?: QualifiedIdentifier[];
|
|
39
40
|
};
|
|
40
|
-
export type QualifiedIdentifier = string;
|
|
41
41
|
export type JsonPatchOperation = JsonPatchAddOperation | JsonPatchRemoveOperation | JsonPatchReplaceOperation | JsonPatchMoveOperation | JsonPatchCopyOperation;
|
|
42
42
|
export interface EMBConfig {
|
|
43
43
|
project: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function enableRawMode(stdin: NodeJS.ReadStream): () => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function enableRawMode(stdin) {
|
|
2
|
+
const wasRaw = stdin.isRaw;
|
|
3
|
+
const { isTTY } = stdin;
|
|
4
|
+
if (isTTY) {
|
|
5
|
+
stdin.setRawMode?.(true);
|
|
6
|
+
stdin.resume();
|
|
7
|
+
// Do NOT set encoding; keep it binary so control chars pass through.
|
|
8
|
+
}
|
|
9
|
+
return () => {
|
|
10
|
+
if (isTTY) {
|
|
11
|
+
stdin.setRawMode?.(Boolean(wasRaw));
|
|
12
|
+
if (!wasRaw) {
|
|
13
|
+
stdin.pause();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
package/oclif.manifest.json
CHANGED
|
@@ -777,448 +777,448 @@
|
|
|
777
777
|
"push.js"
|
|
778
778
|
]
|
|
779
779
|
},
|
|
780
|
-
"
|
|
781
|
-
"aliases": [
|
|
780
|
+
"kubernetes:logs": {
|
|
781
|
+
"aliases": [
|
|
782
|
+
"logs"
|
|
783
|
+
],
|
|
782
784
|
"args": {
|
|
783
785
|
"component": {
|
|
784
|
-
"description": "
|
|
786
|
+
"description": "The component you want to see the logs of",
|
|
785
787
|
"name": "component",
|
|
786
|
-
"required":
|
|
788
|
+
"required": true
|
|
787
789
|
}
|
|
788
790
|
},
|
|
789
|
-
"description": "
|
|
791
|
+
"description": "Follow kubernetes logs.",
|
|
790
792
|
"examples": [
|
|
791
|
-
"<%= config.bin %> <%= command.id %>
|
|
793
|
+
"<%= config.bin %> <%= command.id %>"
|
|
792
794
|
],
|
|
793
795
|
"flags": {
|
|
794
|
-
"json": {
|
|
795
|
-
"description": "Format output as json.",
|
|
796
|
-
"helpGroup": "GLOBAL",
|
|
797
|
-
"name": "json",
|
|
798
|
-
"allowNo": false,
|
|
799
|
-
"type": "boolean"
|
|
800
|
-
},
|
|
801
796
|
"verbose": {
|
|
802
797
|
"name": "verbose",
|
|
803
798
|
"allowNo": true,
|
|
804
799
|
"type": "boolean"
|
|
805
800
|
},
|
|
806
|
-
"
|
|
807
|
-
"
|
|
808
|
-
|
|
809
|
-
|
|
801
|
+
"namespace": {
|
|
802
|
+
"aliases": [
|
|
803
|
+
"ns"
|
|
804
|
+
],
|
|
805
|
+
"char": "n",
|
|
806
|
+
"description": "The Kubernetes namespace to target",
|
|
807
|
+
"env": "K8S_NAMESPACE",
|
|
808
|
+
"name": "namespace",
|
|
809
|
+
"required": true,
|
|
810
810
|
"hasDynamicHelp": false,
|
|
811
811
|
"multiple": false,
|
|
812
812
|
"type": "option"
|
|
813
813
|
},
|
|
814
|
-
"
|
|
815
|
-
"description": "Do not build the resources but only produce build meta information",
|
|
816
|
-
"name": "dry-run",
|
|
817
|
-
"required": false,
|
|
818
|
-
"allowNo": false,
|
|
819
|
-
"type": "boolean"
|
|
820
|
-
},
|
|
821
|
-
"force": {
|
|
814
|
+
"follow": {
|
|
822
815
|
"char": "f",
|
|
823
|
-
"description": "
|
|
824
|
-
"name": "
|
|
825
|
-
"
|
|
826
|
-
"allowNo": false,
|
|
816
|
+
"description": "Follow log output",
|
|
817
|
+
"name": "follow",
|
|
818
|
+
"allowNo": true,
|
|
827
819
|
"type": "boolean"
|
|
828
820
|
}
|
|
829
821
|
},
|
|
830
822
|
"hasDynamicHelp": false,
|
|
831
823
|
"hiddenAliases": [],
|
|
832
|
-
"id": "
|
|
824
|
+
"id": "kubernetes:logs",
|
|
833
825
|
"pluginAlias": "@enspirit/emb",
|
|
834
826
|
"pluginName": "@enspirit/emb",
|
|
835
827
|
"pluginType": "core",
|
|
836
|
-
"strict":
|
|
837
|
-
"enableJsonFlag":
|
|
828
|
+
"strict": true,
|
|
829
|
+
"enableJsonFlag": false,
|
|
838
830
|
"isESM": true,
|
|
839
831
|
"relativePath": [
|
|
840
832
|
"dist",
|
|
841
833
|
"src",
|
|
842
834
|
"cli",
|
|
843
835
|
"commands",
|
|
844
|
-
"
|
|
845
|
-
"
|
|
836
|
+
"kubernetes",
|
|
837
|
+
"logs.js"
|
|
846
838
|
]
|
|
847
839
|
},
|
|
848
|
-
"
|
|
840
|
+
"kubernetes:ps": {
|
|
849
841
|
"aliases": [],
|
|
850
842
|
"args": {},
|
|
851
|
-
"description": "
|
|
843
|
+
"description": "Show running pods.",
|
|
852
844
|
"examples": [
|
|
853
845
|
"<%= config.bin %> <%= command.id %>"
|
|
854
846
|
],
|
|
855
847
|
"flags": {
|
|
856
|
-
"json": {
|
|
857
|
-
"description": "Format output as json.",
|
|
858
|
-
"helpGroup": "GLOBAL",
|
|
859
|
-
"name": "json",
|
|
860
|
-
"allowNo": false,
|
|
861
|
-
"type": "boolean"
|
|
862
|
-
},
|
|
863
848
|
"verbose": {
|
|
864
849
|
"name": "verbose",
|
|
865
850
|
"allowNo": true,
|
|
866
851
|
"type": "boolean"
|
|
867
852
|
},
|
|
868
|
-
"
|
|
869
|
-
"
|
|
870
|
-
|
|
871
|
-
|
|
853
|
+
"namespace": {
|
|
854
|
+
"aliases": [
|
|
855
|
+
"ns"
|
|
856
|
+
],
|
|
857
|
+
"char": "n",
|
|
858
|
+
"description": "The Kubernetes namespace to target",
|
|
859
|
+
"env": "K8S_NAMESPACE",
|
|
860
|
+
"name": "namespace",
|
|
861
|
+
"required": true,
|
|
872
862
|
"hasDynamicHelp": false,
|
|
873
863
|
"multiple": false,
|
|
874
864
|
"type": "option"
|
|
865
|
+
},
|
|
866
|
+
"watch": {
|
|
867
|
+
"name": "watch",
|
|
868
|
+
"allowNo": true,
|
|
869
|
+
"type": "boolean"
|
|
875
870
|
}
|
|
876
871
|
},
|
|
877
872
|
"hasDynamicHelp": false,
|
|
878
873
|
"hiddenAliases": [],
|
|
879
|
-
"id": "
|
|
874
|
+
"id": "kubernetes:ps",
|
|
880
875
|
"pluginAlias": "@enspirit/emb",
|
|
881
876
|
"pluginName": "@enspirit/emb",
|
|
882
877
|
"pluginType": "core",
|
|
883
|
-
"strict":
|
|
884
|
-
"enableJsonFlag":
|
|
878
|
+
"strict": false,
|
|
879
|
+
"enableJsonFlag": false,
|
|
885
880
|
"isESM": true,
|
|
886
881
|
"relativePath": [
|
|
887
882
|
"dist",
|
|
888
883
|
"src",
|
|
889
884
|
"cli",
|
|
890
885
|
"commands",
|
|
891
|
-
"
|
|
892
|
-
"
|
|
886
|
+
"kubernetes",
|
|
887
|
+
"ps.js"
|
|
893
888
|
]
|
|
894
889
|
},
|
|
895
|
-
"
|
|
890
|
+
"kubernetes:restart": {
|
|
896
891
|
"aliases": [],
|
|
897
|
-
"args": {
|
|
898
|
-
|
|
892
|
+
"args": {
|
|
893
|
+
"deployment": {
|
|
894
|
+
"description": "The deployment(s) to restart",
|
|
895
|
+
"name": "deployment"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"description": "Restart pods of an instance.",
|
|
899
899
|
"examples": [
|
|
900
900
|
"<%= config.bin %> <%= command.id %>"
|
|
901
901
|
],
|
|
902
902
|
"flags": {
|
|
903
|
-
"json": {
|
|
904
|
-
"description": "Format output as json.",
|
|
905
|
-
"helpGroup": "GLOBAL",
|
|
906
|
-
"name": "json",
|
|
907
|
-
"allowNo": false,
|
|
908
|
-
"type": "boolean"
|
|
909
|
-
},
|
|
910
903
|
"verbose": {
|
|
911
904
|
"name": "verbose",
|
|
912
905
|
"allowNo": true,
|
|
913
906
|
"type": "boolean"
|
|
907
|
+
},
|
|
908
|
+
"namespace": {
|
|
909
|
+
"aliases": [
|
|
910
|
+
"ns"
|
|
911
|
+
],
|
|
912
|
+
"char": "n",
|
|
913
|
+
"description": "The Kubernetes namespace to target",
|
|
914
|
+
"env": "K8S_NAMESPACE",
|
|
915
|
+
"name": "namespace",
|
|
916
|
+
"required": true,
|
|
917
|
+
"hasDynamicHelp": false,
|
|
918
|
+
"multiple": false,
|
|
919
|
+
"type": "option"
|
|
914
920
|
}
|
|
915
921
|
},
|
|
916
922
|
"hasDynamicHelp": false,
|
|
917
923
|
"hiddenAliases": [],
|
|
918
|
-
"id": "
|
|
924
|
+
"id": "kubernetes:restart",
|
|
919
925
|
"pluginAlias": "@enspirit/emb",
|
|
920
926
|
"pluginName": "@enspirit/emb",
|
|
921
927
|
"pluginType": "core",
|
|
922
|
-
"strict":
|
|
923
|
-
"enableJsonFlag":
|
|
928
|
+
"strict": false,
|
|
929
|
+
"enableJsonFlag": false,
|
|
924
930
|
"isESM": true,
|
|
925
931
|
"relativePath": [
|
|
926
932
|
"dist",
|
|
927
933
|
"src",
|
|
928
934
|
"cli",
|
|
929
935
|
"commands",
|
|
930
|
-
"
|
|
931
|
-
"
|
|
936
|
+
"kubernetes",
|
|
937
|
+
"restart.js"
|
|
932
938
|
]
|
|
933
939
|
},
|
|
934
|
-
"
|
|
940
|
+
"kubernetes:shell": {
|
|
935
941
|
"aliases": [
|
|
936
|
-
"
|
|
942
|
+
"shell"
|
|
937
943
|
],
|
|
938
944
|
"args": {
|
|
939
|
-
"
|
|
940
|
-
"description": "
|
|
941
|
-
"name": "
|
|
945
|
+
"component": {
|
|
946
|
+
"description": "The component you want to get a shell on",
|
|
947
|
+
"name": "component",
|
|
942
948
|
"required": true
|
|
943
949
|
}
|
|
944
950
|
},
|
|
945
|
-
"description": "
|
|
951
|
+
"description": "Get a shell on a deployed component.",
|
|
946
952
|
"examples": [
|
|
947
953
|
"<%= config.bin %> <%= command.id %>"
|
|
948
954
|
],
|
|
949
955
|
"flags": {
|
|
950
|
-
"json": {
|
|
951
|
-
"description": "Format output as json.",
|
|
952
|
-
"helpGroup": "GLOBAL",
|
|
953
|
-
"name": "json",
|
|
954
|
-
"allowNo": false,
|
|
955
|
-
"type": "boolean"
|
|
956
|
-
},
|
|
957
956
|
"verbose": {
|
|
958
957
|
"name": "verbose",
|
|
959
958
|
"allowNo": true,
|
|
960
959
|
"type": "boolean"
|
|
961
960
|
},
|
|
962
|
-
"
|
|
963
|
-
"
|
|
964
|
-
|
|
965
|
-
|
|
961
|
+
"namespace": {
|
|
962
|
+
"aliases": [
|
|
963
|
+
"ns"
|
|
964
|
+
],
|
|
965
|
+
"char": "n",
|
|
966
|
+
"description": "The Kubernetes namespace to target",
|
|
967
|
+
"env": "K8S_NAMESPACE",
|
|
968
|
+
"name": "namespace",
|
|
969
|
+
"required": true,
|
|
966
970
|
"hasDynamicHelp": false,
|
|
967
971
|
"multiple": false,
|
|
968
|
-
"options": [
|
|
969
|
-
"container",
|
|
970
|
-
"local"
|
|
971
|
-
],
|
|
972
972
|
"type": "option"
|
|
973
973
|
},
|
|
974
|
-
"
|
|
975
|
-
"char": "
|
|
976
|
-
"description": "
|
|
977
|
-
"name": "
|
|
978
|
-
"
|
|
979
|
-
"
|
|
974
|
+
"shell": {
|
|
975
|
+
"char": "s",
|
|
976
|
+
"description": "The shell to run",
|
|
977
|
+
"name": "shell",
|
|
978
|
+
"default": "bash",
|
|
979
|
+
"hasDynamicHelp": false,
|
|
980
|
+
"multiple": false,
|
|
981
|
+
"type": "option"
|
|
980
982
|
}
|
|
981
983
|
},
|
|
982
984
|
"hasDynamicHelp": false,
|
|
983
985
|
"hiddenAliases": [],
|
|
984
|
-
"id": "
|
|
986
|
+
"id": "kubernetes:shell",
|
|
985
987
|
"pluginAlias": "@enspirit/emb",
|
|
986
988
|
"pluginName": "@enspirit/emb",
|
|
987
989
|
"pluginType": "core",
|
|
988
|
-
"strict":
|
|
989
|
-
"enableJsonFlag":
|
|
990
|
+
"strict": true,
|
|
991
|
+
"enableJsonFlag": false,
|
|
990
992
|
"isESM": true,
|
|
991
993
|
"relativePath": [
|
|
992
994
|
"dist",
|
|
993
995
|
"src",
|
|
994
996
|
"cli",
|
|
995
997
|
"commands",
|
|
996
|
-
"
|
|
997
|
-
"
|
|
998
|
+
"kubernetes",
|
|
999
|
+
"shell.js"
|
|
998
1000
|
]
|
|
999
1001
|
},
|
|
1000
|
-
"
|
|
1001
|
-
"aliases": [
|
|
1002
|
-
"logs"
|
|
1003
|
-
],
|
|
1002
|
+
"resources:build": {
|
|
1003
|
+
"aliases": [],
|
|
1004
1004
|
"args": {
|
|
1005
1005
|
"component": {
|
|
1006
|
-
"description": "
|
|
1006
|
+
"description": "List of resources to build (defaults to all)",
|
|
1007
1007
|
"name": "component",
|
|
1008
|
-
"required":
|
|
1008
|
+
"required": false
|
|
1009
1009
|
}
|
|
1010
1010
|
},
|
|
1011
|
-
"description": "
|
|
1011
|
+
"description": "Build the resources of the monorepo",
|
|
1012
1012
|
"examples": [
|
|
1013
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1013
|
+
"<%= config.bin %> <%= command.id %> build --flavor development"
|
|
1014
1014
|
],
|
|
1015
1015
|
"flags": {
|
|
1016
|
+
"json": {
|
|
1017
|
+
"description": "Format output as json.",
|
|
1018
|
+
"helpGroup": "GLOBAL",
|
|
1019
|
+
"name": "json",
|
|
1020
|
+
"allowNo": false,
|
|
1021
|
+
"type": "boolean"
|
|
1022
|
+
},
|
|
1016
1023
|
"verbose": {
|
|
1017
1024
|
"name": "verbose",
|
|
1018
1025
|
"allowNo": true,
|
|
1019
1026
|
"type": "boolean"
|
|
1020
1027
|
},
|
|
1021
|
-
"
|
|
1022
|
-
"
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
"char": "n",
|
|
1026
|
-
"description": "The Kubernetes namespace to target",
|
|
1027
|
-
"env": "K8S_NAMESPACE",
|
|
1028
|
-
"name": "namespace",
|
|
1029
|
-
"required": true,
|
|
1028
|
+
"flavor": {
|
|
1029
|
+
"description": "Specify the flavor to use.",
|
|
1030
|
+
"name": "flavor",
|
|
1031
|
+
"required": false,
|
|
1030
1032
|
"hasDynamicHelp": false,
|
|
1031
1033
|
"multiple": false,
|
|
1032
1034
|
"type": "option"
|
|
1033
1035
|
},
|
|
1034
|
-
"
|
|
1036
|
+
"dry-run": {
|
|
1037
|
+
"description": "Do not build the resources but only produce build meta information",
|
|
1038
|
+
"name": "dry-run",
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"allowNo": false,
|
|
1041
|
+
"type": "boolean"
|
|
1042
|
+
},
|
|
1043
|
+
"force": {
|
|
1035
1044
|
"char": "f",
|
|
1036
|
-
"description": "
|
|
1037
|
-
"name": "
|
|
1038
|
-
"
|
|
1045
|
+
"description": "Bypass the cache and force the build",
|
|
1046
|
+
"name": "force",
|
|
1047
|
+
"required": false,
|
|
1048
|
+
"allowNo": false,
|
|
1039
1049
|
"type": "boolean"
|
|
1040
1050
|
}
|
|
1041
1051
|
},
|
|
1042
1052
|
"hasDynamicHelp": false,
|
|
1043
1053
|
"hiddenAliases": [],
|
|
1044
|
-
"id": "
|
|
1054
|
+
"id": "resources:build",
|
|
1045
1055
|
"pluginAlias": "@enspirit/emb",
|
|
1046
1056
|
"pluginName": "@enspirit/emb",
|
|
1047
1057
|
"pluginType": "core",
|
|
1048
|
-
"strict":
|
|
1049
|
-
"enableJsonFlag":
|
|
1058
|
+
"strict": false,
|
|
1059
|
+
"enableJsonFlag": true,
|
|
1050
1060
|
"isESM": true,
|
|
1051
1061
|
"relativePath": [
|
|
1052
1062
|
"dist",
|
|
1053
1063
|
"src",
|
|
1054
1064
|
"cli",
|
|
1055
1065
|
"commands",
|
|
1056
|
-
"
|
|
1057
|
-
"
|
|
1066
|
+
"resources",
|
|
1067
|
+
"build.js"
|
|
1058
1068
|
]
|
|
1059
1069
|
},
|
|
1060
|
-
"
|
|
1070
|
+
"resources": {
|
|
1061
1071
|
"aliases": [],
|
|
1062
1072
|
"args": {},
|
|
1063
|
-
"description": "
|
|
1073
|
+
"description": "List resources.",
|
|
1064
1074
|
"examples": [
|
|
1065
1075
|
"<%= config.bin %> <%= command.id %>"
|
|
1066
1076
|
],
|
|
1067
1077
|
"flags": {
|
|
1078
|
+
"json": {
|
|
1079
|
+
"description": "Format output as json.",
|
|
1080
|
+
"helpGroup": "GLOBAL",
|
|
1081
|
+
"name": "json",
|
|
1082
|
+
"allowNo": false,
|
|
1083
|
+
"type": "boolean"
|
|
1084
|
+
},
|
|
1068
1085
|
"verbose": {
|
|
1069
1086
|
"name": "verbose",
|
|
1070
1087
|
"allowNo": true,
|
|
1071
1088
|
"type": "boolean"
|
|
1072
1089
|
},
|
|
1073
|
-
"
|
|
1074
|
-
"
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
"char": "n",
|
|
1078
|
-
"description": "The Kubernetes namespace to target",
|
|
1079
|
-
"env": "K8S_NAMESPACE",
|
|
1080
|
-
"name": "namespace",
|
|
1081
|
-
"required": true,
|
|
1090
|
+
"flavor": {
|
|
1091
|
+
"description": "Specify the flavor to use.",
|
|
1092
|
+
"name": "flavor",
|
|
1093
|
+
"required": false,
|
|
1082
1094
|
"hasDynamicHelp": false,
|
|
1083
1095
|
"multiple": false,
|
|
1084
1096
|
"type": "option"
|
|
1085
|
-
},
|
|
1086
|
-
"watch": {
|
|
1087
|
-
"name": "watch",
|
|
1088
|
-
"allowNo": true,
|
|
1089
|
-
"type": "boolean"
|
|
1090
1097
|
}
|
|
1091
1098
|
},
|
|
1092
1099
|
"hasDynamicHelp": false,
|
|
1093
1100
|
"hiddenAliases": [],
|
|
1094
|
-
"id": "
|
|
1101
|
+
"id": "resources",
|
|
1095
1102
|
"pluginAlias": "@enspirit/emb",
|
|
1096
1103
|
"pluginName": "@enspirit/emb",
|
|
1097
1104
|
"pluginType": "core",
|
|
1098
|
-
"strict":
|
|
1099
|
-
"enableJsonFlag":
|
|
1105
|
+
"strict": true,
|
|
1106
|
+
"enableJsonFlag": true,
|
|
1100
1107
|
"isESM": true,
|
|
1101
1108
|
"relativePath": [
|
|
1102
1109
|
"dist",
|
|
1103
1110
|
"src",
|
|
1104
1111
|
"cli",
|
|
1105
1112
|
"commands",
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1113
|
+
"resources",
|
|
1114
|
+
"index.js"
|
|
1108
1115
|
]
|
|
1109
1116
|
},
|
|
1110
|
-
"
|
|
1117
|
+
"tasks": {
|
|
1111
1118
|
"aliases": [],
|
|
1112
|
-
"args": {
|
|
1113
|
-
|
|
1114
|
-
"description": "The deployment(s) to restart",
|
|
1115
|
-
"name": "deployment"
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"description": "Restart pods of an instance.",
|
|
1119
|
+
"args": {},
|
|
1120
|
+
"description": "List tasks.",
|
|
1119
1121
|
"examples": [
|
|
1120
1122
|
"<%= config.bin %> <%= command.id %>"
|
|
1121
1123
|
],
|
|
1122
1124
|
"flags": {
|
|
1125
|
+
"json": {
|
|
1126
|
+
"description": "Format output as json.",
|
|
1127
|
+
"helpGroup": "GLOBAL",
|
|
1128
|
+
"name": "json",
|
|
1129
|
+
"allowNo": false,
|
|
1130
|
+
"type": "boolean"
|
|
1131
|
+
},
|
|
1123
1132
|
"verbose": {
|
|
1124
1133
|
"name": "verbose",
|
|
1125
1134
|
"allowNo": true,
|
|
1126
1135
|
"type": "boolean"
|
|
1127
|
-
},
|
|
1128
|
-
"namespace": {
|
|
1129
|
-
"aliases": [
|
|
1130
|
-
"ns"
|
|
1131
|
-
],
|
|
1132
|
-
"char": "n",
|
|
1133
|
-
"description": "The Kubernetes namespace to target",
|
|
1134
|
-
"env": "K8S_NAMESPACE",
|
|
1135
|
-
"name": "namespace",
|
|
1136
|
-
"required": true,
|
|
1137
|
-
"hasDynamicHelp": false,
|
|
1138
|
-
"multiple": false,
|
|
1139
|
-
"type": "option"
|
|
1140
1136
|
}
|
|
1141
1137
|
},
|
|
1142
1138
|
"hasDynamicHelp": false,
|
|
1143
1139
|
"hiddenAliases": [],
|
|
1144
|
-
"id": "
|
|
1140
|
+
"id": "tasks",
|
|
1145
1141
|
"pluginAlias": "@enspirit/emb",
|
|
1146
1142
|
"pluginName": "@enspirit/emb",
|
|
1147
1143
|
"pluginType": "core",
|
|
1148
|
-
"strict":
|
|
1149
|
-
"enableJsonFlag":
|
|
1144
|
+
"strict": true,
|
|
1145
|
+
"enableJsonFlag": true,
|
|
1150
1146
|
"isESM": true,
|
|
1151
1147
|
"relativePath": [
|
|
1152
1148
|
"dist",
|
|
1153
1149
|
"src",
|
|
1154
1150
|
"cli",
|
|
1155
1151
|
"commands",
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1152
|
+
"tasks",
|
|
1153
|
+
"index.js"
|
|
1158
1154
|
]
|
|
1159
1155
|
},
|
|
1160
|
-
"
|
|
1156
|
+
"tasks:run": {
|
|
1161
1157
|
"aliases": [
|
|
1162
|
-
"
|
|
1158
|
+
"run"
|
|
1163
1159
|
],
|
|
1164
1160
|
"args": {
|
|
1165
|
-
"
|
|
1166
|
-
"description": "
|
|
1167
|
-
"name": "
|
|
1161
|
+
"task": {
|
|
1162
|
+
"description": "List of tasks to run. You can provide either ids or names (eg: component:task or task)",
|
|
1163
|
+
"name": "task",
|
|
1168
1164
|
"required": true
|
|
1169
1165
|
}
|
|
1170
1166
|
},
|
|
1171
|
-
"description": "
|
|
1167
|
+
"description": "Run tasks.",
|
|
1172
1168
|
"examples": [
|
|
1173
1169
|
"<%= config.bin %> <%= command.id %>"
|
|
1174
1170
|
],
|
|
1175
1171
|
"flags": {
|
|
1172
|
+
"json": {
|
|
1173
|
+
"description": "Format output as json.",
|
|
1174
|
+
"helpGroup": "GLOBAL",
|
|
1175
|
+
"name": "json",
|
|
1176
|
+
"allowNo": false,
|
|
1177
|
+
"type": "boolean"
|
|
1178
|
+
},
|
|
1176
1179
|
"verbose": {
|
|
1177
1180
|
"name": "verbose",
|
|
1178
1181
|
"allowNo": true,
|
|
1179
1182
|
"type": "boolean"
|
|
1180
1183
|
},
|
|
1181
|
-
"
|
|
1182
|
-
"
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
"char": "n",
|
|
1186
|
-
"description": "The Kubernetes namespace to target",
|
|
1187
|
-
"env": "K8S_NAMESPACE",
|
|
1188
|
-
"name": "namespace",
|
|
1189
|
-
"required": true,
|
|
1184
|
+
"executor": {
|
|
1185
|
+
"char": "x",
|
|
1186
|
+
"description": "Where to run the task. (experimental!)",
|
|
1187
|
+
"name": "executor",
|
|
1190
1188
|
"hasDynamicHelp": false,
|
|
1191
1189
|
"multiple": false,
|
|
1190
|
+
"options": [
|
|
1191
|
+
"container",
|
|
1192
|
+
"local"
|
|
1193
|
+
],
|
|
1192
1194
|
"type": "option"
|
|
1193
1195
|
},
|
|
1194
|
-
"
|
|
1195
|
-
"char": "
|
|
1196
|
-
"description": "
|
|
1197
|
-
"name": "
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1200
|
-
"multiple": false,
|
|
1201
|
-
"type": "option"
|
|
1196
|
+
"all-matching": {
|
|
1197
|
+
"char": "a",
|
|
1198
|
+
"description": "Run all tasks matching (when multiple matches)",
|
|
1199
|
+
"name": "all-matching",
|
|
1200
|
+
"allowNo": false,
|
|
1201
|
+
"type": "boolean"
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
1204
1204
|
"hasDynamicHelp": false,
|
|
1205
1205
|
"hiddenAliases": [],
|
|
1206
|
-
"id": "
|
|
1206
|
+
"id": "tasks:run",
|
|
1207
1207
|
"pluginAlias": "@enspirit/emb",
|
|
1208
1208
|
"pluginName": "@enspirit/emb",
|
|
1209
1209
|
"pluginType": "core",
|
|
1210
|
-
"strict":
|
|
1211
|
-
"enableJsonFlag":
|
|
1210
|
+
"strict": false,
|
|
1211
|
+
"enableJsonFlag": true,
|
|
1212
1212
|
"isESM": true,
|
|
1213
1213
|
"relativePath": [
|
|
1214
1214
|
"dist",
|
|
1215
1215
|
"src",
|
|
1216
1216
|
"cli",
|
|
1217
1217
|
"commands",
|
|
1218
|
-
"
|
|
1219
|
-
"
|
|
1218
|
+
"tasks",
|
|
1219
|
+
"run.js"
|
|
1220
1220
|
]
|
|
1221
1221
|
}
|
|
1222
1222
|
},
|
|
1223
|
-
"version": "0.13.
|
|
1223
|
+
"version": "0.13.1"
|
|
1224
1224
|
}
|