Skip to content

Commit

Permalink
default values and printing servlet key
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <jace.roell@hotmail.com>
  • Loading branch information
jace-roell committed Sep 20, 2024
1 parent f59fc0b commit e8f4e52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/cli/src/zostso/issue/command/Command.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
IssueTso,
ZosTsoBaseHandler,
} from "@zowe/zos-tso-for-zowe-sdk";
import chalk = require("chalk");
/**
* Handler to issue command to TSO address space
* @export
Expand Down Expand Up @@ -43,8 +44,10 @@ export default class Handler extends ZosTsoBaseHandler {
) {
this.console.log(response.startResponse.messages);
}
this.console.log(response.commandResponse);
if(response. zosmfResponse?.[0]?.servletKey)
this.console.log(`${chalk.yellow("Servlet Key: ")}${response.zosmfResponse[0].servletKey}`);

this.console.log(response.commandResponse);
// Return as an object when using --response-format-json
this.data.setObj(response);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/zostso/src/IssueTso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class IssueTso {
session,
ZosmfConstants.VERSIONS.V2R4
) &&
(opts.suppressStartupMessages ?? true);
(opts.suppressStartupMessages ?? false);
if (useNewApi) {
version = "v1";
try {
Expand All @@ -61,7 +61,7 @@ export class IssueTso {
apiResponse.cmdResponse[
apiResponse.cmdResponse.length - 1
].message.trim() === "READY",
zosmfResponse: apiResponse as any,
zosmfResponse: [apiResponse as any],
commandResponse: apiResponse.cmdResponse
.map((item) => item.message)
.join("\n"),
Expand Down

0 comments on commit e8f4e52

Please sign in to comment.