zowe / cics-for-zowe-client

Monorepo for all CICS related APIs and Apps built by Zowe Clients
https://www.zowe.org/
Eclipse Public License 2.0
2 stars 3 forks source link

Creating a CMCI session via API #83

Open pcoop opened 5 years ago

pcoop commented 5 years ago

I want to make use of the @zowe/cics API in a new plug-in, I'm struggling to do so as the CicsSession class isn't part of the exported API. CicsSession is what's used to create the session object that is then referenced in the API functions, without it the API isn't very accessible.

I have been able to copy the logic from CicsSession.createBasicCicsSession() into my own code, it just seems an odd requirement to have to do that. Perhaps the logic for creating the session instance could be moved into a utility class that is part of the API? That would make it consistent with the equivalent code in the zosmf API.

On a related note, there may be a bug in CicsSession.createBasicCicsSession(); I found the following line of code:

password: profile.pass,

only worked in my copy of the code when I changed it to:

password: profile.password,

I imagine this is related to issue zowe/zowe-cli-cics-plugin#13.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.