11
11
12
12
// Imperative version of Zowe CLI
13
13
import { IImperativeConfig } from "@zowe/imperative" ;
14
- import { CicsSession } from "./CicsSession" ;
15
14
import { PluginConstants } from "./PluginConstants" ;
15
+ import { getCICSProfileDefinition } from "@zowe/cics-for-zowe-sdk" ;
16
16
17
17
const config : IImperativeConfig = {
18
18
commandModuleGlobs : [ "*/*.definition!(.d).*s" ] ,
@@ -27,85 +27,7 @@ const config: IImperativeConfig = {
27
27
// }
28
28
// ],
29
29
profiles : [
30
- {
31
- type : "cics" ,
32
- schema : {
33
- type : "object" ,
34
- title : "CICS Profile" ,
35
- description :
36
- "A cics profile is required to issue commands in the cics command group that interact with " +
37
- "CICS regions. The cics profile contains your host, port, user name, and password " +
38
- "for the IBM CICS management client interface (CMCI) server of your choice." ,
39
- properties : {
40
- host : {
41
- type : "string" ,
42
- optionDefinition : {
43
- name : "host" ,
44
- aliases : [ "H" ] ,
45
- description : "The CMCI server host name" ,
46
- type : "string" ,
47
- } ,
48
- } ,
49
- port : {
50
- type : "number" ,
51
- optionDefinition : {
52
- name : "port" ,
53
- aliases : [ "P" ] ,
54
- description : "The CMCI server port" ,
55
- type : "number" ,
56
- defaultValue : 1490 ,
57
- } ,
58
- } ,
59
- user : {
60
- type : "string" ,
61
- secure : true ,
62
- optionDefinition : {
63
- name : "user" ,
64
- aliases : [ "u" ] ,
65
- description : "Your username to connect to CICS" ,
66
- type : "string" ,
67
- implies : [ "password" ] ,
68
- } ,
69
- } ,
70
- password : {
71
- type : "string" ,
72
- secure : true ,
73
- optionDefinition : {
74
- name : "password" ,
75
- aliases : [ "p" ] ,
76
- description : "Your password to connect to CICS" ,
77
- type : "string" ,
78
- implies : [ "user" ] ,
79
- } ,
80
- } ,
81
- regionName : {
82
- type : "string" ,
83
- optionDefinition : {
84
- name : "region-name" ,
85
- description : "The name of the CICS region name to interact with" ,
86
- type : "string" ,
87
- } ,
88
- } ,
89
- cicsPlex : {
90
- type : "string" ,
91
- optionDefinition : {
92
- name : "cics-plex" ,
93
- description : "The name of the CICSPlex to interact with" ,
94
- type : "string" ,
95
- } ,
96
- } ,
97
- rejectUnauthorized : {
98
- type : "boolean" ,
99
- optionDefinition : CicsSession . CICS_OPTION_REJECT_UNAUTHORIZED ,
100
- } ,
101
- protocol : {
102
- type : "string" ,
103
- optionDefinition : CicsSession . CICS_OPTION_PROTOCOL ,
104
- } ,
105
- } ,
106
- required : [ ] ,
107
- } ,
108
- } ,
30
+ getCICSProfileDefinition ( ) ,
109
31
] ,
110
32
} ;
111
33
0 commit comments