diff --git a/.github/workflows/secrets-sdk.yml b/.github/workflows/secrets-sdk.yml index c03956a729..f1c94da3cf 100644 --- a/.github/workflows/secrets-sdk.yml +++ b/.github/workflows/secrets-sdk.yml @@ -11,6 +11,7 @@ on: pull_request: paths: - "packages/secrets/**" + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/__tests__/__packages__/cli-test-utils/package.json b/__tests__/__packages__/cli-test-utils/package.json index 1c4f8e13a5..8eee5292eb 100644 --- a/__tests__/__packages__/cli-test-utils/package.json +++ b/__tests__/__packages__/cli-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/cli-test-utils", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Test utilities package for Zowe CLI plug-ins", "author": "Zowe", "license": "EPL-2.0", @@ -43,7 +43,7 @@ "devDependencies": { "@types/js-yaml": "^4.0.9", "@types/uuid": "^9.0.8", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/imperative": "^8.0.0-next" diff --git a/lerna.json b/lerna.json index 329bab9970..e6f80dd0df 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "command": { "publish": { "ignoreChanges": [ diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 8caf81e493..1055ef9f94 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -51,7 +51,7 @@ }, "__tests__/__packages__/cli-test-utils": { "name": "@zowe/cli-test-utils", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "find-up": "^5.0.0", @@ -62,7 +62,7 @@ "devDependencies": { "@types/js-yaml": "^4.0.9", "@types/uuid": "^9.0.8", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/imperative": "^8.0.0-next" @@ -17451,21 +17451,21 @@ }, "packages/cli": { "name": "@zowe/cli", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "hasInstallScript": true, "license": "EPL-2.0", "dependencies": { - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929", - "@zowe/provisioning-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-console-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-jobs-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-logs-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-tso-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-workflows-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405211929", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406", + "@zowe/provisioning-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-console-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-jobs-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-logs-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-tso-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-workflows-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405241406", "find-process": "1.4.7", "lodash": "4.17.21", "minimatch": "9.0.3", @@ -17478,7 +17478,7 @@ "@types/diff": "^5.0.9", "@types/lodash": "^4.14.202", "@types/tar": "^6.1.11", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", + "@zowe/cli-test-utils": "8.0.0-next.202405241406", "comment-json": "^4.2.3", "strip-ansi": "^6.0.1", "which": "^4.0.0" @@ -17487,7 +17487,7 @@ "node": ">=18.12.0" }, "optionalDependencies": { - "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405241406" } }, "packages/cli/node_modules/brace-expansion": { @@ -17537,15 +17537,15 @@ }, "packages/core": { "name": "@zowe/core-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "comment-json": "~4.2.3", "string-width": "^4.2.3" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17556,7 +17556,7 @@ }, "packages/imperative": { "name": "@zowe/imperative", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "@types/yargs": "^17.0.32", @@ -17608,7 +17608,7 @@ "@types/pacote": "^11.1.8", "@types/progress": "^2.0.7", "@types/stack-trace": "^0.0.29", - "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405211929", + "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405241406", "concurrently": "^8.0.0", "cowsay": "^1.6.0", "deep-diff": "^1.0.0", @@ -17725,16 +17725,16 @@ }, "packages/provisioning": { "name": "@zowe/provisioning-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "js-yaml": "^4.1.0" }, "devDependencies": { "@types/js-yaml": "^4.0.9", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17746,7 +17746,7 @@ }, "packages/secrets": { "name": "@zowe/secrets-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "hasInstallScript": true, "license": "EPL-2.0", "devDependencies": { @@ -17759,15 +17759,15 @@ }, "packages/workflows": { "name": "@zowe/zos-workflows-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17779,12 +17779,12 @@ }, "packages/zosconsole": { "name": "@zowe/zos-console-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17796,16 +17796,16 @@ }, "packages/zosfiles": { "name": "@zowe/zos-files-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "minimatch": "^9.0.3" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929", - "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406", + "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17838,15 +17838,15 @@ }, "packages/zosjobs": { "name": "@zowe/zos-jobs-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17858,12 +17858,12 @@ }, "packages/zoslogs": { "name": "@zowe/zos-logs-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17875,12 +17875,12 @@ }, "packages/zosmf": { "name": "@zowe/zosmf-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17892,15 +17892,15 @@ }, "packages/zostso": { "name": "@zowe/zos-tso-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { - "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" @@ -17912,15 +17912,15 @@ }, "packages/zosuss": { "name": "@zowe/zos-uss-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "license": "EPL-2.0", "dependencies": { "ssh2": "^1.15.0" }, "devDependencies": { "@types/ssh2": "^1.11.19", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index fb905086c3..7e186f98a6 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -2,13 +2,17 @@ All notable changes to the Zowe CLI package will be documented in this file. +## `8.0.0-next.202405231927` + +- LTS Breaking: Send all Zowe Daemon informational messages, progress messages, and error messages to standard error instead of standard output [#1451](https://github.com/zowe/zowe-cli/issues/1451) + ## `8.0.0-next.202405202020` - BugFix: Fixed a bug where a data set search would not return a search term if it was at the beginning of a line. [#2147](https://github.com/zowe/zowe-cli/pull/2147) ## `8.0.0-next.202405101931` -- Enhancement: Added the ability to search for a string in a data set or PDS member matching a pattern with the `zowe zos-files search data-sets` comamnd.[#2095](https://github.com/zowe/zowe-cli/issues/2095) +- Enhancement: Added the ability to search for a string in a data set or PDS member matching a pattern with the `zowe zos-files search data-sets` command.[#2095](https://github.com/zowe/zowe-cli/issues/2095) ## `8.0.0-next.202405061946` diff --git a/packages/cli/__tests__/zosconsole/__integration__/collect/__snapshots__/cli.zos-console.collect.response.integration.test.ts.snap b/packages/cli/__tests__/zosconsole/__integration__/collect/__snapshots__/cli.zos-console.collect.response.integration.test.ts.snap index 5378cc8051..48147e6429 100644 --- a/packages/cli/__tests__/zosconsole/__integration__/collect/__snapshots__/cli.zos-console.collect.response.integration.test.ts.snap +++ b/packages/cli/__tests__/zosconsole/__integration__/collect/__snapshots__/cli.zos-console.collect.response.integration.test.ts.snap @@ -190,7 +190,7 @@ Invalid value specified for option: You specified: 123@CA.COM -The value must match one of the following regular expressions: +The value must match one of the following options: [ '^[a-zA-Z0-9]+$' ]. Example: diff --git a/packages/cli/__tests__/zosconsole/__integration__/issue/__snapshots__/cli.zos-console.issue.command.integration.test.ts.snap b/packages/cli/__tests__/zosconsole/__integration__/issue/__snapshots__/cli.zos-console.issue.command.integration.test.ts.snap index 6d3defffaa..e98a637ad9 100644 --- a/packages/cli/__tests__/zosconsole/__integration__/issue/__snapshots__/cli.zos-console.issue.command.integration.test.ts.snap +++ b/packages/cli/__tests__/zosconsole/__integration__/issue/__snapshots__/cli.zos-console.issue.command.integration.test.ts.snap @@ -309,7 +309,7 @@ Invalid value specified for option: You specified: 123@CA.COM -The value must match one of the following regular expressions: +The value must match one of the following options: [ '^[a-zA-Z0-9]+$' ]. Example: diff --git a/packages/cli/package.json b/packages/cli/package.json index 229cff336f..cbb01e64fa 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/cli", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "zoweVersion": "V3", "description": "Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.", "author": "Zowe", @@ -58,17 +58,17 @@ "preshrinkwrap": "node ../../scripts/rewriteShrinkwrap.js" }, "dependencies": { - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929", - "@zowe/provisioning-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-console-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-jobs-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-logs-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-tso-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zos-workflows-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405211929", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406", + "@zowe/provisioning-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-console-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-jobs-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-logs-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-tso-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zos-workflows-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405241406", "find-process": "1.4.7", "lodash": "4.17.21", "minimatch": "9.0.3", @@ -78,13 +78,13 @@ "@types/diff": "^5.0.9", "@types/lodash": "^4.14.202", "@types/tar": "^6.1.11", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", + "@zowe/cli-test-utils": "8.0.0-next.202405241406", "comment-json": "^4.2.3", "strip-ansi": "^6.0.1", "which": "^4.0.0" }, "optionalDependencies": { - "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405241406" }, "engines": { "node": ">=18.12.0" diff --git a/packages/core/package.json b/packages/core/package.json index 4e443fa44d..872f988e8c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/core-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Core libraries shared by Zowe SDK packages", "author": "Zowe", "license": "EPL-2.0", @@ -49,8 +49,8 @@ "string-width": "^4.2.3" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/imperative": "^8.0.0-next" diff --git a/packages/imperative/CHANGELOG.md b/packages/imperative/CHANGELOG.md index 62ee0a11d4..152fe2fcd2 100644 --- a/packages/imperative/CHANGELOG.md +++ b/packages/imperative/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to the Imperative package will be documented in this file. ## Recent Changes - BugFix: Modified command output to show appropriate error message given availible ImperativeError properties. [#1897](https://github.com/zowe/zowe-cli/issues/1897) +- Patch: Modify error text in SyntaxValidator.invalidOptionError. [#2138](https://github.com/zowe/zowe-cli/issues/2138) ## `8.0.0-next.202405211929` diff --git a/packages/imperative/package.json b/packages/imperative/package.json index 73ad8bae07..e55fd767e9 100644 --- a/packages/imperative/package.json +++ b/packages/imperative/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/imperative", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "framework for building configurable CLIs", "author": "Zowe", "license": "EPL-2.0", @@ -92,7 +92,7 @@ "@types/pacote": "^11.1.8", "@types/progress": "^2.0.7", "@types/stack-trace": "^0.0.29", - "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405211929", + "@zowe/secrets-for-zowe-sdk": "8.0.0-next.202405241406", "concurrently": "^8.0.0", "cowsay": "^1.6.0", "deep-diff": "^1.0.0", diff --git a/packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts b/packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts index c4bda0e277..fbf48708d3 100644 --- a/packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts +++ b/packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts @@ -844,7 +844,7 @@ export class SyntaxValidator { const msg: string = responseObject.console.error( "Invalid value specified for option:\n{{long}} {{aliases}}\n\n" + "You specified:\n{{optionVal}}\n\n" + - "The value must match one of the following regular expressions:\n{{allowed}}.", + "The value must match one of the following options:\n{{allowed}}.", mustacheSummary); this.appendValidatorError(responseObject, {message: msg, optionInError: failingOption.name, definition: failingOption}); diff --git a/packages/provisioning/package.json b/packages/provisioning/package.json index 428d2785c1..59ceade0b2 100644 --- a/packages/provisioning/package.json +++ b/packages/provisioning/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/provisioning-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with the z/OS provisioning APIs", "author": "Zowe", "license": "EPL-2.0", @@ -49,9 +49,9 @@ }, "devDependencies": { "@types/js-yaml": "^4.0.9", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/secrets/package.json b/packages/secrets/package.json index 9c95ae55f8..a20bb1bd0a 100644 --- a/packages/secrets/package.json +++ b/packages/secrets/package.json @@ -3,7 +3,7 @@ "description": "Credential management facilities for Imperative, Zowe CLI, and extenders.", "repository": "https://github.com/zowe/zowe-cli.git", "author": "Zowe", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "homepage": "https://github.com/zowe/zowe-cli/tree/master/packages/secrets#readme", "bugs": { "url": "https://github.com/zowe/zowe-cli/issues" diff --git a/packages/workflows/package.json b/packages/workflows/package.json index a56f9d035e..736a2ac5dd 100644 --- a/packages/workflows/package.json +++ b/packages/workflows/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-workflows-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with the z/OS workflows APIs", "author": "Zowe", "license": "EPL-2.0", @@ -45,12 +45,12 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "dependencies": { - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zosconsole/package.json b/packages/zosconsole/package.json index 92d8d0f7d5..54826b79d6 100644 --- a/packages/zosconsole/package.json +++ b/packages/zosconsole/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-console-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with the z/OS console", "author": "Zowe", "license": "EPL-2.0", @@ -45,9 +45,9 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zosfiles/package.json b/packages/zosfiles/package.json index 5c64a90efd..87200e16da 100644 --- a/packages/zosfiles/package.json +++ b/packages/zosfiles/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-files-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with files and data sets on z/OS", "author": "Zowe", "license": "EPL-2.0", @@ -49,10 +49,10 @@ "minimatch": "^9.0.3" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929", - "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406", + "@zowe/zos-uss-for-zowe-sdk": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zosjobs/package.json b/packages/zosjobs/package.json index f749ac8296..94db798bff 100644 --- a/packages/zosjobs/package.json +++ b/packages/zosjobs/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-jobs-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with jobs on z/OS", "author": "Zowe", "license": "EPL-2.0", @@ -46,12 +46,12 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "dependencies": { - "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zos-files-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zoslogs/package.json b/packages/zoslogs/package.json index d766b6d720..d557fe192b 100644 --- a/packages/zoslogs/package.json +++ b/packages/zoslogs/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-logs-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with the z/OS logs", "author": "Zowe", "license": "EPL-2.0", @@ -45,9 +45,9 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zosmf/package.json b/packages/zosmf/package.json index 398735cc43..a9dcd6c60c 100644 --- a/packages/zosmf/package.json +++ b/packages/zosmf/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zosmf-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with the z/OS Management Facility", "author": "Zowe", "license": "EPL-2.0", @@ -44,9 +44,9 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zostso/package.json b/packages/zostso/package.json index f3f77ccd44..5496fe707d 100644 --- a/packages/zostso/package.json +++ b/packages/zostso/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-tso-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with TSO on z/OS", "author": "Zowe", "license": "EPL-2.0", @@ -45,12 +45,12 @@ "prepack": "node ../../scripts/prepareLicenses.js" }, "dependencies": { - "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405211929" + "@zowe/zosmf-for-zowe-sdk": "8.0.0-next.202405241406" }, "devDependencies": { - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/core-for-zowe-sdk": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/core-for-zowe-sdk": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/core-for-zowe-sdk": "^8.0.0-next", diff --git a/packages/zosuss/package.json b/packages/zosuss/package.json index 8aebdfd8e8..2ed7b19c51 100644 --- a/packages/zosuss/package.json +++ b/packages/zosuss/package.json @@ -1,6 +1,6 @@ { "name": "@zowe/zos-uss-for-zowe-sdk", - "version": "8.0.0-next.202405211929", + "version": "8.0.0-next.202405241406", "description": "Zowe SDK to interact with USS on z/OS", "author": "Zowe", "license": "EPL-2.0", @@ -49,8 +49,8 @@ }, "devDependencies": { "@types/ssh2": "^1.11.19", - "@zowe/cli-test-utils": "8.0.0-next.202405211929", - "@zowe/imperative": "8.0.0-next.202405211929" + "@zowe/cli-test-utils": "8.0.0-next.202405241406", + "@zowe/imperative": "8.0.0-next.202405241406" }, "peerDependencies": { "@zowe/imperative": "^8.0.0-next" diff --git a/zowex/Cargo.lock b/zowex/Cargo.lock index c456ddf987..301095f6e6 100644 --- a/zowex/Cargo.lock +++ b/zowex/Cargo.lock @@ -830,7 +830,7 @@ checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" [[package]] name = "zowe" -version = "1.2.2" +version = "1.2.3" dependencies = [ "base64", "fslock", diff --git a/zowex/Cargo.toml b/zowex/Cargo.toml index 4e04d82592..973093361e 100644 --- a/zowex/Cargo.toml +++ b/zowex/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zowe" -version = "1.2.2" +version = "1.2.3" authors = ["Zowe Project"] edition = "2018" license = "EPL-2.0" diff --git a/zowex/src/comm.rs b/zowex/src/comm.rs index f147f1337d..415cfc9458 100644 --- a/zowex/src/comm.rs +++ b/zowex/src/comm.rs @@ -9,7 +9,7 @@ * */ -// Functions related to daemon cummunication. +// Functions related to daemon communication. use std::io; use std::io::prelude::*; @@ -96,11 +96,11 @@ pub async fn comm_establish_connection( we_started_daemon = true; cmd_to_show = proc_start_daemon(njs_zowe_path); } else if we_started_daemon && conn_retries > THREE_MIN_OF_RETRIES { - println!( + eprintln!( "The Zowe daemon that we started is not running on socket: {}.", daemon_socket ); - println!( + eprintln!( "Command used to start the Zowe daemon was:\n {}\nTerminating.", cmd_to_show ); @@ -115,7 +115,7 @@ pub async fn comm_establish_connection( }; if conn_retries > 0 { - println!( + eprintln!( "{} ({} of {})", retry_msg, conn_retries, THREE_MIN_OF_RETRIES ); @@ -124,7 +124,7 @@ pub async fn comm_establish_connection( conn_retries += 1; if conn_retries > THREE_MIN_OF_RETRIES { - println!( + eprintln!( "Terminating after {} connection retries.", THREE_MIN_OF_RETRIES ); @@ -136,13 +136,13 @@ pub async fn comm_establish_connection( // before we wait too long, show diagnostics if conn_retries == RETRY_TO_SHOW_DIAG { - println!("\nThe Zowe daemon was started with these options:"); + eprintln!("\nThe Zowe daemon was started with these options:"); if we_started_daemon { - println!("Command = {}", cmd_to_show); + eprintln!("Command = {}", cmd_to_show); } else { - println!("Command = {}", daemon_proc_info.cmd); + eprintln!("Command = {}", daemon_proc_info.cmd); } - println!( + eprintln!( "Process name = {} pid = {} socket = {}\n", daemon_proc_info.name, daemon_proc_info.pid, daemon_socket ); diff --git a/zowex/src/proc.rs b/zowex/src/proc.rs index 5cbd0bcdb1..51eb19f5b0 100644 --- a/zowex/src/proc.rs +++ b/zowex/src/proc.rs @@ -196,7 +196,7 @@ fn read_pid_for_user() -> Option { Ok(ok_val) => ok_val, Err(err_val) => { // we should not continue if we cannot open an existing pid file - println!( + eprintln!( "Unable to open file = {}\nDetails = {}", pid_file_path.display(), err_val @@ -209,7 +209,7 @@ fn read_pid_for_user() -> Option { Ok(ok_val) => ok_val, Err(err_val) => { // we should not continue if we cannot read an existing pid file - println!( + eprintln!( "Unable to read file = {}\nDetails = {}", pid_file_path.display(), err_val @@ -222,7 +222,7 @@ fn read_pid_for_user() -> Option { if daemon_pid_for_user.user != executor { // our pid file should only contain our own user name - println!( + eprintln!( "User name of '{}' in file '{}' does not match current user = '{}'.", daemon_pid_for_user.user, pid_file_path.display(), @@ -273,11 +273,11 @@ fn read_pid_for_user() -> Option { */ pub fn proc_start_daemon(njs_zowe_path: &str) -> String { - println!("Starting a background process to increase performance ..."); + eprintln!("Starting a background process to increase performance ..."); let daemon_arg = LAUNCH_DAEMON_OPTION; let mut cmd = Command::new(njs_zowe_path); - + // Uses creation flags from https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags // Flags are CREATE_NO_WINDOW, CREATE_NEW_PROCESS_GROUP, and CREATE_UNICODE_ENVIRONMENT #[cfg(target_family = "windows")] @@ -291,11 +291,11 @@ pub fn proc_start_daemon(njs_zowe_path: &str) -> String { { Ok(_unused) => { /* nothing to do */ } Err(error) => { - println!( + eprintln!( "Failed to start the following process:\n {} {}", njs_zowe_path, daemon_arg ); - println!("Due to this error:\n {}", error); + eprintln!("Due to this error:\n {}", error); std::process::exit(EXIT_CODE_CANNOT_START_DAEMON); } }; diff --git a/zowex/src/run.rs b/zowex/src/run.rs index b01ba1a6b7..2d5ff8f077 100644 --- a/zowex/src/run.rs +++ b/zowex/src/run.rs @@ -96,17 +96,17 @@ pub async fn run_zowe_command(zowe_cmd_args: &mut Vec) -> Result Result { if proc_get_daemon_info().is_running { - println!("Shutting down the running daemon ..."); + eprintln!("Shutting down the running daemon ..."); let mut restart_cmd_args: Vec = vec![SHUTDOWN_REQUEST.to_string()]; if let Err(err_val) = run_daemon_command(njs_zowe_path, &mut restart_cmd_args).await { - println!("Unable to communicate a command to the Zowe daemon."); + eprintln!("Unable to communicate a command to the Zowe daemon."); return Err(err_val); } } // Start a new daemon. Note that proc_start_daemon() exits on failure. proc_start_daemon(njs_zowe_path); - println!("A new daemon has started."); + eprintln!("A new daemon has started."); Ok(EXIT_CODE_SUCCESS) } @@ -134,12 +134,12 @@ fn run_nodejs_command(njs_zowe_path: &str, zowe_cmd_args: &mut Vec) -> R { Ok(new_proc) => new_proc.status.code().unwrap(), Err(error) => { - println!("Failed to run the following command:"); - println!( + eprintln!("Failed to run the following command:"); + eprintln!( " Program = {}\n arguments = {:?}", njs_zowe_path, zowe_cmd_args ); - println!("Due to this error:\n {}", error); + eprintln!("Due to this error:\n {}", error); EXIT_CODE_FAILED_TO_RUN_NODEJS_CMD } }; @@ -177,12 +177,12 @@ fn run_delayed_zowe_command(njs_zowe_path: &str, zowe_cmd_args: &[String]) -> Re let (curr_cmd_shell, cmd_shell_nm) = match proc_get_cmd_shell() { Ok((curr_cmd_shell, cmd_shell_nm)) => (curr_cmd_shell, cmd_shell_nm), Err(error) => { - println!("{} Terminating.", error); + eprintln!("{} Terminating.", error); return Err(EXIT_CODE_CANT_FIND_CMD_SHELL); } }; if matches!(curr_cmd_shell, CmdShell::Unknown) { - println!( + eprintln!( "The command shell process named '{}' is unknown to the Zowe CLI. Terminating.", cmd_shell_nm ); @@ -205,9 +205,9 @@ fn run_delayed_zowe_command(njs_zowe_path: &str, zowe_cmd_args: &[String]) -> Re ); // The following line gives useful debugging info when it is uncommented. - // println!("script_arg_vec = {:?}", script_arg_vec); + // eprintln!("script_arg_vec = {:?}", script_arg_vec); - println!( + eprintln!( "The '{}' command will run in the background ...", arg_vec_to_string(zowe_cmd_args) ); @@ -220,12 +220,12 @@ fn run_delayed_zowe_command(njs_zowe_path: &str, zowe_cmd_args: &[String]) -> Re { Ok(..) => Ok(EXIT_CODE_SUCCESS), Err(err_val) => { - println!("Failed to run the following command:"); - println!( + eprintln!("Failed to run the following command:"); + eprintln!( " cmd_shell_to_launch = {}\n arguments = {:?}", njs_zowe_path, zowe_cmd_args ); - println!("Due to this error:\n {}", err_val); + eprintln!("Due to this error:\n {}", err_val); Err(EXIT_CODE_FAILED_TO_RUN_NODEJS_CMD) } }; @@ -252,7 +252,7 @@ pub async fn run_daemon_command( let cwd: PathBuf = match env::current_dir() { Ok(ok_val) => ok_val, Err(err_val) => { - println!("Unable to get current directory\nDetails = {:?}", err_val); + eprintln!("Unable to get current directory\nDetails = {:?}", err_val); return Err(EXIT_CODE_ENV_ERROR); } }; @@ -260,7 +260,7 @@ pub async fn run_daemon_command( let mut stdin = Vec::new(); if !std::io::stdin().is_terminal() { if let Err(err_val) = io::stdin().read_to_end(&mut stdin) { - println!("Failed reading stdin\nDetails = {}", err_val); + eprintln!("Failed reading stdin\nDetails = {}", err_val); return Err(EXIT_CODE_COMM_IO_ERROR); } } @@ -301,7 +301,7 @@ pub async fn run_daemon_command( } } Err(err_val) => { - println!("Failed convert response to JSON\nDetails = {}", err_val); + eprintln!("Failed to convert response to JSON\nDetails = {}", err_val); return Err(EXIT_CODE_CANT_CONVERT_JSON); } } @@ -323,7 +323,7 @@ pub async fn run_daemon_command( match lock_file.try_lock() { Ok(result) if !result => { if tries > THREE_MIN_OF_RETRIES { - println!( + eprintln!( "Terminating after {} connection retries.", THREE_MIN_OF_RETRIES ); @@ -331,7 +331,7 @@ pub async fn run_daemon_command( } tries += 1; - println!( + eprintln!( "The Zowe daemon is in use, retrying ({} of {})", tries, THREE_MIN_OF_RETRIES ); @@ -344,7 +344,7 @@ pub async fn run_daemon_command( locked = true; } Err(ref e) => { - println!("Problem acquiring lock: {:?}", e); + eprintln!("Problem acquiring lock: {:?}", e); return Err(EXIT_CODE_CANNOT_ACQUIRE_LOCK); } } @@ -354,7 +354,7 @@ pub async fn run_daemon_command( match comm_establish_connection(njs_zowe_path, &socket_string).await { Ok(ok_val) => stream = ok_val, Err(err_val) => { - println!( + eprintln!( "Unable to establish communication with daemon.\nDetails = {}", err_val ); @@ -369,7 +369,7 @@ pub async fn run_daemon_command( Err(ref err_val) => { if err_val.kind() == io::ErrorKind::ConnectionReset { if tries > THREE_MIN_OF_RETRIES { - println!( + eprintln!( "Terminating after {} connection retries.", THREE_MIN_OF_RETRIES ); @@ -377,7 +377,7 @@ pub async fn run_daemon_command( } tries += 1; - println!( + eprintln!( "The Zowe daemon is in use, retrying ({} of {})", tries, THREE_MIN_OF_RETRIES ); @@ -385,7 +385,7 @@ pub async fn run_daemon_command( // pause between attempts to connect thread::sleep(Duration::from_secs(THREE_SEC_DELAY)); } else { - println!( + eprintln!( "I/O error during daemon communication.\nDetails = {}", err_val ); @@ -648,21 +648,21 @@ fn get_win_lock_file() -> Result { lock_path.push("daemon.lock"); if let Err(err_val) = File::create(&lock_path) { - println!( + eprintln!( "Unable to create zowe daemon lock file = {}.", &lock_path.display() ); - println!("Reason = {}.", err_val); + eprintln!("Reason = {}.", err_val); return Err(EXIT_CODE_FILE_IO_ERROR); } let lock_file: LockFile = match LockFile::open(&lock_path) { Ok(ok_val) => ok_val, Err(err_val) => { - println!( + eprintln!( "Unable to open zowe daemon lock file = {}.", &lock_path.display() ); - println!("Reason = {}.", err_val); + eprintln!("Reason = {}.", err_val); return Err(EXIT_CODE_FILE_IO_ERROR); } }; diff --git a/zowex/src/util.rs b/zowex/src/util.rs index fb607309d9..53cbe1ef31 100644 --- a/zowex/src/util.rs +++ b/zowex/src/util.rs @@ -44,7 +44,7 @@ pub fn util_get_nodejs_zowe_path() -> String { */ let my_exe_result = env::current_exe(); if my_exe_result.is_err() { - println!("Unable to get path to my own executable. Terminating."); + eprintln!("Unable to get path to my own executable. Terminating."); std::process::exit(EXIT_CODE_CANNOT_GET_MY_PATH); } let my_exe_path_buf = my_exe_result.unwrap(); @@ -73,8 +73,8 @@ pub fn util_get_nodejs_zowe_path() -> String { break; } if njs_zowe_path == NOT_FOUND { - println!("Could not find a NodeJS zowe command on your path."); - println!("Will not be able to run Zowe commands. Terminating."); + eprintln!("Could not find a NodeJS zowe command on your path."); + eprintln!("Will not be able to run Zowe commands. Terminating."); std::process::exit(EXIT_CODE_NO_NODEJS_ZOWE_ON_PATH); } @@ -96,7 +96,7 @@ pub fn util_get_daemon_dir() -> Result { match home_dir() { Some(path_buf_val) => daemon_dir = path_buf_val, None => { - println!("Unable to get user's home directory."); + eprintln!("Unable to get user's home directory."); return Err(EXIT_CODE_ENV_ERROR); } } @@ -106,11 +106,11 @@ pub fn util_get_daemon_dir() -> Result { if !daemon_dir.exists() { if let Err(err_val) = std::fs::create_dir_all(&daemon_dir) { - println!( + eprintln!( "Unable to create zowe daemon directory = {}.", &daemon_dir.display() ); - println!("Reason = {}.", err_val); + eprintln!("Reason = {}.", err_val); return Err(EXIT_CODE_FILE_IO_ERROR); } } @@ -178,6 +178,6 @@ pub fn util_terminal_supports_color() -> i32 { return 1; } } - + 0 } \ No newline at end of file