From 7af4954c94c60d28d2df8f5927311146fc5b5cb3 Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Fri, 20 Oct 2023 12:31:33 -0400 Subject: [PATCH 1/7] adding to zosfiles.messages for return message in ftp plugin Signed-off-by: Amber Torrise --- packages/zosfiles/src/constants/ZosFiles.messages.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/zosfiles/src/constants/ZosFiles.messages.ts b/packages/zosfiles/src/constants/ZosFiles.messages.ts index 1ec1694775..728850e609 100644 --- a/packages/zosfiles/src/constants/ZosFiles.messages.ts +++ b/packages/zosfiles/src/constants/ZosFiles.messages.ts @@ -728,6 +728,14 @@ export const ZosFilesMessages: { [key: string]: IMessageDefinition } = { message: "for" }, + /** + * Message indicating invalid characters in file name + * @type {IMessageDefinition} + */ + invalidFileName: { + message: "Invalid file name. Please check the file name for typos." + }, + /** * Message to be used when throwing an imperative error during data set creation * @type {IMessageDefinition} From 0426b907bc5cbc111ea4d7523e7a2c6d7eba6002 Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Fri, 20 Oct 2023 13:36:45 -0400 Subject: [PATCH 2/7] adding a check for the existance of these constant files since they are dependencies for other processess Signed-off-by: Amber Torrise --- .../__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts index bbf02e81da..666d8d1cc3 100644 --- a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts +++ b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts @@ -13,6 +13,8 @@ import * as path from "path"; import * as fs from "fs"; import { IO } from "@zowe/imperative"; import { ZosFilesUtils } from "../../../src/utils/ZosFilesUtils"; +import { ZosFilesConstants } from "../../../src/constants/ZosFiles.constants"; +import { ZosFilesMessages } from "../../../src/constants/ZosFiles.messages"; jest.mock("fs"); @@ -25,6 +27,12 @@ describe("ZosFilesUtils", () => { // Default file extension expect(ZosFilesUtils.DEFAULT_FILE_EXTENSION).toEqual("txt"); }); + + it('should check if constant files are loaded and exist', () => { + expect(ZosFilesConstants).toBeDefined(); + expect(ZosFilesMessages).toBeDefined(); + }); + }); describe("getDirsFromDataSet", () => { From 3e54086c03436f94c13b4c0d40097445ea558c0b Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Fri, 20 Oct 2023 14:48:37 -0400 Subject: [PATCH 3/7] adding snapshot of constants Signed-off-by: Amber Torrise --- .../__unit__/utils/ZosFilesUtils.unit.test.ts | 6 +- .../ZosFilesUtils.unit.test.ts.snap | 334 ++++++++++++++++++ 2 files changed, 337 insertions(+), 3 deletions(-) create mode 100644 packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap diff --git a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts index 666d8d1cc3..63903494f2 100644 --- a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts +++ b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts @@ -28,9 +28,9 @@ describe("ZosFilesUtils", () => { expect(ZosFilesUtils.DEFAULT_FILE_EXTENSION).toEqual("txt"); }); - it('should check if constant files are loaded and exist', () => { - expect(ZosFilesConstants).toBeDefined(); - expect(ZosFilesMessages).toBeDefined(); + it('should check if constant files have the expected constants loaded', () => { + expect(ZosFilesConstants).toMatchSnapshot(); + expect(ZosFilesMessages).toMatchSnapshot(); }); }); diff --git a/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap b/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap new file mode 100644 index 0000000000..169c04a6a8 --- /dev/null +++ b/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap @@ -0,0 +1,334 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ZosFilesUtils CONSTANTS should check if constant files have the expected constants loaded 1`] = ` +Object { + "MAX_ALLOC_QUANTITY": 16777215, + "MAX_AMS_BUFFER": 2, + "MAX_AMS_LINE": 255, + "MAX_RETAIN_DAYS": 93000, + "MIN_RETAIN_DAYS": 0, + "RESOURCE": "/zosmf/restfiles", + "RES_AMS": "/ams", + "RES_DEPTH": "depth", + "RES_DS_FILES": "/ds", + "RES_DS_LEVEL": "dslevel", + "RES_DS_MEMBERS": "/member", + "RES_FILESYS": "filesys", + "RES_FSNAME": "fsname", + "RES_GROUP": "group", + "RES_MFS": "/mfs", + "RES_MTIME": "mtime", + "RES_NAME": "name", + "RES_PATH": "path", + "RES_PERM": "perm", + "RES_SIZE": "size", + "RES_SYMLINKS": "symlinks", + "RES_TYPE": "type", + "RES_USER": "user", + "RES_USS_FILES": "/fs", + "RES_ZFS_FILES": "/mfs/zfs", + "VSAM_ALCUNIT_CHOICES": Array [ + "CYL", + "TRK", + "MB", + "KB", + "REC", + ], + "VSAM_DSORG_CHOICES": Array [ + "INDEXED", + "IXD", + "LINEAR", + "LIN", + "NONINDEXED", + "NIXD", + "NUMBERED", + "NUMD", + "ZFS", + ], +} +`; + +exports[`ZosFilesUtils CONSTANTS should check if constant files have the expected constants loaded 2`] = ` +Object { + "allDataSetsArchived": Object { + "message": "All data sets matching the selected pattern(s) were archived.", + }, + "amsCommandExecutedSuccessfully": Object { + "message": "AMS command executed successfully.", + }, + "attributeTitle": Object { + "message": "The following attributes are used during creation: +", + }, + "attributesFileNotFound": Object { + "message": "Attributes file {{file}} does not exist", + }, + "commonFor": Object { + "message": "for", + }, + "commonWithValue": Object { + "message": "with value", + }, + "dataSetCreatedSuccessfully": Object { + "message": "Data set created successfully.", + }, + "dataSetRenamedSuccessfully": Object { + "message": "Data set renamed successfully.", + }, + "dataSetUploadedSuccessfully": Object { + "message": "Data set uploaded successfully.", + }, + "dataSetsMatchedPattern": Object { + "message": "%d data set(s) were found matching pattern.", + }, + "datasetCopiedAborted": Object { + "message": "Data set copied aborted. The existing target data set was not overwritten.", + }, + "datasetCopiedAbortedNoPDS": Object { + "message": "Data set copied aborted. Copying from a PDS to PDS is not supported when using the 'dsclp' option.", + }, + "datasetCopiedAbortedNoTargetDS": Object { + "message": "Data set copied aborted. The source data set was not found.", + }, + "datasetCopiedAbortedTargetNotPDSMember": Object { + "message": "Data set copied aborted. Copying to a PDS without a member name is not supported when using the 'dsclp' option.", + }, + "datasetCopiedSuccessfully": Object { + "message": "Data set copied successfully.", + }, + "datasetDeletedSuccessfully": Object { + "message": "Data set deleted successfully.", + }, + "datasetDeletionRequested": Object { + "message": "Data set deletion requested.", + }, + "datasetDownloadFailed": Object { + "message": "Failed to download the following data sets: +", + }, + "datasetDownloadedSuccessfully": Object { + "message": "Data set downloaded successfully.", + }, + "datasetDownloadedWithDestination": Object { + "message": "Data set downloaded successfully. +Destination: %s", + }, + "datasetMemberCopiedAborted": Object { + "message": "Data set copied aborted. The existing target data set member was not overwritten.", + }, + "datasetMigrationRequested": Object { + "message": "Data set migration requested.", + }, + "datasetRecallRequested": Object { + "message": "Data set recall requested.", + }, + "datasetRecalledSuccessfully": Object { + "message": "Data set recall requested.", + }, + "datasetsDownloadedSuccessfully": Object { + "message": "Data sets matching pattern downloaded successfully. +Destination: %s", + }, + "errorParsingAttributesFile": Object { + "message": "Error parsing attributes file {{file}}: {{message}}", + }, + "errorReadingAttributesFile": Object { + "message": "Could not read attributes file {{file}}: {{message}}", + }, + "failedToDownloadDataSets": Object { + "message": "Failed to download data sets", + }, + "fsMountedSuccessfully": Object { + "message": "File system mounted successfully.", + }, + "fsUnmountedSuccessfully": Object { + "message": "File system unmounted successfully.", + }, + "invalidAlcunitOption": Object { + "message": "Invalid zos-files create command 'alcunit' option: ", + }, + "invalidAttributesSyntax": Object { + "message": "Syntax error on line {{lineNumber}} - expected .", + }, + "invalidDsntypeOption": Object { + "message": "Invalid zos-files create command 'dsntype' option: ", + }, + "invalidDsorgOption": Object { + "message": "Invalid zos-files create command 'dsorg' option: ", + }, + "invalidFileName": Object { + "message": "Invalid file name. Please check the file name for typos.", + }, + "invalidFilesCreateOption": Object { + "message": "Invalid zos-files create command option: ", + }, + "invalidFilesMountOption": Object { + "message": "Invalid zos-files mount command option: ", + }, + "invalidMountModeOption": Object { + "message": "Invalid zos-files mount command 'mode' value: ", + }, + "invalidPODsorgDirblkCombination": Object { + "message": "'PO' data set organization (dsorg) specified and the directory blocks (dirblk) is zero.", + }, + "invalidPSDsorgDirblkCombination": Object { + "message": "'PS' data set organization (dsorg) specified and the directory blocks (dirblk) is not zero.", + }, + "invalidPermsOption": Object { + "message": "Invalid zos-files create command 'perms' option: ", + }, + "invalidRecfmOption": Object { + "message": "Invalid zos-files create command 'recfm' option: ", + }, + "longAmsStatement": Object { + "message": "Line %d is longer than %d characters (maximum allowed length) +%s", + }, + "maximumAllocationQuantityExceeded": Object { + "message": "Maximum allocation quantity of 16777215 exceeded", + }, + "memberDownloadFailed": Object { + "message": "Failed to download the following members: +", + }, + "missingDataSets": Object { + "message": "No list of data sets to download was passed.", + }, + "missingDatasetLikeName": Object { + "message": "Specify the name of the data set to \\"allocate like\\" from.", + }, + "missingDatasetName": Object { + "message": "Specify the data set name.", + }, + "missingDatasetType": Object { + "message": "Specify the data set type.", + }, + "missingFileSystemName": Object { + "message": "Specify the file system name.", + }, + "missingFilesCreateOptions": Object { + "message": "No zos-files create command options.", + }, + "missingFilesMountOptions": Object { + "message": "No zos-files mount command options.", + }, + "missingFsOption": Object { + "message": "To mount a file system, the following option must be supplied: ", + }, + "missingInputDir": Object { + "message": "Specify the input directory path.", + }, + "missingInputDirectory": Object { + "message": "Specify directory path, to upload.", + }, + "missingInputFile": Object { + "message": "Specify the input file and, if needed, the path.", + }, + "missingMountPoint": Object { + "message": "Specify the mount point.", + }, + "missingPatterns": Object { + "message": "No pattern to match data sets passed.", + }, + "missingPayload": Object { + "message": "Specify the payload.", + }, + "missingPrimary": Object { + "message": "Specify the primary allocation (primary) to create a data set.", + }, + "missingRecordLength": Object { + "message": "Specify the record length (lrecl) to create a data set.", + }, + "missingRequestType": Object { + "message": "Specify request type, file or directory.", + }, + "missingRequiredTableParameters": Object { + "message": "Options 'depth', 'filesys', and 'symlinks' require a 'group', 'user', 'name', 'size', 'mtime', 'perm', or 'type' option to be specified.", + }, + "missingStatements": Object { + "message": "Missing AMS statements to be submitted.", + }, + "missingUSSDirName": Object { + "message": "Specify the USS directory name.", + }, + "missingUSSDirectoryName": Object { + "message": "Specify the USS directory name.", + }, + "missingUSSFileName": Object { + "message": "Specify the USS file name.", + }, + "missingVsamOption": Object { + "message": "To create a VSAM cluster, the following option must be supplied: ", + }, + "missingZfsOption": Object { + "message": "To create a z/OS file system, the following option must be supplied: ", + }, + "noDataSetsInList": Object { + "message": "No data sets left after excluded pattern(s) were filtered out.", + }, + "noDataSetsMatchingPattern": Object { + "message": "There are no data sets that match the provided pattern(s).", + }, + "noDataSetsMatchingPatternRemain": Object { + "message": "After filtering out the archived files and files that match the exclusion-parameters, no data sets matching the supported organization type remain.", + }, + "noMembersFound": Object { + "message": "No members found!", + }, + "nodeJsFsError": Object { + "message": "Node.js File System API error", + }, + "onlyEmptyPartitionedDataSets": Object { + "message": "Only empty partitioned data sets match the provided patterns.", + }, + "pathIsNotDirectory": Object { + "message": "%s is not a directory", + }, + "someDownloadsFailed": Object { + "message": "Some downloads failed, see error details above", + }, + "unsupportedDataType": Object { + "message": "Unsupported data type 'record' specified for USS file operation.", + }, + "unsupportedDatasetType": Object { + "message": "Unsupported data set type.", + }, + "unsupportedMaskingInDataSetName": Object { + "message": "Unsupported masking character found in data set name.", + }, + "uploadDirectoryToDatasetMember": Object { + "message": "Upload a directory to a data set member is not permitted", + }, + "uploadDirectoryToPhysicalSequentialDataSet": Object { + "message": "Upload a directory with multiple files to a physical sequential data set is not permitted", + }, + "ussCreatedSuccessfully": Object { + "message": "USS file or directory created successfully.", + }, + "ussDirUploadedSuccessfully": Object { + "message": "Directory uploaded successfully.", + }, + "ussFileDeletedSuccessfully": Object { + "message": "USS File or directory deleted successfully.", + }, + "ussFileDownloadedSuccessfully": Object { + "message": "USS file downloaded successfully.", + }, + "ussFileDownloadedWithDestination": Object { + "message": "USS file downloaded successfully. +Destination: %s", + }, + "ussFileUploadedSuccessfully": Object { + "message": "USS file uploaded successfully.", + }, + "valueOutOfBounds": Object { + "message": "The {{optionName}} value = '{{value}}' must be between {{minValue}} and {{maxValue}}.", + }, + "zfsCreatedSuccessfully": Object { + "message": "z/OS file system created successfully.", + }, + "zfsDeletedSuccessfully": Object { + "message": "z/OS file system deleted successfully.", + }, +} +`; From ed36b9dd4f3983138fcd6074ff0b01f7d56d941f Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Fri, 20 Oct 2023 14:51:35 -0400 Subject: [PATCH 4/7] adding changelog Signed-off-by: Amber Torrise --- packages/zosfiles/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/zosfiles/CHANGELOG.md b/packages/zosfiles/CHANGELOG.md index 09d7ba3291..cf645ca3ea 100644 --- a/packages/zosfiles/CHANGELOG.md +++ b/packages/zosfiles/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to the Zowe z/OS files SDK package will be documented in this file. +## Recent Changes +- Enhancement: Patch that adds invalidFileName to ZosFilesMessages + ## `7.18.0` - BugFix: Fixed error when listing data set members that include double quote in the name. From bc06efdcdb754f52f1a6552b48dcd32158765716 Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Tue, 24 Oct 2023 09:59:38 -0400 Subject: [PATCH 5/7] adding to zosfiles.messages for return message in ftp plugin Signed-off-by: Amber Torrise --- packages/zosfiles/CHANGELOG.md | 3 + .../__unit__/utils/ZosFilesUtils.unit.test.ts | 7 + .../ZosFilesUtils.unit.test.ts.snap | 334 ++++++++++++++++++ .../src/constants/ZosFiles.messages.ts | 8 + 4 files changed, 352 insertions(+) create mode 100644 packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap diff --git a/packages/zosfiles/CHANGELOG.md b/packages/zosfiles/CHANGELOG.md index 09d7ba3291..cf645ca3ea 100644 --- a/packages/zosfiles/CHANGELOG.md +++ b/packages/zosfiles/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to the Zowe z/OS files SDK package will be documented in this file. +## Recent Changes +- Enhancement: Patch that adds invalidFileName to ZosFilesMessages + ## `7.18.0` - BugFix: Fixed error when listing data set members that include double quote in the name. diff --git a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts index bbf02e81da..6e200dec6d 100644 --- a/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts +++ b/packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts @@ -13,6 +13,8 @@ import * as path from "path"; import * as fs from "fs"; import { IO } from "@zowe/imperative"; import { ZosFilesUtils } from "../../../src/utils/ZosFilesUtils"; +import { ZosFilesConstants } from "../../../src/constants/ZosFiles.constants"; +import { ZosFilesMessages } from "../../../src/constants/ZosFiles.messages"; jest.mock("fs"); @@ -25,6 +27,11 @@ describe("ZosFilesUtils", () => { // Default file extension expect(ZosFilesUtils.DEFAULT_FILE_EXTENSION).toEqual("txt"); }); + + it('should check if constant files have the expected constants loaded', () => { + expect(ZosFilesConstants).toMatchSnapshot(); + expect(ZosFilesMessages).toMatchSnapshot(); + }); }); describe("getDirsFromDataSet", () => { diff --git a/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap b/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap new file mode 100644 index 0000000000..169c04a6a8 --- /dev/null +++ b/packages/zosfiles/__tests__/__unit__/utils/__snapshots__/ZosFilesUtils.unit.test.ts.snap @@ -0,0 +1,334 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ZosFilesUtils CONSTANTS should check if constant files have the expected constants loaded 1`] = ` +Object { + "MAX_ALLOC_QUANTITY": 16777215, + "MAX_AMS_BUFFER": 2, + "MAX_AMS_LINE": 255, + "MAX_RETAIN_DAYS": 93000, + "MIN_RETAIN_DAYS": 0, + "RESOURCE": "/zosmf/restfiles", + "RES_AMS": "/ams", + "RES_DEPTH": "depth", + "RES_DS_FILES": "/ds", + "RES_DS_LEVEL": "dslevel", + "RES_DS_MEMBERS": "/member", + "RES_FILESYS": "filesys", + "RES_FSNAME": "fsname", + "RES_GROUP": "group", + "RES_MFS": "/mfs", + "RES_MTIME": "mtime", + "RES_NAME": "name", + "RES_PATH": "path", + "RES_PERM": "perm", + "RES_SIZE": "size", + "RES_SYMLINKS": "symlinks", + "RES_TYPE": "type", + "RES_USER": "user", + "RES_USS_FILES": "/fs", + "RES_ZFS_FILES": "/mfs/zfs", + "VSAM_ALCUNIT_CHOICES": Array [ + "CYL", + "TRK", + "MB", + "KB", + "REC", + ], + "VSAM_DSORG_CHOICES": Array [ + "INDEXED", + "IXD", + "LINEAR", + "LIN", + "NONINDEXED", + "NIXD", + "NUMBERED", + "NUMD", + "ZFS", + ], +} +`; + +exports[`ZosFilesUtils CONSTANTS should check if constant files have the expected constants loaded 2`] = ` +Object { + "allDataSetsArchived": Object { + "message": "All data sets matching the selected pattern(s) were archived.", + }, + "amsCommandExecutedSuccessfully": Object { + "message": "AMS command executed successfully.", + }, + "attributeTitle": Object { + "message": "The following attributes are used during creation: +", + }, + "attributesFileNotFound": Object { + "message": "Attributes file {{file}} does not exist", + }, + "commonFor": Object { + "message": "for", + }, + "commonWithValue": Object { + "message": "with value", + }, + "dataSetCreatedSuccessfully": Object { + "message": "Data set created successfully.", + }, + "dataSetRenamedSuccessfully": Object { + "message": "Data set renamed successfully.", + }, + "dataSetUploadedSuccessfully": Object { + "message": "Data set uploaded successfully.", + }, + "dataSetsMatchedPattern": Object { + "message": "%d data set(s) were found matching pattern.", + }, + "datasetCopiedAborted": Object { + "message": "Data set copied aborted. The existing target data set was not overwritten.", + }, + "datasetCopiedAbortedNoPDS": Object { + "message": "Data set copied aborted. Copying from a PDS to PDS is not supported when using the 'dsclp' option.", + }, + "datasetCopiedAbortedNoTargetDS": Object { + "message": "Data set copied aborted. The source data set was not found.", + }, + "datasetCopiedAbortedTargetNotPDSMember": Object { + "message": "Data set copied aborted. Copying to a PDS without a member name is not supported when using the 'dsclp' option.", + }, + "datasetCopiedSuccessfully": Object { + "message": "Data set copied successfully.", + }, + "datasetDeletedSuccessfully": Object { + "message": "Data set deleted successfully.", + }, + "datasetDeletionRequested": Object { + "message": "Data set deletion requested.", + }, + "datasetDownloadFailed": Object { + "message": "Failed to download the following data sets: +", + }, + "datasetDownloadedSuccessfully": Object { + "message": "Data set downloaded successfully.", + }, + "datasetDownloadedWithDestination": Object { + "message": "Data set downloaded successfully. +Destination: %s", + }, + "datasetMemberCopiedAborted": Object { + "message": "Data set copied aborted. The existing target data set member was not overwritten.", + }, + "datasetMigrationRequested": Object { + "message": "Data set migration requested.", + }, + "datasetRecallRequested": Object { + "message": "Data set recall requested.", + }, + "datasetRecalledSuccessfully": Object { + "message": "Data set recall requested.", + }, + "datasetsDownloadedSuccessfully": Object { + "message": "Data sets matching pattern downloaded successfully. +Destination: %s", + }, + "errorParsingAttributesFile": Object { + "message": "Error parsing attributes file {{file}}: {{message}}", + }, + "errorReadingAttributesFile": Object { + "message": "Could not read attributes file {{file}}: {{message}}", + }, + "failedToDownloadDataSets": Object { + "message": "Failed to download data sets", + }, + "fsMountedSuccessfully": Object { + "message": "File system mounted successfully.", + }, + "fsUnmountedSuccessfully": Object { + "message": "File system unmounted successfully.", + }, + "invalidAlcunitOption": Object { + "message": "Invalid zos-files create command 'alcunit' option: ", + }, + "invalidAttributesSyntax": Object { + "message": "Syntax error on line {{lineNumber}} - expected .", + }, + "invalidDsntypeOption": Object { + "message": "Invalid zos-files create command 'dsntype' option: ", + }, + "invalidDsorgOption": Object { + "message": "Invalid zos-files create command 'dsorg' option: ", + }, + "invalidFileName": Object { + "message": "Invalid file name. Please check the file name for typos.", + }, + "invalidFilesCreateOption": Object { + "message": "Invalid zos-files create command option: ", + }, + "invalidFilesMountOption": Object { + "message": "Invalid zos-files mount command option: ", + }, + "invalidMountModeOption": Object { + "message": "Invalid zos-files mount command 'mode' value: ", + }, + "invalidPODsorgDirblkCombination": Object { + "message": "'PO' data set organization (dsorg) specified and the directory blocks (dirblk) is zero.", + }, + "invalidPSDsorgDirblkCombination": Object { + "message": "'PS' data set organization (dsorg) specified and the directory blocks (dirblk) is not zero.", + }, + "invalidPermsOption": Object { + "message": "Invalid zos-files create command 'perms' option: ", + }, + "invalidRecfmOption": Object { + "message": "Invalid zos-files create command 'recfm' option: ", + }, + "longAmsStatement": Object { + "message": "Line %d is longer than %d characters (maximum allowed length) +%s", + }, + "maximumAllocationQuantityExceeded": Object { + "message": "Maximum allocation quantity of 16777215 exceeded", + }, + "memberDownloadFailed": Object { + "message": "Failed to download the following members: +", + }, + "missingDataSets": Object { + "message": "No list of data sets to download was passed.", + }, + "missingDatasetLikeName": Object { + "message": "Specify the name of the data set to \\"allocate like\\" from.", + }, + "missingDatasetName": Object { + "message": "Specify the data set name.", + }, + "missingDatasetType": Object { + "message": "Specify the data set type.", + }, + "missingFileSystemName": Object { + "message": "Specify the file system name.", + }, + "missingFilesCreateOptions": Object { + "message": "No zos-files create command options.", + }, + "missingFilesMountOptions": Object { + "message": "No zos-files mount command options.", + }, + "missingFsOption": Object { + "message": "To mount a file system, the following option must be supplied: ", + }, + "missingInputDir": Object { + "message": "Specify the input directory path.", + }, + "missingInputDirectory": Object { + "message": "Specify directory path, to upload.", + }, + "missingInputFile": Object { + "message": "Specify the input file and, if needed, the path.", + }, + "missingMountPoint": Object { + "message": "Specify the mount point.", + }, + "missingPatterns": Object { + "message": "No pattern to match data sets passed.", + }, + "missingPayload": Object { + "message": "Specify the payload.", + }, + "missingPrimary": Object { + "message": "Specify the primary allocation (primary) to create a data set.", + }, + "missingRecordLength": Object { + "message": "Specify the record length (lrecl) to create a data set.", + }, + "missingRequestType": Object { + "message": "Specify request type, file or directory.", + }, + "missingRequiredTableParameters": Object { + "message": "Options 'depth', 'filesys', and 'symlinks' require a 'group', 'user', 'name', 'size', 'mtime', 'perm', or 'type' option to be specified.", + }, + "missingStatements": Object { + "message": "Missing AMS statements to be submitted.", + }, + "missingUSSDirName": Object { + "message": "Specify the USS directory name.", + }, + "missingUSSDirectoryName": Object { + "message": "Specify the USS directory name.", + }, + "missingUSSFileName": Object { + "message": "Specify the USS file name.", + }, + "missingVsamOption": Object { + "message": "To create a VSAM cluster, the following option must be supplied: ", + }, + "missingZfsOption": Object { + "message": "To create a z/OS file system, the following option must be supplied: ", + }, + "noDataSetsInList": Object { + "message": "No data sets left after excluded pattern(s) were filtered out.", + }, + "noDataSetsMatchingPattern": Object { + "message": "There are no data sets that match the provided pattern(s).", + }, + "noDataSetsMatchingPatternRemain": Object { + "message": "After filtering out the archived files and files that match the exclusion-parameters, no data sets matching the supported organization type remain.", + }, + "noMembersFound": Object { + "message": "No members found!", + }, + "nodeJsFsError": Object { + "message": "Node.js File System API error", + }, + "onlyEmptyPartitionedDataSets": Object { + "message": "Only empty partitioned data sets match the provided patterns.", + }, + "pathIsNotDirectory": Object { + "message": "%s is not a directory", + }, + "someDownloadsFailed": Object { + "message": "Some downloads failed, see error details above", + }, + "unsupportedDataType": Object { + "message": "Unsupported data type 'record' specified for USS file operation.", + }, + "unsupportedDatasetType": Object { + "message": "Unsupported data set type.", + }, + "unsupportedMaskingInDataSetName": Object { + "message": "Unsupported masking character found in data set name.", + }, + "uploadDirectoryToDatasetMember": Object { + "message": "Upload a directory to a data set member is not permitted", + }, + "uploadDirectoryToPhysicalSequentialDataSet": Object { + "message": "Upload a directory with multiple files to a physical sequential data set is not permitted", + }, + "ussCreatedSuccessfully": Object { + "message": "USS file or directory created successfully.", + }, + "ussDirUploadedSuccessfully": Object { + "message": "Directory uploaded successfully.", + }, + "ussFileDeletedSuccessfully": Object { + "message": "USS File or directory deleted successfully.", + }, + "ussFileDownloadedSuccessfully": Object { + "message": "USS file downloaded successfully.", + }, + "ussFileDownloadedWithDestination": Object { + "message": "USS file downloaded successfully. +Destination: %s", + }, + "ussFileUploadedSuccessfully": Object { + "message": "USS file uploaded successfully.", + }, + "valueOutOfBounds": Object { + "message": "The {{optionName}} value = '{{value}}' must be between {{minValue}} and {{maxValue}}.", + }, + "zfsCreatedSuccessfully": Object { + "message": "z/OS file system created successfully.", + }, + "zfsDeletedSuccessfully": Object { + "message": "z/OS file system deleted successfully.", + }, +} +`; diff --git a/packages/zosfiles/src/constants/ZosFiles.messages.ts b/packages/zosfiles/src/constants/ZosFiles.messages.ts index 1ec1694775..728850e609 100644 --- a/packages/zosfiles/src/constants/ZosFiles.messages.ts +++ b/packages/zosfiles/src/constants/ZosFiles.messages.ts @@ -728,6 +728,14 @@ export const ZosFilesMessages: { [key: string]: IMessageDefinition } = { message: "for" }, + /** + * Message indicating invalid characters in file name + * @type {IMessageDefinition} + */ + invalidFileName: { + message: "Invalid file name. Please check the file name for typos." + }, + /** * Message to be used when throwing an imperative error during data set creation * @type {IMessageDefinition} From 358569134318e90044f9f8f7f4219c0fc8200322 Mon Sep 17 00:00:00 2001 From: Amber Torrise Date: Tue, 24 Oct 2023 10:03:34 -0400 Subject: [PATCH 6/7] merging back in pulled changes after ftp commit - these changes weren't attached to previous commit like they should have been Signed-off-by: Amber Torrise --- .../auto-init/ApimlAutoInitHandler.d.ts | 90 ++ lib/config/auto-init/ApimlAutoInitHandler.js | 474 +++++++++ .../auto-init/ApimlAutoInitHandler.js.map | 1 + lib/daemon/disable/Disable.definition.d.ts | 2 + lib/daemon/disable/Disable.definition.js | 26 + lib/daemon/disable/Disable.definition.js.map | 1 + lib/daemon/disable/Disable.handler.d.ts | 38 + lib/daemon/disable/Disable.handler.js | 181 ++++ lib/daemon/disable/Disable.handler.js.map | 1 + lib/daemon/doc/IDaemonEnableQuestions.d.ts | 8 + lib/daemon/doc/IDaemonEnableQuestions.js | 13 + lib/daemon/doc/IDaemonEnableQuestions.js.map | 1 + lib/daemon/doc/IDaemonPidForUser.d.ts | 8 + lib/daemon/doc/IDaemonPidForUser.js | 13 + lib/daemon/doc/IDaemonPidForUser.js.map | 1 + lib/daemon/enable/Enable.definition.d.ts | 2 + lib/daemon/enable/Enable.definition.js | 29 + lib/daemon/enable/Enable.definition.js.map | 1 + lib/daemon/enable/Enable.handler.d.ts | 76 ++ lib/daemon/enable/Enable.handler.js | 340 +++++++ lib/daemon/enable/Enable.handler.js.map | 1 + lib/daemon/restart/Restart.definition.d.ts | 2 + lib/daemon/restart/Restart.definition.js | 26 + lib/daemon/restart/Restart.definition.js.map | 1 + lib/daemon/restart/Restart.handler.d.ts | 26 + lib/daemon/restart/Restart.handler.js | 58 ++ lib/daemon/restart/Restart.handler.js.map | 1 + .../delete/Delete.definition.d.ts | 2 + lib/provisioning/delete/Delete.definition.js | 23 + .../delete/Delete.definition.js.map | 1 + .../instance/DeleteInstance.definition.d.ts | 2 + .../instance/DeleteInstance.definition.js | 39 + .../instance/DeleteInstance.definition.js.map | 1 + .../instance/DeleteInstance.handler.d.ts | 5 + .../delete/instance/DeleteInstance.handler.js | 50 + .../instance/DeleteInstance.handler.js.map | 1 + lib/provisioning/list/List.definition.d.ts | 2 + lib/provisioning/list/List.definition.js | 28 + lib/provisioning/list/List.definition.js.map | 1 + .../CatalogTemplates.definition.d.ts | 2 + .../CatalogTemplates.definition.js | 41 + .../CatalogTemplates.definition.js.map | 1 + .../CatalogTemplates.handler.d.ts | 11 + .../CatalogTemplates.handler.js | 52 + .../CatalogTemplates.handler.js.map | 1 + .../instanceInfo/InstanceInfo.definition.d.ts | 2 + .../instanceInfo/InstanceInfo.definition.js | 60 ++ .../InstanceInfo.definition.js.map | 1 + .../instanceInfo/InstanceInfo.handler.d.ts | 17 + .../list/instanceInfo/InstanceInfo.handler.js | 90 ++ .../instanceInfo/InstanceInfo.handler.js.map | 1 + .../InstanceVariables.definition.d.ts | 2 + .../InstanceVariables.definition.js | 41 + .../InstanceVariables.definition.js.map | 1 + .../InstanceVariables.handler.d.ts | 11 + .../InstanceVariables.handler.js | 61 ++ .../InstanceVariables.handler.js.map | 1 + .../RegistryInstances.definition.d.ts | 2 + .../registry/RegistryInstances.definition.js | 58 ++ .../RegistryInstances.definition.js.map | 1 + .../registry/RegistryInstances.handler.d.ts | 17 + .../registry/RegistryInstances.handler.js | 75 ++ .../registry/RegistryInstances.handler.js.map | 1 + .../templateInfo/TemplateInfo.definition.d.ts | 2 + .../templateInfo/TemplateInfo.definition.js | 49 + .../TemplateInfo.definition.js.map | 1 + .../templateInfo/TemplateInfo.handler.d.ts | 11 + .../list/templateInfo/TemplateInfo.handler.js | 50 + .../templateInfo/TemplateInfo.handler.js.map | 1 + .../perform/Perform.definition.d.ts | 2 + .../perform/Perform.definition.js | 23 + .../perform/Perform.definition.js.map | 1 + .../perform/action/Action.definition.d.ts | 2 + .../perform/action/Action.definition.js | 50 + .../perform/action/Action.definition.js.map | 1 + .../perform/action/Action.handler.d.ts | 11 + .../perform/action/Action.handler.js | 58 ++ .../perform/action/Action.handler.js.map | 1 + .../provision/Provision.definition.d.ts | 2 + .../provision/Provision.definition.js | 23 + .../provision/Provision.definition.js.map | 1 + .../template/Template.definition.d.ts | 2 + .../provision/template/Template.definition.js | 107 ++ .../template/Template.definition.js.map | 1 + .../provision/template/Template.handler.d.ts | 5 + .../provision/template/Template.handler.js | 60 ++ .../template/Template.handler.js.map | 1 + lib/workflows/archive/Archive.definition.d.ts | 8 + lib/workflows/archive/Archive.definition.js | 29 + .../archive/Archive.definition.js.map | 1 + lib/workflows/archive/Archive.handler.d.ts | 22 + lib/workflows/archive/Archive.handler.js | 114 +++ lib/workflows/archive/Archive.handler.js.map | 1 + lib/workflows/archive/Archive.options.d.ts | 7 + lib/workflows/archive/Archive.options.js | 54 + lib/workflows/archive/Archive.options.js.map | 1 + .../workflow/Archive.workflow.definition.d.ts | 8 + .../workflow/Archive.workflow.definition.js | 51 + .../Archive.workflow.definition.js.map | 1 + .../create/Create.common.handler.d.ts | 22 + lib/workflows/create/Create.common.handler.js | 144 +++ .../create/Create.common.handler.js.map | 1 + .../create/Create.common.options.d.ts | 7 + lib/workflows/create/Create.common.options.js | 181 ++++ .../create/Create.common.options.js.map | 1 + lib/workflows/create/Create.definition.d.ts | 8 + lib/workflows/create/Create.definition.js | 34 + lib/workflows/create/Create.definition.js.map | 1 + .../create/dataset/Dataset.definition.d.ts | 8 + .../create/dataset/Dataset.definition.js | 77 ++ .../create/dataset/Dataset.definition.js.map | 1 + .../localfile/LocalFile.definition.d.ts | 8 + .../create/localfile/LocalFile.definition.js | 61 ++ .../localfile/LocalFile.definition.js.map | 1 + .../create/ussfile/UssFile.definition.d.ts | 8 + .../create/ussfile/UssFile.definition.js | 79 ++ .../create/ussfile/UssFile.definition.js.map | 1 + .../Delete.archived.common.handler.d.ts | 22 + .../delete/Delete.archived.common.handler.js | 134 +++ .../Delete.archived.common.handler.js.map | 1 + .../delete/Delete.common.handler.d.ts | 22 + lib/workflows/delete/Delete.common.handler.js | 114 +++ .../delete/Delete.common.handler.js.map | 1 + lib/workflows/delete/Delete.definition.d.ts | 8 + lib/workflows/delete/Delete.definition.js | 32 + lib/workflows/delete/Delete.definition.js.map | 1 + .../DeleteActiveWorkflow.definition.d.ts | 8 + .../DeleteActiveWorkflow.definition.js | 50 + .../DeleteActiveWorkflow.definition.js.map | 1 + .../DeleteActiveWorkflow.options.d.ts | 7 + .../DeleteActiveWorkflow.options.js | 45 + .../DeleteActiveWorkflow.options.js.map | 1 + .../DeleteArchivedWorkflow.definition.d.ts | 8 + .../DeleteArchivedWorkflow.definition.js | 50 + .../DeleteArchivedWorkflow.definition.js.map | 1 + .../DeleteArchivedWorkflow.options.d.ts | 7 + .../DeleteArchivedWorkflow.options.js | 45 + .../DeleteArchivedWorkflow.options.js.map | 1 + lib/workflows/list/List.definition.d.ts | 8 + lib/workflows/list/List.definition.js | 36 + lib/workflows/list/List.definition.js.map | 1 + .../ActiveWorkflowDetails.common.options.d.ts | 7 + .../ActiveWorkflowDetails.common.options.js | 91 ++ ...ctiveWorkflowDetails.common.options.js.map | 1 + .../ActiveWorkflowDetails.definition.d.ts | 8 + .../ActiveWorkflowDetails.definition.js | 50 + .../ActiveWorkflowDetails.definition.js.map | 1 + .../ActiveWorkflowDetails.handler.d.ts | 22 + .../ActiveWorkflowDetails.handler.js | 103 ++ .../ActiveWorkflowDetails.handler.js.map | 1 + .../ActiveWorkflows.definition.d.ts | 8 + .../ActiveWorkflows.definition.js | 58 ++ .../ActiveWorkflows.definition.js.map | 1 + .../ActiveWorkflows.handler.d.ts | 21 + .../ActiveWorkflows.handler.js | 77 ++ .../ActiveWorkflows.handler.js.map | 1 + .../ActiveWorkflows.options.d.ts | 7 + .../ActiveWorkflows.options.js | 100 ++ .../ActiveWorkflows.options.js.map | 1 + .../ArchivedWorkflows.definition.d.ts | 8 + .../ArchivedWorkflows.definition.js | 33 + .../ArchivedWorkflows.definition.js.map | 1 + .../ArchivedWorkflows.handler.d.ts | 20 + .../ArchivedWorkflows.handler.js | 69 ++ .../ArchivedWorkflows.handler.js.map | 1 + ...RetrieveWorkflowDefinition.definition.d.ts | 8 + .../RetrieveWorkflowDefinition.definition.js | 56 + ...trieveWorkflowDefinition.definition.js.map | 1 + .../RetrieveWorkflowDefinition.handler.d.ts | 21 + .../RetrieveWorkflowDefinition.handler.js | 75 ++ .../RetrieveWorkflowDefinition.handler.js.map | 1 + .../RetrieveWorkflowDefinition.options.d.ts | 7 + .../RetrieveWorkflowDefinition.options.js | 54 + .../RetrieveWorkflowDefinition.options.js.map | 1 + lib/workflows/start/Start.common.options.d.ts | 7 + lib/workflows/start/Start.common.options.js | 99 ++ .../start/Start.common.options.js.map | 1 + lib/workflows/start/Start.definition.d.ts | 8 + lib/workflows/start/Start.definition.js | 32 + lib/workflows/start/Start.definition.js.map | 1 + .../workflowFull/WorkflowFull.definition.d.ts | 8 + .../workflowFull/WorkflowFull.definition.js | 59 ++ .../WorkflowFull.definition.js.map | 1 + .../workflowFull/WorkflowFull.handler.d.ts | 22 + .../workflowFull/WorkflowFull.handler.js | 87 ++ .../workflowFull/WorkflowFull.handler.js.map | 1 + .../workflowStep/WorkflowStep.definition.d.ts | 8 + .../workflowStep/WorkflowStep.definition.js | 66 ++ .../WorkflowStep.definition.js.map | 1 + .../workflowStep/WorkflowStep.handler.d.ts | 22 + .../workflowStep/WorkflowStep.handler.js | 89 ++ .../workflowStep/WorkflowStep.handler.js.map | 1 + .../collect/Collect.definition.d.ts | 2 + lib/zosconsole/collect/Collect.definition.js | 25 + .../collect/Collect.definition.js.map | 1 + .../collect/response/Response.definition.d.ts | 2 + .../collect/response/Response.definition.js | 68 ++ .../response/Response.definition.js.map | 1 + .../collect/response/Response.handler.d.ts | 11 + .../collect/response/Response.handler.js | 46 + .../collect/response/Response.handler.js.map | 1 + lib/zosconsole/issue/Issue.definition.d.ts | 2 + lib/zosconsole/issue/Issue.definition.js | 24 + lib/zosconsole/issue/Issue.definition.js.map | 1 + .../issue/command/Command.definition.d.ts | 2 + .../issue/command/Command.definition.js | 142 +++ .../issue/command/Command.definition.js.map | 1 + .../issue/command/Command.handler.d.ts | 11 + .../issue/command/Command.handler.js | 81 ++ .../issue/command/Command.handler.js.map | 1 + lib/zosfiles/-strings-/en.d.ts | 791 +++++++++++++++ lib/zosfiles/-strings-/en.js | 960 ++++++++++++++++++ lib/zosfiles/-strings-/en.js.map | 1 + lib/zosfiles/compare/Compare.definition.d.ts | 6 + lib/zosfiles/compare/Compare.definition.js | 41 + .../compare/Compare.definition.js.map | 1 + lib/zosfiles/compare/Compare.options.d.ts | 7 + lib/zosfiles/compare/Compare.options.js | 133 +++ lib/zosfiles/compare/Compare.options.js.map | 1 + lib/zosfiles/compare/CompareBase.handler.d.ts | 38 + lib/zosfiles/compare/CompareBase.handler.js | 62 ++ .../compare/CompareBase.handler.js.map | 1 + lib/zosfiles/compare/CompareBaseHelper.d.ts | 93 ++ lib/zosfiles/compare/CompareBaseHelper.js | 176 ++++ lib/zosfiles/compare/CompareBaseHelper.js.map | 1 + .../compare/doc/ICompareFileOptions.d.ts | 14 + .../compare/doc/ICompareFileOptions.js | 13 + .../compare/doc/ICompareFileOptions.js.map | 1 + .../compare/ds/Dataset.definition.d.ts | 6 + lib/zosfiles/compare/ds/Dataset.definition.js | 69 ++ .../compare/ds/Dataset.definition.js.map | 1 + lib/zosfiles/compare/ds/Dataset.handler.d.ts | 12 + lib/zosfiles/compare/ds/Dataset.handler.js | 41 + .../compare/ds/Dataset.handler.js.map | 1 + .../lf-ds/LocalfileDataset.definition.d.ts | 6 + .../lf-ds/LocalfileDataset.definition.js | 65 ++ .../lf-ds/LocalfileDataset.definition.js.map | 1 + .../lf-ds/LocalfileDataset.handler.d.ts | 12 + .../compare/lf-ds/LocalfileDataset.handler.js | 41 + .../lf-ds/LocalfileDataset.handler.js.map | 1 + .../lf-sdd/LocalfileSpooldd.definition.d.ts | 6 + .../lf-sdd/LocalfileSpooldd.definition.js | 61 ++ .../lf-sdd/LocalfileSpooldd.definition.js.map | 1 + .../lf-sdd/LocalfileSpooldd.handler.d.ts | 12 + .../lf-sdd/LocalfileSpooldd.handler.js | 42 + .../lf-sdd/LocalfileSpooldd.handler.js.map | 1 + .../lf-uss/LocalfileUss.definition.d.ts | 6 + .../compare/lf-uss/LocalfileUss.definition.js | 63 ++ .../lf-uss/LocalfileUss.definition.js.map | 1 + .../compare/lf-uss/LocalfileUss.handler.d.ts | 12 + .../compare/lf-uss/LocalfileUss.handler.js | 41 + .../lf-uss/LocalfileUss.handler.js.map | 1 + .../compare/sdd/Spooldd.definition.d.ts | 6 + .../compare/sdd/Spooldd.definition.js | 60 ++ .../compare/sdd/Spooldd.definition.js.map | 1 + lib/zosfiles/compare/sdd/Spooldd.handler.d.ts | 12 + lib/zosfiles/compare/sdd/Spooldd.handler.js | 43 + .../compare/sdd/Spooldd.handler.js.map | 1 + .../compare/uss/UssFile.definition.d.ts | 6 + .../compare/uss/UssFile.definition.js | 65 ++ .../compare/uss/UssFile.definition.js.map | 1 + lib/zosfiles/compare/uss/UssFile.handler.d.ts | 12 + lib/zosfiles/compare/uss/UssFile.handler.js | 41 + .../compare/uss/UssFile.handler.js.map | 1 + lib/zosfiles/copy/Copy.definition.d.ts | 8 + lib/zosfiles/copy/Copy.definition.js | 34 + lib/zosfiles/copy/Copy.definition.js.map | 1 + lib/zosfiles/copy/ds/Ds.definition.d.ts | 8 + lib/zosfiles/copy/ds/Ds.definition.js | 77 ++ lib/zosfiles/copy/ds/Ds.definition.js.map | 1 + lib/zosfiles/copy/ds/Ds.handler.d.ts | 9 + lib/zosfiles/copy/ds/Ds.handler.js | 44 + lib/zosfiles/copy/ds/Ds.handler.js.map | 1 + lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts | 8 + lib/zosfiles/copy/dsclp/Dsclp.definition.js | 185 ++++ .../copy/dsclp/Dsclp.definition.js.map | 1 + lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts | 13 + lib/zosfiles/copy/dsclp/Dsclp.handler.js | 66 ++ lib/zosfiles/copy/dsclp/Dsclp.handler.js.map | 1 + .../copy/dsclp/TargetProfile.handler.d.ts | 18 + .../copy/dsclp/TargetProfile.handler.js | 81 ++ .../copy/dsclp/TargetProfile.handler.js.map | 1 + lib/zosfiles/create/Create.definition.d.ts | 6 + lib/zosfiles/create/Create.definition.js | 47 + lib/zosfiles/create/Create.definition.js.map | 1 + lib/zosfiles/create/Create.options.d.ts | 13 + lib/zosfiles/create/Create.options.js | 228 +++++ lib/zosfiles/create/Create.options.js.map | 1 + lib/zosfiles/create/Create.utils.d.ts | 8 + lib/zosfiles/create/Create.utils.js | 39 + lib/zosfiles/create/Create.utils.js.map | 1 + .../binaryPds/BinaryPDS.definition.d.ts | 6 + .../create/binaryPds/BinaryPDS.definition.js | 67 ++ .../binaryPds/BinaryPDS.definition.js.map | 1 + .../create/binaryPds/BinaryPDS.handler.d.ts | 9 + .../create/binaryPds/BinaryPDS.handler.js | 36 + .../create/binaryPds/BinaryPDS.handler.js.map | 1 + lib/zosfiles/create/cPds/CPDS.definition.d.ts | 6 + lib/zosfiles/create/cPds/CPDS.definition.js | 67 ++ .../create/cPds/CPDS.definition.js.map | 1 + lib/zosfiles/create/cPds/CPDS.handler.d.ts | 9 + lib/zosfiles/create/cPds/CPDS.handler.js | 36 + lib/zosfiles/create/cPds/CPDS.handler.js.map | 1 + .../classicPds/ClassicPDS.definition.d.ts | 6 + .../classicPds/ClassicPDS.definition.js | 67 ++ .../classicPds/ClassicPDS.definition.js.map | 1 + .../create/classicPds/ClassicPDS.handler.d.ts | 9 + .../create/classicPds/ClassicPDS.handler.js | 36 + .../classicPds/ClassicPDS.handler.js.map | 1 + lib/zosfiles/create/ds/ds.definition.d.ts | 6 + lib/zosfiles/create/ds/ds.definition.js | 71 ++ lib/zosfiles/create/ds/ds.definition.js.map | 1 + lib/zosfiles/create/ds/ds.handler.d.ts | 9 + lib/zosfiles/create/ds/ds.handler.js | 41 + lib/zosfiles/create/ds/ds.handler.js.map | 1 + lib/zosfiles/create/pds/Pds.definition.d.ts | 6 + lib/zosfiles/create/pds/Pds.definition.js | 68 ++ lib/zosfiles/create/pds/Pds.definition.js.map | 1 + lib/zosfiles/create/pds/Pds.handler.d.ts | 9 + lib/zosfiles/create/pds/Pds.handler.js | 36 + lib/zosfiles/create/pds/Pds.handler.js.map | 1 + lib/zosfiles/create/ps/Ps.definition.d.ts | 6 + lib/zosfiles/create/ps/Ps.definition.js | 62 ++ lib/zosfiles/create/ps/Ps.definition.js.map | 1 + lib/zosfiles/create/ps/Ps.handler.d.ts | 9 + lib/zosfiles/create/ps/Ps.handler.js | 36 + lib/zosfiles/create/ps/Ps.handler.js.map | 1 + lib/zosfiles/create/ussDir/uss.options.d.ts | 7 + lib/zosfiles/create/ussDir/uss.options.js | 33 + lib/zosfiles/create/ussDir/uss.options.js.map | 1 + .../create/ussDir/ussDir.definition.d.ts | 2 + .../create/ussDir/ussDir.definition.js | 50 + .../create/ussDir/ussDir.definition.js.map | 1 + .../create/ussDir/ussDir.handler.d.ts | 9 + lib/zosfiles/create/ussDir/ussDir.handler.js | 37 + .../create/ussDir/ussDir.handler.js.map | 1 + lib/zosfiles/create/ussFile/uss.options.d.ts | 7 + lib/zosfiles/create/ussFile/uss.options.js | 33 + .../create/ussFile/uss.options.js.map | 1 + .../create/ussFile/ussFile.definition.d.ts | 2 + .../create/ussFile/ussFile.definition.js | 50 + .../create/ussFile/ussFile.definition.js.map | 1 + .../create/ussFile/ussFile.handler.d.ts | 9 + .../create/ussFile/ussFile.handler.js | 37 + .../create/ussFile/ussFile.handler.js.map | 1 + lib/zosfiles/create/vsam/vsam.definition.d.ts | 2 + lib/zosfiles/create/vsam/vsam.definition.js | 84 ++ .../create/vsam/vsam.definition.js.map | 1 + lib/zosfiles/create/vsam/vsam.handler.d.ts | 9 + lib/zosfiles/create/vsam/vsam.handler.js | 49 + lib/zosfiles/create/vsam/vsam.handler.js.map | 1 + lib/zosfiles/create/vsam/vsam.options.d.ts | 7 + lib/zosfiles/create/vsam/vsam.options.js | 53 + lib/zosfiles/create/vsam/vsam.options.js.map | 1 + lib/zosfiles/create/zfs/zfs.definition.d.ts | 2 + lib/zosfiles/create/zfs/zfs.definition.js | 64 ++ lib/zosfiles/create/zfs/zfs.definition.js.map | 1 + lib/zosfiles/create/zfs/zfs.handler.d.ts | 9 + lib/zosfiles/create/zfs/zfs.handler.js | 49 + lib/zosfiles/create/zfs/zfs.handler.js.map | 1 + lib/zosfiles/create/zfs/zfs.options.d.ts | 7 + lib/zosfiles/create/zfs/zfs.options.js | 95 ++ lib/zosfiles/create/zfs/zfs.options.js.map | 1 + lib/zosfiles/delete/Delete.definition.d.ts | 8 + lib/zosfiles/delete/Delete.definition.js | 40 + lib/zosfiles/delete/Delete.definition.js.map | 1 + lib/zosfiles/delete/ds/Ds.definition.d.ts | 8 + lib/zosfiles/delete/ds/Ds.definition.js | 66 ++ lib/zosfiles/delete/ds/Ds.definition.js.map | 1 + lib/zosfiles/delete/ds/Ds.handler.d.ts | 9 + lib/zosfiles/delete/ds/Ds.handler.js | 40 + lib/zosfiles/delete/ds/Ds.handler.js.map | 1 + lib/zosfiles/delete/mds/Mds.definition.d.ts | 2 + lib/zosfiles/delete/mds/Mds.definition.js | 58 ++ lib/zosfiles/delete/mds/Mds.definition.js.map | 1 + lib/zosfiles/delete/mds/Mds.handler.d.ts | 9 + lib/zosfiles/delete/mds/Mds.handler.js | 36 + lib/zosfiles/delete/mds/Mds.handler.js.map | 1 + lib/zosfiles/delete/uss/Uss.definition.d.ts | 8 + lib/zosfiles/delete/uss/Uss.definition.js | 71 ++ lib/zosfiles/delete/uss/Uss.definition.js.map | 1 + lib/zosfiles/delete/uss/Uss.handler.d.ts | 9 + lib/zosfiles/delete/uss/Uss.handler.js | 36 + lib/zosfiles/delete/uss/Uss.handler.js.map | 1 + lib/zosfiles/delete/vsam/Vsam.definition.d.ts | 8 + lib/zosfiles/delete/vsam/Vsam.definition.js | 82 ++ .../delete/vsam/Vsam.definition.js.map | 1 + lib/zosfiles/delete/vsam/Vsam.handler.d.ts | 9 + lib/zosfiles/delete/vsam/Vsam.handler.js | 39 + lib/zosfiles/delete/vsam/Vsam.handler.js.map | 1 + lib/zosfiles/delete/zfs/zfs.definition.d.ts | 8 + lib/zosfiles/delete/zfs/zfs.definition.js | 57 ++ lib/zosfiles/delete/zfs/zfs.definition.js.map | 1 + lib/zosfiles/delete/zfs/zfs.handler.d.ts | 9 + lib/zosfiles/delete/zfs/zfs.handler.js | 36 + lib/zosfiles/delete/zfs/zfs.handler.js.map | 1 + .../download/Download.definition.d.ts | 6 + lib/zosfiles/download/Download.definition.js | 39 + .../download/Download.definition.js.map | 1 + lib/zosfiles/download/Download.options.d.ts | 7 + lib/zosfiles/download/Download.options.js | 189 ++++ lib/zosfiles/download/Download.options.js.map | 1 + .../download/am/AllMembers.definition.d.ts | 6 + .../download/am/AllMembers.definition.js | 61 ++ .../download/am/AllMembers.definition.js.map | 1 + .../download/am/AllMembers.handler.d.ts | 10 + .../download/am/AllMembers.handler.js | 55 + .../download/am/AllMembers.handler.js.map | 1 + .../download/ds/Dataset.definition.d.ts | 6 + .../download/ds/Dataset.definition.js | 55 + .../download/ds/Dataset.definition.js.map | 1 + lib/zosfiles/download/ds/Dataset.handler.d.ts | 10 + lib/zosfiles/download/ds/Dataset.handler.js | 54 + .../download/ds/Dataset.handler.js.map | 1 + .../dsm/DataSetMatching.definition.d.ts | 6 + .../dsm/DataSetMatching.definition.js | 64 ++ .../dsm/DataSetMatching.definition.js.map | 1 + .../download/dsm/DataSetMatching.handler.d.ts | 10 + .../download/dsm/DataSetMatching.handler.js | 93 ++ .../dsm/DataSetMatching.handler.js.map | 1 + .../download/uss/UssFile.definition.d.ts | 6 + .../download/uss/UssFile.definition.js | 55 + .../download/uss/UssFile.definition.js.map | 1 + .../download/uss/UssFile.handler.d.ts | 10 + lib/zosfiles/download/uss/UssFile.handler.js | 50 + .../download/uss/UssFile.handler.js.map | 1 + .../download/ussdir/UssDir.definition.d.ts | 6 + .../download/ussdir/UssDir.definition.js | 76 ++ .../download/ussdir/UssDir.definition.js.map | 1 + .../download/ussdir/UssDir.handler.d.ts | 10 + .../download/ussdir/UssDir.handler.js | 70 ++ .../download/ussdir/UssDir.handler.js.map | 1 + lib/zosfiles/edit/Edit.definition.d.ts | 6 + lib/zosfiles/edit/Edit.definition.js | 33 + lib/zosfiles/edit/Edit.definition.js.map | 1 + lib/zosfiles/edit/Edit.handler.d.ts | 10 + lib/zosfiles/edit/Edit.handler.js | 111 ++ lib/zosfiles/edit/Edit.handler.js.map | 1 + lib/zosfiles/edit/Edit.options.d.ts | 7 + lib/zosfiles/edit/Edit.options.js | 39 + lib/zosfiles/edit/Edit.options.js.map | 1 + lib/zosfiles/edit/Edit.utils.d.ts | 118 +++ lib/zosfiles/edit/Edit.utils.js | 365 +++++++ lib/zosfiles/edit/Edit.utils.js.map | 1 + lib/zosfiles/edit/ds/Dataset.definition.d.ts | 6 + lib/zosfiles/edit/ds/Dataset.definition.js | 58 ++ .../edit/ds/Dataset.definition.js.map | 1 + lib/zosfiles/edit/uss/USSFile.definition.d.ts | 6 + lib/zosfiles/edit/uss/USSFile.definition.js | 53 + .../edit/uss/USSFile.definition.js.map | 1 + .../hMigrate/HMigrate.definition.d.ts | 6 + lib/zosfiles/hMigrate/HMigrate.definition.js | 30 + .../hMigrate/HMigrate.definition.js.map | 1 + lib/zosfiles/hMigrate/ds/Ds.definition.d.ts | 2 + lib/zosfiles/hMigrate/ds/Ds.definition.js | 51 + lib/zosfiles/hMigrate/ds/Ds.definition.js.map | 1 + lib/zosfiles/hMigrate/ds/Ds.handler.d.ts | 9 + lib/zosfiles/hMigrate/ds/Ds.handler.js | 36 + lib/zosfiles/hMigrate/ds/Ds.handler.js.map | 1 + lib/zosfiles/hRecall/HRecall.definition.d.ts | 6 + lib/zosfiles/hRecall/HRecall.definition.js | 30 + .../hRecall/HRecall.definition.js.map | 1 + lib/zosfiles/hRecall/ds/Ds.definition.d.ts | 2 + lib/zosfiles/hRecall/ds/Ds.definition.js | 51 + lib/zosfiles/hRecall/ds/Ds.definition.js.map | 1 + lib/zosfiles/hRecall/ds/Ds.handler.d.ts | 9 + lib/zosfiles/hRecall/ds/Ds.handler.js | 36 + lib/zosfiles/hRecall/ds/Ds.handler.js.map | 1 + lib/zosfiles/invoke/Invoke.definition.d.ts | 6 + lib/zosfiles/invoke/Invoke.definition.js | 33 + lib/zosfiles/invoke/Invoke.definition.js.map | 1 + .../invoke/amsFile/AmsFile.definition.d.ts | 6 + .../invoke/amsFile/AmsFile.definition.js | 46 + .../invoke/amsFile/AmsFile.definition.js.map | 1 + .../invoke/amsFile/AmsFile.handler.d.ts | 10 + .../invoke/amsFile/AmsFile.handler.js | 40 + .../invoke/amsFile/AmsFile.handler.js.map | 1 + .../AmsStatements.definition.d.ts | 6 + .../amsStatements/AmsStatements.definition.js | 50 + .../AmsStatements.definition.js.map | 1 + .../amsStatements/AmsStatements.handler.d.ts | 10 + .../amsStatements/AmsStatements.handler.js | 46 + .../AmsStatements.handler.js.map | 1 + lib/zosfiles/list/List.definition.d.ts | 6 + lib/zosfiles/list/List.definition.js | 37 + lib/zosfiles/list/List.definition.js.map | 1 + lib/zosfiles/list/List.options.d.ts | 7 + lib/zosfiles/list/List.options.js | 172 ++++ lib/zosfiles/list/List.options.js.map | 1 + .../list/am/AllMembers.definition.d.ts | 6 + lib/zosfiles/list/am/AllMembers.definition.js | 63 ++ .../list/am/AllMembers.definition.js.map | 1 + lib/zosfiles/list/am/AllMembers.handler.d.ts | 10 + lib/zosfiles/list/am/AllMembers.handler.js | 51 + .../list/am/AllMembers.handler.js.map | 1 + lib/zosfiles/list/ds/DataSet.definition.d.ts | 6 + lib/zosfiles/list/ds/DataSet.definition.js | 69 ++ .../list/ds/DataSet.definition.js.map | 1 + lib/zosfiles/list/ds/DataSet.handler.d.ts | 10 + lib/zosfiles/list/ds/DataSet.handler.js | 51 + lib/zosfiles/list/ds/DataSet.handler.js.map | 1 + lib/zosfiles/list/fs/Fs.definition.d.ts | 6 + lib/zosfiles/list/fs/Fs.definition.js | 53 + lib/zosfiles/list/fs/Fs.definition.js.map | 1 + lib/zosfiles/list/fs/Fs.handler.d.ts | 10 + lib/zosfiles/list/fs/Fs.handler.js | 59 ++ lib/zosfiles/list/fs/Fs.handler.js.map | 1 + lib/zosfiles/list/uss/UssFile.definition.d.ts | 6 + lib/zosfiles/list/uss/UssFile.definition.js | 58 ++ .../list/uss/UssFile.definition.js.map | 1 + lib/zosfiles/list/uss/UssFile.handler.d.ts | 10 + lib/zosfiles/list/uss/UssFile.handler.js | 49 + lib/zosfiles/list/uss/UssFile.handler.js.map | 1 + lib/zosfiles/mount/Mount.definition.d.ts | 6 + lib/zosfiles/mount/Mount.definition.js | 31 + lib/zosfiles/mount/Mount.definition.js.map | 1 + lib/zosfiles/mount/fs/fs.definition.d.ts | 2 + lib/zosfiles/mount/fs/fs.definition.js | 57 ++ lib/zosfiles/mount/fs/fs.definition.js.map | 1 + lib/zosfiles/mount/fs/fs.handler.d.ts | 9 + lib/zosfiles/mount/fs/fs.handler.js | 41 + lib/zosfiles/mount/fs/fs.handler.js.map | 1 + lib/zosfiles/mount/fs/fs.options.d.ts | 7 + lib/zosfiles/mount/fs/fs.options.js | 47 + lib/zosfiles/mount/fs/fs.options.js.map | 1 + lib/zosfiles/rename/Rename.definition.d.ts | 6 + lib/zosfiles/rename/Rename.definition.js | 32 + lib/zosfiles/rename/Rename.definition.js.map | 1 + lib/zosfiles/rename/ds/Ds.definition.d.ts | 2 + lib/zosfiles/rename/ds/Ds.definition.js | 47 + lib/zosfiles/rename/ds/Ds.definition.js.map | 1 + lib/zosfiles/rename/ds/Ds.handler.d.ts | 9 + lib/zosfiles/rename/ds/Ds.handler.js | 36 + lib/zosfiles/rename/ds/Ds.handler.js.map | 1 + lib/zosfiles/rename/dsm/Dsm.definition.d.ts | 2 + lib/zosfiles/rename/dsm/Dsm.definition.js | 53 + lib/zosfiles/rename/dsm/Dsm.definition.js.map | 1 + lib/zosfiles/rename/dsm/Dsm.handler.d.ts | 9 + lib/zosfiles/rename/dsm/Dsm.handler.js | 36 + lib/zosfiles/rename/dsm/Dsm.handler.js.map | 1 + lib/zosfiles/unmount/Unmount.definition.d.ts | 6 + lib/zosfiles/unmount/Unmount.definition.js | 31 + .../unmount/Unmount.definition.js.map | 1 + lib/zosfiles/unmount/fs/fs.definition.d.ts | 2 + lib/zosfiles/unmount/fs/fs.definition.js | 42 + lib/zosfiles/unmount/fs/fs.definition.js.map | 1 + lib/zosfiles/unmount/fs/fs.handler.d.ts | 9 + lib/zosfiles/unmount/fs/fs.handler.js | 36 + lib/zosfiles/unmount/fs/fs.handler.js.map | 1 + lib/zosfiles/upload/Upload.definition.d.ts | 6 + lib/zosfiles/upload/Upload.definition.js | 38 + lib/zosfiles/upload/Upload.definition.js.map | 1 + lib/zosfiles/upload/Upload.options.d.ts | 7 + lib/zosfiles/upload/Upload.options.js | 138 +++ lib/zosfiles/upload/Upload.options.js.map | 1 + .../upload/dtp/DirToPds.definition.d.ts | 6 + .../upload/dtp/DirToPds.definition.js | 63 ++ .../upload/dtp/DirToPds.definition.js.map | 1 + lib/zosfiles/upload/dtp/DirToPds.handler.d.ts | 10 + lib/zosfiles/upload/dtp/DirToPds.handler.js | 77 ++ .../upload/dtp/DirToPds.handler.js.map | 1 + .../upload/dtu/DirToUSSDir.definition.d.ts | 6 + .../upload/dtu/DirToUSSDir.definition.js | 78 ++ .../upload/dtu/DirToUSSDir.definition.js.map | 1 + .../upload/dtu/DirToUSSDir.handler.d.ts | 11 + .../upload/dtu/DirToUSSDir.handler.js | 86 ++ .../upload/dtu/DirToUSSDir.handler.js.map | 1 + .../upload/ftds/FileToDataSet.definition.d.ts | 6 + .../upload/ftds/FileToDataSet.definition.js | 67 ++ .../ftds/FileToDataSet.definition.js.map | 1 + .../upload/ftds/FileToDataSet.handler.d.ts | 10 + .../upload/ftds/FileToDataSet.handler.js | 77 ++ .../upload/ftds/FileToDataSet.handler.js.map | 1 + .../upload/ftu/FileToUSS.definition.d.ts | 6 + .../upload/ftu/FileToUSS.definition.js | 56 + .../upload/ftu/FileToUSS.definition.js.map | 1 + .../upload/ftu/FileToUSS.handler.d.ts | 10 + lib/zosfiles/upload/ftu/FileToUSS.handler.js | 51 + .../upload/ftu/FileToUSS.handler.js.map | 1 + .../stds/StdinToDataSet.definition.d.ts | 6 + .../upload/stds/StdinToDataSet.definition.js | 63 ++ .../stds/StdinToDataSet.definition.js.map | 1 + .../upload/stds/StdinToDataSet.handler.d.ts | 10 + .../upload/stds/StdinToDataSet.handler.js | 58 ++ .../upload/stds/StdinToDataSet.handler.js.map | 1 + lib/zosfiles/view/View.definition.d.ts | 6 + lib/zosfiles/view/View.definition.js | 33 + lib/zosfiles/view/View.definition.js.map | 1 + lib/zosfiles/view/View.options.d.ts | 7 + lib/zosfiles/view/View.options.js | 73 ++ lib/zosfiles/view/View.options.js.map | 1 + lib/zosfiles/view/ds/Dataset.definition.d.ts | 6 + lib/zosfiles/view/ds/Dataset.definition.js | 65 ++ .../view/ds/Dataset.definition.js.map | 1 + lib/zosfiles/view/ds/Dataset.handler.d.ts | 10 + lib/zosfiles/view/ds/Dataset.handler.js | 55 + lib/zosfiles/view/ds/Dataset.handler.js.map | 1 + lib/zosfiles/view/uss/USSFile.definition.d.ts | 6 + lib/zosfiles/view/uss/USSFile.definition.js | 55 + .../view/uss/USSFile.definition.js.map | 1 + lib/zosfiles/view/uss/USSFile.handler.d.ts | 10 + lib/zosfiles/view/uss/USSFile.handler.js | 55 + lib/zosfiles/view/uss/USSFile.handler.js.map | 1 + lib/zosjobs/-strings-/en.d.ts | 182 ++++ lib/zosjobs/-strings-/en.js | 229 +++++ lib/zosjobs/-strings-/en.js.map | 1 + lib/zosjobs/cancel/Cancel.definition.d.ts | 2 + lib/zosjobs/cancel/Cancel.definition.js | 26 + lib/zosjobs/cancel/Cancel.definition.js.map | 1 + lib/zosjobs/cancel/job/Job.definition.d.ts | 2 + lib/zosjobs/cancel/job/Job.definition.js | 45 + lib/zosjobs/cancel/job/Job.definition.js.map | 1 + lib/zosjobs/cancel/job/Job.handler.d.ts | 24 + lib/zosjobs/cancel/job/Job.handler.js | 70 ++ lib/zosjobs/cancel/job/Job.handler.js.map | 1 + lib/zosjobs/delete/Delete.definition.d.ts | 2 + lib/zosjobs/delete/Delete.definition.js | 28 + lib/zosjobs/delete/Delete.definition.js.map | 1 + lib/zosjobs/delete/job/Job.definition.d.ts | 2 + lib/zosjobs/delete/job/Job.definition.js | 45 + lib/zosjobs/delete/job/Job.definition.js.map | 1 + lib/zosjobs/delete/job/Job.handler.d.ts | 24 + lib/zosjobs/delete/job/Job.handler.js | 70 ++ lib/zosjobs/delete/job/Job.handler.js.map | 1 + .../delete/old-jobs/OldJobs.definition.d.ts | 2 + .../delete/old-jobs/OldJobs.definition.js | 49 + .../delete/old-jobs/OldJobs.definition.js.map | 1 + .../delete/old-jobs/OldJobs.handler.d.ts | 24 + .../delete/old-jobs/OldJobs.handler.js | 92 ++ .../delete/old-jobs/OldJobs.handler.js.map | 1 + lib/zosjobs/download/Download.definition.d.ts | 2 + lib/zosjobs/download/Download.definition.js | 25 + .../download/Download.definition.js.map | 1 + .../download-output/Output.definition.d.ts | 2 + .../download-output/Output.definition.js | 77 ++ .../download-output/Output.definition.js.map | 1 + .../download-output/Output.handler.d.ts | 17 + .../download-output/Output.handler.js | 69 ++ .../download-output/Output.handler.js.map | 1 + lib/zosjobs/list/List.definition.d.ts | 2 + lib/zosjobs/list/List.definition.js | 25 + lib/zosjobs/list/List.definition.js.map | 1 + lib/zosjobs/list/jobs/Jobs.definition.d.ts | 2 + lib/zosjobs/list/jobs/Jobs.definition.js | 83 ++ lib/zosjobs/list/jobs/Jobs.definition.js.map | 1 + lib/zosjobs/list/jobs/Jobs.handler.d.ts | 18 + lib/zosjobs/list/jobs/Jobs.handler.js | 69 ++ lib/zosjobs/list/jobs/Jobs.handler.js.map | 1 + .../SpoolFilesByJobid.definition.d.ts | 2 + .../SpoolFilesByJobid.definition.js | 43 + .../SpoolFilesByJobid.definition.js.map | 1 + .../SpoolFilesByJobid.handler.d.ts | 31 + .../SpoolFilesByJobid.handler.js | 56 + .../SpoolFilesByJobid.handler.js.map | 1 + lib/zosjobs/modify/Modify.definition.d.ts | 2 + lib/zosjobs/modify/Modify.definition.js | 26 + lib/zosjobs/modify/Modify.definition.js.map | 1 + lib/zosjobs/modify/job/Job.definition.d.ts | 2 + lib/zosjobs/modify/job/Job.definition.js | 61 ++ lib/zosjobs/modify/job/Job.definition.js.map | 1 + lib/zosjobs/modify/job/Job.handler.d.ts | 24 + lib/zosjobs/modify/job/Job.handler.js | 73 ++ lib/zosjobs/modify/job/Job.handler.js.map | 1 + lib/zosjobs/submit/Submit.definition.d.ts | 2 + lib/zosjobs/submit/Submit.definition.js | 33 + lib/zosjobs/submit/Submit.definition.js.map | 1 + lib/zosjobs/submit/Submit.shared.handler.d.ts | 17 + lib/zosjobs/submit/Submit.shared.handler.js | 181 ++++ .../submit/Submit.shared.handler.js.map | 1 + .../submit/data-set/DataSet.definition.d.ts | 2 + .../submit/data-set/DataSet.definition.js | 85 ++ .../submit/data-set/DataSet.definition.js.map | 1 + .../local-file/localFile.definition.d.ts | 2 + .../submit/local-file/localFile.definition.js | 75 ++ .../local-file/localFile.definition.js.map | 1 + .../submit/stdin/stdin.definition.d.ts | 2 + lib/zosjobs/submit/stdin/stdin.definition.js | 72 ++ .../submit/stdin/stdin.definition.js.map | 1 + .../submit/uss-file/USSFile.definition.d.ts | 2 + .../submit/uss-file/USSFile.definition.js | 80 ++ .../submit/uss-file/USSFile.definition.js.map | 1 + lib/zosjobs/view/View.definition.d.ts | 2 + lib/zosjobs/view/View.definition.js | 29 + lib/zosjobs/view/View.definition.js.map | 1 + .../AllSpoolContent.definition.d.ts | 2 + .../AllSpoolContent.definition.js | 42 + .../AllSpoolContent.definition.js.map | 1 + .../AllSpoolContent.handler.d.ts | 17 + .../AllSpoolContent.handler.js | 68 ++ .../AllSpoolContent.handler.js.map | 1 + .../JobStatusByJobid.definition.d.ts | 2 + .../JobStatusByJobid.definition.js | 47 + .../JobStatusByJobid.definition.js.map | 1 + .../JobStatusByJobid.handler.d.ts | 17 + .../JobStatusByJobid.handler.js | 54 + .../JobStatusByJobid.handler.js.map | 1 + .../SpoolFileById.definition.d.ts | 2 + .../SpoolFileById.definition.js | 51 + .../SpoolFileById.definition.js.map | 1 + .../SpoolFileById.handler.d.ts | 16 + .../spool-file-by-id/SpoolFileById.handler.js | 49 + .../SpoolFileById.handler.js.map | 1 + lib/zoslogs/list/List.definition.d.ts | 2 + lib/zoslogs/list/List.definition.js | 23 + lib/zoslogs/list/List.definition.js.map | 1 + lib/zoslogs/list/logs/Logs.definition.d.ts | 2 + lib/zoslogs/list/logs/Logs.definition.js | 71 ++ lib/zoslogs/list/logs/Logs.definition.js.map | 1 + lib/zoslogs/list/logs/Logs.handler.d.ts | 11 + lib/zoslogs/list/logs/Logs.handler.js | 78 ++ lib/zoslogs/list/logs/Logs.handler.js.map | 1 + lib/zosmf/check/Check.definition.d.ts | 2 + lib/zosmf/check/Check.definition.js | 24 + lib/zosmf/check/Check.definition.js.map | 1 + lib/zosmf/check/status/Status.definition.d.ts | 2 + lib/zosmf/check/status/Status.definition.js | 43 + .../check/status/Status.definition.js.map | 1 + lib/zosmf/check/status/Status.handler.d.ts | 11 + lib/zosmf/check/status/Status.handler.js | 68 ++ lib/zosmf/check/status/Status.handler.js.map | 1 + lib/zosmf/constants/CheckStatus.messages.d.ts | 8 + lib/zosmf/constants/CheckStatus.messages.js | 29 + .../constants/CheckStatus.messages.js.map | 1 + lib/zosmf/list/List.definition.d.ts | 2 + lib/zosmf/list/List.definition.js | 23 + lib/zosmf/list/List.definition.js.map | 1 + .../list/systems/Systems.definition.d.ts | 2 + lib/zosmf/list/systems/Systems.definition.js | 41 + .../list/systems/Systems.definition.js.map | 1 + lib/zosmf/list/systems/Systems.handler.d.ts | 11 + lib/zosmf/list/systems/Systems.handler.js | 45 + lib/zosmf/list/systems/Systems.handler.js.map | 1 + lib/zostso/constants/ZosTso.constants.d.ts | 40 + lib/zostso/constants/ZosTso.constants.js | 55 + lib/zostso/constants/ZosTso.constants.js.map | 1 + lib/zostso/issue/Issue.definition.d.ts | 2 + lib/zostso/issue/Issue.definition.js | 25 + lib/zostso/issue/Issue.definition.js.map | 1 + .../issue/command/Command.definition.d.ts | 2 + .../issue/command/Command.definition.js | 50 + .../issue/command/Command.definition.js.map | 1 + lib/zostso/issue/command/Command.handler.d.ts | 11 + lib/zostso/issue/command/Command.handler.js | 46 + .../issue/command/Command.handler.js.map | 1 + lib/zostso/ping/Ping.definition.d.ts | 2 + lib/zostso/ping/Ping.definition.js | 26 + lib/zostso/ping/Ping.definition.js.map | 1 + .../PingAddressSpace.definition.d.ts | 2 + .../PingAddressSpace.definition.js | 40 + .../PingAddressSpace.definition.js.map | 1 + .../PingAddressSpace.handler.d.ts | 11 + .../address_space/PingAddressSpace.handler.js | 43 + .../PingAddressSpace.handler.js.map | 1 + lib/zostso/send/Send.definition.d.ts | 2 + lib/zostso/send/Send.definition.js | 25 + lib/zostso/send/Send.definition.js.map | 1 + .../SendToAddressSpace.definition.d.ts | 2 + .../SendToAddressSpace.definition.js | 49 + .../SendToAddressSpace.definition.js.map | 1 + .../SendToAddressSpace.handler.d.ts | 11 + .../SendToAddressSpace.handler.js | 42 + .../SendToAddressSpace.handler.js.map | 1 + lib/zostso/start/Start.definition.d.ts | 2 + lib/zostso/start/Start.definition.js | 25 + lib/zostso/start/Start.definition.js.map | 1 + .../AddressSpace.definition.d.ts | 2 + .../address-space/AddressSpace.definition.js | 48 + .../AddressSpace.definition.js.map | 1 + .../address-space/AddressSpace.handler.d.ts | 11 + .../address-space/AddressSpace.handler.js | 56 + .../address-space/AddressSpace.handler.js.map | 1 + lib/zostso/stop/Stop.definition.d.ts | 2 + lib/zostso/stop/Stop.definition.js | 23 + lib/zostso/stop/Stop.definition.js.map | 1 + .../AddressSpace.definition.d.ts | 2 + .../address-space/AddressSpace.definition.js | 39 + .../AddressSpace.definition.js.map | 1 + .../address-space/AddressSpace.handler.d.ts | 5 + .../address-space/AddressSpace.handler.js | 37 + .../address-space/AddressSpace.handler.js.map | 1 + lib/zosuss/issue/Issue.definition.d.ts | 5 + lib/zosuss/issue/Issue.definition.js | 25 + lib/zosuss/issue/Issue.definition.js.map | 1 + lib/zosuss/issue/ssh/Ssh.definition.d.ts | 2 + lib/zosuss/issue/ssh/Ssh.definition.js | 43 + lib/zosuss/issue/ssh/Ssh.definition.js.map | 1 + lib/zosuss/issue/ssh/Ssh.handler.d.ts | 13 + lib/zosuss/issue/ssh/Ssh.handler.js | 48 + lib/zosuss/issue/ssh/Ssh.handler.js.map | 1 + 789 files changed, 21073 insertions(+) create mode 100644 lib/config/auto-init/ApimlAutoInitHandler.d.ts create mode 100644 lib/config/auto-init/ApimlAutoInitHandler.js create mode 100644 lib/config/auto-init/ApimlAutoInitHandler.js.map create mode 100644 lib/daemon/disable/Disable.definition.d.ts create mode 100644 lib/daemon/disable/Disable.definition.js create mode 100644 lib/daemon/disable/Disable.definition.js.map create mode 100644 lib/daemon/disable/Disable.handler.d.ts create mode 100644 lib/daemon/disable/Disable.handler.js create mode 100644 lib/daemon/disable/Disable.handler.js.map create mode 100644 lib/daemon/doc/IDaemonEnableQuestions.d.ts create mode 100644 lib/daemon/doc/IDaemonEnableQuestions.js create mode 100644 lib/daemon/doc/IDaemonEnableQuestions.js.map create mode 100644 lib/daemon/doc/IDaemonPidForUser.d.ts create mode 100644 lib/daemon/doc/IDaemonPidForUser.js create mode 100644 lib/daemon/doc/IDaemonPidForUser.js.map create mode 100644 lib/daemon/enable/Enable.definition.d.ts create mode 100644 lib/daemon/enable/Enable.definition.js create mode 100644 lib/daemon/enable/Enable.definition.js.map create mode 100644 lib/daemon/enable/Enable.handler.d.ts create mode 100644 lib/daemon/enable/Enable.handler.js create mode 100644 lib/daemon/enable/Enable.handler.js.map create mode 100644 lib/daemon/restart/Restart.definition.d.ts create mode 100644 lib/daemon/restart/Restart.definition.js create mode 100644 lib/daemon/restart/Restart.definition.js.map create mode 100644 lib/daemon/restart/Restart.handler.d.ts create mode 100644 lib/daemon/restart/Restart.handler.js create mode 100644 lib/daemon/restart/Restart.handler.js.map create mode 100644 lib/provisioning/delete/Delete.definition.d.ts create mode 100644 lib/provisioning/delete/Delete.definition.js create mode 100644 lib/provisioning/delete/Delete.definition.js.map create mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.d.ts create mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.js create mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.js.map create mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.d.ts create mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.js create mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.js.map create mode 100644 lib/provisioning/list/List.definition.d.ts create mode 100644 lib/provisioning/list/List.definition.js create mode 100644 lib/provisioning/list/List.definition.js.map create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js create mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.js create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.js create mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.js create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.js create mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map create mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.d.ts create mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.js create mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.js.map create mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.d.ts create mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.js create mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.js.map create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.js create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.js create mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map create mode 100644 lib/provisioning/perform/Perform.definition.d.ts create mode 100644 lib/provisioning/perform/Perform.definition.js create mode 100644 lib/provisioning/perform/Perform.definition.js.map create mode 100644 lib/provisioning/perform/action/Action.definition.d.ts create mode 100644 lib/provisioning/perform/action/Action.definition.js create mode 100644 lib/provisioning/perform/action/Action.definition.js.map create mode 100644 lib/provisioning/perform/action/Action.handler.d.ts create mode 100644 lib/provisioning/perform/action/Action.handler.js create mode 100644 lib/provisioning/perform/action/Action.handler.js.map create mode 100644 lib/provisioning/provision/Provision.definition.d.ts create mode 100644 lib/provisioning/provision/Provision.definition.js create mode 100644 lib/provisioning/provision/Provision.definition.js.map create mode 100644 lib/provisioning/provision/template/Template.definition.d.ts create mode 100644 lib/provisioning/provision/template/Template.definition.js create mode 100644 lib/provisioning/provision/template/Template.definition.js.map create mode 100644 lib/provisioning/provision/template/Template.handler.d.ts create mode 100644 lib/provisioning/provision/template/Template.handler.js create mode 100644 lib/provisioning/provision/template/Template.handler.js.map create mode 100644 lib/workflows/archive/Archive.definition.d.ts create mode 100644 lib/workflows/archive/Archive.definition.js create mode 100644 lib/workflows/archive/Archive.definition.js.map create mode 100644 lib/workflows/archive/Archive.handler.d.ts create mode 100644 lib/workflows/archive/Archive.handler.js create mode 100644 lib/workflows/archive/Archive.handler.js.map create mode 100644 lib/workflows/archive/Archive.options.d.ts create mode 100644 lib/workflows/archive/Archive.options.js create mode 100644 lib/workflows/archive/Archive.options.js.map create mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.d.ts create mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.js create mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.js.map create mode 100644 lib/workflows/create/Create.common.handler.d.ts create mode 100644 lib/workflows/create/Create.common.handler.js create mode 100644 lib/workflows/create/Create.common.handler.js.map create mode 100644 lib/workflows/create/Create.common.options.d.ts create mode 100644 lib/workflows/create/Create.common.options.js create mode 100644 lib/workflows/create/Create.common.options.js.map create mode 100644 lib/workflows/create/Create.definition.d.ts create mode 100644 lib/workflows/create/Create.definition.js create mode 100644 lib/workflows/create/Create.definition.js.map create mode 100644 lib/workflows/create/dataset/Dataset.definition.d.ts create mode 100644 lib/workflows/create/dataset/Dataset.definition.js create mode 100644 lib/workflows/create/dataset/Dataset.definition.js.map create mode 100644 lib/workflows/create/localfile/LocalFile.definition.d.ts create mode 100644 lib/workflows/create/localfile/LocalFile.definition.js create mode 100644 lib/workflows/create/localfile/LocalFile.definition.js.map create mode 100644 lib/workflows/create/ussfile/UssFile.definition.d.ts create mode 100644 lib/workflows/create/ussfile/UssFile.definition.js create mode 100644 lib/workflows/create/ussfile/UssFile.definition.js.map create mode 100644 lib/workflows/delete/Delete.archived.common.handler.d.ts create mode 100644 lib/workflows/delete/Delete.archived.common.handler.js create mode 100644 lib/workflows/delete/Delete.archived.common.handler.js.map create mode 100644 lib/workflows/delete/Delete.common.handler.d.ts create mode 100644 lib/workflows/delete/Delete.common.handler.js create mode 100644 lib/workflows/delete/Delete.common.handler.js.map create mode 100644 lib/workflows/delete/Delete.definition.d.ts create mode 100644 lib/workflows/delete/Delete.definition.js create mode 100644 lib/workflows/delete/Delete.definition.js.map create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js create mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js create mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map create mode 100644 lib/workflows/list/List.definition.d.ts create mode 100644 lib/workflows/list/List.definition.js create mode 100644 lib/workflows/list/List.definition.js.map create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js create mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js create mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js create mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js create mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map create mode 100644 lib/workflows/start/Start.common.options.d.ts create mode 100644 lib/workflows/start/Start.common.options.js create mode 100644 lib/workflows/start/Start.common.options.js.map create mode 100644 lib/workflows/start/Start.definition.d.ts create mode 100644 lib/workflows/start/Start.definition.js create mode 100644 lib/workflows/start/Start.definition.js.map create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.js create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.js.map create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.js create mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.js.map create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.js create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.js.map create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.js create mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.js.map create mode 100644 lib/zosconsole/collect/Collect.definition.d.ts create mode 100644 lib/zosconsole/collect/Collect.definition.js create mode 100644 lib/zosconsole/collect/Collect.definition.js.map create mode 100644 lib/zosconsole/collect/response/Response.definition.d.ts create mode 100644 lib/zosconsole/collect/response/Response.definition.js create mode 100644 lib/zosconsole/collect/response/Response.definition.js.map create mode 100644 lib/zosconsole/collect/response/Response.handler.d.ts create mode 100644 lib/zosconsole/collect/response/Response.handler.js create mode 100644 lib/zosconsole/collect/response/Response.handler.js.map create mode 100644 lib/zosconsole/issue/Issue.definition.d.ts create mode 100644 lib/zosconsole/issue/Issue.definition.js create mode 100644 lib/zosconsole/issue/Issue.definition.js.map create mode 100644 lib/zosconsole/issue/command/Command.definition.d.ts create mode 100644 lib/zosconsole/issue/command/Command.definition.js create mode 100644 lib/zosconsole/issue/command/Command.definition.js.map create mode 100644 lib/zosconsole/issue/command/Command.handler.d.ts create mode 100644 lib/zosconsole/issue/command/Command.handler.js create mode 100644 lib/zosconsole/issue/command/Command.handler.js.map create mode 100644 lib/zosfiles/-strings-/en.d.ts create mode 100644 lib/zosfiles/-strings-/en.js create mode 100644 lib/zosfiles/-strings-/en.js.map create mode 100644 lib/zosfiles/compare/Compare.definition.d.ts create mode 100644 lib/zosfiles/compare/Compare.definition.js create mode 100644 lib/zosfiles/compare/Compare.definition.js.map create mode 100644 lib/zosfiles/compare/Compare.options.d.ts create mode 100644 lib/zosfiles/compare/Compare.options.js create mode 100644 lib/zosfiles/compare/Compare.options.js.map create mode 100644 lib/zosfiles/compare/CompareBase.handler.d.ts create mode 100644 lib/zosfiles/compare/CompareBase.handler.js create mode 100644 lib/zosfiles/compare/CompareBase.handler.js.map create mode 100644 lib/zosfiles/compare/CompareBaseHelper.d.ts create mode 100644 lib/zosfiles/compare/CompareBaseHelper.js create mode 100644 lib/zosfiles/compare/CompareBaseHelper.js.map create mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.d.ts create mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.js create mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.js.map create mode 100644 lib/zosfiles/compare/ds/Dataset.definition.d.ts create mode 100644 lib/zosfiles/compare/ds/Dataset.definition.js create mode 100644 lib/zosfiles/compare/ds/Dataset.definition.js.map create mode 100644 lib/zosfiles/compare/ds/Dataset.handler.d.ts create mode 100644 lib/zosfiles/compare/ds/Dataset.handler.js create mode 100644 lib/zosfiles/compare/ds/Dataset.handler.js.map create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js create mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js create mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js create mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map create mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.d.ts create mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.js create mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.js.map create mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.d.ts create mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.js create mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.js.map create mode 100644 lib/zosfiles/compare/uss/UssFile.definition.d.ts create mode 100644 lib/zosfiles/compare/uss/UssFile.definition.js create mode 100644 lib/zosfiles/compare/uss/UssFile.definition.js.map create mode 100644 lib/zosfiles/compare/uss/UssFile.handler.d.ts create mode 100644 lib/zosfiles/compare/uss/UssFile.handler.js create mode 100644 lib/zosfiles/compare/uss/UssFile.handler.js.map create mode 100644 lib/zosfiles/copy/Copy.definition.d.ts create mode 100644 lib/zosfiles/copy/Copy.definition.js create mode 100644 lib/zosfiles/copy/Copy.definition.js.map create mode 100644 lib/zosfiles/copy/ds/Ds.definition.d.ts create mode 100644 lib/zosfiles/copy/ds/Ds.definition.js create mode 100644 lib/zosfiles/copy/ds/Ds.definition.js.map create mode 100644 lib/zosfiles/copy/ds/Ds.handler.d.ts create mode 100644 lib/zosfiles/copy/ds/Ds.handler.js create mode 100644 lib/zosfiles/copy/ds/Ds.handler.js.map create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.js create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.js.map create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.js create mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.js.map create mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts create mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.js create mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map create mode 100644 lib/zosfiles/create/Create.definition.d.ts create mode 100644 lib/zosfiles/create/Create.definition.js create mode 100644 lib/zosfiles/create/Create.definition.js.map create mode 100644 lib/zosfiles/create/Create.options.d.ts create mode 100644 lib/zosfiles/create/Create.options.js create mode 100644 lib/zosfiles/create/Create.options.js.map create mode 100644 lib/zosfiles/create/Create.utils.d.ts create mode 100644 lib/zosfiles/create/Create.utils.js create mode 100644 lib/zosfiles/create/Create.utils.js.map create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.js create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.js create mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map create mode 100644 lib/zosfiles/create/cPds/CPDS.definition.d.ts create mode 100644 lib/zosfiles/create/cPds/CPDS.definition.js create mode 100644 lib/zosfiles/create/cPds/CPDS.definition.js.map create mode 100644 lib/zosfiles/create/cPds/CPDS.handler.d.ts create mode 100644 lib/zosfiles/create/cPds/CPDS.handler.js create mode 100644 lib/zosfiles/create/cPds/CPDS.handler.js.map create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.js create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.js create mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map create mode 100644 lib/zosfiles/create/ds/ds.definition.d.ts create mode 100644 lib/zosfiles/create/ds/ds.definition.js create mode 100644 lib/zosfiles/create/ds/ds.definition.js.map create mode 100644 lib/zosfiles/create/ds/ds.handler.d.ts create mode 100644 lib/zosfiles/create/ds/ds.handler.js create mode 100644 lib/zosfiles/create/ds/ds.handler.js.map create mode 100644 lib/zosfiles/create/pds/Pds.definition.d.ts create mode 100644 lib/zosfiles/create/pds/Pds.definition.js create mode 100644 lib/zosfiles/create/pds/Pds.definition.js.map create mode 100644 lib/zosfiles/create/pds/Pds.handler.d.ts create mode 100644 lib/zosfiles/create/pds/Pds.handler.js create mode 100644 lib/zosfiles/create/pds/Pds.handler.js.map create mode 100644 lib/zosfiles/create/ps/Ps.definition.d.ts create mode 100644 lib/zosfiles/create/ps/Ps.definition.js create mode 100644 lib/zosfiles/create/ps/Ps.definition.js.map create mode 100644 lib/zosfiles/create/ps/Ps.handler.d.ts create mode 100644 lib/zosfiles/create/ps/Ps.handler.js create mode 100644 lib/zosfiles/create/ps/Ps.handler.js.map create mode 100644 lib/zosfiles/create/ussDir/uss.options.d.ts create mode 100644 lib/zosfiles/create/ussDir/uss.options.js create mode 100644 lib/zosfiles/create/ussDir/uss.options.js.map create mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.d.ts create mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.js create mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.js.map create mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.d.ts create mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.js create mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.js.map create mode 100644 lib/zosfiles/create/ussFile/uss.options.d.ts create mode 100644 lib/zosfiles/create/ussFile/uss.options.js create mode 100644 lib/zosfiles/create/ussFile/uss.options.js.map create mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.d.ts create mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.js create mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.js.map create mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.d.ts create mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.js create mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.js.map create mode 100644 lib/zosfiles/create/vsam/vsam.definition.d.ts create mode 100644 lib/zosfiles/create/vsam/vsam.definition.js create mode 100644 lib/zosfiles/create/vsam/vsam.definition.js.map create mode 100644 lib/zosfiles/create/vsam/vsam.handler.d.ts create mode 100644 lib/zosfiles/create/vsam/vsam.handler.js create mode 100644 lib/zosfiles/create/vsam/vsam.handler.js.map create mode 100644 lib/zosfiles/create/vsam/vsam.options.d.ts create mode 100644 lib/zosfiles/create/vsam/vsam.options.js create mode 100644 lib/zosfiles/create/vsam/vsam.options.js.map create mode 100644 lib/zosfiles/create/zfs/zfs.definition.d.ts create mode 100644 lib/zosfiles/create/zfs/zfs.definition.js create mode 100644 lib/zosfiles/create/zfs/zfs.definition.js.map create mode 100644 lib/zosfiles/create/zfs/zfs.handler.d.ts create mode 100644 lib/zosfiles/create/zfs/zfs.handler.js create mode 100644 lib/zosfiles/create/zfs/zfs.handler.js.map create mode 100644 lib/zosfiles/create/zfs/zfs.options.d.ts create mode 100644 lib/zosfiles/create/zfs/zfs.options.js create mode 100644 lib/zosfiles/create/zfs/zfs.options.js.map create mode 100644 lib/zosfiles/delete/Delete.definition.d.ts create mode 100644 lib/zosfiles/delete/Delete.definition.js create mode 100644 lib/zosfiles/delete/Delete.definition.js.map create mode 100644 lib/zosfiles/delete/ds/Ds.definition.d.ts create mode 100644 lib/zosfiles/delete/ds/Ds.definition.js create mode 100644 lib/zosfiles/delete/ds/Ds.definition.js.map create mode 100644 lib/zosfiles/delete/ds/Ds.handler.d.ts create mode 100644 lib/zosfiles/delete/ds/Ds.handler.js create mode 100644 lib/zosfiles/delete/ds/Ds.handler.js.map create mode 100644 lib/zosfiles/delete/mds/Mds.definition.d.ts create mode 100644 lib/zosfiles/delete/mds/Mds.definition.js create mode 100644 lib/zosfiles/delete/mds/Mds.definition.js.map create mode 100644 lib/zosfiles/delete/mds/Mds.handler.d.ts create mode 100644 lib/zosfiles/delete/mds/Mds.handler.js create mode 100644 lib/zosfiles/delete/mds/Mds.handler.js.map create mode 100644 lib/zosfiles/delete/uss/Uss.definition.d.ts create mode 100644 lib/zosfiles/delete/uss/Uss.definition.js create mode 100644 lib/zosfiles/delete/uss/Uss.definition.js.map create mode 100644 lib/zosfiles/delete/uss/Uss.handler.d.ts create mode 100644 lib/zosfiles/delete/uss/Uss.handler.js create mode 100644 lib/zosfiles/delete/uss/Uss.handler.js.map create mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.d.ts create mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.js create mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.js.map create mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.d.ts create mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.js create mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.js.map create mode 100644 lib/zosfiles/delete/zfs/zfs.definition.d.ts create mode 100644 lib/zosfiles/delete/zfs/zfs.definition.js create mode 100644 lib/zosfiles/delete/zfs/zfs.definition.js.map create mode 100644 lib/zosfiles/delete/zfs/zfs.handler.d.ts create mode 100644 lib/zosfiles/delete/zfs/zfs.handler.js create mode 100644 lib/zosfiles/delete/zfs/zfs.handler.js.map create mode 100644 lib/zosfiles/download/Download.definition.d.ts create mode 100644 lib/zosfiles/download/Download.definition.js create mode 100644 lib/zosfiles/download/Download.definition.js.map create mode 100644 lib/zosfiles/download/Download.options.d.ts create mode 100644 lib/zosfiles/download/Download.options.js create mode 100644 lib/zosfiles/download/Download.options.js.map create mode 100644 lib/zosfiles/download/am/AllMembers.definition.d.ts create mode 100644 lib/zosfiles/download/am/AllMembers.definition.js create mode 100644 lib/zosfiles/download/am/AllMembers.definition.js.map create mode 100644 lib/zosfiles/download/am/AllMembers.handler.d.ts create mode 100644 lib/zosfiles/download/am/AllMembers.handler.js create mode 100644 lib/zosfiles/download/am/AllMembers.handler.js.map create mode 100644 lib/zosfiles/download/ds/Dataset.definition.d.ts create mode 100644 lib/zosfiles/download/ds/Dataset.definition.js create mode 100644 lib/zosfiles/download/ds/Dataset.definition.js.map create mode 100644 lib/zosfiles/download/ds/Dataset.handler.d.ts create mode 100644 lib/zosfiles/download/ds/Dataset.handler.js create mode 100644 lib/zosfiles/download/ds/Dataset.handler.js.map create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.js create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.js.map create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.js create mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.js.map create mode 100644 lib/zosfiles/download/uss/UssFile.definition.d.ts create mode 100644 lib/zosfiles/download/uss/UssFile.definition.js create mode 100644 lib/zosfiles/download/uss/UssFile.definition.js.map create mode 100644 lib/zosfiles/download/uss/UssFile.handler.d.ts create mode 100644 lib/zosfiles/download/uss/UssFile.handler.js create mode 100644 lib/zosfiles/download/uss/UssFile.handler.js.map create mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.d.ts create mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.js create mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.js.map create mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.d.ts create mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.js create mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.js.map create mode 100644 lib/zosfiles/edit/Edit.definition.d.ts create mode 100644 lib/zosfiles/edit/Edit.definition.js create mode 100644 lib/zosfiles/edit/Edit.definition.js.map create mode 100644 lib/zosfiles/edit/Edit.handler.d.ts create mode 100644 lib/zosfiles/edit/Edit.handler.js create mode 100644 lib/zosfiles/edit/Edit.handler.js.map create mode 100644 lib/zosfiles/edit/Edit.options.d.ts create mode 100644 lib/zosfiles/edit/Edit.options.js create mode 100644 lib/zosfiles/edit/Edit.options.js.map create mode 100644 lib/zosfiles/edit/Edit.utils.d.ts create mode 100644 lib/zosfiles/edit/Edit.utils.js create mode 100644 lib/zosfiles/edit/Edit.utils.js.map create mode 100644 lib/zosfiles/edit/ds/Dataset.definition.d.ts create mode 100644 lib/zosfiles/edit/ds/Dataset.definition.js create mode 100644 lib/zosfiles/edit/ds/Dataset.definition.js.map create mode 100644 lib/zosfiles/edit/uss/USSFile.definition.d.ts create mode 100644 lib/zosfiles/edit/uss/USSFile.definition.js create mode 100644 lib/zosfiles/edit/uss/USSFile.definition.js.map create mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.d.ts create mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.js create mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.js.map create mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.d.ts create mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.js create mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.js.map create mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.d.ts create mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.js create mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.js.map create mode 100644 lib/zosfiles/hRecall/HRecall.definition.d.ts create mode 100644 lib/zosfiles/hRecall/HRecall.definition.js create mode 100644 lib/zosfiles/hRecall/HRecall.definition.js.map create mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.d.ts create mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.js create mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.js.map create mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.d.ts create mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.js create mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.js.map create mode 100644 lib/zosfiles/invoke/Invoke.definition.d.ts create mode 100644 lib/zosfiles/invoke/Invoke.definition.js create mode 100644 lib/zosfiles/invoke/Invoke.definition.js.map create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.js create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.js create mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js create mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map create mode 100644 lib/zosfiles/list/List.definition.d.ts create mode 100644 lib/zosfiles/list/List.definition.js create mode 100644 lib/zosfiles/list/List.definition.js.map create mode 100644 lib/zosfiles/list/List.options.d.ts create mode 100644 lib/zosfiles/list/List.options.js create mode 100644 lib/zosfiles/list/List.options.js.map create mode 100644 lib/zosfiles/list/am/AllMembers.definition.d.ts create mode 100644 lib/zosfiles/list/am/AllMembers.definition.js create mode 100644 lib/zosfiles/list/am/AllMembers.definition.js.map create mode 100644 lib/zosfiles/list/am/AllMembers.handler.d.ts create mode 100644 lib/zosfiles/list/am/AllMembers.handler.js create mode 100644 lib/zosfiles/list/am/AllMembers.handler.js.map create mode 100644 lib/zosfiles/list/ds/DataSet.definition.d.ts create mode 100644 lib/zosfiles/list/ds/DataSet.definition.js create mode 100644 lib/zosfiles/list/ds/DataSet.definition.js.map create mode 100644 lib/zosfiles/list/ds/DataSet.handler.d.ts create mode 100644 lib/zosfiles/list/ds/DataSet.handler.js create mode 100644 lib/zosfiles/list/ds/DataSet.handler.js.map create mode 100644 lib/zosfiles/list/fs/Fs.definition.d.ts create mode 100644 lib/zosfiles/list/fs/Fs.definition.js create mode 100644 lib/zosfiles/list/fs/Fs.definition.js.map create mode 100644 lib/zosfiles/list/fs/Fs.handler.d.ts create mode 100644 lib/zosfiles/list/fs/Fs.handler.js create mode 100644 lib/zosfiles/list/fs/Fs.handler.js.map create mode 100644 lib/zosfiles/list/uss/UssFile.definition.d.ts create mode 100644 lib/zosfiles/list/uss/UssFile.definition.js create mode 100644 lib/zosfiles/list/uss/UssFile.definition.js.map create mode 100644 lib/zosfiles/list/uss/UssFile.handler.d.ts create mode 100644 lib/zosfiles/list/uss/UssFile.handler.js create mode 100644 lib/zosfiles/list/uss/UssFile.handler.js.map create mode 100644 lib/zosfiles/mount/Mount.definition.d.ts create mode 100644 lib/zosfiles/mount/Mount.definition.js create mode 100644 lib/zosfiles/mount/Mount.definition.js.map create mode 100644 lib/zosfiles/mount/fs/fs.definition.d.ts create mode 100644 lib/zosfiles/mount/fs/fs.definition.js create mode 100644 lib/zosfiles/mount/fs/fs.definition.js.map create mode 100644 lib/zosfiles/mount/fs/fs.handler.d.ts create mode 100644 lib/zosfiles/mount/fs/fs.handler.js create mode 100644 lib/zosfiles/mount/fs/fs.handler.js.map create mode 100644 lib/zosfiles/mount/fs/fs.options.d.ts create mode 100644 lib/zosfiles/mount/fs/fs.options.js create mode 100644 lib/zosfiles/mount/fs/fs.options.js.map create mode 100644 lib/zosfiles/rename/Rename.definition.d.ts create mode 100644 lib/zosfiles/rename/Rename.definition.js create mode 100644 lib/zosfiles/rename/Rename.definition.js.map create mode 100644 lib/zosfiles/rename/ds/Ds.definition.d.ts create mode 100644 lib/zosfiles/rename/ds/Ds.definition.js create mode 100644 lib/zosfiles/rename/ds/Ds.definition.js.map create mode 100644 lib/zosfiles/rename/ds/Ds.handler.d.ts create mode 100644 lib/zosfiles/rename/ds/Ds.handler.js create mode 100644 lib/zosfiles/rename/ds/Ds.handler.js.map create mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.d.ts create mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.js create mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.js.map create mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.d.ts create mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.js create mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.js.map create mode 100644 lib/zosfiles/unmount/Unmount.definition.d.ts create mode 100644 lib/zosfiles/unmount/Unmount.definition.js create mode 100644 lib/zosfiles/unmount/Unmount.definition.js.map create mode 100644 lib/zosfiles/unmount/fs/fs.definition.d.ts create mode 100644 lib/zosfiles/unmount/fs/fs.definition.js create mode 100644 lib/zosfiles/unmount/fs/fs.definition.js.map create mode 100644 lib/zosfiles/unmount/fs/fs.handler.d.ts create mode 100644 lib/zosfiles/unmount/fs/fs.handler.js create mode 100644 lib/zosfiles/unmount/fs/fs.handler.js.map create mode 100644 lib/zosfiles/upload/Upload.definition.d.ts create mode 100644 lib/zosfiles/upload/Upload.definition.js create mode 100644 lib/zosfiles/upload/Upload.definition.js.map create mode 100644 lib/zosfiles/upload/Upload.options.d.ts create mode 100644 lib/zosfiles/upload/Upload.options.js create mode 100644 lib/zosfiles/upload/Upload.options.js.map create mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.d.ts create mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.js create mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.js.map create mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.d.ts create mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.js create mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.js.map create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.js create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.js create mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.js create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.js create mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.js create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.js.map create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.js create mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.js.map create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.js create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.js create mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map create mode 100644 lib/zosfiles/view/View.definition.d.ts create mode 100644 lib/zosfiles/view/View.definition.js create mode 100644 lib/zosfiles/view/View.definition.js.map create mode 100644 lib/zosfiles/view/View.options.d.ts create mode 100644 lib/zosfiles/view/View.options.js create mode 100644 lib/zosfiles/view/View.options.js.map create mode 100644 lib/zosfiles/view/ds/Dataset.definition.d.ts create mode 100644 lib/zosfiles/view/ds/Dataset.definition.js create mode 100644 lib/zosfiles/view/ds/Dataset.definition.js.map create mode 100644 lib/zosfiles/view/ds/Dataset.handler.d.ts create mode 100644 lib/zosfiles/view/ds/Dataset.handler.js create mode 100644 lib/zosfiles/view/ds/Dataset.handler.js.map create mode 100644 lib/zosfiles/view/uss/USSFile.definition.d.ts create mode 100644 lib/zosfiles/view/uss/USSFile.definition.js create mode 100644 lib/zosfiles/view/uss/USSFile.definition.js.map create mode 100644 lib/zosfiles/view/uss/USSFile.handler.d.ts create mode 100644 lib/zosfiles/view/uss/USSFile.handler.js create mode 100644 lib/zosfiles/view/uss/USSFile.handler.js.map create mode 100644 lib/zosjobs/-strings-/en.d.ts create mode 100644 lib/zosjobs/-strings-/en.js create mode 100644 lib/zosjobs/-strings-/en.js.map create mode 100644 lib/zosjobs/cancel/Cancel.definition.d.ts create mode 100644 lib/zosjobs/cancel/Cancel.definition.js create mode 100644 lib/zosjobs/cancel/Cancel.definition.js.map create mode 100644 lib/zosjobs/cancel/job/Job.definition.d.ts create mode 100644 lib/zosjobs/cancel/job/Job.definition.js create mode 100644 lib/zosjobs/cancel/job/Job.definition.js.map create mode 100644 lib/zosjobs/cancel/job/Job.handler.d.ts create mode 100644 lib/zosjobs/cancel/job/Job.handler.js create mode 100644 lib/zosjobs/cancel/job/Job.handler.js.map create mode 100644 lib/zosjobs/delete/Delete.definition.d.ts create mode 100644 lib/zosjobs/delete/Delete.definition.js create mode 100644 lib/zosjobs/delete/Delete.definition.js.map create mode 100644 lib/zosjobs/delete/job/Job.definition.d.ts create mode 100644 lib/zosjobs/delete/job/Job.definition.js create mode 100644 lib/zosjobs/delete/job/Job.definition.js.map create mode 100644 lib/zosjobs/delete/job/Job.handler.d.ts create mode 100644 lib/zosjobs/delete/job/Job.handler.js create mode 100644 lib/zosjobs/delete/job/Job.handler.js.map create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.js create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.js create mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map create mode 100644 lib/zosjobs/download/Download.definition.d.ts create mode 100644 lib/zosjobs/download/Download.definition.js create mode 100644 lib/zosjobs/download/Download.definition.js.map create mode 100644 lib/zosjobs/download/download-output/Output.definition.d.ts create mode 100644 lib/zosjobs/download/download-output/Output.definition.js create mode 100644 lib/zosjobs/download/download-output/Output.definition.js.map create mode 100644 lib/zosjobs/download/download-output/Output.handler.d.ts create mode 100644 lib/zosjobs/download/download-output/Output.handler.js create mode 100644 lib/zosjobs/download/download-output/Output.handler.js.map create mode 100644 lib/zosjobs/list/List.definition.d.ts create mode 100644 lib/zosjobs/list/List.definition.js create mode 100644 lib/zosjobs/list/List.definition.js.map create mode 100644 lib/zosjobs/list/jobs/Jobs.definition.d.ts create mode 100644 lib/zosjobs/list/jobs/Jobs.definition.js create mode 100644 lib/zosjobs/list/jobs/Jobs.definition.js.map create mode 100644 lib/zosjobs/list/jobs/Jobs.handler.d.ts create mode 100644 lib/zosjobs/list/jobs/Jobs.handler.js create mode 100644 lib/zosjobs/list/jobs/Jobs.handler.js.map create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js create mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map create mode 100644 lib/zosjobs/modify/Modify.definition.d.ts create mode 100644 lib/zosjobs/modify/Modify.definition.js create mode 100644 lib/zosjobs/modify/Modify.definition.js.map create mode 100644 lib/zosjobs/modify/job/Job.definition.d.ts create mode 100644 lib/zosjobs/modify/job/Job.definition.js create mode 100644 lib/zosjobs/modify/job/Job.definition.js.map create mode 100644 lib/zosjobs/modify/job/Job.handler.d.ts create mode 100644 lib/zosjobs/modify/job/Job.handler.js create mode 100644 lib/zosjobs/modify/job/Job.handler.js.map create mode 100644 lib/zosjobs/submit/Submit.definition.d.ts create mode 100644 lib/zosjobs/submit/Submit.definition.js create mode 100644 lib/zosjobs/submit/Submit.definition.js.map create mode 100644 lib/zosjobs/submit/Submit.shared.handler.d.ts create mode 100644 lib/zosjobs/submit/Submit.shared.handler.js create mode 100644 lib/zosjobs/submit/Submit.shared.handler.js.map create mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.d.ts create mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.js create mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.js.map create mode 100644 lib/zosjobs/submit/local-file/localFile.definition.d.ts create mode 100644 lib/zosjobs/submit/local-file/localFile.definition.js create mode 100644 lib/zosjobs/submit/local-file/localFile.definition.js.map create mode 100644 lib/zosjobs/submit/stdin/stdin.definition.d.ts create mode 100644 lib/zosjobs/submit/stdin/stdin.definition.js create mode 100644 lib/zosjobs/submit/stdin/stdin.definition.js.map create mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.d.ts create mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.js create mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.js.map create mode 100644 lib/zosjobs/view/View.definition.d.ts create mode 100644 lib/zosjobs/view/View.definition.js create mode 100644 lib/zosjobs/view/View.definition.js.map create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js create mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js create mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js create mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map create mode 100644 lib/zoslogs/list/List.definition.d.ts create mode 100644 lib/zoslogs/list/List.definition.js create mode 100644 lib/zoslogs/list/List.definition.js.map create mode 100644 lib/zoslogs/list/logs/Logs.definition.d.ts create mode 100644 lib/zoslogs/list/logs/Logs.definition.js create mode 100644 lib/zoslogs/list/logs/Logs.definition.js.map create mode 100644 lib/zoslogs/list/logs/Logs.handler.d.ts create mode 100644 lib/zoslogs/list/logs/Logs.handler.js create mode 100644 lib/zoslogs/list/logs/Logs.handler.js.map create mode 100644 lib/zosmf/check/Check.definition.d.ts create mode 100644 lib/zosmf/check/Check.definition.js create mode 100644 lib/zosmf/check/Check.definition.js.map create mode 100644 lib/zosmf/check/status/Status.definition.d.ts create mode 100644 lib/zosmf/check/status/Status.definition.js create mode 100644 lib/zosmf/check/status/Status.definition.js.map create mode 100644 lib/zosmf/check/status/Status.handler.d.ts create mode 100644 lib/zosmf/check/status/Status.handler.js create mode 100644 lib/zosmf/check/status/Status.handler.js.map create mode 100644 lib/zosmf/constants/CheckStatus.messages.d.ts create mode 100644 lib/zosmf/constants/CheckStatus.messages.js create mode 100644 lib/zosmf/constants/CheckStatus.messages.js.map create mode 100644 lib/zosmf/list/List.definition.d.ts create mode 100644 lib/zosmf/list/List.definition.js create mode 100644 lib/zosmf/list/List.definition.js.map create mode 100644 lib/zosmf/list/systems/Systems.definition.d.ts create mode 100644 lib/zosmf/list/systems/Systems.definition.js create mode 100644 lib/zosmf/list/systems/Systems.definition.js.map create mode 100644 lib/zosmf/list/systems/Systems.handler.d.ts create mode 100644 lib/zosmf/list/systems/Systems.handler.js create mode 100644 lib/zosmf/list/systems/Systems.handler.js.map create mode 100644 lib/zostso/constants/ZosTso.constants.d.ts create mode 100644 lib/zostso/constants/ZosTso.constants.js create mode 100644 lib/zostso/constants/ZosTso.constants.js.map create mode 100644 lib/zostso/issue/Issue.definition.d.ts create mode 100644 lib/zostso/issue/Issue.definition.js create mode 100644 lib/zostso/issue/Issue.definition.js.map create mode 100644 lib/zostso/issue/command/Command.definition.d.ts create mode 100644 lib/zostso/issue/command/Command.definition.js create mode 100644 lib/zostso/issue/command/Command.definition.js.map create mode 100644 lib/zostso/issue/command/Command.handler.d.ts create mode 100644 lib/zostso/issue/command/Command.handler.js create mode 100644 lib/zostso/issue/command/Command.handler.js.map create mode 100644 lib/zostso/ping/Ping.definition.d.ts create mode 100644 lib/zostso/ping/Ping.definition.js create mode 100644 lib/zostso/ping/Ping.definition.js.map create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.js create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.js.map create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.js create mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.js.map create mode 100644 lib/zostso/send/Send.definition.d.ts create mode 100644 lib/zostso/send/Send.definition.js create mode 100644 lib/zostso/send/Send.definition.js.map create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.js create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.js.map create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.js create mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.js.map create mode 100644 lib/zostso/start/Start.definition.d.ts create mode 100644 lib/zostso/start/Start.definition.js create mode 100644 lib/zostso/start/Start.definition.js.map create mode 100644 lib/zostso/start/address-space/AddressSpace.definition.d.ts create mode 100644 lib/zostso/start/address-space/AddressSpace.definition.js create mode 100644 lib/zostso/start/address-space/AddressSpace.definition.js.map create mode 100644 lib/zostso/start/address-space/AddressSpace.handler.d.ts create mode 100644 lib/zostso/start/address-space/AddressSpace.handler.js create mode 100644 lib/zostso/start/address-space/AddressSpace.handler.js.map create mode 100644 lib/zostso/stop/Stop.definition.d.ts create mode 100644 lib/zostso/stop/Stop.definition.js create mode 100644 lib/zostso/stop/Stop.definition.js.map create mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.d.ts create mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.js create mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.js.map create mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.d.ts create mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.js create mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.js.map create mode 100644 lib/zosuss/issue/Issue.definition.d.ts create mode 100644 lib/zosuss/issue/Issue.definition.js create mode 100644 lib/zosuss/issue/Issue.definition.js.map create mode 100644 lib/zosuss/issue/ssh/Ssh.definition.d.ts create mode 100644 lib/zosuss/issue/ssh/Ssh.definition.js create mode 100644 lib/zosuss/issue/ssh/Ssh.definition.js.map create mode 100644 lib/zosuss/issue/ssh/Ssh.handler.d.ts create mode 100644 lib/zosuss/issue/ssh/Ssh.handler.js create mode 100644 lib/zosuss/issue/ssh/Ssh.handler.js.map diff --git a/lib/config/auto-init/ApimlAutoInitHandler.d.ts b/lib/config/auto-init/ApimlAutoInitHandler.d.ts new file mode 100644 index 0000000000..f3b371ae87 --- /dev/null +++ b/lib/config/auto-init/ApimlAutoInitHandler.d.ts @@ -0,0 +1,90 @@ +import { BaseAutoInitHandler, AbstractSession, ICommandArguments, IConfig, ISession, IHandlerResponseApi, IHandlerParameters } from "@zowe/imperative"; +/** + * This class is used by the auth command handlers as the base class for their implementation. + */ +export default class ApimlAutoInitHandler extends BaseAutoInitHandler { + /** + * The profile type where token type and value should be stored + */ + protected mProfileType: string; + /** + * The description of your service to be used in CLI prompt messages + */ + protected mServiceDescription: string; + private readonly NO_CHANGES_MSG; + private readonly CREATED_MSG; + private readonly MODIFIED_MSG; + private readonly REMOVED_MSG; + private readonly WARNING_MSG; + /** + * This structure is populated during convertApimlProfileInfoToProfileConfig + * and retrieved by the auto-init command handler to provide the data for the + * output of the auto-init command. + * @private + */ + private mAutoInitReport; + /** + * This is called by the {@link BaseAuthHandler#process} when it needs a + * session. Should be used to create a session to connect to the auto-init + * service. + * @param {ICommandArguments} args The command line arguments to use for building the session + * @returns {ISession} The session object built from the command line arguments. + */ + protected createSessCfgFromArgs: (args: ICommandArguments) => ISession; + /** + * This is called by the "auto-init" command after it creates a session, to generate a configuration + * @param {AbstractSession} session The session object to use to connect to the configuration service + * @returns {Promise} The response from the auth service containing a token + * @throws {ImperativeError} + */ + protected doAutoInit(session: AbstractSession, params: IHandlerParameters): Promise; + /** + * This is called by our processAutoInit() base class function to display the set of actions + * taken by the auto-init command. + */ + protected displayAutoInitChanges(response: IHandlerResponseApi): void; + /** + * Colorize a change keyword for a message to be displayed. + * + * @param {string} changeKeyWd + * The keyword that we want to colorize. + * + * @returns {string} A string with the keyword in the appropriate color. + */ + private colorizeKeyword; + /** + * Record the set of profiles found by our interrogation of plugins and APIML. + * The information is re-arranged to enable easy reporting of the desired information. + * This function assumes that the 'services' module continues to use its algorithm + * in which the first profile of a given type is the profile that we select.. + * If that changes, this function must also change. + * + * @param {IApimlProfileInfo} apimlProfInfos + * The profileInfo array returned by services.getServicesByConfig(). + */ + private recordProfilesFound; + /** + * Record how the profiles have been updated by auto-init. + */ + private recordProfileUpdates; + /** + * Record the change message for one profile with the + * this.mAutoInitReport.profileRpts array. + * + * @param {string} profNmToRecord + * The name of the profile for which we want to record a change. + * + * @param {IConfigProfile} profObj + * An IConfigProfile object which is used when a new entry must be + * created in the profileRpts array. + * + * @param {string} msgToRecord + * The message to record for the type of change to this profile. + */ + private recordOneProfChange; + /** + * Record info about profile properties that override properties defined in + * the base profile. These properties may prevent connecting to the APIML. + */ + private recordProfileConflictsWithBase; +} diff --git a/lib/config/auto-init/ApimlAutoInitHandler.js b/lib/config/auto-init/ApimlAutoInitHandler.js new file mode 100644 index 0000000000..ab41c0ea0e --- /dev/null +++ b/lib/config/auto-init/ApimlAutoInitHandler.js @@ -0,0 +1,474 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const lodash = require("lodash"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const imperative_1 = require("@zowe/imperative"); +const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk"); +/** + * This class is used by the auth command handlers as the base class for their implementation. + */ +class ApimlAutoInitHandler extends imperative_1.BaseAutoInitHandler { + constructor() { + super(...arguments); + /** + * The profile type where token type and value should be stored + */ + this.mProfileType = "base"; + /** + * The description of your service to be used in CLI prompt messages + */ + this.mServiceDescription = "your API Mediation Layer"; + this.NO_CHANGES_MSG = "No changes to"; + this.CREATED_MSG = "Created"; + this.MODIFIED_MSG = "Modified"; + this.REMOVED_MSG = "Removed"; + this.WARNING_MSG = "Warning:"; + /** + * This structure is populated during convertApimlProfileInfoToProfileConfig + * and retrieved by the auto-init command handler to provide the data for the + * output of the auto-init command. + * @private + */ + this.mAutoInitReport = { + configFileNm: "", + changeForConfig: this.NO_CHANGES_MSG, + startingConfig: null, + endingConfig: null, + profileRpts: [] + }; + /** + * This is called by the {@link BaseAuthHandler#process} when it needs a + * session. Should be used to create a session to connect to the auto-init + * service. + * @param {ICommandArguments} args The command line arguments to use for building the session + * @returns {ISession} The session object built from the command line arguments. + */ + this.createSessCfgFromArgs = zosmf_for_zowe_sdk_1.ZosmfSession.createSessCfgFromArgs; + } + /** + * This is called by the "auto-init" command after it creates a session, to generate a configuration + * @param {AbstractSession} session The session object to use to connect to the configuration service + * @returns {Promise} The response from the auth service containing a token + * @throws {ImperativeError} + */ + doAutoInit(session, params) { + return __awaiter(this, void 0, void 0, function* () { + // Login with token authentication first, so we can support certificates + if ((session.ISession.user && session.ISession.password) || (session.ISession.cert && session.ISession.certKey)) { + // If it is basic authentication, we need to set the auth type. + if (session.ISession.tokenType == null) { + session.ISession.tokenType = imperative_1.SessConstants.TOKEN_TYPE_APIML; + } + session.ISession.storeCookie = true; + session.ISession.tokenValue = yield core_for_zowe_sdk_1.Login.apimlLogin(session); + session.ISession.storeCookie = false; + session.ISession.type = imperative_1.SessConstants.AUTH_TYPE_TOKEN; + session.ISession.base64EncodedAuth = + session.ISession.user = session.ISession.password = + session.ISession.cert = session.ISession.certKey = undefined; + } + const restErrUnauthorized = 403; + const configs = core_for_zowe_sdk_1.Services.getPluginApimlConfigs(); + let profileInfos; + try { + profileInfos = yield core_for_zowe_sdk_1.Services.getServicesByConfig(session, configs); + } + catch (err) { + if (err instanceof imperative_1.RestClientError && err.mDetails && err.mDetails.httpStatus && err.mDetails.httpStatus === restErrUnauthorized) { + throw new imperative_1.ImperativeError({ + msg: "HTTP(S) error status 403 received. Verify the user has access to the APIML API Services SAF resource.", + additionalDetails: err.mDetails.additionalDetails, + causeErrors: err + }); + } + else { + throw err; + } + } + const profileConfig = core_for_zowe_sdk_1.Services.convertApimlProfileInfoToProfileConfig(profileInfos); + const config = imperative_1.ImperativeConfig.instance.config; + // Check to see if there is an active base profile to avoid creating a new one named "base" + let activeBaseProfile = params.arguments[`${this.mProfileType}-profile`] || config.properties.defaults[this.mProfileType]; + let baseProfileCreated = false; + // Populate the config with base profile information + if (activeBaseProfile == null) { + profileConfig.profiles[this.mProfileType] = { + type: this.mProfileType, + properties: { + host: session.ISession.hostname, + port: session.ISession.port, + rejectUnauthorized: session.ISession.rejectUnauthorized + }, + secure: [] + }; + profileConfig.defaults[this.mProfileType] = this.mProfileType; + activeBaseProfile = this.mProfileType; + baseProfileCreated = true; + } + else { + lodash.set(profileConfig, config.api.profiles.getProfilePathFromName(activeBaseProfile), { + type: this.mProfileType, + properties: Object.assign(Object.assign({}, config.api.profiles.get(activeBaseProfile)), { host: session.ISession.hostname, port: session.ISession.port, rejectUnauthorized: session.ISession.rejectUnauthorized }), + secure: [] + }); + } + if (session.ISession.tokenType != null && session.ISession.tokenValue != null) { + const expandedBaseProfilePath = config.api.profiles.getProfilePathFromName(activeBaseProfile); + lodash.get(profileConfig, expandedBaseProfilePath).properties.tokenType = session.ISession.tokenType; + lodash.get(profileConfig, expandedBaseProfilePath).properties.tokenValue = session.ISession.tokenValue; + lodash.get(profileConfig, expandedBaseProfilePath).secure.push("tokenValue"); + } + this.recordProfilesFound(profileInfos); + // Report whether or not we created a base profile in this auto-init execution + this.mAutoInitReport.profileRpts.push({ + profName: this.mProfileType, + profType: this.mProfileType, + changeForProf: baseProfileCreated ? "created" : "modified", + basePath: null, + pluginNms: [], + altProfiles: [], + baseOverrides: [] + }); + return profileConfig; + }); + } + /** + * This is called by our processAutoInit() base class function to display the set of actions + * taken by the auto-init command. + */ + displayAutoInitChanges(response) { + // all profile updates have been made. Now we can record those updates. + this.recordProfileUpdates(); + if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) { + response.console.log("No changes were needed in the existing Zowe configuration file '" + + path.basename(this.mAutoInitReport.configFileNm) + "'."); + return; + } + // Report the type of config file changes + response.console.log(this.colorizeKeyword(this.mAutoInitReport.changeForConfig) + + " the Zowe configuration file '" + + path.basename(this.mAutoInitReport.configFileNm) + "'."); + // display information about each profile + for (const nextProfRpt of this.mAutoInitReport.profileRpts) { + let defOrAlt; + const isDefaultProf = this.mAutoInitReport.endingConfig.properties.defaults[nextProfRpt.profType] === + nextProfRpt.profName; + if (isDefaultProf) { + defOrAlt = "default"; + } + else { + defOrAlt = "alternate"; + } + let msg; + msg = "\n" + this.colorizeKeyword(nextProfRpt.changeForProf) + " " + defOrAlt + + " profile '" + nextProfRpt.profName + "' of type '" + nextProfRpt.profType + "'"; + if (nextProfRpt.profType !== "base") { + msg += " with basePath '" + nextProfRpt.basePath + "'"; + } + response.console.log(msg); + // only report plugins and alternates for the default profile of each type + if (!isDefaultProf) { + continue; + } + // report plugins using this profile (except for base profiles) + let loopCount; + if (nextProfRpt.pluginNms.length > 0) { + if (nextProfRpt.profType !== this.mProfileType) { + loopCount = 1; + for (const pluginNm of nextProfRpt.pluginNms) { + if (loopCount == 1) { + msg = " Packages that use profile type '" + nextProfRpt.profType + "': "; + } + else { + msg += ", "; + } + msg += pluginNm; + loopCount++; + } + response.console.log(msg); + } + } + // display the alternate profiles + if (nextProfRpt.altProfiles.length > 0) { + loopCount = 1; + for (const altProf of nextProfRpt.altProfiles) { + if (loopCount == 1) { + msg = " Alternate profiles of type '" + nextProfRpt.profType + "': "; + } + else { + msg += ", "; + } + msg += altProf.altProfName; + loopCount++; + } + response.console.log(msg); + } + if (nextProfRpt.baseOverrides.length > 0) { + const baseProfileName = this.mAutoInitReport.endingConfig.properties.defaults.base; + msg = ` ${this.colorizeKeyword(this.WARNING_MSG)} This profile may require manual edits to work with APIML:`; + for (const baseOverride of nextProfRpt.baseOverrides) { + msg += `\n ${baseOverride.propName}: `; + if (!baseOverride.secure) { + msg += `'${baseOverride.priorityValue}' overrides '${baseOverride.baseValue}' in`; + } + else { + msg += "secure value " + ((baseOverride.priorityValue != null) ? "overrides" : "may override"); + } + msg += ` profile '${baseProfileName}'`; + } + response.console.log(msg); + } + } + response.console.log("\nYou can edit this configuration file to change your Zowe configuration:\n " + + this.mAutoInitReport.configFileNm); + } + /** + * Colorize a change keyword for a message to be displayed. + * + * @param {string} changeKeyWd + * The keyword that we want to colorize. + * + * @returns {string} A string with the keyword in the appropriate color. + */ + colorizeKeyword(changeKeyword) { + let keywordInColor; + switch (changeKeyword) { + case this.CREATED_MSG: + case this.MODIFIED_MSG: + keywordInColor = imperative_1.TextUtils.chalk.greenBright(changeKeyword); + break; + case this.REMOVED_MSG: + keywordInColor = imperative_1.TextUtils.chalk.redBright(changeKeyword); + break; + case this.WARNING_MSG: + keywordInColor = imperative_1.TextUtils.chalk.yellowBright(changeKeyword); + break; + default: + keywordInColor = changeKeyword; + break; + } + return keywordInColor; + } + /** + * Record the set of profiles found by our interrogation of plugins and APIML. + * The information is re-arranged to enable easy reporting of the desired information. + * This function assumes that the 'services' module continues to use its algorithm + * in which the first profile of a given type is the profile that we select.. + * If that changes, this function must also change. + * + * @param {IApimlProfileInfo} apimlProfInfos + * The profileInfo array returned by services.getServicesByConfig(). + */ + recordProfilesFound(apimlProfInfos) { + // record our starting config + if (imperative_1.ImperativeConfig.instance.config.exists) { + this.mAutoInitReport.startingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get(); + } + else { + this.mAutoInitReport.startingConfig = null; + } + // Record the profiles found by APIML for each profile type + for (const currProfInfo of apimlProfInfos) { + const newProfRpt = { + changeForProf: this.NO_CHANGES_MSG, + profName: currProfInfo.profName, + profType: currProfInfo.profType, + basePath: currProfInfo.basePaths[0], + pluginNms: [], + altProfiles: [], + baseOverrides: [] + }; + // add all of the plugins using this profile + for (const nextPlugin of currProfInfo.pluginConfigs) { + newProfRpt.pluginNms.push(nextPlugin.pluginName); + } + // each additional basePath for the current plugin is an alternate + for (let basePathInx = 1; basePathInx < currProfInfo.basePaths.length; basePathInx++) { + newProfRpt.altProfiles.push({ + altProfName: currProfInfo.profName, + altProfType: currProfInfo.profType, + altBasePath: currProfInfo.basePaths[basePathInx] + }); + } + // each of the other profiles of the same profile type is an alternate + for (const nextProfInfoOfType of apimlProfInfos) { + if (nextProfInfoOfType.profName !== currProfInfo.profName && + nextProfInfoOfType.profType === currProfInfo.profType) { + // each basePath constitutes another alternate + for (const nextBasePath of nextProfInfoOfType.basePaths) { + newProfRpt.altProfiles.push({ + altProfName: nextProfInfoOfType.profName, + altProfType: nextProfInfoOfType.profType, + altBasePath: nextBasePath + }); + } + } + } + this.mAutoInitReport.profileRpts.push(newProfRpt); + } + } + /** + * Record how the profiles have been updated by auto-init. + */ + recordProfileUpdates() { + // get our current (ending) config + this.mAutoInitReport.endingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get(); + // record the config file name path + this.mAutoInitReport.configFileNm = this.mAutoInitReport.endingConfig.path; + this.mAutoInitReport.changeForConfig = this.NO_CHANGES_MSG; + if (this.mAutoInitReport.startingConfig === null) { + // We started with no config file, so everything was created. + this.mAutoInitReport.changeForConfig = this.CREATED_MSG; + for (const nextProfRpt of this.mAutoInitReport.profileRpts) { + nextProfRpt.changeForProf = this.CREATED_MSG; + } + } + else { + /* We must compare starting config to ending config to determine + * if we created or updated individual profiles. + */ + const startCfgLayer = this.mAutoInitReport.startingConfig; + const endCfgLayer = this.mAutoInitReport.endingConfig; + if (!startCfgLayer.exists && endCfgLayer.exists) { + // the starting config file existed, but was in a different layer + if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) { + this.mAutoInitReport.changeForConfig = this.CREATED_MSG; + // each profile in this previously non-existent layer has been created + for (const nextProfRpt of this.mAutoInitReport.profileRpts) { + nextProfRpt.changeForProf = this.CREATED_MSG; + } + } + } + else { + /* We must compare profile-by-profile. + * Look for each profile from the ending config within the starting config + */ + for (const endProfNm of lodash.keys(endCfgLayer.properties.profiles)) { + if (lodash.has(startCfgLayer.properties.profiles, endProfNm)) { + if (lodash.isEqual(startCfgLayer.properties.profiles[endProfNm], endCfgLayer.properties.profiles[endProfNm])) { + // both starting profile and ending profile are the same + this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.NO_CHANGES_MSG); + } + else { + this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.MODIFIED_MSG); + } + } + else { + /* Each profile in the ending config that is not + * in the starting config has been created. + */ + this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.CREATED_MSG); + } + } + // Look for each profile from the staring config within the ending config + for (const startProfNm of lodash.keys(startCfgLayer.properties.profiles)) { + /* We already recorded a message for profiles that exist in both + * the starting and ending configs in the loop above, + * so just record when the starting profile has been removed. + */ + if (!lodash.has(endCfgLayer.properties.profiles, startProfNm)) { + this.recordOneProfChange(startProfNm, endCfgLayer.properties.profiles[startProfNm], this.REMOVED_MSG); + } + } + this.recordProfileConflictsWithBase(); + } + } + } + /** + * Record the change message for one profile with the + * this.mAutoInitReport.profileRpts array. + * + * @param {string} profNmToRecord + * The name of the profile for which we want to record a change. + * + * @param {IConfigProfile} profObj + * An IConfigProfile object which is used when a new entry must be + * created in the profileRpts array. + * + * @param {string} msgToRecord + * The message to record for the type of change to this profile. + */ + recordOneProfChange(profNmToRecord, profObj, msgToRecord) { + // when any profile has been modified, we know the config was modified + if (msgToRecord !== this.NO_CHANGES_MSG) { + this.mAutoInitReport.changeForConfig = this.MODIFIED_MSG; + } + const profRptInx = lodash.findIndex(this.mAutoInitReport.profileRpts, { profName: profNmToRecord }); + if (profRptInx >= 0) { + // an entry for this profile already exists + this.mAutoInitReport.profileRpts[profRptInx].changeForProf = msgToRecord; + } + else { + // we must create a new IProfileRpt entry + const newProfRpt = { + changeForProf: msgToRecord, + profName: profNmToRecord, + profType: profObj.type, + basePath: lodash.get(profObj, "properties.basePath", "Not supplied"), + pluginNms: [], + altProfiles: [], + baseOverrides: [] + }; + this.mAutoInitReport.profileRpts.push(newProfRpt); + } + } + /** + * Record info about profile properties that override properties defined in + * the base profile. These properties may prevent connecting to the APIML. + */ + recordProfileConflictsWithBase() { + var _a, _b; + const configApi = imperative_1.ImperativeConfig.instance.config.api; + const configJson = this.mAutoInitReport.endingConfig.properties; + const baseProfileName = (_a = configJson.defaults) === null || _a === void 0 ? void 0 : _a.base; + if (baseProfileName == null) { + return; // default base profile is undefined + } + const baseProfile = lodash.get(configJson, configApi.profiles.getProfilePathFromName(baseProfileName)); + if (baseProfile == null) { + return; // default base profile is invalid + } + for (const profileRpt of this.mAutoInitReport.profileRpts) { + if (profileRpt.changeForProf === this.MODIFIED_MSG && profileRpt.profType !== "base") { + const serviceProfile = lodash.get(configJson, configApi.profiles.getProfilePathFromName(profileRpt.profName)); + for (const [name, value] of Object.entries(baseProfile.properties)) { + if (serviceProfile.properties[name] != null && serviceProfile.properties[name] !== baseProfile.properties[name]) { + profileRpt.baseOverrides.push({ + propName: name, + secure: (baseProfile.secure || []).includes(name) || (serviceProfile.secure || []).includes(name), + priorityValue: serviceProfile.properties[name], + baseValue: value + }); + } + } + for (const name of (baseProfile.secure || [])) { + if ((_b = serviceProfile.secure) === null || _b === void 0 ? void 0 : _b.includes(name)) { + profileRpt.baseOverrides.push({ propName: name, secure: true }); + } + } + } + } + } +} +exports.default = ApimlAutoInitHandler; +//# sourceMappingURL=ApimlAutoInitHandler.js.map \ No newline at end of file diff --git a/lib/config/auto-init/ApimlAutoInitHandler.js.map b/lib/config/auto-init/ApimlAutoInitHandler.js.map new file mode 100644 index 0000000000..9bdc7497f8 --- /dev/null +++ b/lib/config/auto-init/ApimlAutoInitHandler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ApimlAutoInitHandler.js","sourceRoot":"","sources":["../../../src/config/auto-init/ApimlAutoInitHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,6BAA6B;AAC7B,iCAAiC;AAEjC,iEAAwD;AACxD,iDAG0B;AAC1B,+DAAwG;AAExG;;GAEG;AACH,MAAqB,oBAAqB,SAAQ,gCAAmB;IAArE;;QACI;;WAEG;QACO,iBAAY,GAAW,MAAM,CAAC;QAExC;;WAEG;QACO,wBAAmB,GAAW,0BAA0B,CAAC;QAElD,mBAAc,GAAG,eAAe,CAAC;QACjC,gBAAW,GAAG,SAAS,CAAC;QACxB,iBAAY,GAAG,UAAU,CAAC;QAC1B,gBAAW,GAAG,SAAS,CAAC;QACxB,gBAAW,GAAG,UAAU,CAAC;QAE1C;;;;;WAKG;QACK,oBAAe,GAAiB;YACpC,YAAY,EAAE,EAAE;YAChB,eAAe,EAAE,IAAI,CAAC,cAAc;YACpC,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,EAAE;SAClB,CAAC;QAEF;;;;;;WAMG;QACO,0BAAqB,GAA0C,iCAAY,CAAC,qBAAqB,CAAC;IAuchH,CAAC;IArcG;;;;;OAKG;IACa,UAAU,CAAC,OAAwB,EAAE,MAA0B;;YAC3E,wEAAwE;YACxE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,Q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CAAC,IAAI,CAAC,EAAE;wBAC7G,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC;4BAC1B,QAAQ,EAAE,IAAI;4BACd,MAAM,EAAE,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;4BACjG,aAAa,EAAE,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC;4BAC9C,SAAS,EAAE,KAAK;yBACnB,CAAC,CAAC;qBACN;iBACJ;gBACD,KAAK,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE;oBAC3C,IAAI,MAAA,cAAc,CAAC,MAAM,0CAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;wBACvC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;qBACnE;iBACJ;aACJ;SACJ;IACL,CAAC;CACJ;AA7eD,uCA6eC"} \ No newline at end of file diff --git a/lib/daemon/disable/Disable.definition.d.ts b/lib/daemon/disable/Disable.definition.d.ts new file mode 100644 index 0000000000..f9483288cc --- /dev/null +++ b/lib/daemon/disable/Disable.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DisableCommand: ICommandDefinition; diff --git a/lib/daemon/disable/Disable.definition.js b/lib/daemon/disable/Disable.definition.js new file mode 100644 index 0000000000..5d917c9962 --- /dev/null +++ b/lib/daemon/disable/Disable.definition.js @@ -0,0 +1,26 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DisableCommand = void 0; +exports.DisableCommand = { + name: "disable", + description: "Disables daemon-mode operation of the Zowe CLI.", + type: "command", + handler: __dirname + "/Disable.handler", + examples: [ + { + description: "Disable daemon-mode", + options: "" + } + ] +}; +//# sourceMappingURL=Disable.definition.js.map \ No newline at end of file diff --git a/lib/daemon/disable/Disable.definition.js.map b/lib/daemon/disable/Disable.definition.js.map new file mode 100644 index 0000000000..ee820feb96 --- /dev/null +++ b/lib/daemon/disable/Disable.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Disable.definition.js","sourceRoot":"","sources":["../../../src/daemon/disable/Disable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qBAAqB;YAClC,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/disable/Disable.handler.d.ts b/lib/daemon/disable/Disable.handler.d.ts new file mode 100644 index 0000000000..17a198a868 --- /dev/null +++ b/lib/daemon/disable/Disable.handler.d.ts @@ -0,0 +1,38 @@ +import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; +/** + * Handler to disable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class DisableDaemonHandler implements ICommandHandler { + /** + * Process the disable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + * @throws {ImperativeError} + */ + process(cmdParams: IHandlerParameters): Promise; + /** + * Disable daemon mode. + * + * @throws {ImperativeError} + */ + private disableDaemon; + /** + * Read the process ID for a daemon running for the current user from + * the pid file of the current user. The format of the PID file is: + * { + * user: string + * pid: number + * } + * + * @param daemonPidFileNm The file name containing the PID for the daemon. + * + * @returns The Pid of the daemon for the current user. + * Returns null if no daemon PID is recorded for the user. + */ + private static readMyDaemonPid; +} diff --git a/lib/daemon/disable/Disable.handler.js b/lib/daemon/disable/Disable.handler.js new file mode 100644 index 0000000000..00c9228249 --- /dev/null +++ b/lib/daemon/disable/Disable.handler.js @@ -0,0 +1,181 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const nodeJsPath = require("path"); +const os = require("os"); +const imperative_1 = require("@zowe/imperative"); +/** + * Handler to disable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class DisableDaemonHandler { + /** + * Process the disable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + * @throws {ImperativeError} + */ + process(cmdParams) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield this.disableDaemon(); + } + catch (impErr) { + cmdParams.response.console.log("Failed to disable Zowe CLI daemon mode.\n" + impErr.message); + cmdParams.response.data.setExitCode(1); + return; + } + cmdParams.response.console.log("Zowe CLI daemon mode is disabled."); + if (imperative_1.ProcessUtils.getBasicSystemInfo().platform != "win32") { + cmdParams.response.console.log("To run further Zowe commands, close this terminal and open a new terminal."); + } + cmdParams.response.data.setExitCode(0); + }); + } + /** + * Disable daemon mode. + * + * @throws {ImperativeError} + */ + disableDaemon() { + return __awaiter(this, void 0, void 0, function* () { + // form the path to the bin directory in ZOWE_CLI_HOME + let zoweExePath = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + "/bin/"); + // determine our current OS + const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); + // add the right EXE file name for the current OS + switch (sysInfo.platform) { + case "darwin": + case "linux": { + zoweExePath += "zowe"; + break; + } + case "win32": { + zoweExePath += "zowe.exe"; + break; + } + default: { + throw new imperative_1.ImperativeError({ + msg: `Daemon mode is not supported on the '${sysInfo.platform}' operating system.` + }); + } + } + // remove the EXE if it exists + if (imperative_1.IO.existsSync(zoweExePath)) { + imperative_1.IO.deleteFile(zoweExePath); + } + // form the path to the daemon PID file + const daemonPidFileNm = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + + "/daemon/daemon_pid.json"); + const myDaemonPid = DisableDaemonHandler.readMyDaemonPid(daemonPidFileNm); + if (myDaemonPid) { + // find processes running "node" + let procArray; + try { + const findProc = require('find-process'); + procArray = yield findProc('name', 'node', true); + } + catch (err) { + /* This catch is not invoked, because the find-process.finders[].win32.utils.spawn function + * does not add an on("error") event handler for the child_process.spawn() function it calls. + * Thus, ENOENT is emitted as an uncatchable event. Thanks find-process! + * If a user gets an error like this, just tell him that powershell is not on his PATH. + * Typically it should be. The same type of error might occur on Linux if 'ps' were not + * on the user's PATH. + */ + let powerShellHint = ""; + if (err.message.includes("powershell.exe ENOENT")) { + powerShellHint = "\nPowershell.exe may not be on your PATH."; + } + throw new imperative_1.ImperativeError({ + msg: "Failed while searching for the Zowe CLI daemon process.\n" + + `Reason: ${err}` + + powerShellHint + }); + } + // match and kill the running Zowe daemon for this user + let foundOurDaemon = false; + const zoweDaemonCmdRegEx = "node.*zowe.*--daemon$"; + for (const nextProc of procArray) { + if (nextProc.cmd.match(zoweDaemonCmdRegEx) && nextProc.pid == myDaemonPid) { + process.kill(nextProc.pid, "SIGINT"); + foundOurDaemon = true; + break; + } + } + if (!foundOurDaemon) { + imperative_1.Logger.getAppLogger().warn("No daemon running for user '" + + os.userInfo().username + "' with the recorded PID " + myDaemonPid); + } + } // end if myDaemonPid + // delete the daemon PID file, so no false record of a daemon remains + if (imperative_1.IO.existsSync(daemonPidFileNm)) { + imperative_1.IO.deleteFile(daemonPidFileNm); + } + }); + } + /** + * Read the process ID for a daemon running for the current user from + * the pid file of the current user. The format of the PID file is: + * { + * user: string + * pid: number + * } + * + * @param daemonPidFileNm The file name containing the PID for the daemon. + * + * @returns The Pid of the daemon for the current user. + * Returns null if no daemon PID is recorded for the user. + */ + static readMyDaemonPid(daemonPidFileNm) { + if (imperative_1.IO.existsSync(daemonPidFileNm)) { + try { + const pidFileContents = JSON.parse(imperative_1.IO.readFileSync(daemonPidFileNm).toString()); + const myUserName = os.userInfo().username; + if ((pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.user) != myUserName) { + imperative_1.Logger.getAppLogger().error(`Daemon PID file '${daemonPidFileNm}' contains ` + + `user '${pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.user}'. It should be user '${myUserName}'.`); + return null; + } + if (typeof (pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid) === "number" && Number.isInteger(pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid)) { + return pidFileContents.pid; + } + else { + imperative_1.Logger.getAppLogger().error(`Daemon PID file '${daemonPidFileNm}' ` + + `contains invalid PID value = '${pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid}' of type ` + + typeof (pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid)); + } + } + catch (caughtErr) { + imperative_1.Logger.getAppLogger().error("Unable to read daemon PID file '" + + daemonPidFileNm + "'\nReason: " + caughtErr); + } + } + // it's ok if no PID file exists + return null; + } +} +exports.default = DisableDaemonHandler; +//# sourceMappingURL=Disable.handler.js.map \ No newline at end of file diff --git a/lib/daemon/disable/Disable.handler.js.map b/lib/daemon/disable/Disable.handler.js.map new file mode 100644 index 0000000000..c966fa25f3 --- /dev/null +++ b/lib/daemon/disable/Disable.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Disable.handler.js","sourceRoot":"","sources":["../../../src/daemon/disable/Disable.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,mCAAmC;AACnC,yBAAyB;AAEzB,iDAG0B;AAE1B;;;;;GAKG;AACH,MAAqB,oBAAoB;IACrC;;;;;;;OAOG;IACU,OAAO,CAAC,SAA6B;;YAC9C,IAAI;gBACA,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;aAC9B;YAAC,OAAO,MAAM,EAAE;gBACb,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2CAA2C,GAAI,MAA0B,CAAC,OAAO,CAAC,CAAC;gBAClH,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBACvC,OAAO;aACV;YAED,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;YACpE,IAAI,yBAAY,CAAC,kBAAkB,EAAE,CAAC,QAAQ,IAAI,OAAO,EAAE;gBACvD,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,4EAA4E,CAAC,CAAC;aAChH;YAED,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED;;;;OAIG;IACW,aAAa;;YACvB,sDAAsD;YACtD,IAAI,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,6BAAgB,CAAC,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;YAEpF,2BAA2B;YAC3B,MAAM,OAAO,GAAgB,yBAAY,CAAC,kBAAkB,EAAE,CAAC;YAE/D,iDAAiD;YACjD,QAAQ,OAAO,CAAC,QAAQ,EAAE;gBACtB,KAAK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IAAI,CAAC;iBACf;gBACD,IAAI,OAAM,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,EAAE;oBACrF,OAAO,eAAe,CAAC,GAAG,CAAC;iBAC9B;qBAAM;oBACH,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,oBAAoB,eAAe,IAAI;wBAC/D,iCAAiC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,YAAY;wBACjE,OAAM,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,CAC/B,CAAC;iBACL;aACJ;YAAC,OAAM,SAAS,EAAE;gBACf,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,kCAAkC;oBAC1D,eAAe,GAAG,aAAa,GAAG,SAAS,CAC9C,CAAC;aACL;SACJ;QAED,gCAAgC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA9JD,uCA8JC"} \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonEnableQuestions.d.ts b/lib/daemon/doc/IDaemonEnableQuestions.d.ts new file mode 100644 index 0000000000..fb5475d28a --- /dev/null +++ b/lib/daemon/doc/IDaemonEnableQuestions.d.ts @@ -0,0 +1,8 @@ +/** + * Specifies wwhether questions can be asked of the user, and if not, + * what value should be used for a question when we do not ask. + */ +export interface IDaemonEnableQuestions { + canAskUser: boolean; + addBinToPathVal: string; +} diff --git a/lib/daemon/doc/IDaemonEnableQuestions.js b/lib/daemon/doc/IDaemonEnableQuestions.js new file mode 100644 index 0000000000..12d638719e --- /dev/null +++ b/lib/daemon/doc/IDaemonEnableQuestions.js @@ -0,0 +1,13 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IDaemonEnableQuestions.js.map \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonEnableQuestions.js.map b/lib/daemon/doc/IDaemonEnableQuestions.js.map new file mode 100644 index 0000000000..5b9cc523dd --- /dev/null +++ b/lib/daemon/doc/IDaemonEnableQuestions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IDaemonEnableQuestions.js","sourceRoot":"","sources":["../../../src/daemon/doc/IDaemonEnableQuestions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonPidForUser.d.ts b/lib/daemon/doc/IDaemonPidForUser.d.ts new file mode 100644 index 0000000000..f40e21f913 --- /dev/null +++ b/lib/daemon/doc/IDaemonPidForUser.d.ts @@ -0,0 +1,8 @@ +/** + * Represents the content of the JSON file into which the Zowe Daemon + * stores the process ID for a given user. + */ +export interface IDaemonPidForUser { + user: string; + pid: number; +} diff --git a/lib/daemon/doc/IDaemonPidForUser.js b/lib/daemon/doc/IDaemonPidForUser.js new file mode 100644 index 0000000000..a350162f96 --- /dev/null +++ b/lib/daemon/doc/IDaemonPidForUser.js @@ -0,0 +1,13 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IDaemonPidForUser.js.map \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonPidForUser.js.map b/lib/daemon/doc/IDaemonPidForUser.js.map new file mode 100644 index 0000000000..40eec82f3c --- /dev/null +++ b/lib/daemon/doc/IDaemonPidForUser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IDaemonPidForUser.js","sourceRoot":"","sources":["../../../src/daemon/doc/IDaemonPidForUser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/daemon/enable/Enable.definition.d.ts b/lib/daemon/enable/Enable.definition.d.ts new file mode 100644 index 0000000000..b036e38d1c --- /dev/null +++ b/lib/daemon/enable/Enable.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const EnableCommand: ICommandDefinition; diff --git a/lib/daemon/enable/Enable.definition.js b/lib/daemon/enable/Enable.definition.js new file mode 100644 index 0000000000..7581890366 --- /dev/null +++ b/lib/daemon/enable/Enable.definition.js @@ -0,0 +1,29 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EnableCommand = void 0; +exports.EnableCommand = { + name: "enable", + description: "Enables daemon-mode operation of the Zowe CLI. " + + "You only need to run the enable command once after each " + + "new installation of the Zowe CLI. Afterwards, any zowe command " + + "will automatically start a daemon as needed.", + type: "command", + handler: __dirname + "/Enable.handler", + examples: [ + { + description: "Enable daemon-mode", + options: "" + } + ] +}; +//# sourceMappingURL=Enable.definition.js.map \ No newline at end of file diff --git a/lib/daemon/enable/Enable.definition.js.map b/lib/daemon/enable/Enable.definition.js.map new file mode 100644 index 0000000000..5f3e8a8704 --- /dev/null +++ b/lib/daemon/enable/Enable.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Enable.definition.js","sourceRoot":"","sources":["../../../src/daemon/enable/Enable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iDAAiD;QAC1D,0DAA0D;QAC1D,iEAAiE;QACjE,8CAA8C;IAClD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oBAAoB;YACjC,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/enable/Enable.handler.d.ts b/lib/daemon/enable/Enable.handler.d.ts new file mode 100644 index 0000000000..1c13df5db9 --- /dev/null +++ b/lib/daemon/enable/Enable.handler.d.ts @@ -0,0 +1,76 @@ +import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; +/** + * Handler to enable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class EnableDaemonHandler implements ICommandHandler { + private static openNewTerminalMsg; + /** + * Process the enable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + * @throws {ImperativeError} + */ + process(cmdParams: IHandlerParameters): Promise; + /** + * Enable daemon mode. We extract our native executable and place it + * in ZOWE_CLI_HOME/bin. + * + * @throws {ImperativeError} + * + * @param {boolean} canAskQuestions Can we interactively ask the user questions? + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + private enableDaemon; + /** + * Unzip, from a gzipped tar file, any file that contains fileToExtract as a + * substring of the file name. The file will be placed into toDir. + * We expect toDir to already exist. + * + * @param tgzFile The gzipped tar file that we will extract + * + * @param toDir The directory into which we extract files + * + * @param fileToExtract The file name (or substring of the file name) to extract. + * + * @throws {ImperativeError} + * @returns A void promise to synchronize this operation. + */ + private unzipTgz; + /** + * Add our .zowe/bin directory to the user's PATH. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @param {IDaemonEnableQuestions} userQuestions Questions for user (if permitted) + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + private addZoweBinToPath; + /** + * Add our .zowe/bin directory to the front of the user's PATH on Windows. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + private addZoweBinOnWindows; + /** + * Add our .zowe/bin directory to the front of the user's PATH on Linux and MAC. + * Do that by adding a line at the end of the user's .profile file. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + private addZoweBinOnPosix; +} diff --git a/lib/daemon/enable/Enable.handler.js b/lib/daemon/enable/Enable.handler.js new file mode 100644 index 0000000000..219cb817f3 --- /dev/null +++ b/lib/daemon/enable/Enable.handler.js @@ -0,0 +1,340 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs = require("fs"); +const nodeJsPath = require("path"); +const tar = require("tar"); +const child_process_1 = require("child_process"); +const imperative_1 = require("@zowe/imperative"); +/** + * Handler to enable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class EnableDaemonHandler { + /** + * Process the enable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + * @throws {ImperativeError} + */ + process(cmdParams) { + return __awaiter(this, void 0, void 0, function* () { + let userMsg; + try { + const userQuestions = { + /* TODO: Use this code block when we are ready to automatically add zowe/bin to the PATH + canAskUser: true, + addBinToPathVal: "y" + */ + canAskUser: false, + addBinToPathVal: "n" + }; + userMsg = yield this.enableDaemon(userQuestions); + } + catch (impErr) { + cmdParams.response.console.log("Failed to enable Zowe CLI daemon mode.\n" + impErr.message); + cmdParams.response.data.setExitCode(1); + return; + } + cmdParams.response.console.log("Zowe CLI daemon mode is enabled.\n" + userMsg); + cmdParams.response.data.setExitCode(0); + }); + } + /** + * Enable daemon mode. We extract our native executable and place it + * in ZOWE_CLI_HOME/bin. + * + * @throws {ImperativeError} + * + * @param {boolean} canAskQuestions Can we interactively ask the user questions? + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + enableDaemon(userQuestions) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + // determine our current OS + const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); + // form the path to our prebuilds tar file + let preBldTgz = __dirname + "../../../../prebuilds/zowe-"; + let exeFileName = "zowe"; + switch (sysInfo.platform) { + case "darwin": { + preBldTgz += "macos.tgz"; + break; + } + case "linux": { + preBldTgz += "linux.tgz"; + break; + } + case "win32": { + preBldTgz += "windows.tgz"; + exeFileName += ".exe"; + break; + } + default: { + throw new imperative_1.ImperativeError({ + msg: `Daemon mode is not supported on the '${sysInfo.platform}' operating system.` + }); + } + } + preBldTgz = nodeJsPath.normalize(preBldTgz); + if (!imperative_1.IO.existsSync(preBldTgz)) { + throw new imperative_1.ImperativeError({ + msg: `The archive for your OS executable does not exist: ${preBldTgz}` + }); + } + // form the path to the bin directory in ZOWE_CLI_HOME + const pathToZoweBin = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + "/bin"); + // Does the ZOWE_CLI_HOME bin directory exist? + if (imperative_1.IO.existsSync(pathToZoweBin)) { + if (!imperative_1.IO.isDir(pathToZoweBin)) { + throw new imperative_1.ImperativeError({ + msg: `The existing file '${pathToZoweBin}' must be a directory.` + }); + } + } + else { + // create the directory + try { + imperative_1.IO.createDirSync(pathToZoweBin); + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: `Unable to create directory '${pathToZoweBin}'.\nReason: ${err}` + }); + } + } + // extract executable from the tar file into the bin directory + yield this.unzipTgz(preBldTgz, pathToZoweBin, imperative_1.ImperativeConfig.instance.rootCommandName); + /* Even though we await the unzip above, the OS still considers the exe file in-use + * for a while. We will get the following error message when trying to run the exe. + * "The process cannot access the file because it is being used by another process." + * So, we wait a little bit. + */ + const halfSecOfMillis = 500; + yield imperative_1.CliUtils.sleep(halfSecOfMillis); + // display the version of the executable + let userInfoMsg = "Zowe CLI native executable version = "; + const zoweExePath = nodeJsPath.resolve(pathToZoweBin, exeFileName); + const ioOpts = ["pipe", "pipe", "pipe"]; + try { + const spawnResult = (0, child_process_1.spawnSync)(zoweExePath, ["--version-exe"], { + stdio: ioOpts, + shell: false + }); + if (spawnResult.stdout) { + // remove any newlines from the version number + userInfoMsg += spawnResult.stdout.toString().replace(/\r?\n|\r/g, ""); + } + else { + userInfoMsg += "Failed to get version number\n"; + if (spawnResult.stderr) { + userInfoMsg += spawnResult.stderr.toString(); + } + } + } + catch (err) { + userInfoMsg += err.message; + } + // add our bin directory to the PATH if is it is not already there + userInfoMsg += yield this.addZoweBinToPath(pathToZoweBin, userQuestions); + // if ZOWE_USE_DAEMON is set, and turned off, add a warning message + if (((_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a.ZOWE_USE_DAEMON) === null || _b === void 0 ? void 0 : _b.length) > 0) { + switch (process.env.ZOWE_USE_DAEMON) { + case "no": + case "false": + case "0": { + userInfoMsg += `\n\nYour ZOWE_USE_DAEMON environment variable is set to '${process.env.ZOWE_USE_DAEMON}'.` + + "\nYou must remove it, or set it to 'yes' to use daemon mode."; + } + } + } + return userInfoMsg; + }); + } + /** + * Unzip, from a gzipped tar file, any file that contains fileToExtract as a + * substring of the file name. The file will be placed into toDir. + * We expect toDir to already exist. + * + * @param tgzFile The gzipped tar file that we will extract + * + * @param toDir The directory into which we extract files + * + * @param fileToExtract The file name (or substring of the file name) to extract. + * + * @throws {ImperativeError} + * @returns A void promise to synchronize this operation. + */ + unzipTgz(tgzFile, toDir, fileToExtract) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => { + fs.createReadStream(tgzFile) + .on('error', function (err) { + throw new imperative_1.ImperativeError({ + msg: err + }); + }) + .pipe(new tar.Parse()) + .on('entry', function (entry) { + if (entry.type == "File" && entry.path.includes(fileToExtract)) { + const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); + let fileCreateOpts = {}; + if (sysInfo.platform == "linux" || sysInfo.platform == "darwin") { + // set file permissions to read, write and execute for user, read and execute for group, in octal + fileCreateOpts = { mode: 0o750 }; + } + // do not include any path structure from the tgz, just the exe name + entry.pipe(fs.createWriteStream(nodeJsPath.resolve(toDir, nodeJsPath.basename(entry.path)), fileCreateOpts)); + } + }) + .on("end", () => { + resolve(); + }); + }); + }); + } + /** + * Add our .zowe/bin directory to the user's PATH. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @param {IDaemonEnableQuestions} userQuestions Questions for user (if permitted) + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + addZoweBinToPath(pathToZoweBin, userQuestions) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + let userInfoMsg = ""; + const osPlatform = imperative_1.ProcessUtils.getBasicSystemInfo().platform; + if ((_a = process.env.PATH) === null || _a === void 0 ? void 0 : _a.includes(pathToZoweBin)) { + // bash & zsh command-path caching forces us to require a new terminal + if (osPlatform !== "win32") { + userInfoMsg += "\n\n" + EnableDaemonHandler.openNewTerminalMsg; + } + } + else { + // ZOWE_CLI_HOME/bin is not on our PATH, we want to add it + let answer = null; + if (userQuestions.canAskUser) { + // alter PATH question by OS + let pathQuestion = "May we add the Zowe bin directory to your\nPATH in your "; + if (osPlatform === "win32") { + pathQuestion += "permanent user environment"; + } + else { + pathQuestion += ".profile file"; + } + pathQuestion += " [y or n] ? "; + // ask user for permission to update PATH + answer = yield imperative_1.CliUtils.readPrompt(pathQuestion); + } + else { + // don't ask, just use default + answer = userQuestions.addBinToPathVal; + } + if (answer !== null && answer === "y" || answer === "Y") { + // user wants us to do it for him/her + if (osPlatform === "win32") { + userInfoMsg += yield this.addZoweBinOnWindows(pathToZoweBin); + } + else { + userInfoMsg += this.addZoweBinOnPosix(pathToZoweBin); + } + } + else { + userInfoMsg += `\n\nManually add '${pathToZoweBin}' to your PATH.` + + "\nOtherwise, you will continue to run the classic Zowe CLI interpreter."; + } + // when zowe/bin not already on path, user needs a new terminal + userInfoMsg += "\n\n" + EnableDaemonHandler.openNewTerminalMsg; + } // end zowe/bin not in path + return userInfoMsg; + }); + } + /** + * Add our .zowe/bin directory to the front of the user's PATH on Windows. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + addZoweBinOnWindows(pathToZoweBin) { + return __awaiter(this, void 0, void 0, function* () { + let userInfoMsg = ""; + try { + /* TODO: + * - Detect if zowe/bin is in system or user PATH env variable + * - For user PATH : reg query "HKCU\Environment" + * - For system PATH: reg query "???" + * - Add zowe/bin to the front of either user or system PATH + * - confirm that we do not exceed max path (1024 for user) + * - For system PATH + * - get user name + * - prompt for password + * - Use setx to set the new PATH value + */ + const ioOptions = ["pipe", "pipe", "pipe"]; + const setxPath = process.env.SystemRoot ? nodeJsPath.join(process.env.SystemRoot, 'System32', 'setx.exe') : 'setx.exe'; + const spawnResult = (0, child_process_1.spawnSync)(setxPath, ["zowe_set_env_test", pathToZoweBin + ";" + process.env.PATH], { + stdio: ioOptions, + shell: false + }); + if (spawnResult.stdout) { + userInfoMsg += spawnResult.stdout.toString(); + } + if (spawnResult.stderr) { + userInfoMsg += spawnResult.stderr.toString(); + } + } + catch (err) { + userInfoMsg += "Failed to run setx. Reason = " + err.message; + } + return userInfoMsg; + }); + } + /** + * Add our .zowe/bin directory to the front of the user's PATH on Linux and MAC. + * Do that by adding a line at the end of the user's .profile file. + * + * @param pathToZoweBin The absolute path to our .zowe/bin drectory. + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + addZoweBinOnPosix(pathToZoweBin) { + // Todo: Implement addZoweBinOnPosix + const userInfoMsg = ""; + return userInfoMsg; + } +} +exports.default = EnableDaemonHandler; +EnableDaemonHandler.openNewTerminalMsg = "To run further Zowe commands, close this terminal and open a new terminal."; +//# sourceMappingURL=Enable.handler.js.map \ No newline at end of file diff --git a/lib/daemon/enable/Enable.handler.js.map b/lib/daemon/enable/Enable.handler.js.map new file mode 100644 index 0000000000..08a5c0cc1d --- /dev/null +++ b/lib/daemon/enable/Enable.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Enable.handler.js","sourceRoot":"","sources":["../../../src/daemon/enable/Enable.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,yBAAyB;AACzB,mCAAmC;AACnC,2BAA2B;AAC3B,iDAAwD;AAExD,iDAG0B;AAI1B;;;;;GAKG;AACH,MAAqB,mBAAmB;IAGpC;;;;;;;OAOG;IACU,OAAO,CAAC,SAA6B;;YAC9C,IAAI,OAAe,CAAC;YACpB,IAAI;gBACA,MAAM,aAAa,GAA2B;oBAC1C;;;sBAGE;oBACF,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,GAAG;iBACvB,CAAC;gBACF,OAAO,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;aACpD;YAAC,OAAM,MAAM,EAAE;gBACZ,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,GAAI,MAA0B,CAAC,OAAO,CAAC,CAAC;gBACjH,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBACvC,OAAO;aACV;YAED,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,GAAG,OAAO,CAAC,CAAC;YAC/E,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED;;;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IAAI,WAAW,CAAC,MAAM,EAAE;oBACpB,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;iBAChD;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,WAAW,IAAI,+BAA+B,GAAG,GAAG,CAAC,OAAO,CAAC;aAChE;YAED,OAAO,WAAW,CAAC;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,iBAAiB,CAAC,aAAqB;QAC3C,oCAAoC;QACpC,MAAM,WAAW,GAAW,EAAE,CAAC;QAC/B,OAAO,WAAW,CAAC;IACvB,CAAC;;AApTL,sCAqTC;AApTkB,sCAAkB,GAAG,4EAA4E,CAAC"} \ No newline at end of file diff --git a/lib/daemon/restart/Restart.definition.d.ts b/lib/daemon/restart/Restart.definition.d.ts new file mode 100644 index 0000000000..9075d1b9a8 --- /dev/null +++ b/lib/daemon/restart/Restart.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const RestartCommand: ICommandDefinition; diff --git a/lib/daemon/restart/Restart.definition.js b/lib/daemon/restart/Restart.definition.js new file mode 100644 index 0000000000..02d3dab494 --- /dev/null +++ b/lib/daemon/restart/Restart.definition.js @@ -0,0 +1,26 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RestartCommand = void 0; +exports.RestartCommand = { + name: "restart", + description: "Restart the Zowe CLI daemon.", + type: "command", + handler: __dirname + "/Restart.handler", + examples: [ + { + description: "Restart daemon", + options: "" + } + ] +}; +//# sourceMappingURL=Restart.definition.js.map \ No newline at end of file diff --git a/lib/daemon/restart/Restart.definition.js.map b/lib/daemon/restart/Restart.definition.js.map new file mode 100644 index 0000000000..1542fd44b9 --- /dev/null +++ b/lib/daemon/restart/Restart.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Restart.definition.js","sourceRoot":"","sources":["../../../src/daemon/restart/Restart.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gBAAgB;YAC7B,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/restart/Restart.handler.d.ts b/lib/daemon/restart/Restart.handler.d.ts new file mode 100644 index 0000000000..21165af8f7 --- /dev/null +++ b/lib/daemon/restart/Restart.handler.d.ts @@ -0,0 +1,26 @@ +import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; +/** + * Handler to disable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class RestartDaemonHandler implements ICommandHandler { + /** + * Process the disable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + */ + process(cmdParams: IHandlerParameters): Promise; + /** + * Restart daemon mode. + * + * @throws {ImperativeError} + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + private restartDaemon; +} diff --git a/lib/daemon/restart/Restart.handler.js b/lib/daemon/restart/Restart.handler.js new file mode 100644 index 0000000000..7b448a3915 --- /dev/null +++ b/lib/daemon/restart/Restart.handler.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Handler to disable daemon mode. + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class RestartDaemonHandler { + /** + * Process the disable daemon command and populates the response + * object as needed. + * + * @param {IHandlerParameters} cmdParams Parameters supplied by yargs + * + */ + process(cmdParams) { + return __awaiter(this, void 0, void 0, function* () { + yield this.restartDaemon(); + cmdParams.response.console.log("Zowe daemon restart is only valid when daemon mode is enabled."); + cmdParams.response.data.setExitCode(0); + }); + } + /** + * Restart daemon mode. + * + * @throws {ImperativeError} + * + * @returns {string} An informational message to display to the user after + * successful completion of the operation. + */ + restartDaemon() { + return __awaiter(this, void 0, void 0, function* () { + /* dummy routine if called from the node.js version of Zowe. */ + }); + } +} +exports.default = RestartDaemonHandler; +//# sourceMappingURL=Restart.handler.js.map \ No newline at end of file diff --git a/lib/daemon/restart/Restart.handler.js.map b/lib/daemon/restart/Restart.handler.js.map new file mode 100644 index 0000000000..2aea3516c7 --- /dev/null +++ b/lib/daemon/restart/Restart.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Restart.handler.js","sourceRoot":"","sources":["../../../src/daemon/restart/Restart.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAMF;;;;;GAKG;AACH,MAAqB,oBAAoB;IACrC;;;;;;OAMG;IACU,OAAO,CAAC,SAA6B;;YAC9C,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;YAC3B,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gEAAgE,CAAC,CAAC;YACjG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED;;;;;;;OAOG;IACW,aAAa;;YACvB,+DAA+D;QACnE,CAAC;KAAA;CACJ;AAzBD,uCAyBC"} \ No newline at end of file diff --git a/lib/provisioning/delete/Delete.definition.d.ts b/lib/provisioning/delete/Delete.definition.d.ts new file mode 100644 index 0000000000..d893a14d1f --- /dev/null +++ b/lib/provisioning/delete/Delete.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DeleteCommand: ICommandDefinition; diff --git a/lib/provisioning/delete/Delete.definition.js b/lib/provisioning/delete/Delete.definition.js new file mode 100644 index 0000000000..fb44afbbfb --- /dev/null +++ b/lib/provisioning/delete/Delete.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteCommand = void 0; +const DeleteInstance_definition_1 = require("./instance/DeleteInstance.definition"); +exports.DeleteCommand = { + name: "delete", + aliases: ["del"], + type: "group", + summary: "Delete instance.", + description: "Deletes instance previously provisioned with z/OSMF cloud provisioning services.", + children: [DeleteInstance_definition_1.DeleteInstanceDefinition] +}; +//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/Delete.definition.js.map b/lib/provisioning/delete/Delete.definition.js.map new file mode 100644 index 0000000000..b75c57da68 --- /dev/null +++ b/lib/provisioning/delete/Delete.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/provisioning/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAgF;AAGnE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,kFAAkF;IAC/F,QAAQ,EAAE,CAAC,oDAAwB,CAAC;CACvC,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts b/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts new file mode 100644 index 0000000000..98d02da6c7 --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DeleteInstanceDefinition: ICommandDefinition; diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.js b/lib/provisioning/delete/instance/DeleteInstance.definition.js new file mode 100644 index 0000000000..b5dd9817c3 --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.definition.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteInstanceDefinition = void 0; +exports.DeleteInstanceDefinition = { + name: "instance", + aliases: ["i"], + type: "command", + summary: "Deletes instance.", + description: "Deletes selected deprovisioned instance.", + handler: __dirname + "/DeleteInstance.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "Deprovisioned Instance name.", + required: true + } + ], + examples: [ + { + description: `Delete deprovisioned instance "instance1"`, + options: "instance1" + } + ] +}; +//# sourceMappingURL=DeleteInstance.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.js.map b/lib/provisioning/delete/instance/DeleteInstance.definition.js.map new file mode 100644 index 0000000000..3a8eb50b5a --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteInstance.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/delete/instance/DeleteInstance.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,wBAAwB,GAAuB;IACxD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,GAAG,CAAC;IACd,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,0CAA0C;IACvD,OAAO,EAAE,SAAS,GAAG,yBAAyB;IAC9C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts b/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts new file mode 100644 index 0000000000..9353e6c793 --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts @@ -0,0 +1,5 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.js b/lib/provisioning/delete/instance/DeleteInstance.handler.js new file mode 100644 index 0000000000..0bf0d23fc6 --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.handler.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("util"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); + const instances = registry["scr-list"]; + if ((0, util_1.isNullOrUndefined)(instances)) { + commandParameters.response.console.error("No instance with name " + + commandParameters.arguments.name + + " was found"); + } + else if (instances.length === 1) { + const id = instances.pop()["object-id"]; + const response = yield provisioning_for_zowe_sdk_1.DeleteInstance.deleteDeprovisionedInstance(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id); + commandParameters.response.console.log(`The instance was successfully deleted`); + commandParameters.response.data.setObj(response); + } + else if (instances.length > 1) { + commandParameters.response.console.error("Multiple instances with name " + + commandParameters.arguments.name + + " were found"); + } + }); + } +} +exports.default = Handler; +//# sourceMappingURL=DeleteInstance.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.js.map b/lib/provisioning/delete/instance/DeleteInstance.handler.js.map new file mode 100644 index 0000000000..51afd99964 --- /dev/null +++ b/lib/provisioning/delete/instance/DeleteInstance.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteInstance.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/delete/instance/DeleteInstance.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AAEzC,+EAKyC;AACzC,iEAA4D;AAE5D,MAAqB,OAAQ,SAAQ,qCAAgB;IACpC,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,QAAQ,GAAG,MAAM,0CAAc,CAAC,2BAA2B,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,CACL,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,uCAAuC,CAC1C,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACpD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAlCD,0BAkCC"} \ No newline at end of file diff --git a/lib/provisioning/list/List.definition.d.ts b/lib/provisioning/list/List.definition.d.ts new file mode 100644 index 0000000000..b6eca2222f --- /dev/null +++ b/lib/provisioning/list/List.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ListCommand: ICommandDefinition; diff --git a/lib/provisioning/list/List.definition.js b/lib/provisioning/list/List.definition.js new file mode 100644 index 0000000000..e34c4b4714 --- /dev/null +++ b/lib/provisioning/list/List.definition.js @@ -0,0 +1,28 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListCommand = void 0; +const TemplateInfo_definition_1 = require("./templateInfo/TemplateInfo.definition"); +const CatalogTemplates_definition_1 = require("./catalogTemplates/CatalogTemplates.definition"); +const InstanceInfo_definition_1 = require("./instanceInfo/InstanceInfo.definition"); +const InstanceVariables_definition_1 = require("./instanceVariables/InstanceVariables.definition"); +const RegistryInstances_definition_1 = require("./registry/RegistryInstances.definition"); +exports.ListCommand = { + name: "list", + aliases: ["ls"], + type: "group", + summary: "List Provisioning Information", + description: "Lists z/OSMF provisioning information such as the provisioned " + + "instances from the registry, the provisioned instance details, the available provisioning templates and provisioning template details.", + children: [TemplateInfo_definition_1.templateInfo, CatalogTemplates_definition_1.catalogTemplates, InstanceInfo_definition_1.instanceInfo, InstanceVariables_definition_1.instanceVariables, RegistryInstances_definition_1.registryInstances] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/List.definition.js.map b/lib/provisioning/list/List.definition.js.map new file mode 100644 index 0000000000..aaea3874fa --- /dev/null +++ b/lib/provisioning/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/provisioning/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAsE;AACtE,gGAAkF;AAClF,oFAAsE;AACtE,mGAAqF;AACrF,0FAA4E;AAE/D,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,gEAAgE;QAC7E,wIAAwI;IACxI,QAAQ,EAAE,CAAC,sCAAY,EAAE,8CAAgB,EAAE,sCAAY,EAAE,gDAAiB,EAAE,gDAAiB,CAAC;CACjG,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts new file mode 100644 index 0000000000..a3d799a98f --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const catalogTemplates: ICommandDefinition; diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js new file mode 100644 index 0000000000..ccaae68ba3 --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.catalogTemplates = void 0; +const path = require("path"); +exports.catalogTemplates = { + name: "catalog-templates", + aliases: ["ct"], + type: "command", + summary: "List z/OSMF published catalog templates.", + description: "Lists the z/OSMF service catalog published templates.", + handler: path.join(__dirname, "/CatalogTemplates.handler"), + profile: { + optional: ["zosmf"] + }, + options: [ + { + name: "all-info", + aliases: ["ai"], + description: "Display information about published z/OSMF " + + "service catalog templates (summary information is printed by default).", + type: "boolean" + } + ], + examples: [ + { + description: "List all published templates in the z/OSMF service catalog (with full detail)", + options: "--all-info" + } + ] +}; +//# sourceMappingURL=CatalogTemplates.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map new file mode 100644 index 0000000000..5406c9ed60 --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatalogTemplates.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/catalogTemplates/CatalogTemplates.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAGhB,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,0CAA0C;IACnD,WAAW,EAAE,uDAAuD;IACpE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAC1D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,6CAA6C;gBAC1D,wEAAwE;YACxE,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+EAA+E;YAC5F,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts new file mode 100644 index 0000000000..6649724a44 --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to list template catalog + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class CatalogTemplatesHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js new file mode 100644 index 0000000000..cc575b20f1 --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js @@ -0,0 +1,52 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to list template catalog + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class CatalogTemplatesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const templates = yield provisioning_for_zowe_sdk_1.ListCatalogTemplates.listCatalogCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION); + let prettifiedTemplates = {}; + if (commandParameters.arguments.allInfo) { + prettifiedTemplates = imperative_1.TextUtils.explainObject(templates, provisioning_for_zowe_sdk_1.explainPublishedTemplatesFull, true); + } + else { + prettifiedTemplates = imperative_1.TextUtils.explainObject(templates, provisioning_for_zowe_sdk_1.explainPublishedTemplatesSummary, false); + } + let response = "z/OSMF Service Catalog templates\n"; + response = response + imperative_1.TextUtils.prettyJson(prettifiedTemplates); + // Print out the response + commandParameters.response.console.log(response); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(templates); + }); + } +} +exports.default = CatalogTemplatesHandler; +//# sourceMappingURL=CatalogTemplates.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map new file mode 100644 index 0000000000..5a5c24c70e --- /dev/null +++ b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CatalogTemplates.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/catalogTemplates/CatalogTemplates.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,uBAAwB,SAAQ,qCAAgB;IACpD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,SAAS,GAAwB,MAAM,gDAAoB,CAAC,iBAAiB,CAC/E,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,CACtC,CAAC;YAEF,IAAI,mBAAmB,GAAQ,EAAE,CAAC;YAClC,IAAI,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE;gBACrC,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CACzC,SAAS,EACT,yDAA6B,EAC7B,IAAI,CACP,CAAC;aACL;iBAAM;gBACH,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CACzC,SAAS,EACT,4DAAgC,EAChC,KAAK,CACR,CAAC;aACL;YACD,IAAI,QAAQ,GAAG,oCAAoC,CAAC;YACpD,QAAQ,GAAG,QAAQ,GAAG,sBAAS,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;YAChE,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAEjD,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;KAAA;CACJ;AA7BD,0CA6BC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts new file mode 100644 index 0000000000..29ea505348 --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const instanceInfo: ICommandDefinition; diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js new file mode 100644 index 0000000000..be6e82f9d7 --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js @@ -0,0 +1,60 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceInfo = void 0; +const path = require("path"); +exports.instanceInfo = { + name: "instance-info", + aliases: ["ii"], + type: "command", + summary: "List Provisioned Instance Details.", + description: "List details about an instance provisioned with z/OSMF.", + handler: path.join(__dirname, "/InstanceInfo.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "Provisioned Instance Name", + required: true + } + ], + options: [ + { + name: "display", + description: "Level of information to display for the provisioned instance. Possible values:\n\n" + + "summary \t- summary information, no actions or variables\n" + + "actions \t- (default) summary with actions, no variables\n" + + "vars \t- summary information with variables, no actions\n" + + "extended \t- extended information with actions\n" + + "full \t- all available information\n", + type: "string", + allowableValues: { + values: ["extended", "summary", "vars", "actions", "full"], + caseSensitive: false + } + } + ], + examples: [ + { + description: "List summary information with a list of actions for an instance with the name \"instance1\"", + options: "instance1" + }, + { + description: "Show extended general information with actions for a provisioned instance with the name \"instance1\"", + options: "instance1 --display extended" + } + ] +}; +//# sourceMappingURL=InstanceInfo.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map new file mode 100644 index 0000000000..fdbefc850b --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstanceInfo.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceInfo/InstanceInfo.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,yDAAyD;IACtE,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oFAAoF;gBACjG,4DAA4D;gBAC5D,4DAA4D;gBAC5D,2DAA2D;gBAC3D,kDAAkD;gBAClD,sCAAsC;YACtC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE;gBACb,MAAM,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC;gBAC1D,aAAa,EAAE,KAAK;aACvB;SACJ;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,6FAA6F;YAC1G,OAAO,EAAE,WAAW;SACvB;QACD;YACI,WAAW,EAAE,uGAAuG;YACpH,OAAO,EAAE,8BAA8B;SAC1C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts new file mode 100644 index 0000000000..87cfc132a6 --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to list instance info + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class InstanceInfoHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; + /** + * Format the output of instance summary data, options may be used to further refine the output + * @param {IProvisionedInstance} instance: one or more provisioned instance + * @param option: command options + */ + private formatProvisionedInstanceSummaryOutput; +} diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js new file mode 100644 index 0000000000..d46dccf316 --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js @@ -0,0 +1,90 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const util_1 = require("util"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to list instance info + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class InstanceInfoHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); + const instances = registry["scr-list"]; + if ((0, util_1.isNullOrUndefined)(instances)) { + commandParameters.response.console.error("No instance with name " + commandParameters.arguments.name + " was found"); + } + else if (instances.length === 1) { + const id = instances.pop()["object-id"]; + const response = yield provisioning_for_zowe_sdk_1.ListInstanceInfo.listInstanceCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id); + const pretty = this.formatProvisionedInstanceSummaryOutput(response, commandParameters.arguments.display); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(pretty)); + commandParameters.response.data.setObj(response); + } + else if (instances.length > 1) { + commandParameters.response.console.error("Multiple instances with name " + commandParameters.arguments.name + " were found"); + } + }); + } + /** + * Format the output of instance summary data, options may be used to further refine the output + * @param {IProvisionedInstance} instance: one or more provisioned instance + * @param option: command options + */ + formatProvisionedInstanceSummaryOutput(instance, option) { + let prettifiedInstance = {}; + option = (0, util_1.isNullOrUndefined)(option) ? "ACTIONS" : option.toUpperCase(); + // Prettify the output + switch (option) { + // extended general information with actions summarised + case "EXTENDED": + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceExtended, false); + break; + // summary info with actions + case "SUMMARY": + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummary, false); + break; + // summary info with variables + case "VARS": + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithVars, false); + break; + // summary info with extended actions and variables + case "FULL": + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceFull, false); + break; + // default - summary with actions, variables ignored + case "ACTIONS": + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithActions, false); + break; + default: + prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithActions, false); + break; + } + return prettifiedInstance; + } +} +exports.default = InstanceInfoHandler; +//# sourceMappingURL=InstanceInfo.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map new file mode 100644 index 0000000000..31df312055 --- /dev/null +++ b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstanceInfo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,CAAC;gBAC5G,MAAM;SACb;QAED,OAAO,kBAAkB,CAAC;IAE9B,CAAC;CACJ;AA9DD,sCA8DC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts new file mode 100644 index 0000000000..ac30837fe6 --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const instanceVariables: ICommandDefinition; diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js new file mode 100644 index 0000000000..3897602333 --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceVariables = void 0; +const path = require("path"); +exports.instanceVariables = { + name: "instance-variables", + aliases: ["iv"], + type: "command", + summary: "List Instance Variables and Values.", + description: "List a set of variables and their values for a given name.", + handler: path.join(__dirname, "/InstanceVariables.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "Provisioned Instance Name", + required: true + } + ], + examples: [ + { + description: "List instance variables of \"instance1\"", + options: "instance1" + } + ], + outputFormatOptions: true +}; +//# sourceMappingURL=InstanceVariables.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map new file mode 100644 index 0000000000..b8ffa7a863 --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstanceVariables.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceVariables/InstanceVariables.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,qCAAqC;IAC9C,WAAW,EAAE,4DAA4D;IACzE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0CAA0C;YACvD,OAAO,EAAE,WAAW;SACvB;KACJ;IACD,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts new file mode 100644 index 0000000000..e9a0bc1ad6 --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to list instance variables + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class InstanceVariablesHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js new file mode 100644 index 0000000000..27c981a2ad --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js @@ -0,0 +1,61 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("util"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to list instance variables + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class InstanceVariablesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); + const instances = registry["scr-list"]; + if ((0, util_1.isNullOrUndefined)(instances)) { + commandParameters.response.console.error("No instance with name " + + commandParameters.arguments.name + + " was found"); + } + else if (instances.length === 1) { + const id = instances.pop()["object-id"]; + const variables = (yield provisioning_for_zowe_sdk_1.ListInstanceVariables.listVariablesCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id)).variables; + commandParameters.response.format.output({ + fields: ["name", "value", "visibility", "update-registry"], + output: variables, + format: "table", + header: true + }); + commandParameters.response.data.setObj(variables); + } + else if (instances.length > 1) { + commandParameters.response.console.error("Multiple instances with name " + + commandParameters.arguments.name + + " were found"); + } + }); + } +} +exports.default = InstanceVariablesHandler; +//# sourceMappingURL=InstanceVariables.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map new file mode 100644 index 0000000000..fdd3cea42c --- /dev/null +++ b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InstanceVariables.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceVariables/InstanceVariables.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AAEzC,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,wBAAyB,SAAQ,qCAAgB;IACrD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,SAAS,GAAmC,CAC9C,MAAM,iDAAqB,CAAC,mBAAmB,CAC3C,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,CACL,CACJ,CAAC,SAAS,CAAC;gBACZ,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,CAAC;oBAC1D,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;gBACH,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACrD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAvCD,2CAuCC"} \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.d.ts b/lib/provisioning/list/registry/RegistryInstances.definition.d.ts new file mode 100644 index 0000000000..a3052a9eb7 --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const registryInstances: ICommandDefinition; diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.js b/lib/provisioning/list/registry/RegistryInstances.definition.js new file mode 100644 index 0000000000..ab91ca47d2 --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.definition.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.registryInstances = void 0; +const path = require("path"); +exports.registryInstances = { + name: "registry-instances", + aliases: ["ri"], + type: "command", + summary: "List provisioned instances.", + description: "List the provisioned instances from the z/OSMF software registry.", + handler: path.join(__dirname, "/RegistryInstances.handler"), + profile: { + optional: ["zosmf"] + }, + options: [ + { + name: "all-info", + aliases: ["ai"], + description: "Display all available information about provisioned instances (summary by default).", + type: "boolean" + }, + { + name: "filter-by-type", + aliases: ["fbt"], + description: "Filter the list of provisioned instances by type (e.g. DB2 or CICS).", + type: "string" + }, + { + name: "filter-by-external-name", + aliases: ["fben"], + description: "Filter the list of provisioned instances by External Name.", + type: "string" + }, + { + name: "types", + aliases: ["t"], + description: "Display a list of all types for provisioned instances (e.g. DB2 or CICS).", + type: "boolean" + } + ], + examples: [ + { + description: "List all provisioned instances (with full detail)", + options: "--all-info" + } + ] +}; +//# sourceMappingURL=RegistryInstances.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.js.map b/lib/provisioning/list/registry/RegistryInstances.definition.js.map new file mode 100644 index 0000000000..580e9d1cfb --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RegistryInstances.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/registry/RegistryInstances.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,mEAAmE;IAChF,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC;IAC5D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,sEAAsE;YACnF,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.d.ts b/lib/provisioning/list/registry/RegistryInstances.handler.d.ts new file mode 100644 index 0000000000..2707bcc4ac --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to list registry instances + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class RegistryInstancesHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; + /** + * Format the output of instance summary data, options may be used to further refine the output + * @param {IProvisionedInstance} instances: one or more provisioned instance + * @param showAllInfo : display summary (default) or all information fields + */ + private formatProvisionedInstancesSummaryOutput; +} diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.js b/lib/provisioning/list/registry/RegistryInstances.handler.js new file mode 100644 index 0000000000..9ce8cdeb11 --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.handler.js @@ -0,0 +1,75 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const util_1 = require("util"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to list registry instances + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class RegistryInstancesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.filterByType, commandParameters.arguments.filterByExternalName); + const instances = response["scr-list"]; + const pretty = imperative_1.TextUtils.prettyJson(this.formatProvisionedInstancesSummaryOutput(instances, commandParameters.arguments.allInfo)); + // Print out the response + if (commandParameters.arguments.types) { + commandParameters.response.console.log("z/OSMF Service Registry " + + "- Types of Provisioned Instances.\n"); + const unique = [...new Set(instances.map((item) => item.type))]; + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(unique)); + } + else { + commandParameters.response.console.log("z/OSMF Service Registry"); + if (!(0, util_1.isNullOrUndefined)(commandParameters.arguments.filterByType)) { + commandParameters.response.console.log("\nShowing ONLY \"" + + commandParameters.arguments.filterByType.toUpperCase() + "\" instance types."); + } + commandParameters.response.console.log(pretty); + } + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } + /** + * Format the output of instance summary data, options may be used to further refine the output + * @param {IProvisionedInstance} instances: one or more provisioned instance + * @param showAllInfo : display summary (default) or all information fields + */ + formatProvisionedInstancesSummaryOutput(instances, showAllInfo) { + // Use defined pretty print template - IProvisionedInstancePrettyFull for displaying info + let prettifiedInstances = []; + if (showAllInfo) { + prettifiedInstances = imperative_1.TextUtils.explainObject(instances, provisioning_for_zowe_sdk_1.explainProvisionedInstanceFull, true); + } + else { + prettifiedInstances = imperative_1.TextUtils.explainObject(instances, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummary, false); + } + return prettifiedInstances; + } +} +exports.default = RegistryInstancesHandler; +//# sourceMappingURL=RegistryInstances.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.js.map b/lib/provisioning/list/registry/RegistryInstances.handler.js.map new file mode 100644 index 0000000000..c1305fafca --- /dev/null +++ b/lib/provisioning/list/registry/RegistryInstances.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RegistryInstances.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/registry/RegistryInstances.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAOyC;AACzC,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,wBAAyB,SAAQ,qCAAgB;IAErD,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,QAAQ,GAA0B,MAAM,iDAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAqB,CAAC,aAAa,EACvI,iBAAiB,CAAC,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;YAChG,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,MAAM,MAAM,GAAG,s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,CAAC,SAAS,EAAE,0DAA8B,EAAE,IAAI,CAAC,CAAC;SAClG;aAAM;YACH,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CAAC,SAAS,EAAE,6DAAiC,EAAE,KAAK,CAAC,CAAC;SACtG;QACD,OAAO,mBAAmB,CAAC;IAC/B,CAAC;CACJ;AA3CD,2CA2CC"} \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts b/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts new file mode 100644 index 0000000000..2af3087e97 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const templateInfo: ICommandDefinition; diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js new file mode 100644 index 0000000000..3c33e8ab18 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.templateInfo = void 0; +const path = require("path"); +exports.templateInfo = { + name: "template-info", + aliases: ["ti"], + type: "command", + summary: "List Published Template Details.", + description: "List details about a template published with z/OSMF Cloud Provisioning.", + handler: path.join(__dirname, "/TemplateInfo.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "The name of a z/OSMF cloud provisioning template.", + required: true + } + ], + options: [ + { + name: "all-info", + aliases: ["ai"], + description: "Display detailed information about published z/OSMF " + + "service catalog template (summary information is printed by default).", + type: "boolean" + } + ], + examples: [ + { + description: "List summary information for template \"template1\"", + options: "template1" + } + ] +}; +//# sourceMappingURL=TemplateInfo.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map new file mode 100644 index 0000000000..e4410bddb4 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TemplateInfo.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/templateInfo/TemplateInfo.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,yEAAyE;IACtF,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,sDAAsD;gBACnE,uEAAuE;YACvE,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts b/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts new file mode 100644 index 0000000000..1052c7f7f9 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to list template info + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class TemplateInfoHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js new file mode 100644 index 0000000000..187fa987f5 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to list template info + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class TemplateInfoHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield provisioning_for_zowe_sdk_1.ListTemplateInfo.listTemplateCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name); + let prettifiedTemplateInfo = {}; + if (commandParameters.arguments.allInfo) { + prettifiedTemplateInfo = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainPublishedTemplateInfoFull, false); + } + else { + prettifiedTemplateInfo = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainPublishedTemplateInfoSummary, false); + } + // Print out the response + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(prettifiedTemplateInfo)); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = TemplateInfoHandler; +//# sourceMappingURL=TemplateInfo.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map new file mode 100644 index 0000000000..16524095e0 --- /dev/null +++ b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TemplateInfo.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/templateInfo/TemplateInfo.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAChD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAA2B,MAAM,4CAAgB,CAAC,kBAAkB,CAC9E,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YAEF,IAAI,sBAAsB,GAAQ,EAAE,CAAC;YACrC,IAAI,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE;gBACrC,sBAAsB,GAAG,sBAAS,CAAC,aAAa,CAC5C,QAAQ,EACR,4DAAgC,EAChC,KAAK,CACR,CAAC;aACL;iBAAM;gBACH,sBAAsB,GAAG,sBAAS,CAAC,aAAa,CAC5C,QAAQ,EACR,+DAAmC,EACnC,KAAK,CACR,CAAC;aACL;YACD,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAC/C,CAAC;YAEF,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AA9BD,sCA8BC"} \ No newline at end of file diff --git a/lib/provisioning/perform/Perform.definition.d.ts b/lib/provisioning/perform/Perform.definition.d.ts new file mode 100644 index 0000000000..503a317e8e --- /dev/null +++ b/lib/provisioning/perform/Perform.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const PerformCommand: ICommandDefinition; diff --git a/lib/provisioning/perform/Perform.definition.js b/lib/provisioning/perform/Perform.definition.js new file mode 100644 index 0000000000..0616eedca6 --- /dev/null +++ b/lib/provisioning/perform/Perform.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PerformCommand = void 0; +const Action_definition_1 = require("./action/Action.definition"); +exports.PerformCommand = { + name: "perform", + aliases: ["perf"], + type: "group", + summary: "Perform instance actions.", + description: "Perform actions against instances provisioned with z/OSMF.", + children: [Action_definition_1.ActionDefinition] +}; +//# sourceMappingURL=Perform.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/Perform.definition.js.map b/lib/provisioning/perform/Perform.definition.js.map new file mode 100644 index 0000000000..dafcb71e32 --- /dev/null +++ b/lib/provisioning/perform/Perform.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Perform.definition.js","sourceRoot":"","sources":["../../../src/provisioning/perform/Perform.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kEAA8D;AAGjD,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,CAAC,oCAAgB,CAAC;CAC/B,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.definition.d.ts b/lib/provisioning/perform/action/Action.definition.d.ts new file mode 100644 index 0000000000..4bbdd4483c --- /dev/null +++ b/lib/provisioning/perform/action/Action.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ActionDefinition: ICommandDefinition; diff --git a/lib/provisioning/perform/action/Action.definition.js b/lib/provisioning/perform/action/Action.definition.js new file mode 100644 index 0000000000..dfb6a4216e --- /dev/null +++ b/lib/provisioning/perform/action/Action.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionDefinition = void 0; +exports.ActionDefinition = { + name: "action", + aliases: ["act"], + type: "command", + summary: "Perform instance actions.", + description: "Perform actions on instances previously provisioned with z/OSMF cloud\n" + + " provisioning services. To view the list of provisioned instances, use the\n" + + " \"zowe provisioning list registry-instances\" command. Once you have\n" + + " obtained an instance name you can use the \"zowe provisioning list\n" + + " instance-info \" command to view the available instance actions.", + handler: __dirname + "/Action.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "Provisioned Instance name.", + required: true + }, + { + name: "actionname", + type: "string", + description: "The action name. Use the \"zowe provisioning list instance-info \"\n" + + " command to view available instance actions.", + required: true + } + ], + examples: [ + { + description: `Perform the "start" action on the provisioned instance "instance1"`, + options: "instance1 start" + } + ] +}; +//# sourceMappingURL=Action.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.definition.js.map b/lib/provisioning/perform/action/Action.definition.js.map new file mode 100644 index 0000000000..b63609a00a --- /dev/null +++ b/lib/provisioning/perform/action/Action.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Action.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/perform/action/Action.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,yEAAyE;QACtF,gFAAgF;QAChF,2EAA2E;QAC3E,yEAAyE;QACzE,2EAA2E;IAC3E,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4EAA4E;gBACzF,mDAAmD;YACnD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.handler.d.ts b/lib/provisioning/perform/action/Action.handler.d.ts new file mode 100644 index 0000000000..4bedc27c55 --- /dev/null +++ b/lib/provisioning/perform/action/Action.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to perform action against instance + * @export + * @class ActionHandler + * @implements {ICommandHandler} + */ +export default class ActionHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/perform/action/Action.handler.js b/lib/provisioning/perform/action/Action.handler.js new file mode 100644 index 0000000000..2bd9538a93 --- /dev/null +++ b/lib/provisioning/perform/action/Action.handler.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const util_1 = require("util"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to perform action against instance + * @export + * @class ActionHandler + * @implements {ICommandHandler} + */ +class ActionHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); + const instances = registry["scr-list"]; + if ((0, util_1.isNullOrUndefined)(instances)) { + commandParameters.response.console.error("No instance with name " + + commandParameters.arguments.name + + " was found"); + } + else if (instances.length === 1) { + const id = instances.pop()["object-id"]; + const response = yield provisioning_for_zowe_sdk_1.PerformAction.doProvisioningActionCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id, commandParameters.arguments.actionname); + const pretty = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainActionResponse, false); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(pretty)); + commandParameters.response.data.setObj(response); + } + else if (instances.length > 1) { + commandParameters.response.console.error("Multiple instances with name " + + commandParameters.arguments.name + + " were found"); + } + }); + } +} +exports.default = ActionHandler; +//# sourceMappingURL=Action.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.handler.js.map b/lib/provisioning/perform/action/Action.handler.js.map new file mode 100644 index 0000000000..8505d01515 --- /dev/null +++ b/lib/provisioning/perform/action/Action.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Action.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/perform/action/Action.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,aAAc,SAAQ,qCAAgB;IAC1C,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,QAAQ,GAAG,MAAM,yCAAa,CAAC,0BAA0B,CAC3D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,EACF,iBAAiB,CAAC,SAAS,CAAC,UAAU,CACzC,CAAC;gBACF,MAAM,MAAM,GAAG,sBAAS,CAAC,aAAa,CAClC,QAAQ,EACR,iDAAqB,EACrB,KAAK,CACR,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAC/B,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACpD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAxCD,gCAwCC"} \ No newline at end of file diff --git a/lib/provisioning/provision/Provision.definition.d.ts b/lib/provisioning/provision/Provision.definition.d.ts new file mode 100644 index 0000000000..c186f2136f --- /dev/null +++ b/lib/provisioning/provision/Provision.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ProvisionCommand: ICommandDefinition; diff --git a/lib/provisioning/provision/Provision.definition.js b/lib/provisioning/provision/Provision.definition.js new file mode 100644 index 0000000000..16a3f36e24 --- /dev/null +++ b/lib/provisioning/provision/Provision.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProvisionCommand = void 0; +const Template_definition_1 = require("./template/Template.definition"); +exports.ProvisionCommand = { + name: "provision", + aliases: ["prov"], + type: "group", + summary: "Provision published software service templates.", + description: "Using z/OSMF cloud provisioning services provision available templates.", + children: [Template_definition_1.TemplateDefinition] +}; +//# sourceMappingURL=Provision.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/Provision.definition.js.map b/lib/provisioning/provision/Provision.definition.js.map new file mode 100644 index 0000000000..d52255967a --- /dev/null +++ b/lib/provisioning/provision/Provision.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Provision.definition.js","sourceRoot":"","sources":["../../../src/provisioning/provision/Provision.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wEAAoE;AAGvD,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,iDAAiD;IAC1D,WAAW,EAAE,yEAAyE;IACtF,QAAQ,EAAE,CAAC,wCAAkB,CAAC;CACjC,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.definition.d.ts b/lib/provisioning/provision/template/Template.definition.d.ts new file mode 100644 index 0000000000..46a451f0f0 --- /dev/null +++ b/lib/provisioning/provision/template/Template.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const TemplateDefinition: ICommandDefinition; diff --git a/lib/provisioning/provision/template/Template.definition.js b/lib/provisioning/provision/template/Template.definition.js new file mode 100644 index 0000000000..a163474e79 --- /dev/null +++ b/lib/provisioning/provision/template/Template.definition.js @@ -0,0 +1,107 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TemplateDefinition = void 0; +const Constants_1 = require("../../../Constants"); +exports.TemplateDefinition = { + name: "template", + aliases: ["tem"], + type: "command", + summary: "Provision a published software service template.", + description: "Using z/OSMF cloud provisioning services, provision available templates.\n" + + "You can view available templates using the " + Constants_1.Constants.BINARY_NAME + " provisioning list " + + "catalog-templates command.", + handler: __dirname + "/Template.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "name", + type: "string", + description: "The name of a z/OSMF cloud provisioning template.", + required: true + } + ], + options: [ + { + name: "properties", + aliases: ["p"], + description: "A sequence of string enclosed \"name=value\"" + + " pairs of prompt variables.\n" + + "e.g: \"CSQ_MQ_SSID=ZCT1,CSQ_CMD_PFX=!ZCT1\".", + type: "string" + }, + { + name: "properties-file", + aliases: ["pf"], + description: "Path to .yml file containing properties.", + type: "string" + }, + { + name: "domain-name", + aliases: ["dn"], + description: "Required if the user has consumer authorization " + + "to more than one domain with this template name.", + type: "string" + }, + { + name: "tenant-name", + aliases: ["tn"], + description: "Required if the user has consumer authorization to" + + " more than one tenant in the same domain " + + "that contains this template name.", + type: "string" + }, + { + name: "user-data-id", + aliases: ["udi"], + description: "ID for the user data specified with user-data." + + " Passed into the software services registry.", + type: "string" + }, + { + name: "user-data", + aliases: ["ud"], + description: "User data that is passed into the software services registry. " + + "Can be specified only if user-data-id is provided.", + type: "string" + }, + { + name: "account-info", + aliases: ["ai"], + description: "Account information to use in the JCL JOB statement. " + + "The default is the account information that " + + "is associated with the resource pool for the tenant.", + type: "string" + }, + { + name: "system-nick-names", + aliases: ["snn"], + description: "Each string is the nickname of the system " + + "upon which to provision the software service defined by the " + + "template. The field is required if the resource pool " + + "associated with the tenant used for this operation " + + "is not set up to automatically select a system. Only one nickname is allowed." + + "If the field is provided it is validated.\n" + + "e.g: \"SYSNAME1,SYSNAME2\".", + type: "string" + } + ], + examples: [ + { + description: "Provision a published software service template.", + options: "template1" + } + ] +}; +//# sourceMappingURL=Template.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.definition.js.map b/lib/provisioning/provision/template/Template.definition.js.map new file mode 100644 index 0000000000..3b781e8369 --- /dev/null +++ b/lib/provisioning/provision/template/Template.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Template.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/provision/template/Template.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,4EAA4E;QACrF,6CAA6C,GAAG,qBAAS,CAAC,WAAW,GAAG,qBAAqB;QAC7F,4BAA4B;IAChC,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QAEL;YACI,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,8CAA8C;gBACvD,+BAA+B;gBAC/B,8CAA8C;YAClD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,kDAAkD;gBAC3D,kDAAkD;YACtD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,oDAAoD;gBAC7D,2CAA2C;gBAC3C,mCAAmC;YACvC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,gDAAgD;gBACzD,8CAA8C;YAClD,IAAI,EAAE,QAAQ;SAEjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,gEAAgE;gBACzE,oDAAoD;YACxD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,uDAAuD;gBAChE,8CAA8C;gBAC9C,sDAAsD;YAC1D,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,4CAA4C;gBACrD,8DAA8D;gBAC9D,uDAAuD;gBACvD,qDAAqD;gBACrD,+EAA+E;gBAC/E,6CAA6C;gBAC7C,6BAA6B;YAEjC,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.handler.d.ts b/lib/provisioning/provision/template/Template.handler.d.ts new file mode 100644 index 0000000000..9353e6c793 --- /dev/null +++ b/lib/provisioning/provision/template/Template.handler.d.ts @@ -0,0 +1,5 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/provisioning/provision/template/Template.handler.js b/lib/provisioning/provision/template/Template.handler.js new file mode 100644 index 0000000000..4d8b57c90e --- /dev/null +++ b/lib/provisioning/provision/template/Template.handler.js @@ -0,0 +1,60 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("util"); +const imperative_1 = require("@zowe/imperative"); +const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + let response; + let usedOptionalParms = false; + let arrayOfSystemNickNames; + if (!(0, util_1.isNullOrUndefined)(commandParameters.arguments.systemNickNames)) { + arrayOfSystemNickNames = commandParameters.arguments.systemNickNames + .split(",") + .map((systemName) => { + return systemName.trim(); + }); + } + const provisionOptionalParams = provisioning_for_zowe_sdk_1.ProvisioningService.checkForPassedOptionalParms(commandParameters.arguments.properties, commandParameters.arguments.propertiesFile, commandParameters.arguments.domainName, commandParameters.arguments.tenantName, commandParameters.arguments.userDataId, commandParameters.arguments.userData, commandParameters.arguments.accountInfo, arrayOfSystemNickNames); + for (const property in provisionOptionalParams) { + if (!(0, util_1.isNullOrUndefined)(provisionOptionalParams[property])) { + usedOptionalParms = true; + } + } + if (usedOptionalParms) { + response = yield provisioning_for_zowe_sdk_1.ProvisionPublishedTemplate.provisionTemplate(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name, provisionOptionalParams); + } + else { + response = yield provisioning_for_zowe_sdk_1.ProvisionPublishedTemplate.provisionTemplate(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name); + } + let prettyResponse = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainProvisionTemplateResponse, false); + prettyResponse = imperative_1.TextUtils.prettyJson(prettyResponse); + commandParameters.response.console.log(prettyResponse); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Template.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.handler.js.map b/lib/provisioning/provision/template/Template.handler.js.map new file mode 100644 index 0000000000..b799a2bed2 --- /dev/null +++ b/lib/provisioning/provision/template/Template.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Template.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/provision/template/Template.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AACzC,iDAAiE;AACjE,+EAOyC;AACzC,iEAA4D;AAE5D,MAAqB,OAAQ,SAAQ,qCAAgB;IACpC,UAAU,CAAC,iBAAqC;;YACzD,IAAI,QAAoC,CAAC;YACzC,IAAI,iBAAiB,GAAY,KAAK,CAAC;YACvC,IAAI,sBAAgC,CAAC;YAErC,IAAI,CAAC,IAAA,wBAAiB,EAAC,iBAAiB,CAAC,SAAS,CA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C,cAAc,CAAC,CAAC;YAEtD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAEvD,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAhED,0BAgEC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.definition.d.ts b/lib/workflows/archive/Archive.definition.d.ts new file mode 100644 index 0000000000..ea5e8c92d0 --- /dev/null +++ b/lib/workflows/archive/Archive.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the archive group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const ArchiveDefinition: ICommandDefinition; diff --git a/lib/workflows/archive/Archive.definition.js b/lib/workflows/archive/Archive.definition.js new file mode 100644 index 0000000000..8e6c403248 --- /dev/null +++ b/lib/workflows/archive/Archive.definition.js @@ -0,0 +1,29 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ArchiveDefinition = void 0; +const Archive_workflow_definition_1 = require("./workflow/Archive.workflow.definition"); +/** + * This object defines the command for the archive group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +exports.ArchiveDefinition = { + name: "archive", + type: "group", + description: "Archive workflow instance in z/OSMF.", + children: [ + Archive_workflow_definition_1.Workflow + ] +}; +//# sourceMappingURL=Archive.definition.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.definition.js.map b/lib/workflows/archive/Archive.definition.js.map new file mode 100644 index 0000000000..4676e85779 --- /dev/null +++ b/lib/workflows/archive/Archive.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Archive.definition.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wFAAkE;AAElE;;;;;GAKG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE;QACN,sCAAQ;KACX;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.handler.d.ts b/lib/workflows/archive/Archive.handler.d.ts new file mode 100644 index 0000000000..3136f27f45 --- /dev/null +++ b/lib/workflows/archive/Archive.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common Handler for archiving workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +export default class ArchiveHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof ArchiveHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows archive" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ArchiveHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/archive/Archive.handler.js b/lib/workflows/archive/Archive.handler.js new file mode 100644 index 0000000000..e73a55e118 --- /dev/null +++ b/lib/workflows/archive/Archive.handler.js @@ -0,0 +1,114 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +/** + * Common Handler for archiving workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +class ArchiveHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows archive" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ArchiveHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + let sourceType; + if (this.arguments.workflowKey) { + sourceType = "workflowKey"; + } + else if (this.arguments.workflowName) { + sourceType = "workflowName"; + } + let resp; + let getWfKey; + let error; + switch (sourceType) { + case "workflowKey": + try { + resp = yield zos_workflows_for_zowe_sdk_1.ArchiveWorkflow.archiveWorkflowByKey(this.mSession, this.arguments.workflowKey, undefined); + } + catch (err) { + error = "Archive workflow: " + err; + throw error; + } + params.response.data.setObj(resp); + params.response.console.log("Workflow archived with workflow-key " + resp.workflowKey); + break; + case "workflowName": { + getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { workflowName: this.arguments.workflowName }); + if (getWfKey === null || getWfKey.workflows.length === 0) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.` + }); + } + const successWfs = []; + const failedWfs = []; + for (const element of getWfKey.workflows) { + try { + resp = yield zos_workflows_for_zowe_sdk_1.ArchiveWorkflow.archiveWorkflowByKey(this.mSession, element.workflowKey); + successWfs.push(element); + } + catch (err) { + failedWfs.push(element); + } + } + params.response.data.setObj("Archived."); + if (getWfKey.workflows.length > 0) { + params.response.console.log("Successfully archived workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: successWfs, + format: "table", + header: true + }); + } + if (failedWfs.length > 0) { + params.response.console.log("\nFailed to archive Workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: failedWfs, + format: "table", + header: true + }); + throw new imperative_1.ImperativeError({ + msg: `Some workflows were not archived, please check the message above.` + }); + } + break; + } + default: + throw new imperative_1.ImperativeError({ + msg: `Internal create error: Unable to determine the the criteria by which to run workflow archive action. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + }); + } +} +exports.default = ArchiveHandler; +//# sourceMappingURL=Archive.handler.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.handler.js.map b/lib/workflows/archive/Archive.handler.js.map new file mode 100644 index 0000000000..90b4a6353a --- /dev/null +++ b/lib/workflows/archive/Archive.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Archive.handler.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iEAA4D;AAC5D,iFAAoH;AAEpH;;;GAGG;AAEH,MAAqB,cAAe,SAAQ,qCAAgB;IASxD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,UAAU,GAAG,aAAa,CAAC;aAC9B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,UAAU,GAAG,cAAc,CAAC;aAC/B;YAED,IAAI,IAAI,CAAC;YAC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,IAAI,CAAC,OAAO,CAAC,CAAC;yBAC3B;qBACJ;oBAED,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;oBAEzC,IAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAC;wBAC7B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;wBACnE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,UAAU;4BAClB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;qBACN;oBAED,IAAG,SAAS,CAAC,MAAM,GAAG,CAAC,EAAC;wBACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;wBACjE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,SAAS;4BACjB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,MAAM,IAAI,4BAAe,CAAC;4BACtB,GAAG,EAAE,mEAAmE;yBAC3E,CAAC,CAAC;qBACN;oBACD,MAAM;iBACT;gBACD;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,uGAAuG;4BAC5G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AA7FD,iCA6FC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.options.d.ts b/lib/workflows/archive/Archive.options.d.ts new file mode 100644 index 0000000000..ce5138f94f --- /dev/null +++ b/lib/workflows/archive/Archive.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the archive workflow commands. + */ +export declare const ArchiveOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/archive/Archive.options.js b/lib/workflows/archive/Archive.options.js new file mode 100644 index 0000000000..7b8162b182 --- /dev/null +++ b/lib/workflows/archive/Archive.options.js @@ -0,0 +1,54 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ArchiveOptions = void 0; +/** + * Object containing all extra options to be used by the archive workflow commands. + */ +exports.ArchiveOptions = { + /** + * The name of the workflow to be archived. + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + type: "string", + description: "The name of the workflow to be archived.", + required: false, + absenceImplications: ["workflow-key"], + conflictsWith: ["workflow-key"] + }, + /** + * The workflow key of the workflow to be archived. + * @type {ICommandOptionDefinition} + */ + workflowKey: { + name: "workflow-key", + aliases: ["wk"], + type: "string", + description: "The workflow key of the workflow to be archived.", + required: false + }, + /** + * Identifies the version of the zOSMF workflow service. + * @type {ICommandOptionDefinition} + */ + zosmfVersion: { + name: "zosmf-version", + aliases: ["zosmf-v"], + description: "Identifies the version of the zOSMF workflow service.", + type: "boolean", + required: false + } +}; +//# sourceMappingURL=Archive.options.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.options.js.map b/lib/workflows/archive/Archive.options.js.map new file mode 100644 index 0000000000..63bab20726 --- /dev/null +++ b/lib/workflows/archive/Archive.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Archive.options.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,cAAc,GAAgD;IAEvE;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;QAC/D,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts b/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts new file mode 100644 index 0000000000..a73b374685 --- /dev/null +++ b/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for archiving workflow instance on zOSMF. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const Workflow: ICommandDefinition; diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.js b/lib/workflows/archive/workflow/Archive.workflow.definition.js new file mode 100644 index 0000000000..c1c75298d7 --- /dev/null +++ b/lib/workflows/archive/workflow/Archive.workflow.definition.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Workflow = void 0; +const Archive_options_1 = require("../Archive.options"); +const path_1 = require("path"); +/** + * This object defines the command for archiving workflow instance on zOSMF. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.Workflow = { + name: "active-workflow", + aliases: ["aw"], + description: "Archive an active workflow instance in z/OSMF.", + type: "command", + handler: (0, path_1.join)(__dirname, "../Archive.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + Archive_options_1.ArchiveOptions.workflowName, + Archive_options_1.ArchiveOptions.workflowKey + ]), + outputFormatOptions: true, + examples: [ + { + description: "Archive a workflow with workflow name \"testworkflow\"", + options: "--wn \"testworkflow\" " + }, + { + description: "Archive multiple workflows with workflow names starting with \"test\"", + options: "--wn \"test.*\" " + }, + { + description: "Archive a workflow with workflow key \"123-456-abv-xyz\"", + options: "--wk \"123-456-abv-xyz\" " + } + ] +}; +//# sourceMappingURL=Archive.workflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.js.map b/lib/workflows/archive/workflow/Archive.workflow.definition.js.map new file mode 100644 index 0000000000..353b076b59 --- /dev/null +++ b/lib/workflows/archive/workflow/Archive.workflow.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Archive.workflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/archive/workflow/Archive.workflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AACpD,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,QAAQ,GAAuB;IACxC,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC;IAC9C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,wBAAwB;SACpC;QACD;YACI,WAAW,EAAE,uEAAuE;YACpF,OAAO,EAAE,kBAAkB;SAC9B;QACD;YACI,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,2BAA2B;SACvC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/Create.common.handler.d.ts b/lib/workflows/create/Create.common.handler.d.ts new file mode 100644 index 0000000000..7e21a8cc3c --- /dev/null +++ b/lib/workflows/create/Create.common.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common Handler for creating workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +export default class CreateCommonHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof CreateCommonHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows create" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof CreateCommonHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/create/Create.common.handler.js b/lib/workflows/create/Create.common.handler.js new file mode 100644 index 0000000000..9b2542c2a9 --- /dev/null +++ b/lib/workflows/create/Create.common.handler.js @@ -0,0 +1,144 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common Handler for creating workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +class CreateCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows create" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof CreateCommonHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + let sourceType; + if (this.arguments.dataSet) { + sourceType = "dataset"; + } + else if (this.arguments.ussFile) { + sourceType = "uss-file"; + } + else if (this.arguments.localFile) { + sourceType = "local-file"; + } + let wfKey; + let resp; + let error; + if (this.arguments.overwrite) { + wfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName); + if (wfKey) { + try { + resp = yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, wfKey); + } + catch (err) { + error = + "Deleting z/OSMF workflow with workflow name " + + this.arguments.workflowName + + " failed. More details: \n" + + err; + } + } + } + switch (sourceType) { + case "dataset": + try { + resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflow(this.mSession, this.arguments.workflowName, this.arguments.dataSet, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted); + } + catch (err) { + error = + "Creating zOS/MF workflow with data set: " + + this.arguments.dataSet + + " failed. More details: \n" + + err; + throw error; + } + params.response.data.setObj(resp); + params.response.format.output({ + fields: ["workflowKey", "workflowDescription"], + output: resp, + format: "object" + }); + break; + case "uss-file": + try { + resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflow(this.mSession, this.arguments.workflowName, this.arguments.ussFile, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted); + } + catch (err) { + error = + "Creating z/OSMF workflow with uss file: " + + this.arguments.ussFile + + " failed. More details: \n" + + err; + throw error; + } + params.response.data.setObj(resp); + params.response.format.output({ + fields: ["workflowKey", "workflowDescription"], + output: resp, + format: "object" + }); + break; + case "local-file": + try { + resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflowLocal(this.mSession, this.arguments.workflowName, this.arguments.localFile, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted, this.arguments.keepFiles, this.arguments.remoteDirectory); + } + catch (err) { + error = + "Creating z/OSMF workflow with local file: " + + this.arguments.localFile + + " failed. More details: \n" + + err; + throw error; + } + params.response.data.setObj(resp); + params.response.format.output({ + fields: [ + "workflowKey", + "workflowDescription", + resp.filesKept + ? "filesKept" + : resp.failedToDelete + ? "failedToDelete" + : "" + ], + output: resp, + format: "object" + }); + break; + default: + throw new imperative_1.ImperativeError({ + msg: `Internal create error: Unable to determine the source of the definition file. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + }); + } +} +exports.default = CreateCommonHandler; +//# sourceMappingURL=Create.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.common.handler.js.map b/lib/workflows/create/Create.common.handler.js.map new file mode 100644 index 0000000000..bc3afb6343 --- /dev/null +++ b/lib/workflows/create/Create.common.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.common.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAI0C;AAC1C,iEAA4D;AAE5D;;;GAGG;AAEH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAS7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,UAAU,GAAG,SAAS,CAAC;aAC1B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC/B,UAAU,GAAG,UAAU,CAAC;aAC3B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;gBACjC,UAAU,GAAG,YAAY,CAAC;aAC7B;YAED,IAAI,KAAa,CAAC;YAClB,IAAI,IAAI,CAAC;YACT,IAAI,KAAK,CAAC;YACV,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;gBAC1B,KAAK,GAAG,MAAM,0CAAa,CAAC,QAAQ,CAChC,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,SAAS,CAAC,YAAY,CAC9B,CAAC;gBACF,IAAI,KAAK,EAAE;oBACP,IAAI;wBACA,IAAI,GAAG,MAAM,2CAAc,CAAC,cAAc,CACtC,IAAI,CAAC,QAAQ,EACb,KAAK,CACR,CAAC;qBACL;oBAAC,OAAO,GAAG,EAAE;wBACV,KAAK;4BACD,8CAA8C;gCAC9C,IAAI,CAAC,SAAS,CAAC,YAAY;gCAC3B,2BAA2B;gCAC3B,GAAG,CAAC;qBACX;iBACJ;aACJ;YACD,QAAQ,UAAU,EAAE;gBAChB,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CAAC,IAAI,CAAC,CAAC;oBAElC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;wBAC1B,MAAM,EAAE;4BACJ,aAAa;4BACb,qBAAqB;4BACrB,IAAI,CAAC,SAAS;gCACV,CAAC,CAAC,WAAW;gCACb,CAAC,CAAC,IAAI,CAAC,cAAc;oCACjB,CAAC,CAAC,gBAAgB;oCAClB,CAAC,CAAC,EAAE;yBACf;wBACD,MAAM,EAAE,IAAI;wBACZ,MAAM,EAAE,QAAQ;qBACnB,CAAC,CAAC;oBAEH,MAAM;gBAEV;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EACC,gFAAgF;4BAChF,yBAAyB;wBAC7B,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AAtKD,sCAsKC"} \ No newline at end of file diff --git a/lib/workflows/create/Create.common.options.d.ts b/lib/workflows/create/Create.common.options.d.ts new file mode 100644 index 0000000000..c2a412f058 --- /dev/null +++ b/lib/workflows/create/Create.common.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the create workflow commands. + */ +export declare const CreateCommonOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/create/Create.common.options.js b/lib/workflows/create/Create.common.options.js new file mode 100644 index 0000000000..5142ef7ca8 --- /dev/null +++ b/lib/workflows/create/Create.common.options.js @@ -0,0 +1,181 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateCommonOptions = void 0; +/** + * Object containing all extra options to be used by the create workflow commands. + */ +exports.CreateCommonOptions = { + /** + * Data set containing workflow definiton option. + * @type {ICommandOptionDefinition} + */ + dataSet: { + name: "data-set", + aliases: ["ds"], + type: "string", + description: "Data set that contains a workflow definiton.", + required: true + }, + /** + * Uss file containing workflow definiton option. + * @type {ICommandOptionDefinition} + */ + ussFile: { + name: "uss-file", + aliases: ["uf"], + type: "string", + description: "Uss file that contains workflow definiton.", + required: true + }, + /** + * Local file containing workflow definiton option. + * @type {ICommandOptionDefinition} + */ + localFile: { + name: "local-file", + aliases: ["lf"], + type: "string", + description: "Local file that contains workflow definiton.", + required: true + }, + /** + * System where the workflow will run. + * @type {ICommandOptionDefinition} + */ + systemName: { + name: "system-name", + aliases: ["sn"], + description: "z/OS system to execute the workflow.", + type: "string", + required: true + }, + /** + * User id of the owner of the workflow. + * @type {ICommandOptionDefinition} + */ + owner: { + name: "owner", + aliases: ["ow"], + description: "User ID of the workflow owner. This user can perform the workflow steps or delegate the steps to other users.", + type: "string", + required: true + }, + /** + * Property file containing key-value pairs as workflow variables. + * @type {ICommandOptionDefinition} + */ + inputFile: { + name: "variables-input-file", + aliases: ["vif"], + description: "Specifies an optional properties file that you can use to pre-specify values for one or more of the variables that" + + " are defined in the workflow definition file.", + type: "string", + required: false + }, + /** + * Variables list for workflow. + * @type {ICommandOptionDefinition} + */ + variables: { + name: "variables", + aliases: ["vs"], + description: "Includes a list of variables for the workflow. " + + "The variables that you specify here take precedence over the variables that are specified in the workflow variable input file. " + + "Make sure the value meets all regular expression requirements set for the corresponding variable.", + type: "string", + required: false + }, + /** + * Indicates whether the workflow steps are assigned to the workflow owner. + * @type {ICommandOptionDefinition} + */ + assignToOwner: { + name: "assign-to-owner", + aliases: ["ato"], + description: "Indicates whether the workflow steps are assigned to the workflow owner.", + type: "boolean", + required: false + }, + /** + * Specifies the access type for the workflow. Public, Restricted or Private. + * @type {ICommandOptionDefinition} + */ + accessType: { + name: "access-type", + aliases: ["at"], + description: "Specifies the access type for the workflow. Public, Restricted or Private.", + type: "string", + required: false, + allowableValues: { + values: ["Public", "Restricted", "Private"], + caseSensitive: true + } + }, + /** + * Whether the successfully completed jobs to be deleted from the JES spool. + * @type {ICommandOptionDefinition} + */ + deleteCompleted: { + name: "delete-completed", + aliases: ["dc"], + description: "Whether the successfully completed jobs to be deleted from the JES spool.", + type: "boolean", + required: false + }, + /** + * Specifies whether delete workflow with the same name if it already exists. + * @type {ICommandOptionDefinition} + */ + overwrite: { + name: "overwrite", + aliases: ["ov"], + description: "Replaces an existing workflow with a new workflow. ", + type: "boolean", + required: false + }, + /** + * The remote uss directory where the files are to be uploaded. + * @type {ICommandOptionDefinition} + */ + remoteDirectory: { + name: "remote-directory", + aliases: ["rd"], + description: "The remote uss directory where the files are to be uploaded. The directory has to exist", + type: "string", + required: false + }, + /** + * Avoid deletion the uploaded files after successful execution. + * @type {ICommandOptionDefinition} + */ + keepFiles: { + name: "keep-files", + aliases: ["kf"], + description: "Avoid deletion the uploaded files in /tmp or another specified directory after successful execution.", + type: "boolean", + defaultValue: false, + required: false + }, + /** + * Identifies the version of the zOSMF workflow service. + * @type {ICommandOptionDefinition} + */ + zosmfVersion: { + name: "zosmf-version", + aliases: ["zosmf-v"], + description: "Identifies the version of the zOSMF workflow service.", + type: "boolean", + required: false + } +}; +//# sourceMappingURL=Create.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.common.options.js.map b/lib/workflows/create/Create.common.options.js.map new file mode 100644 index 0000000000..510aae2494 --- /dev/null +++ b/lib/workflows/create/Create.common.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.common.options.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,mBAAmB,GAAgD;IAE5E;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE,I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workflows/create/Create.definition.d.ts new file mode 100644 index 0000000000..a11b7ec4f8 --- /dev/null +++ b/lib/workflows/create/Create.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the create group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const CreateDefinition: ICommandDefinition; diff --git a/lib/workflows/create/Create.definition.js b/lib/workflows/create/Create.definition.js new file mode 100644 index 0000000000..af92f6508f --- /dev/null +++ b/lib/workflows/create/Create.definition.js @@ -0,0 +1,34 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDefinition = void 0; +const Dataset_definition_1 = require("./dataset/Dataset.definition"); +const UssFile_definition_1 = require("./ussfile/UssFile.definition"); +const LocalFile_definition_1 = require("./localfile/LocalFile.definition"); +/** + * This object defines the command for the create group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +exports.CreateDefinition = { + name: "create", + aliases: ["cre"], + type: "group", + description: "Create a z/OSMF workflow on a z/OS system.", + children: [ + Dataset_definition_1.DataSet, + UssFile_definition_1.UssFile, + LocalFile_definition_1.LocalFile + ] +}; +//# sourceMappingURL=Create.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.definition.js.map b/lib/workflows/create/Create.definition.js.map new file mode 100644 index 0000000000..bbc0fc76b5 --- /dev/null +++ b/lib/workflows/create/Create.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.definition.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAuD;AACvD,qEAAuD;AACvD,2EAA6D;AAG7D;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE;QACN,4BAAO;QACP,4BAAO;QACP,gCAAS;KACZ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/dataset/Dataset.definition.d.ts b/lib/workflows/create/dataset/Dataset.definition.d.ts new file mode 100644 index 0000000000..d33cfe8525 --- /dev/null +++ b/lib/workflows/create/dataset/Dataset.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for creating workflow instance from dataset within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const DataSet: ICommandDefinition; diff --git a/lib/workflows/create/dataset/Dataset.definition.js b/lib/workflows/create/dataset/Dataset.definition.js new file mode 100644 index 0000000000..1203fdcf46 --- /dev/null +++ b/lib/workflows/create/dataset/Dataset.definition.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataSet = void 0; +const Create_common_options_1 = require("../Create.common.options"); +const path_1 = require("path"); +/** + * This object defines the command for creating workflow instance from dataset within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.DataSet = { + name: "workflow-from-data-set", + aliases: ["wfds"], + description: "Create a z/OSMF workflow on a z/OS system using a Data set", + type: "command", + handler: (0, path_1.join)(__dirname, "../Create.common.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "workflowName", + type: "string", + description: "Name of the workflow", + required: true + } + ], + options: ([ + Create_common_options_1.CreateCommonOptions.dataSet, + Create_common_options_1.CreateCommonOptions.systemName, + Create_common_options_1.CreateCommonOptions.owner, + Create_common_options_1.CreateCommonOptions.inputFile, + Create_common_options_1.CreateCommonOptions.variables, + Create_common_options_1.CreateCommonOptions.assignToOwner, + Create_common_options_1.CreateCommonOptions.accessType, + Create_common_options_1.CreateCommonOptions.deleteCompleted, + Create_common_options_1.CreateCommonOptions.overwrite + // CreateCommonOptions.zosmfVersion + ]), + outputFormatOptions: true, + examples: [ + { + description: "Create a workflow with name \"testworkflow\" using the data set \"TESTID.WKFLOW\" that contains the workflow " + + "definition xml on the system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", + options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" + }, + { + description: "Create a workflow with name \"testworkflow\" using data set \"TESTID.WKFLOW\" containing workflow definition xml, " + + "on system \"TESTM1\" with owner \"MYSYSID\" and delete succesfully completed jobs", + options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" --delete-completed" + }, + { + description: "Create a workflow with name \"testworkflow\" using data set \"TESTID.WKFLOW\" containing workflow definition xml, " + + "on system \"TESTM1\" with owner \"MYSYSID\" and with variable values in the member PROPERTIES of data set TESTID.DATA", + options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" " + + "--variables-input-file TESTID.DATA(PROPERTIES)" + }, + { + description: "Create a workflow with name \"testworkflow\" using the data set \"TESTID.WKFLOW\" that contains a workflow definition xml" + + ", on a system \"TESTM1\" with owner \"MYSYSID\" and with the variable name DUMMYVAR and the value DUMMYVAL. Assign it to the owner", + options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" --variables DUMMYVAR=DUMMYVAL " + + "--assign-to-owner" + } + ] +}; +//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/dataset/Dataset.definition.js.map b/lib/workflows/create/dataset/Dataset.definition.js.map new file mode 100644 index 0000000000..c129868eba --- /dev/null +++ b/lib/workflows/create/dataset/Dataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/dataset/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,OAAO,GAAuB;IACvC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,OAAO;QAC3B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,mCAAmC;KACtC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+GAA+G;gBAC5H,qIAAqI;YACrI,OAAO,EAAE,wGAAwG;SACpH;QACD;YACI,WAAW,EAAE,oHAAoH;gBACjI,mFAAmF;YACnF,OAAO,EAAE,+GAA+G;SAC3H;QACD;YACI,WAAW,EAAE,oHAAoH;gBACjI,uHAAuH;YACvH,OAAO,EAAE,6FAA6F;gBAClG,gDAAgD;SACvD;QACD;YACI,WAAW,EAAE,2HAA2H;gBACxI,oIAAoI;YACpI,OAAO,EAAE,2HAA2H;gBAChI,mBAAmB;SAC1B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/localfile/LocalFile.definition.d.ts b/lib/workflows/create/localfile/LocalFile.definition.d.ts new file mode 100644 index 0000000000..2f05682189 --- /dev/null +++ b/lib/workflows/create/localfile/LocalFile.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for creating workflow instance from local file within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const LocalFile: ICommandDefinition; diff --git a/lib/workflows/create/localfile/LocalFile.definition.js b/lib/workflows/create/localfile/LocalFile.definition.js new file mode 100644 index 0000000000..4104c21072 --- /dev/null +++ b/lib/workflows/create/localfile/LocalFile.definition.js @@ -0,0 +1,61 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocalFile = void 0; +const Create_common_options_1 = require("../Create.common.options"); +const path_1 = require("path"); +/** + * This object defines the command for creating workflow instance from local file within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.LocalFile = { + name: "workflow-from-local-file", + aliases: ["wflf"], + description: "Create a z/OSMF workflow on a z/OS system using a Local file", + type: "command", + handler: (0, path_1.join)(__dirname, "../Create.common.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "workflowName", + type: "string", + description: "Name of the workflow", + required: true + } + ], + options: ([ + Create_common_options_1.CreateCommonOptions.localFile, + Create_common_options_1.CreateCommonOptions.systemName, + Create_common_options_1.CreateCommonOptions.owner, + Create_common_options_1.CreateCommonOptions.inputFile, + Create_common_options_1.CreateCommonOptions.variables, + Create_common_options_1.CreateCommonOptions.assignToOwner, + Create_common_options_1.CreateCommonOptions.accessType, + Create_common_options_1.CreateCommonOptions.deleteCompleted, + Create_common_options_1.CreateCommonOptions.overwrite, + Create_common_options_1.CreateCommonOptions.remoteDirectory, + Create_common_options_1.CreateCommonOptions.keepFiles + ]), + outputFormatOptions: true, + examples: [ + { + description: "Create a workflow with name \"testworkflow\" using the local file \"TESTID_WKFLOW.xml\" that contains the workflow " + + "definition xml on the system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", + options: "\"testworkflow\" --local-file \"TESTID_WKFLOW.xml\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" + } + ] +}; +//# sourceMappingURL=LocalFile.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/localfile/LocalFile.definition.js.map b/lib/workflows/create/localfile/LocalFile.definition.js.map new file mode 100644 index 0000000000..606aee3f0d --- /dev/null +++ b/lib/workflows/create/localfile/LocalFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalFile.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/localfile/LocalFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAG5B;;;;;GAKG;AACU,QAAA,SAAS,GAAuB;IACzC,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,8DAA8D;IAC3E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;KAChC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qHAAqH;gBAClI,qIAAqI;YACrI,OAAO,EAAE,8GAA8G;SAC1H;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/ussfile/UssFile.definition.d.ts b/lib/workflows/create/ussfile/UssFile.definition.d.ts new file mode 100644 index 0000000000..011ceecccb --- /dev/null +++ b/lib/workflows/create/ussfile/UssFile.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for creating workflow instance from uss file within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const UssFile: ICommandDefinition; diff --git a/lib/workflows/create/ussfile/UssFile.definition.js b/lib/workflows/create/ussfile/UssFile.definition.js new file mode 100644 index 0000000000..4b149a1b09 --- /dev/null +++ b/lib/workflows/create/ussfile/UssFile.definition.js @@ -0,0 +1,79 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssFile = void 0; +const Create_common_options_1 = require("../Create.common.options"); +const path_1 = require("path"); +/** + * This object defines the command for creating workflow instance from uss file within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.UssFile = { + name: "workflow-from-uss-file", + aliases: ["wfuf"], + description: "Create a workflow instance in z/OSMF using a USS file", + type: "command", + handler: (0, path_1.join)(__dirname, "../Create.common.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "workflowName", + type: "string", + description: "Name of the workflow instance to create", + required: true + } + ], + options: ([ + Create_common_options_1.CreateCommonOptions.ussFile, + Create_common_options_1.CreateCommonOptions.systemName, + Create_common_options_1.CreateCommonOptions.owner, + Create_common_options_1.CreateCommonOptions.inputFile, + Create_common_options_1.CreateCommonOptions.variables, + Create_common_options_1.CreateCommonOptions.assignToOwner, + Create_common_options_1.CreateCommonOptions.accessType, + Create_common_options_1.CreateCommonOptions.deleteCompleted, + Create_common_options_1.CreateCommonOptions.overwrite + // CreateCommonOptions.zosmfVersion + ]), + outputFormatOptions: true, + examples: [ + { + description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + + "on system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", + options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" + }, + { + description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + + "on system \"TESTM1\" with owner \"MYSYSID\" and delete successfully completed jobs", + options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"MYSYSID\" --delete-completed" + }, + { + description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + + "on system \"TESTM1\" with owner \"MYSYSID\" and with variable values in the member PROPERTIES of data set TESTID.DATA", + options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"MYSYSID\" " + + "--variables-input-file TESTID.DATA(PROPERTIES)" + }, + { + description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + + "on system \"TESTM1\" with owner \"MYSYSID\" and with variables VAR1 and VAR2 with values DUMMYVAL1 and DUMMYVAL2, " + + "and assign it to the owner", + options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\"" + + "--variables VAR1=DUMMYVAL1,VAR2=DUMMYVAL2 " + + "--owner \"MYSYSID\" --assign-to-owner" + } + ] +}; +//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/ussfile/UssFile.definition.js.map b/lib/workflows/create/ussfile/UssFile.definition.js.map new file mode 100644 index 0000000000..e1a31cfd78 --- /dev/null +++ b/lib/workflows/create/ussfile/UssFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/ussfile/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,OAAO,GAAuB;IACvC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,OAAO;QAC3B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,mCAAmC;KACtC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qHAAqH;gBAClI,kHAAkH;YAClH,OAAO,EAAE,6GAA6G;SACzH;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,oFAAoF;YACpF,OAAO,EAAE,oHAAoH;SAChI;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,uHAAuH;YACvH,OAAO,EAAE,kGAAkG;gBACvG,gDAAgD;SACvD;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,oHAAoH;gBACpH,4BAA4B;YAC5B,OAAO,EAAE,6EAA6E;gBAClF,4CAA4C;gBAC5C,uCAAuC;SAC9C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.archived.common.handler.d.ts b/lib/workflows/delete/Delete.archived.common.handler.d.ts new file mode 100644 index 0000000000..96f1bf0687 --- /dev/null +++ b/lib/workflows/delete/Delete.archived.common.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common handler to delete a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +export default class DeleteArchivedCommonHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof DeleteArchivedCommonHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows delete" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof DeleteArchivedCommonHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/delete/Delete.archived.common.handler.js b/lib/workflows/delete/Delete.archived.common.handler.js new file mode 100644 index 0000000000..6a45236c72 --- /dev/null +++ b/lib/workflows/delete/Delete.archived.common.handler.js @@ -0,0 +1,134 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const minimatch = require("minimatch"); +/** + * Common handler to delete a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +class DeleteArchivedCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows delete" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof DeleteArchivedCommonHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + let error; + let listWorkflows; + this.arguments = params.arguments; + let sourceType; + if (this.arguments.workflowKey) { + sourceType = "workflowKey"; + } + else if (this.arguments.workflowName) { + sourceType = "workflowName"; + } + switch (sourceType) { + case "workflowKey": + try { + yield zos_workflows_for_zowe_sdk_1.ArchivedDeleteWorkflow.archivedDeleteWorkflow(this.mSession, this.arguments.workflowKey); + } + catch (err) { + error = "Delete workflow: " + err; + throw error; + } + params.response.data.setObj("Deleted."); + params.response.console.log("Workflow deleted."); + break; + case "workflowName": { + let wildCard = true; + let check; + let normalized; + const successWfs = []; + const failedWfs = []; + this.arguments.workflowName.includes(".*") + ? (normalized = this.arguments.workflowName + .split(".*") + .join("*")) + : (wildCard = false); + listWorkflows = yield zos_workflows_for_zowe_sdk_1.ListArchivedWorkflows.listArchivedWorkflows(this.mSession); + for (let i = listWorkflows.archivedWorkflows.length - 1; i >= 0; i--) { + // Swap between checks to avoid "glob pattern string required" error. + wildCard + ? (check = minimatch(listWorkflows.archivedWorkflows[i].workflowName, normalized)) + : (check = + listWorkflows.archivedWorkflows[i] + .workflowName === + this.arguments.workflowName); + if (check) { + try { + yield zos_workflows_for_zowe_sdk_1.ArchivedDeleteWorkflow.archivedDeleteWorkflow(this.mSession, listWorkflows.archivedWorkflows[i].workflowKey); + successWfs.push(listWorkflows.archivedWorkflows[i]); + } + catch (err) { + failedWfs.push(listWorkflows.archivedWorkflows[i]); + } + } + else { + listWorkflows.archivedWorkflows.splice(i, 1); + } + } + if (listWorkflows.archivedWorkflows.length === 0) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.` + }); + } + if (listWorkflows.archivedWorkflows.length > 0) { + params.response.console.log("Successfully deleted workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: successWfs, + format: "table", + header: true + }); + } + if (failedWfs.length > 0) { + params.response.console.log("\nFailed to delete Workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: failedWfs, + format: "table", + header: true + }); + throw new imperative_1.ImperativeError({ + msg: `Some workflows were not deleted, please check the message above.` + }); + } + params.response.data.setObj("Deleted."); + break; + } + default: + throw new imperative_1.ImperativeError({ + msg: `Internal create error: Unable to determine the the criteria by which to run delete workflow action. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + }); + } +} +exports.default = DeleteArchivedCommonHandler; +//# sourceMappingURL=Delete.archived.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.archived.common.handler.js.map b/lib/workflows/delete/Delete.archived.common.handler.js.map new file mode 100644 index 0000000000..d6540343a5 --- /dev/null +++ b/lib/workflows/delete/Delete.archived.common.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.archived.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.archived.common.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAK0C;AAC1C,iEAA4D;AAC5D,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEvC;;;GAGG;AACH,MAAqB,2BAA4B,SAAQ,qCAAgB;IASrE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,KAAa,CAAC;YAClB,IAAI,aAAiC,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,UAAU,GAAG,aAAa,CAAC;aAC9B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,UAAU,GAAG,cAAc,CAAC;aAC/B;YAED,QAAQ,UAAU,EAAE;gBAChB,KAAK,aAAa;oBACd,IAAI;wBACA,MAAM,mDAAsB,CAAC,sBAAsB,CAC/C,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,SAAS,CAAC,WAAW,CAC7B,CAAC;qBACL;oBAAC,OAAO,GAAG,EAAE;wBACV,KAAK,GAAG,mBAAmB,GAAG,GAAG,CAAC;wBAClC,MAAM,KAAK,CAAC;qBACf;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;oBACjD,MAAM;gBAEV,KAAK,cAAc,CAAC,CAAC;oBACjB,IAAI,QAAQ,GAAY,IAAI,CAAC;oBAC7B,IAAI,KAAc,CAAC;oBACnB,IAAI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CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AArID,8CAqIC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.common.handler.d.ts b/lib/workflows/delete/Delete.common.handler.d.ts new file mode 100644 index 0000000000..f5ad6af969 --- /dev/null +++ b/lib/workflows/delete/Delete.common.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common handler to delete a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +export default class DeleteCommonHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof DeleteCommonHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows delete" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof DeleteCommonHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/delete/Delete.common.handler.js b/lib/workflows/delete/Delete.common.handler.js new file mode 100644 index 0000000000..a072e7dd7d --- /dev/null +++ b/lib/workflows/delete/Delete.common.handler.js @@ -0,0 +1,114 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common handler to delete a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +class DeleteCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows delete" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof DeleteCommonHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + let error; + let getWfKey; + this.arguments = params.arguments; + let sourceType; + if (this.arguments.workflowKey) { + sourceType = "workflowKey"; + } + else if (this.arguments.workflowName) { + sourceType = "workflowName"; + } + switch (sourceType) { + case "workflowKey": + try { + yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, this.arguments.workflowKey); + } + catch (err) { + error = "Delete workflow: " + err; + throw error; + } + params.response.data.setObj("Deleted."); + params.response.console.log("Workflow deleted."); + break; + case "workflowName": { + getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { workflowName: this.arguments.workflowName }); + if (getWfKey === null || getWfKey.workflows.length === 0) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.`, + additionalDetails: JSON.stringify(params) + }); + } + const successWfs = []; + const failedWfs = []; + for (const element of getWfKey.workflows) { + try { + yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, element.workflowKey); + successWfs.push(element); + } + catch (err) { + failedWfs.push(element); + } + } + params.response.data.setObj("Deleted."); + if (getWfKey.workflows.length > 0) { + params.response.console.log("Successfully deleted workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: successWfs, + format: "table", + header: true + }); + } + if (failedWfs.length > 0) { + params.response.console.log("\nFailed to delete Workflow(s): "); + params.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: failedWfs, + format: "table", + header: true + }); + throw new imperative_1.ImperativeError({ + msg: `Some workflows were not deleted, please check the message above.` + }); + } + break; + } + default: + throw new imperative_1.ImperativeError({ + msg: `Internal create error: Unable to determine the the criteria by which to run delete workflow action. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + }); + } +} +exports.default = DeleteCommonHandler; +//# sourceMappingURL=Delete.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.common.handler.js.map b/lib/workflows/delete/Delete.common.handler.js.map new file mode 100644 index 0000000000..39d35522a6 --- /dev/null +++ b/lib/workflows/delete/Delete.common.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.common.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAAmH;AACnH,iEAA4D;AAE5D;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAS7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,KAAK,CAAC;YACV,IAAI,QAA0B,CAAC;YAC/B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,UAAU,GAAG,aAAa,CAAC;aAC9B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,UAAU,GAAG,cAAc,CAAC;aAC/B;YAED,QAAQ,UAAU,EAAE;gBAChB,KAAK,aAAa;oBACd,IAAG;wBACC,MAAM,2CAAc,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;qBAClF;oBAAC,OAAO,GAAG,EAAC;wBACT,K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CAAC;wBAClE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,UAAU;4BAClB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;qBACN;oBAED,IAAG,SAAS,CAAC,MAAM,GAAG,CAAC,EAAC;wBACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;wBAChE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,SAAS;4BACjB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,MAAM,IAAI,4BAAe,CAAC;4BACtB,GAAG,EAAE,kEAAkE;yBAC1E,CAAC,CAAC;qBACN;oBAED,MAAM;iBACT;gBACD;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,sGAAsG;4BAC3G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AA7FD,sCA6FC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.definition.d.ts b/lib/workflows/delete/Delete.definition.d.ts new file mode 100644 index 0000000000..77c8bd9361 --- /dev/null +++ b/lib/workflows/delete/Delete.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the delete group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/workflows/delete/Delete.definition.js b/lib/workflows/delete/Delete.definition.js new file mode 100644 index 0000000000..162f7664ba --- /dev/null +++ b/lib/workflows/delete/Delete.definition.js @@ -0,0 +1,32 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDefinition = void 0; +const DeleteActiveWorkflow_definition_1 = require("./deleteActiveWorkflow/DeleteActiveWorkflow.definition"); +const DeleteArchivedWorkflow_definition_1 = require("./deleteArchivedWorkflow/DeleteArchivedWorkflow.definition"); +/** + * This object defines the command for the delete group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +exports.DeleteDefinition = { + name: "delete", + aliases: ["del"], + type: "group", + description: "Delete an active workflow or an archived workflow from z/OSMF.", + children: [ + DeleteActiveWorkflow_definition_1.DeleteActiveWorkflow, + DeleteArchivedWorkflow_definition_1.DeleteArchivedWorkflow + ] +}; +//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.definition.js.map b/lib/workflows/delete/Delete.definition.js.map new file mode 100644 index 0000000000..3a53052a20 --- /dev/null +++ b/lib/workflows/delete/Delete.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4GAA8F;AAC9F,kHAAoG;AAGpG;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE;QACN,sDAAoB;QACpB,0DAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts new file mode 100644 index 0000000000..d8e35ff634 --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete workflow using workflow key within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const DeleteActiveWorkflow: ICommandDefinition; diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js new file mode 100644 index 0000000000..d2cc54af1a --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteActiveWorkflow = void 0; +const path_1 = require("path"); +const DeleteActiveWorkflow_options_1 = require("../deleteActiveWorkflow/DeleteActiveWorkflow.options"); +/** + * This object defines the command for delete workflow using workflow key within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.DeleteActiveWorkflow = { + name: "active-workflow", + aliases: ["aw"], + description: "Delete an active workflow instance in z/OSMF", + type: "command", + handler: (0, path_1.join)(__dirname, "../Delete.common.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowKey, + DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowName + ]), + examples: [ + { + description: "To delete a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", + options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + }, + { + description: "To delete a workflow instance in z/OSMF with workflow name \"testWorkflow\"", + options: "--workflow-name \"testWorkflow\"" + }, + { + description: "To delete multiple workflow instances in z/OSMF with names starting with \"test\"", + options: "--workflow-name \"test.*\"" + } + ] +}; +//# sourceMappingURL=DeleteActiveWorkflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map new file mode 100644 index 0000000000..adaaf65ea9 --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteActiveWorkflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAC5B,uGAA6F;AAG7F;;;;;GAKG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,oDAAqB,CAAC,WAAW;QACjC,oDAAqB,CAAC,YAAY;KAErC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oGAAoG;YACjH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,6EAA6E;YAC1F,OAAO,EAAE,kCAAkC;SAC9C;QACD;YACI,WAAW,EAAE,mFAAmF;YAChG,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts new file mode 100644 index 0000000000..4fe6c6252c --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the delete active workflow commands. + */ +export declare const DeleteWorkflowOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js new file mode 100644 index 0000000000..c4994dbcb4 --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js @@ -0,0 +1,45 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteWorkflowOptions = void 0; +/** + * Object containing all extra options to be used by the delete active workflow commands. + */ +exports.DeleteWorkflowOptions = { + /** + * Parameter to delete workflow by workflow name + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + description: "Delete active workflow by specified workflow name", + type: "string", + required: false, + absenceImplications: ["workflow-key"], + conflictsWith: ["workflow-key"] + }, + /** + * Parameter to delete workflow by workflow key. + * @type {ICommandOptionDefinition} + */ + workflowKey: { + name: "workflow-key", + aliases: ["wk"], + description: "Delete active workflow by specified workflow key", + type: "string", + required: false + // absenceImplications: ["by-name"] + // conflictsWith: ["by-name"], + } +}; +//# sourceMappingURL=DeleteActiveWorkflow.options.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map new file mode 100644 index 0000000000..56946208ef --- /dev/null +++ b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteActiveWorkflow.options.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,qBAAqB,GAAgD;IAE9E;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mCAAmC;QACnC,8BAA8B;KACjC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts new file mode 100644 index 0000000000..a59619540a --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete workflow using workflow key within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const DeleteArchivedWorkflow: ICommandDefinition; diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js new file mode 100644 index 0000000000..c9024db679 --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteArchivedWorkflow = void 0; +const path_1 = require("path"); +const DeleteArchivedWorkflow_options_1 = require("../deleteArchivedWorkflow/DeleteArchivedWorkflow.options"); +/** + * This object defines the command for delete workflow using workflow key within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.DeleteArchivedWorkflow = { + name: "archived-workflow", + aliases: ["arw"], + description: "Delete an archived workflow from z/OSMF", + type: "command", + handler: (0, path_1.join)(__dirname, "../Delete.archived.common.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + DeleteArchivedWorkflow_options_1.DeleteArchivedWorkflowOptions.workflowKey, + DeleteArchivedWorkflow_options_1.DeleteArchivedWorkflowOptions.workflowName + ]), + examples: [ + { + description: "To delete an archived workflow from z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", + options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + }, + { + description: "To delete an archived workflow from z/OSMF with workflow name \"testWorkflow\"", + options: "--workflow-name \"testWorkflow\"" + }, + { + description: "To delete multiple archived workflows from z/OSMF with names beginnig with \"test\"", + options: "--workflow-name \"test.*\"" + } + ] +}; +//# sourceMappingURL=DeleteArchivedWorkflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map new file mode 100644 index 0000000000..0a32997fa7 --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteArchivedWorkflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAC5B,6GAAyG;AAGzG;;;;;GAKG;AACU,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,yCAAyC;IACtD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,mCAAmC,CAAC;IAC7D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,8DAA6B,CAAC,WAAW;QACzC,8DAA6B,CAAC,YAAY;KAE7C,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,uGAAuG;YACpH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,gFAAgF;YAC7F,OAAO,EAAE,kCAAkC;SAC9C;QACD;YACI,WAAW,EAAE,qFAAqF;YAClG,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts new file mode 100644 index 0000000000..eefcaffb86 --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the delete archived workflow commands. + */ +export declare const DeleteArchivedWorkflowOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js new file mode 100644 index 0000000000..fda4663d83 --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js @@ -0,0 +1,45 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteArchivedWorkflowOptions = void 0; +/** + * Object containing all extra options to be used by the delete archived workflow commands. + */ +exports.DeleteArchivedWorkflowOptions = { + /** + * Parameter to delete workflow by workflow name + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + description: "Delete an archived workflow by specified workflow name", + type: "string", + required: false, + absenceImplications: ["workflow-key"], + conflictsWith: ["workflow-key"] + }, + /** + * Parameter to delete workflow by workflow key. + * @type {ICommandOptionDefinition} + */ + workflowKey: { + name: "workflow-key", + aliases: ["wk"], + description: "Delete an archived workflow by specified workflow key", + type: "string", + required: false + // absenceImplications: ["by-name"] + // conflictsWith: ["by-name"], + } +}; +//# sourceMappingURL=DeleteArchivedWorkflow.options.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map new file mode 100644 index 0000000000..dcfe15e818 --- /dev/null +++ b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteArchivedWorkflow.options.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,6BAA6B,GAAgD;IAEtF;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mCAAmC;QACnC,8BAA8B;KACjC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/List.definition.d.ts b/lib/workflows/list/List.definition.d.ts new file mode 100644 index 0000000000..fe3d4fd8a4 --- /dev/null +++ b/lib/workflows/list/List.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the List group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const ListDefinition: ICommandDefinition; diff --git a/lib/workflows/list/List.definition.js b/lib/workflows/list/List.definition.js new file mode 100644 index 0000000000..7353aa52d3 --- /dev/null +++ b/lib/workflows/list/List.definition.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDefinition = void 0; +const ActiveWorkflows_definition_1 = require("./activeWorkflows/ActiveWorkflows.definition"); +const ActiveWorkflowDetails_definition_1 = require("./activeWorkflowDetails/ActiveWorkflowDetails.definition"); +const RetrieveWorkflowDefinition_definition_1 = require("./retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition"); +const ArchivedWorkflows_definition_1 = require("./archivedWorkflows/ArchivedWorkflows.definition"); +/** + * This object defines the command for the List group within zosworkflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +exports.ListDefinition = { + name: "list", + aliases: ["ls"], + type: "group", + description: "List the z/OSMF workflows for a system or a sysplex with filter options.", + children: [ + ActiveWorkflows_definition_1.ActiveWorkflows, + ActiveWorkflowDetails_definition_1.ActiveWorkflowDetails, + RetrieveWorkflowDefinition_definition_1.RetrieveWorkflowDefinition, + ArchivedWorkflows_definition_1.ArchivedWorkflows + ] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/List.definition.js.map b/lib/workflows/list/List.definition.js.map new file mode 100644 index 0000000000..0ab131d05d --- /dev/null +++ b/lib/workflows/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/workflows/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAA+E;AAC/E,+GAAiG;AACjG,8HAAgH;AAChH,mGAAqF;AAGrF;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,0EAA0E;IACvF,QAAQ,EAAE;QACN,4CAAe;QACf,wDAAqB;QACrB,kEAA0B;QAC1B,gDAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts new file mode 100644 index 0000000000..65e8255498 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the list active workflow details commands. + */ +export declare const ActiveWorkflowDetailsCommonOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js new file mode 100644 index 0000000000..72a09b62c3 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js @@ -0,0 +1,91 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActiveWorkflowDetailsCommonOptions = void 0; +/** + * Object containing all extra options to be used by the list active workflow details commands. + */ +exports.ActiveWorkflowDetailsCommonOptions = { + /** + * Parameter to list workflow details by workflow name + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + description: "List active workflow details by specified workflow name.", + type: "string", + required: false, + absenceImplications: ["workflow-key"], + conflictsWith: ["workflow-key"] + }, + /** + * Parameter to list workflow details by workflow key. + * @type {ICommandOptionDefinition} + */ + workflowKey: { + name: "workflow-key", + aliases: ["wk"], + description: "List active workflow details by specified workflow key.", + type: "string", + required: false + // absenceImplications: ["workflow-name"] + // conflictsWith: ["workflow-name"], + }, + /** + * Optional parameter for listing steps properties. + * @type {ICommandOptionDefinition} + */ + listSteps: { + name: "list-steps", + aliases: ["ls"], + description: "Optional parameter for listing steps and their properties.", + type: "boolean", + required: false + }, + /** + * Optional parameter for listing steps summary only + * @type {ICommandOptionDefinition} + */ + stepsSummaryOnly: { + name: "steps-summary-only", + aliases: ["sso"], + description: "Optional parameter that lists steps summary only.", + type: "boolean", + required: false, + conflictsWith: ["list-steps"] + }, + /** + * Optional parameter for listing steps summary only + * @type {ICommandOptionDefinition} + */ + skipWorkflowSummary: { + name: "skip-workflow-summary", + aliases: ["sws"], + description: "Optional parameter that skips the default workflow summary.", + type: "boolean", + required: false, + impliesOneOf: ["steps-summary-only", "list-steps", "list-variables"] + }, + /** + * Optional parameter for listing variables properties. + * @type {ICommandOptionDefinition} + */ + listVariables: { + name: "list-variables", + aliases: ["lv"], + description: "Optional parameter for listing variables and their properties.", + type: "boolean", + required: false + } +}; +//# sourceMappingURL=ActiveWorkflowDetails.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map new file mode 100644 index 0000000000..637458ccf0 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflowDetails.common.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,kCAAkC,GAAgD;IAE3F;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,yCAAyC;QACzC,oCAAoC;KACvC;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,gBAAgB,EAAE;QACd,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;QACf,aAAa,EAAE,CAAC,YAAY,CAAC;KAChC;IAED;;;OAGG;IACH,mBAAmB,EAAE;QACjB,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,6DAA6D;QAC1E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,CAAC,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,CAAC;KACvE;IAED;;;OAGG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts new file mode 100644 index 0000000000..3455b0d610 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for listing active workflow details within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const ActiveWorkflowDetails: ICommandDefinition; diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js new file mode 100644 index 0000000000..3342f1b9b2 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActiveWorkflowDetails = void 0; +const ActiveWorkflowDetails_common_options_1 = require("./ActiveWorkflowDetails.common.options"); +const path_1 = require("path"); +/** + * This object defines the command for listing active workflow details within zosworkflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.ActiveWorkflowDetails = { + name: "active-workflow-details", + aliases: ["awd"], + description: "Get the details of an active z/OSMF workflow", + type: "command", + handler: (0, path_1.join)(__dirname, "./ActiveWorkflowDetails.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.workflowName, + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.workflowKey, + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.listSteps, + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.stepsSummaryOnly, + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.listVariables, + ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.skipWorkflowSummary + ]), + examples: [ + { + description: "To list the details of an active workflow with key \"7c62c790-0340-86b2-61ce618d8f8c\" including its steps and variables", + options: "--workflow-key \"7c62c790-0340-86b2-61ce618d8f8c\" --list-steps --list-variables" + }, + { + description: "To list the details of an active workflow with name \"testWorkflow\" including its steps and variables", + options: "--workflow-name \"testWorkflow\" --list-steps --list-variables" + } + ] +}; +//# sourceMappingURL=ActiveWorkflowDetails.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map new file mode 100644 index 0000000000..85439e6bfe --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflowDetails.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iGAA4F;AAC5F,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,qBAAqB,GAAuB;IACrD,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,iCAAiC,CAAC;IAC3D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,yEAAkC,CAAC,YAAY;QAC/C,yEAAkC,CAAC,WAAW;QAC9C,yEAAkC,CAAC,SAAS;QAC5C,yEAAkC,CAAC,gBAAgB;QACnD,yEAAkC,CAAC,aAAa;QAChD,yEAAkC,CAAC,mBAAmB;KACzD,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0HAA0H;YACvI,OAAO,EAAE,kFAAkF;SAC9F;QACD;YACI,WAAW,EAAE,wGAAwG;YACrH,OAAO,EAAE,gEAAgE;SAC5E;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts new file mode 100644 index 0000000000..982fa202ab --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * A Handler for listing details of a workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +export default class ActiveWorkflowDetails extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof PropertiesCommonHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows list active-workflow-details" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof PropertiesCommonHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js new file mode 100644 index 0000000000..cdee7b4ce0 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js @@ -0,0 +1,103 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +/** + * A Handler for listing details of a workflow instance in z/OSMF in zosworkflows package. + * This is not something that is intended to be used outside of this npm package. + */ +class ActiveWorkflowDetails extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows list active-workflow-details" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof PropertiesCommonHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + let workflowKey; + let response; + let requireSteps; + let stepSummaries = []; + let error; + if (this.arguments.workflowKey) { + workflowKey = this.arguments.workflowKey; + } + else if (this.arguments.workflowName) { + workflowKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); + if (!workflowKey) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.`, + additionalDetails: JSON.stringify(params) + }); + } + } + this.arguments.listSteps || this.arguments.stepsSummaryOnly ? requireSteps = true : requireSteps = false; + try { + response = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.getWorkflowProperties(this.mSession, workflowKey, undefined, requireSteps, this.arguments.listVariables); + if (this.arguments.stepsSummaryOnly && response.steps) { + stepSummaries = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.processStepSummaries(response.steps); + } + else { + stepSummaries = response.steps; + } + } + catch (err) { + error = "List workflow details error: " + err; + throw error; + } + params.response.data.setObj(response); + if (!this.arguments.skipWorkflowSummary && !this.arguments.stepsSummaryOnly) { + params.response.console.log("\nWorkflow Details: "); + params.response.format.output({ + fields: ["workflowName", "workflowKey", + response.automationStatus ? "automationStatus.messageText" : "automationStatus"], + output: response, + format: "object" + }); + } + if (response.steps) { + params.response.console.log("\nWorkflow Steps: "); + params.response.format.output({ + fields: ["name", "state", "stepNumber", + this.arguments.stepsSummaryOnly ? "misc" : ""], + output: stepSummaries, + format: "table", + header: true + }); + } + if (this.arguments.listVariables && response.variables) { + params.response.console.log("\nWorkflow Variables: "); + params.response.format.output({ + fields: ["name", "value", "type"], + output: response.variables, + format: "table", + header: true + }); + } + }); + } +} +exports.default = ActiveWorkflowDetails; +//# sourceMappingURL=ActiveWorkflowDetails.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map new file mode 100644 index 0000000000..d98686c4c4 --- /dev/null +++ b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflowDetails.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iEAA4D;AAC5D,iFAAkH;AAElH;;;GAGG;AAEH,MAAqB,qBAAsB,SAAQ,qCAAgB;IAS/D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,WAAmB,CAAC;YACxB,IAAI,QAAuB,CAAC;YAC5B,IAAI,YAAqB,CAAC;YAC1B,IAAI,aAAa,GAAmB,EAAE,CAAC;YACvC,IAAI,KAAU,CAAC;YAEf,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;aAC5C;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,WAAW,GAAG,MAAM,0CAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;gBAClG,IAAG,CAAC,WAAW,EAAE;oBACb,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,gDAAgD;wBACrD,iBAAiB,EAAE,IAAI,CAAC,SAAS,C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AG,QAAQ,CAAC,KAAK,EAAC;gBACd,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;gBAClD,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY;wBAClC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;oBAClD,MAAM,EAAE,aAAa;oBACrB,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;YAED,IAAG,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,QAAQ,CAAC,SAAS,EAAC;gBAClD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;gBACtD,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;oBACjC,MAAM,EAAE,QAAQ,CAAC,SAAS;oBAC1B,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AAnFD,wCAmFC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts new file mode 100644 index 0000000000..f8d27aaaed --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for listing workflow instance(s) in zOSMF. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const ActiveWorkflows: ICommandDefinition; diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js new file mode 100644 index 0000000000..b81d016cf9 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActiveWorkflows = void 0; +const ActiveWorkflows_options_1 = require("./ActiveWorkflows.options"); +const path_1 = require("path"); +/** + * This object defines the command for listing workflow instance(s) in zOSMF. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.ActiveWorkflows = { + name: "active-workflows", + aliases: ["aw"], + summary: "List active workflow instance(s) in z/OSMF.", + description: "List active workflow instance(s) in z/OSMF.\n" + + "Multiple filters can be used together.\n" + + "Omitting all options will list all workflows on the sysplex", + type: "command", + handler: (0, path_1.join)(__dirname, "ActiveWorkflows.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.workflowName, + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.category, + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.system, + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.owner, + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.vendor, + ActiveWorkflows_options_1.ListActiveWorkflowsOptions.statusName + ]), + outputFormatOptions: true, + examples: [ + { + description: "List the workflow with name \"testworkflow\"", + options: "--wn \"testworkflow\"" + }, + { + description: "List multiple active workflows on the entire syspex with names containing\"workflow\"", + options: "--wn \".*workflow.*\"" + }, + { + description: "List multiple active workflows on system \"IBMSYS\" with names beginnig with \"testW\" that are in status \"complete\"", + options: "--wn \"test.*\" --sys \"IBMSYS\" --sn \"complete\"" + } + ] +}; +//# sourceMappingURL=ActiveWorkflows.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map new file mode 100644 index 0000000000..2a95ad8fa2 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflows.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uEAAuE;AACvE,+BAA4B;AAG5B;;;;;GAKG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,6CAA6C;IACtD,WAAW,EAAE,+CAA+C;QAC5D,0CAA0C;QAC1C,6DAA6D;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,yBAAyB,CAAC;IACnD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,oDAA0B,CAAC,YAAY;QACvC,oDAA0B,CAAC,QAAQ;QACnC,oDAA0B,CAAC,MAAM;QACjC,oDAA0B,CAAC,KAAK;QAChC,oDAA0B,CAAC,MAAM;QACjC,oDAA0B,CAAC,UAAU;KACxC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,8CAA8C;YAC3D,OAAO,EAAE,uBAAuB;SACnC;QACD;YACI,WAAW,EAAE,uFAAuF;YACpG,OAAO,EAAE,uBAAuB;SACnC;QACD;YACI,WAAW,EAAE,wHAAwH;YACrI,OAAO,EAAE,oDAAoD;SAChE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts new file mode 100644 index 0000000000..83e99f21f6 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts @@ -0,0 +1,21 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common Handler for listing active workflow(s) instance(s) in z/OSMF. + */ +export default class ListActiveWorkflowsHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof ListHandler + */ + private arguments; + /** + * Handler process - invoked by the command processor to handle the "zos-workflows list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListHandler + */ + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js new file mode 100644 index 0000000000..1dbdbab0c7 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common Handler for listing active workflow(s) instance(s) in z/OSMF. + */ +class ListActiveWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Handler process - invoked by the command processor to handle the "zos-workflows list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListHandler + */ + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = commandParameters.arguments; + let response; + let error; + const width = 42; + try { + response = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { + workflowName: this.arguments.workflowName, + category: this.arguments.category, + system: this.arguments.system, + owner: this.arguments.owner, + vendor: this.arguments.vendor, + statusName: this.arguments.statusName + }); + } + catch (err) { + error = "List workflow(s) " + err; + throw error; + } + commandParameters.response.data.setObj(response); + response.workflows.forEach((workflow) => { + workflow.workflowName = imperative_1.TextUtils.wordWrap(`${workflow.workflowName}`, width); + workflow.workflowKey = imperative_1.TextUtils.wordWrap(`${workflow.workflowKey}`, width); + workflow.workflowDescription = imperative_1.TextUtils.wordWrap(`${workflow.workflowDescription}`, width); + }); + // Format & print the response + if (response.workflows.length) { + commandParameters.response.format.output({ + fields: ["workflowName", "workflowKey", "workflowDescription"], + output: response.workflows, + format: "table", + header: true + }); + } + else { + commandParameters.response.console.log("No workflows match the requested querry"); + } + }); + } +} +exports.default = ListActiveWorkflowsHandler; +//# sourceMappingURL=ActiveWorkflows.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map new file mode 100644 index 0000000000..835ad8ada6 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflows.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.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QAAQ,CAAC,mBAAmB,GAAG,sBAAS,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,mBAAmB,EAAE,EAAE,KAAK,CAAC,CAAC;YAChG,CAAC,CAAC,CAAC;YAEH,8BAA8B;YAC9B,IAAI,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE;gBAC3B,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,qBAAqB,CAAC;oBAC9D,MAAM,EAAE,QAAQ,CAAC,SAAS;oBAC1B,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;iBAAM;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;aACrF;QACL,CAAC;KAAA;CACJ;AAtDD,6CAsDC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts new file mode 100644 index 0000000000..3522792db2 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the list active-workflow commands. + */ +export declare const ListActiveWorkflowsOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js new file mode 100644 index 0000000000..f56824f182 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js @@ -0,0 +1,100 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListActiveWorkflowsOptions = void 0; +/** + * Object containing all extra options to be used by the list active-workflow commands. + */ +exports.ListActiveWorkflowsOptions = { + /** + * The name of the workflow. + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + description: "Filter by workflow name. For wildcard use .*", + type: "string", + required: false + }, + /** + * Category of the workflow, which is either general or configuration + * @type {ICommandOptionDefinition} + */ + category: { + name: "category", + aliases: ["cat"], + description: "Filter by the category of the workflows, which is either general or configuration.", + type: "string", + required: false + }, + /** + * Nickname of the system on which the workflow is to be performed. + * @type {ICommandOptionDefinition} + */ + system: { + name: "system", + aliases: ["sys"], + description: "Filter by the nickname of the system on which the workflows is/are active.", + type: "string", + required: false + }, + /** + * Workflow owner (a valid z/OS user ID). + * @type {ICommandOptionDefinition} + */ + owner: { + name: "owner", + aliases: ["ow"], + description: "Filter by owner of the workflow(s) (a valid z/OS user ID).", + type: "string", + required: false + }, + /** + * Name of the vendor that provided the workflow definition file. + * @type {ICommandOptionDefinition} + */ + vendor: { + name: "vendor", + aliases: ["vd"], + description: "Filter by the name of the vendor that provided the workflow(s) definition file.", + type: "string", + required: false + }, + /** + * Workflow status. + * @type {ICommandOptionDefinition} + */ + statusName: { + name: "status-name", + aliases: ["sn"], + description: "Filter by the status of the workflow(s).", + type: "string", + required: false, + allowableValues: { + values: ["in-progress", "complete", "automation-in-progress", "canceled"], + caseSensitive: true + } + }, + /** + * Identifies the version of the zOSMF workflow service. + * @type {ICommandOptionDefinition} + */ + zosmfVersion: { + name: "zosmf-version", + aliases: ["zosmf-v"], + description: "Identifies the version of the zOSMF workflow service.", + type: "string", + required: false + } +}; +//# sourceMappingURL=ActiveWorkflows.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map new file mode 100644 index 0000000000..94acebe0c7 --- /dev/null +++ b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ActiveWorkflows.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,0BAA0B,GAAgD;IAEnF;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,oFAAoF;QACjG,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,4EAA4E;QACzF,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,iFAAiF;QAC9F,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE;YACb,MAAM,EAAG,CAAC,aAAa,EAAE,UAAU,EAAE,wBAAwB,EAAE,UAAU,CAAC;YAC1E,aAAa,EAAE,IAAI;SACtB;KACJ;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts new file mode 100644 index 0000000000..1d42ed257f --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for listing archived z/OSMF workflows for a system or sysplex. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const ArchivedWorkflows: ICommandDefinition; diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js new file mode 100644 index 0000000000..f0af05b43e --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ArchivedWorkflows = void 0; +const path_1 = require("path"); +/** + * This object defines the command for listing archived z/OSMF workflows for a system or sysplex. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.ArchivedWorkflows = { + name: "archived-workflows", + aliases: ["arw"], + summary: "List all archived workflows for a system.", + description: "List the archived z/OSMF workflows for a system or sysplex.", + type: "command", + handler: (0, path_1.join)(__dirname, "ArchivedWorkflows.handler"), + profile: { + optional: ["zosmf"] + }, + outputFormatOptions: true +}; +//# sourceMappingURL=ArchivedWorkflows.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map new file mode 100644 index 0000000000..18bc8c6000 --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ArchivedWorkflows.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,2CAA2C;IACpD,WAAW,EAAE,6DAA6D;IAC1E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,2BAA2B,CAAC;IACrD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts new file mode 100644 index 0000000000..79c8c4b9b9 --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts @@ -0,0 +1,20 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common Handler for listing archived workflows for a system. + */ +export default class ListArchivedWorkflowsHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @type {*} + * @memberof ListArchivedWorkflowsHandler + */ + private arguments; + /** + * Handler process - invoked by the command processor to handle the "zos-workflows archived list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListArchivedWorkflowsHandler + */ + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js new file mode 100644 index 0000000000..eba9215db8 --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js @@ -0,0 +1,69 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common Handler for listing archived workflows for a system. + */ +class ListArchivedWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Handler process - invoked by the command processor to handle the "zos-workflows archived list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListArchivedWorkflowsHandler + */ + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = commandParameters.arguments; + let response; + let error; + const width = 42; + try { + response = yield zos_workflows_for_zowe_sdk_1.ListArchivedWorkflows.listArchivedWorkflows(this.mSession); + } + catch (err) { + error = "List workflow(s) " + err; + throw error; + } + commandParameters.response.data.setObj(response); + response.archivedWorkflows.forEach((archivedWorkflows) => { + archivedWorkflows.workflowName = imperative_1.TextUtils.wordWrap(`${archivedWorkflows.workflowName}`, width); + archivedWorkflows.workflowKey = imperative_1.TextUtils.wordWrap(`${archivedWorkflows.workflowKey}`, width); + }); + // Format & print the response + if (response.archivedWorkflows.length) { + commandParameters.response.format.output({ + fields: ["workflowName", "workflowKey"], + output: response.archivedWorkflows, + format: "table", + header: true + }); + } + else { + commandParameters.response.console.log("No workflows match the requested query"); + } + }); + } +} +exports.default = ListArchivedWorkflowsHandler; +//# sourceMappingURL=ArchivedWorkflows.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map new file mode 100644 index 0000000000..b55d3fbb27 --- /dev/null +++ b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ArchivedWorkflows.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iFAA6G;AAC7G,iEAA4D;AAE5D;;GAEG;AAEH,MAAqB,4BAA6B,SAAQ,qCAAgB;IAQtE;;;;;OAKG;IACU,UAAU,CAAC,iBAAqC;;YACzD,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC7C,IAAI,QAA4B,CAAC;YACjC,IAAI,KAAK,CAAC;YACV,MAAM,KAAK,GAAG,EAAE,CAAC;YACjB,IAAI;gBACA,QAAQ,GAAG,MAAM,kDAAqB,CAAC,qBAAqB,CACxD,IAAI,CAAC,QAAQ,CAAC,CAAC;aACtB;YAAC,OAAO,GAAG,EAAE;gBACV,KAAK,GAAG,mBAAmB,GAAG,GAAG,CAAC;gBAClC,MAAM,KAAK,CAAC;aACf;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEjD,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,iBAAiC,EAAE,EAAE;gBACrE,iBAAiB,CAAC,YAAY,GAAG,sBAAS,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,YAAY,EAAE,EAAE,KAAK,CAAC,CAAC;gBAChG,iBAAiB,CAAC,WAAW,GAAG,sBAAS,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC;YAClG,CAAC,CAAC,CAAC;YAEH,8BAA8B;YAC9B,IAAI,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE;gBACnC,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;oBACvC,MAAM,EAAE,QAAQ,CAAC,iBAAiB;oBAClC,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;iBAAM;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;aACpF;QACL,CAAC;KAAA;CACJ;AA7CD,+CA6CC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts new file mode 100644 index 0000000000..4e8d1c792e --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for retrieving workflow contents of zosworkflow definition. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const RetrieveWorkflowDefinition: ICommandDefinition; diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js new file mode 100644 index 0000000000..c01d5f432b --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js @@ -0,0 +1,56 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RetrieveWorkflowDefinition = void 0; +const RetrieveWorkflowDefinition_options_1 = require("./RetrieveWorkflowDefinition.options"); +const path_1 = require("path"); +/** + * This object defines the command for retrieving workflow contents of zosworkflow definition. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.RetrieveWorkflowDefinition = { + name: "definition-file-details", + aliases: ["dfd"], + description: "Retrieve the contents of a z/OSMF workflow definition from a z/OS system.", + type: "command", + handler: (0, path_1.join)(__dirname, "./RetrieveWorkflowDefinition.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "definitionFilePath", + description: "Specifies the location of the workflow definition file, which is either a UNIX path name or a fully qualified z/OS data set name.", + type: "string", + required: true + } + ], + options: ([ + RetrieveWorkflowDefinition_options_1.RetrieveWorkflowDefinitionCommonOptions.listSteps, + RetrieveWorkflowDefinition_options_1.RetrieveWorkflowDefinitionCommonOptions.listVariables + ]), + examples: [ + { + description: "To list the contents of a workflow definition stored in the UNIX file \"/user/dir/workflow.xml\"" + + " including its steps and variables", + options: "\"/user/dir/workflow.xml\" --list-steps --list-variables" + }, + { + description: "To list the contents of a workflow definition stored in the z/OS data set \"USER.DATA.SET.XML\"" + + " including its steps and variables", + options: "\"USER.DATA.SET.XML\" --list-steps --list-variables" + } + ] +}; +//# sourceMappingURL=RetrieveWorkflowDefinition.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map new file mode 100644 index 0000000000..08b311bee9 --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RetrieveWorkflowDefinition.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAA+F;AAC/F,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,2EAA2E;IACxF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,sCAAsC,CAAC;IAChE,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EACX,mIAAmI;YACnI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,4EAAuC,CAAC,SAAS;QACjD,4EAAuC,CAAC,aAAa;KACxD,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kGAAkG;gBAC/G,oCAAoC;YACpC,OAAO,EAAE,0DAA0D;SACtE;QACD;YACI,WAAW,EAAE,iGAAiG;gBAC9G,oCAAoC;YACpC,OAAO,EAAE,qDAAqD;SACjE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts new file mode 100644 index 0000000000..536543c0b5 --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts @@ -0,0 +1,21 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common Handler for retrieving the contents of a z/OSMF workflow definition from a z/OS system. + */ +export default class ListActiveWorkflowsHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof ListHandler + */ + private arguments; + /** + * Handler process - invoked by the command processor to handle the "zos-workflows list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListHandler + */ + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js new file mode 100644 index 0000000000..0e1f576115 --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js @@ -0,0 +1,75 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common Handler for retrieving the contents of a z/OSMF workflow definition from a z/OS system. + */ +class ListActiveWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Handler process - invoked by the command processor to handle the "zos-workflows list" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof ListHandler + */ + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = commandParameters.arguments; + let response; + let error; + try { + response = yield zos_workflows_for_zowe_sdk_1.DefinitionWorkflow.getWorkflowDefinition(this.mSession, undefined, this.arguments.definitionFilePath, this.arguments.listSteps, this.arguments.listVariables); + } + catch (err) { + error = "List workflow(s) " + err; + throw error; + } + commandParameters.response.data.setObj(response); + commandParameters.response.console.log("\nWorkflow Details: "); + commandParameters.response.format.output({ + fields: ["workflowDefaultName", "workflowDescription", "workflowID"], + output: response, + format: "object" + }); + if (this.arguments.listSteps && response.steps) { + commandParameters.response.console.log("\nWorkflow Steps: "); + commandParameters.response.format.output({ + fields: ["name", "title", "description"], + output: response.steps, + format: "table", + header: true + }); + } + if (this.arguments.listVariables && response.variables) { + commandParameters.response.console.log("\nWorkflow Variables: "); + commandParameters.response.format.output({ + fields: ["name", "description", "type"], + output: response.variables, + format: "table", + header: true + }); + } + }); + } +} +exports.default = ListActiveWorkflowsHandler; +//# sourceMappingURL=RetrieveWorkflowDefinition.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map new file mode 100644 index 0000000000..52506c934e --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RetrieveWorkflowDefinition.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,iFAA2F;AAC3F,iEAA4D;AAE5D;;GAEG;AAEH,MAAqB,0BAA2B,SAAQ,qCAAgB;IASpE;;;;;OAKG;IACU,UAAU,CAAC,iBAAqC;;YACzD,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC7C,IAAI,QAA6B,CAAC;YAClC,IAAI,KAAK,CAAC;YACV,IAAI;gBACA,QAAQ,GAAG,MAAM,+CAAkB,CAAC,qBAAqB,CACrD,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAC3D,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;aAC/D;YAAC,OAAO,GAAG,EAAE;gBACV,KAAK,GAAG,mBAAmB,GAAG,GAAG,CAAC;gBAClC,MAAM,KAAK,CAAC;aACf;YAED,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEjD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YAC/D,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,YAAY,CAAC;gBACpE,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,QAAQ;aACnB,CAAC,CAAC;YAEH,IAAG,IAAI,CAAC,SAAS,CAAC,SAAS,IAAI,QAAQ,CAAC,KAAK,EAAC;gBAC1C,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;gBAC7D,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC;oBACxC,MAAM,EAAE,QAAQ,CAAC,KAAK;oBACtB,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;YAED,IAAG,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,QAAQ,CAAC,SAAS,EAAC;gBAClD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;gBACjE,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC;oBACvC,MAAM,EAAE,QAAQ,CAAC,SAAS;oBAC1B,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AAzDD,6CAyDC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts new file mode 100644 index 0000000000..a2043320ea --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the retrieve workflow definition commands. + */ +export declare const RetrieveWorkflowDefinitionCommonOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js new file mode 100644 index 0000000000..7ba8496593 --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js @@ -0,0 +1,54 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RetrieveWorkflowDefinitionCommonOptions = void 0; +/** + * Object containing all extra options to be used by the retrieve workflow definition commands. + */ +exports.RetrieveWorkflowDefinitionCommonOptions = { + /** + * Parameter to list workflow details by workflow name + * @type {ICommandOptionDefinition} + */ + definitionFilePath: { + name: "workflow-name", + aliases: ["wn"], + description: "Specifies the location of the workflow definition file, which is either a UNIX path name or a fully qualified z/OS data set name.", + type: "string", + required: true, + absenceImplications: ["workflow-key"], + conflictsWith: ["workflow-key"] + }, + /** + * Optional parameter for listing steps properties. + * @type {ICommandOptionDefinition} + */ + listSteps: { + name: "list-steps", + aliases: ["ls"], + description: "Optional parameter for listing steps and their properties.", + type: "boolean", + required: false + }, + /** + * Optional parameter for listing variables properties. + * @type {ICommandOptionDefinition} + */ + listVariables: { + name: "list-variables", + aliases: ["lv"], + description: "Optional parameter for listing variables and their properties.", + type: "boolean", + required: false + } +}; +//# sourceMappingURL=RetrieveWorkflowDefinition.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map new file mode 100644 index 0000000000..16132321e2 --- /dev/null +++ b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RetrieveWorkflowDefinition.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,uCAAuC,GAAgD;IAEhG;;;OAGG;IACH,kBAAkB,EAAE;QAChB,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EACX,mIAAmI;QACnI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAGD;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/Start.common.options.d.ts b/lib/workflows/start/Start.common.options.d.ts new file mode 100644 index 0000000000..a9972da539 --- /dev/null +++ b/lib/workflows/start/Start.common.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the start workflow commands. + */ +export declare const StartCommonOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/workflows/start/Start.common.options.js b/lib/workflows/start/Start.common.options.js new file mode 100644 index 0000000000..9849fcf848 --- /dev/null +++ b/lib/workflows/start/Start.common.options.js @@ -0,0 +1,99 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StartCommonOptions = void 0; +/** + * Object containing all extra options to be used by the start workflow commands. + */ +exports.StartCommonOptions = { + /** + * Indicates how variable conflicts are to be handled when + * the Workflows task reads in the output file from a step. + * @type {ICommandOptionDefinition} + */ + resolveConflict: { + name: "resolve-conflict-by", + aliases: ["rcb"], + description: "How variable conflicts should be handled.\n Options:\n " + + "outputFileValue: Allow the output file values to override the existing values.\n" + + "existingValue: Use the existing variables values instead of the output file values.\n" + + "leaveConflict: Automation is stopped. The user must resolve the conflict manually.", + type: "string", + required: false, + defaultValue: "outputFileValue", + allowableValues: { + values: ["outputFileValue", "existingValue", "leaveConflict"], + caseSensitive: true + } + }, + /** + * Workflow key of workflow to be run. + * @type {ICommandOptionDefinition} + */ + workflowKey: { + name: "workflow-key", + aliases: ["wk"], + type: "string", + description: "Workflow key of workflow instance to be started", + required: false, + absenceImplications: ["workflow-name"], + conflictsWith: ["workflow-name"] + }, + /** + * Workflow name of workflow to be run. + * @type {ICommandOptionDefinition} + */ + workflowName: { + name: "workflow-name", + aliases: ["wn"], + type: "string", + description: "Workflow name of workflow instance to be started" + // absenceImplications: ["with-workflow-key"], + // conflictsWith: ["with-workflow-key"] + }, + /** + * If the workflow contains any subsequent automated steps, + * this property indicates whether z/OSMF is to perform the steps. + * @type {ICommandOptionDefinition} + */ + performFollowingSteps: { + name: "perform-following-steps", + aliases: ["pfs"], + description: "Identifies whether to perform also following steps in the workflow instance.", + type: "boolean", + defaultValue: false, + required: false + }, + /** + * Identifies whether to wait for workflow instance to finish. + * @type {ICommandOptionDefinition} + */ + wait: { + name: "wait", + aliases: ["w"], + description: "Identifies whether to wait for workflow instance to finish.", + type: "boolean", + required: false + }, + /** + * Identifies the version of the zOSMF workflow service. + * @type {ICommandOptionDefinition} + */ + zosmfVersion: { + name: "zosmf-version", + aliases: ["zosmf-v"], + description: "Identifies the version of the zOSMF workflow service.", + type: "boolean", + required: false + } +}; +//# sourceMappingURL=Start.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/start/Start.common.options.js.map b/lib/workflows/start/Start.common.options.js.map new file mode 100644 index 0000000000..5f2ecc0896 --- /dev/null +++ b/lib/workflows/start/Start.common.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Start.common.options.js","sourceRoot":"","sources":["../../../src/workflows/start/Start.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,kBAAkB,GAAgD;IAE3E;;;;OAIG;IACH,eAAe,EAAE;QACb,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,yDAAyD;YAClE,kFAAkF;YAClF,uFAAuF;YACvF,oFAAoF;QACxF,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,iBAAiB;QAC/B,eAAe,EAAE;YACb,MAAM,EAAE,CAAC,iBAAiB,EAAE,eAAe,EAAE,eAAe,CAAC;YAC7D,aAAa,EAAE,IAAI;SACtB;KACJ;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iDAAiD;QAC9D,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,eAAe,CAAC;QACtC,aAAa,EAAE,CAAC,eAAe,CAAC;KACnC;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;QAC/D,8CAA8C;QAC9C,uCAAuC;KAC1C;IAED;;;;OAIG;IACH,qBAAqB,EAAE;QACnB,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,8EAA8E;QAC3F,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,6DAA6D;QAC1E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/Start.definition.d.ts b/lib/workflows/start/Start.definition.d.ts new file mode 100644 index 0000000000..b5fecc0b13 --- /dev/null +++ b/lib/workflows/start/Start.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the start group within zos-workflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const StartDefinition: ICommandDefinition; diff --git a/lib/workflows/start/Start.definition.js b/lib/workflows/start/Start.definition.js new file mode 100644 index 0000000000..ce3485f8cd --- /dev/null +++ b/lib/workflows/start/Start.definition.js @@ -0,0 +1,32 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StartDefinition = void 0; +const WorkflowStep_definition_1 = require("./workflowStep/WorkflowStep.definition"); +const WorkflowFull_definition_1 = require("./workflowFull/WorkflowFull.definition"); +/** + * This object defines the command for the start group within zos-workflows. This is not + * something that is intended to be used outside of this npm package. + * + * @private + */ +exports.StartDefinition = { + name: "start", + aliases: ["sta"], + type: "group", + description: "Start a z/OSMF workflow on a z/OS system.", + children: [ + WorkflowFull_definition_1.WorkflowFull, + WorkflowStep_definition_1.WorkflowStep + ] +}; +//# sourceMappingURL=Start.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/Start.definition.js.map b/lib/workflows/start/Start.definition.js.map new file mode 100644 index 0000000000..98c06bcfe1 --- /dev/null +++ b/lib/workflows/start/Start.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/workflows/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAsE;AACtE,oFAAsE;AAGtE;;;;;GAKG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE;QACN,sCAAY;QACZ,sCAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts b/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts new file mode 100644 index 0000000000..3152d28e2a --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete workflow using workflow key within zos-workflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const WorkflowFull: ICommandDefinition; diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.js b/lib/workflows/start/workflowFull/WorkflowFull.definition.js new file mode 100644 index 0000000000..f10b7d3236 --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.definition.js @@ -0,0 +1,59 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WorkflowFull = void 0; +const path_1 = require("path"); +const Start_common_options_1 = require("../Start.common.options"); +/** + * This object defines the command for delete workflow using workflow key within zos-workflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.WorkflowFull = { + name: "workflow-full", + aliases: ["wf"], + description: "Will run workflow from the beginning to the end or to the first manual step.", + type: "command", + handler: (0, path_1.join)(__dirname, "./WorkflowFull.handler"), + profile: { + optional: ["zosmf"] + }, + options: ([ + Start_common_options_1.StartCommonOptions.workflowKey, + Start_common_options_1.StartCommonOptions.workflowName, + Start_common_options_1.StartCommonOptions.resolveConflict, + Start_common_options_1.StartCommonOptions.wait + // StartCommonOptions.zosmfVersion, + ]), + examples: [ + { + description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", + options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + }, + { + description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" and wait for" + + "it to be finished", + options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --wait" + }, + { + description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + + "and if there is a conflict in variable's value use the value that is in output file", + options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --resolve-conflict-by \"outputFileValue\"" + }, + { + description: "To start a workflow instance in z/OSMF with workflow name \"testWorkflow\"", + options: "--workflow-name \"testWorkflow\"" + } + ] +}; +//# sourceMappingURL=WorkflowFull.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map b/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map new file mode 100644 index 0000000000..ccedcc1486 --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WorkflowFull.definition.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowFull/WorkflowFull.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,+BAA4B;AAC5B,kEAA6D;AAE7D;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,8EAA8E;IAC3F,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,wBAAwB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,yCAAkB,CAAC,WAAW;QAC9B,yCAAkB,CAAC,YAAY;QAC/B,yCAAkB,CAAC,eAAe;QAClC,yCAAkB,CAAC,IAAI;QACvB,mCAAmC;KACtC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,mGAAmG;YAChH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,gHAAgH;gBACzH,mBAAmB;YACvB,OAAO,EAAE,gEAAgE;SAC5E;QACD;YACI,WAAW,EAAE,mGAAmG;gBAC5G,qFAAqF;YACzF,OAAO,EAAE,mGAAmG;SAC/G;QACD;YACI,WAAW,EAAE,4EAA4E;YACzF,OAAO,EAAE,kCAAkC;SAC9C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts b/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts new file mode 100644 index 0000000000..ecbacbf39b --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common handler to start a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +export default class WorkflowFullHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof WorkflowFullHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows start full-workflow + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof WorkflowFullHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.js b/lib/workflows/start/workflowFull/WorkflowFull.handler.js new file mode 100644 index 0000000000..c5ddacf605 --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.handler.js @@ -0,0 +1,87 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +/** + * Common handler to start a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +class WorkflowFullHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows start full-workflow + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof WorkflowFullHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + let error; + this.arguments = params.arguments; + let workflowKey; + if (this.arguments.workflowKey) { + workflowKey = this.arguments.workflowKey; + } + else if (this.arguments.workflowName) { + workflowKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); + if (!workflowKey) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.` + }); + } + } + try { + yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, workflowKey, this.arguments.resolveConflict); + } + catch (err) { + error = "Start workflow: " + err; + throw error; + } + if (this.arguments.wait) { + let response; + let workflowComplete = false; + while (!workflowComplete) { + response = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.getWorkflowProperties(this.mSession, workflowKey); + if (response.automationStatus && response.statusName !== "automation-in-progress") { + workflowComplete = true; + if (response.statusName === "complete") { + params.response.data.setObj("Complete."); + params.response.console.log("Workflow completed successfully."); + } + else { + throw new imperative_1.ImperativeError({ + msg: `Workflow failed or was cancelled or there is manual step.`, + additionalDetails: JSON.stringify(response) + }); + } + } + } + } + else { + params.response.data.setObj("Started."); + params.response.console.log("Workflow started."); + } + }); + } +} +exports.default = WorkflowFullHandler; +//# sourceMappingURL=WorkflowFull.handler.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map b/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map new file mode 100644 index 0000000000..2fd5ee365d --- /dev/null +++ b/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WorkflowFull.handler.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowFull/WorkflowFull.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iEA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xB,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;4BACpC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;4BACzC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;yBACnE;6BAAM;4BACH,MAAM,IAAI,4BAAe,CAAC;gCACtB,GAAG,EAAE,2DAA2D;gCAChE,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;6BAC9C,CAAC,CAAC;yBACN;qBACJ;iBACJ;aACJ;iBAAM;gBACH,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;aACpD;QACL,CAAC;KAAA;CACJ;AA7DD,sCA6DC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts b/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts new file mode 100644 index 0000000000..15684b462a --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete workflow using workflow key within zos-workflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +export declare const WorkflowStep: ICommandDefinition; diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.js b/lib/workflows/start/workflowStep/WorkflowStep.definition.js new file mode 100644 index 0000000000..93f804edd5 --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.definition.js @@ -0,0 +1,66 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WorkflowStep = void 0; +const path_1 = require("path"); +const Start_common_options_1 = require("../Start.common.options"); +/** + * This object defines the command for delete workflow using workflow key within zos-workflows. + * This is not something that is intended to be used outside of this npm package. + * + * @private + */ +exports.WorkflowStep = { + name: "workflow-step", + aliases: ["ws"], + description: "Will run given step of workflow instance plus following steps if specified by --perform-following-steps option.", + type: "command", + handler: (0, path_1.join)(__dirname, "./WorkflowStep.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "stepName", + description: "Specifies the step name that will be run.", + type: "string", + required: true + } + ], + options: ([ + Start_common_options_1.StartCommonOptions.workflowKey, + Start_common_options_1.StartCommonOptions.workflowName, + Start_common_options_1.StartCommonOptions.resolveConflict, + Start_common_options_1.StartCommonOptions.performFollowingSteps + // StartCommonOptions.zosmfVersion, + ]), + examples: [ + { + description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", + options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + }, + { + description: "To start a workflow instance in z/OSMF from step \"Step1\" with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", + options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --perform-following-steps" + }, + { + description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + + "and if there is a conflict in variable's value use the value that is in output file", + options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --resolve-conflict-by \"outputFileValue\"" + }, + { + description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow name \"testWorkflow\"", + options: "\"Step1\" --workflow-name \"testWorkflow\"" + } + ] +}; +//# sourceMappingURL=WorkflowStep.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map b/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map new file mode 100644 index 0000000000..ca3ec03c48 --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WorkflowStep.definition.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowStep/WorkflowStep.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,+BAA4B;AAC5B,kEAA6D;AAE7D;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,iHAAiH;IAC9H,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,wBAAwB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,yCAAkB,CAAC,WAAW;QAC9B,yCAAkB,CAAC,YAAY;QAC/B,yCAAkB,CAAC,eAAe;QAClC,yCAAkB,CAAC,qBAAqB;QACxC,mCAAmC;KACtC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0HAA0H;YACvI,OAAO,EAAE,mEAAmE;SAC/E;QACD;YACI,WAAW,EAAE,uHAAuH;YACpI,OAAO,EAAE,6FAA6F;SACzG;QACD;YACI,WAAW,EAAE,0HAA0H;gBACnI,qFAAqF;YACzF,OAAO,EAAE,6GAA6G;SACzH;QACD;YACI,WAAW,EAAE,mGAAmG;YAChH,OAAO,EAAE,4CAA4C;SACxD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts b/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts new file mode 100644 index 0000000000..0b5c7bbd29 --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts @@ -0,0 +1,22 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Common handler to start a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +export default class WorkflowStepHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof WorkflowStepHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows start workflow-step" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof WorkflowStepHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.js b/lib/workflows/start/workflowStep/WorkflowStep.handler.js new file mode 100644 index 0000000000..83a9b8e3b0 --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.handler.js @@ -0,0 +1,89 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Common handler to start a workflow instance in z/OSMF. + * This is not something that is intended to be used outside of this npm package. + */ +class WorkflowStepHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-workflows start workflow-step" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof WorkflowStepHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + let error; + let getWfKey; + this.arguments = params.arguments; + let sourceType; + if (this.arguments.workflowKey) { + sourceType = "workflowKey"; + } + else if (this.arguments.workflowName) { + sourceType = "workflowName"; + } + switch (sourceType) { + case "workflowKey": + try { + yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, this.arguments.workflowKey, this.arguments.resolveConflict, this.arguments.stepName, this.arguments.performFollowingSteps); + } + catch (err) { + error = "Start workflow: " + err; + throw error; + } + params.response.data.setObj("Started."); + params.response.console.log("Workflow step started."); + break; + case "workflowName": + try { + getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); + if (getWfKey === null) { + throw new imperative_1.ImperativeError({ + msg: `No workflows match the provided workflow name.`, + additionalDetails: JSON.stringify(params) + }); + } + yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, getWfKey, this.arguments.resolveConflict, this.arguments.stepName, this.arguments.performFollowingSteps); + } + catch (err) { + error = "Start workflow: " + err; + throw error; + } + params.response.data.setObj("Started."); + params.response.console.log("Workflow step started."); + break; + default: + throw new imperative_1.ImperativeError({ + msg: `Internal create error: Unable to determine the the criteria by which to run start workflow action. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + }); + } +} +exports.default = WorkflowStepHandler; +//# sourceMappingURL=WorkflowStep.handler.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map b/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map new file mode 100644 index 0000000000..eb4ff762c9 --- /dev/null +++ b/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WorkflowStep.handler.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowStep/WorkflowStep.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAAgF;AAChF,iEAA4D;AAE5D;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAS7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,KAAK,CAAC;YACV,IAAI,QAAQ,CAAC;YACb,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,UAAU,GAAG,aAAa,CAAC;aAC9B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,UAAU,GAAG,cAAc,CAAC;aAC/B;YAED,QAAQ,UAAU,EAAE;gBAChB,KAAK,aAAa;oBACd,IAAG;wBACC,MAAM,0CAAa,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,EACvG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;qBACtE;oBAAC,OAAO,GAAG,EAAC;wBACT,KAAK,GAAG,kBAAkB,GAAG,GAAG,CAAC;wBACjC,MAAM,KAAK,CAAC;qBACf;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;oBACtD,MAAM;gBACV,KAAK,cAAc;oBACf,IAAG;wBACC,QAAQ,GAAG,MAAM,0CAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;wBAC/F,IAAI,QAAQ,KAAK,IAAI,EAAE;4BACnB,MAAM,IAAI,4BAAe,CAAC;gCACtB,GAAG,EAAE,gDAAgD;gCACrD,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;6BAC5C,CAAC,CAAC;yBACN;wBACD,MAAM,0CAAa,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,EACrF,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;qBACtE;oBAAC,OAAO,GAAG,EAAC;wBACT,KAAK,GAAG,kBAAkB,GAAG,GAAG,CAAC;wBACjC,MAAM,KAAK,CAAC;qBACf;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;oBACtD,MAAM;gBACV;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,qGAAqG;4BAC1G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AAjED,sCAiEC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/Collect.definition.d.ts b/lib/zosconsole/collect/Collect.definition.d.ts new file mode 100644 index 0000000000..3e0f808c00 --- /dev/null +++ b/lib/zosconsole/collect/Collect.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const CollectCommand: ICommandDefinition; diff --git a/lib/zosconsole/collect/Collect.definition.js b/lib/zosconsole/collect/Collect.definition.js new file mode 100644 index 0000000000..a9d5a7411f --- /dev/null +++ b/lib/zosconsole/collect/Collect.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CollectCommand = void 0; +const Response_definition_1 = require("./response/Response.definition"); +exports.CollectCommand = { + name: "collect", + type: "group", + summary: "Collect z/OS console command responses", + description: "z/OSMF console services provides a command response key upon successful issue of a console command. " + + "You can use this key to collect additional console message responses.", + children: [ + Response_definition_1.SyncResponseCommandDefinition + ] +}; +//# sourceMappingURL=Collect.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/Collect.definition.js.map b/lib/zosconsole/collect/Collect.definition.js.map new file mode 100644 index 0000000000..7832539ea2 --- /dev/null +++ b/lib/zosconsole/collect/Collect.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Collect.definition.js","sourceRoot":"","sources":["../../../src/zosconsole/collect/Collect.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wEAA+E;AAElE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,wCAAwC;IACjD,WAAW,EAAE,sGAAsG;QACnH,uEAAuE;IACvE,QAAQ,EAAE;QACN,mDAA6B;KAChC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.definition.d.ts b/lib/zosconsole/collect/response/Response.definition.d.ts new file mode 100644 index 0000000000..1d7cfb9f51 --- /dev/null +++ b/lib/zosconsole/collect/response/Response.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SyncResponseCommandDefinition: ICommandDefinition; diff --git a/lib/zosconsole/collect/response/Response.definition.js b/lib/zosconsole/collect/response/Response.definition.js new file mode 100644 index 0000000000..d685ad710e --- /dev/null +++ b/lib/zosconsole/collect/response/Response.definition.js @@ -0,0 +1,68 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SyncResponseCommandDefinition = void 0; +const Constants_1 = require("../../../Constants"); +exports.SyncResponseCommandDefinition = { + name: "sync-responses", + aliases: ["sr"], + summary: "Collect outstanding synchronous console response messages", + description: `The z/OSMF console REST APIs return a "solicited response key" after successfully issuing ` + + `a synchronous console command that produces solicited responses. You can use the "solicited response key"` + + `on the "sync-responses" command to collect any additional outstanding solicited responses ` + + `from the console the command was issued.` + + `\n\n` + + `In general, when issuing a z/OS console command, z/OS applications route responses to the originating console. ` + + `The command response messages are referred to as "solicited command responses" (i.e. direct responses to the command issued). ` + + `When issuing a z/OS console command using ${Constants_1.Constants.DISPLAY_NAME}, collection of all solicited command responses ` + + `is attempted by default. However, there is no z/OS mechanism that indicates the total number of response messages that may be produced ` + + `from a given command. Therefore, the ${Constants_1.Constants.DISPLAY_NAME} console APIs return a "solicited response key" ` + + `that can be used to "follow-up" and collect any additional solicited command responses.`, + type: "command", + handler: __dirname + "/Response.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "responsekey", + type: "string", + description: `The "solicited response key" provided in response to a previously issued console command. ` + + `Used by the z/OSMF console API to collect any additional outstanding solicited responses from a ` + + `previously issued console command.`, + regex: "^[a-zA-Z0-9]+$", + required: true + } + ], + options: [ + { + name: "console-name", + aliases: ["cn", "c"], + description: `The name of the z/OS extended MCS console to direct the command. ` + + `You must have the required authority to access the console specified. ` + + `You may also specify an arbitrary name, if your installation allows dynamic creation ` + + `of consoles with arbitrary names.`, + type: "string", + allowableValues: { + values: [/^[a-zA-Z0-9]+$/.source], + caseSensitive: false + } + } + ], + examples: [ + { + description: "Collect any outstanding additional solicited response messages", + options: "C4866969" + } + ] +}; +//# sourceMappingURL=Response.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.definition.js.map b/lib/zosconsole/collect/response/Response.definition.js.map new file mode 100644 index 0000000000..661e2d9b8f --- /dev/null +++ b/lib/zosconsole/collect/response/Response.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Response.definition.js","sourceRoot":"","sources":["../../../../src/zosconsole/collect/response/Response.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,6BAA6B,GAAuB;IAC7D,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,2DAA2D;IACpE,WAAW,EAAE,4FAA4F;QACzG,2GAA2G;QAC3G,4FAA4F;QAC5F,0CAA0C;QAC1C,MAAM;QACN,iHAAiH;QACjH,gIAAgI;QAChI,6CAA6C,qBAAS,CAAC,YAAY,kDAAkD;QACrH,yIAAyI;QACzI,wCAAwC,qBAAS,CAAC,YAAY,kDAAkD;QAChH,yFAAyF;IACzF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4FAA4F;gBACzG,kGAAkG;gBAClG,oCAAoC;YACpC,KAAK,EAAE,gBAAgB;YACvB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;YACpB,WAAW,EAAE,mEAAmE;gBAChF,wEAAwE;gBACxE,uFAAuF;gBACvF,mCAAmC;YACnC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE;gBACb,MAAM,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;gBACjC,aAAa,EAAE,KAAK;aACvB;SACJ;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.handler.d.ts b/lib/zosconsole/collect/response/Response.handler.d.ts new file mode 100644 index 0000000000..49d4d2675b --- /dev/null +++ b/lib/zosconsole/collect/response/Response.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handle to collect a MVS console command response + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zosconsole/collect/response/Response.handler.js b/lib/zosconsole/collect/response/Response.handler.js new file mode 100644 index 0000000000..edb8b2b220 --- /dev/null +++ b/lib/zosconsole/collect/response/Response.handler.js @@ -0,0 +1,46 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_console_for_zowe_sdk_1 = require("@zowe/zos-console-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handle to collect a MVS console command response + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const collectParms = { + commandResponseKey: commandParameters.arguments.responsekey, + consoleName: commandParameters.arguments["console-name"] + }; + const response = yield zos_console_for_zowe_sdk_1.CollectCommand.collect(this.mSession, collectParms); + // Print out the response + commandParameters.response.console.log(response.commandResponse); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Response.handler.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.handler.js.map b/lib/zosconsole/collect/response/Response.handler.js.map new file mode 100644 index 0000000000..efcc3939c3 --- /dev/null +++ b/lib/zosconsole/collect/response/Response.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Response.handler.js","sourceRoot":"","sources":["../../../../src/zosconsole/collect/response/Response.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,6EAAiG;AACjG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,YAAY,GAAkB;gBAChC,kBAAkB,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW;gBAC3D,WAAW,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC;aAC3D,CAAC;YAEF,MAAM,QAAQ,GAAqB,MAAM,yCAAc,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YAE7F,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAEjE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAErD,CAAC;KAAA;CACJ;AAlBD,0BAkBC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/Issue.definition.d.ts b/lib/zosconsole/issue/Issue.definition.d.ts new file mode 100644 index 0000000000..ce4e61d6de --- /dev/null +++ b/lib/zosconsole/issue/Issue.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zosconsole/issue/Issue.definition.js b/lib/zosconsole/issue/Issue.definition.js new file mode 100644 index 0000000000..6b5c6c86f4 --- /dev/null +++ b/lib/zosconsole/issue/Issue.definition.js @@ -0,0 +1,24 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IssueCommand = void 0; +const Command_definition_1 = require("./command/Command.definition"); +exports.IssueCommand = { + name: "issue", + type: "group", + summary: "Issue z/OS console commands", + description: "Issue z/OS console commands and optionally collect responses.", + children: [ + Command_definition_1.IssueCommandDefinition + ] +}; +//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/Issue.definition.js.map b/lib/zosconsole/issue/Issue.definition.js.map new file mode 100644 index 0000000000..03592c6b7c --- /dev/null +++ b/lib/zosconsole/issue/Issue.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zosconsole/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAsE;AAEzD,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE;QACN,2CAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.definition.d.ts b/lib/zosconsole/issue/command/Command.definition.d.ts new file mode 100644 index 0000000000..13107c9cfc --- /dev/null +++ b/lib/zosconsole/issue/command/Command.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const IssueCommandDefinition: ICommandDefinition; diff --git a/lib/zosconsole/issue/command/Command.definition.js b/lib/zosconsole/issue/command/Command.definition.js new file mode 100644 index 0000000000..f55652f65c --- /dev/null +++ b/lib/zosconsole/issue/command/Command.definition.js @@ -0,0 +1,142 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IssueCommandDefinition = void 0; +const Constants_1 = require("../../../Constants"); +exports.IssueCommandDefinition = { + name: "command", + aliases: ["cmd"], + summary: "Issue a z/OS console command and print the response", + description: `Issue a z/OS console command and print command responses (known as "solicited command responses").` + + `\n\n` + + `In general, when issuing a z/OS console command, z/OS applications route responses to the originating console. ` + + `The command response messages are referred to as "solicited command responses" (i.e. direct responses to the command issued). ` + + `When issuing a z/OS console command using ${Constants_1.Constants.DISPLAY_NAME}, collection of all solicited command responses ` + + `is attempted by default. However, there is no z/OS mechanism that indicates the total number of response messages that may be produced ` + + `from a given command. Therefore, the ${Constants_1.Constants.DISPLAY_NAME} console APIs return a "solicited response key" ` + + `that can be used to "follow-up" and collect any additional solicited command responses.` + + `\n\n` + + `${Constants_1.Constants.DISPLAY_NAME} will issue "follow-up" API requests by default ` + + `to collect any additional outstanding solicited command responses until a request returns no additional responses. ` + + `At that time, ${Constants_1.Constants.DISPLAY_NAME} will attempt a final collection attempt. ` + + `If no messages are present, the command is complete. If additional messages are present, the process is repeated. ` + + `However, this does not guarantee that all messages produced in direct response (i.e. solicited) have been collected. ` + + `The z/OS application may produce additional messages in direct response to your command at some point in the future. ` + + `You can manually collect additional responses using the "command response key" OR specify additional processing ` + + `options to, for example, delay collection attempts by a specified interval.`, + type: "command", + handler: __dirname + "/Command.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "commandtext", + type: "string", + description: "The z/OS console command to issue.", + required: true + } + ], + options: [ + { + name: "console-name", + aliases: ["cn", "c"], + description: `The name of the z/OS extended MCS console to direct the command. ` + + `You must have the required authority to access the console specified. ` + + `You may also specify an arbitrary name, if your installation allows dynamic creation ` + + `of consoles with arbitrary names.`, + type: "string", + allowableValues: { + values: [/^[a-zA-Z0-9]+$/.source], + caseSensitive: false + } + }, + { + name: "include-details", + aliases: ["id", "i"], + description: `Include additional details at the end of the ${Constants_1.Constants.DISPLAY_NAME} command response, ` + + `such as the "command response key" and the z/OSMF command response URL.`, + type: "boolean" + }, + { + name: "key-only", + aliases: ["ko", "k"], + description: `Displays only the "command response key" returned from the z/OSMF console API. ` + + `You can collect additional messages using the command key with ` + + `'${Constants_1.Constants.BINARY_NAME} zos-console collect sync-responses '. ` + + `Note that when using this option, you will not be presented ` + + `with the "first set" of command response messages (if present in the API response). ` + + `However, you can view them by using the --response-format-json option.`, + type: "boolean" + }, + { + name: "return-first", + aliases: ["rf", "r"], + description: `Indicates that ${Constants_1.Constants.DISPLAY_NAME} should return immediately with the response ` + + `message set returned in the first z/OSMF API request (even if no responses are present). ` + + `Using this option may result in partial or no response, but quicker ${Constants_1.Constants.DISPLAY_NAME} ` + + `command response time. The z/OSMF console API has an implicit wait when collecting ` + + `the first set of console command responses, i.e you will normally receive at least one set of ` + + `response messages.`, + type: "boolean", + conflictsWith: ["wait-to-collect"] + }, + { + name: "solicited-keyword", + aliases: ["sk", "s"], + description: "For solicited responses (direct command responses) the response is considered complete if " + + "the keyword specified is present. If the keyword is detected, the command will immediately " + + "return, meaning the full command response may not be provided. The key only applies to " + + "the first request issued, follow up requests do not support searching for the keyword.", + type: "string" + }, + { + name: "sysplex-system", + aliases: ["ss", "sys"], + description: `Specifies the z/OS system (LPAR) in the current SYSPLEX ` + + `(where your target z/OSMF resides) to route the z/OS console command.`, + type: "string" + }, + { + name: "wait-to-collect", + aliases: ["wtc", "w"], + description: `Indicates that ${Constants_1.Constants.DISPLAY_NAME} wait at least the specified number of seconds ` + + `before attempting to collect additional solicited response messages. If additional messages ` + + `are collected on "follow-up" requests, the timer is reset until an attempt is made that results ` + + `in no additional response messages.`, + type: "number", + conflictsWith: ["return-first"] + }, + { + name: "follow-up-attempts", + aliases: ["fua", "a"], + description: "Number of request attempts if no response returned.", + type: "number", + defaultValue: "1" + } + ], + examples: [ + { + description: "Issue a z/OS console command to display the IPL information for the system", + options: "\"D IPLINFO\"" + }, + { + description: "Issue a z/OS console command to display the local and coordinated universal time and date", + options: "\"D T\"" + }, + { + description: "Issue a Db2 command to display information about the status and configuration of DDF", + options: "\"\\-DB1G DISPLAY DDF\"" + } + ] +}; +//# sourceMappingURL=Command.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.definition.js.map b/lib/zosconsole/issue/command/Command.definition.js.map new file mode 100644 index 0000000000..81dca11b2c --- /dev/null +++ b/lib/zosconsole/issue/command/Command.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/zosconsole/issue/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,qDAAqD;I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I,WAAW,EAAE,2FAA2F;YACxG,OAAO,EAAE,SAAS;SACrB;QACD;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,yBAAyB;SACrC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.handler.d.ts b/lib/zosconsole/issue/command/Command.handler.d.ts new file mode 100644 index 0000000000..cffe5fc6f3 --- /dev/null +++ b/lib/zosconsole/issue/command/Command.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handle to issue a MVS console command + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zosconsole/issue/command/Command.handler.js b/lib/zosconsole/issue/command/Command.handler.js new file mode 100644 index 0000000000..e217cb248e --- /dev/null +++ b/lib/zosconsole/issue/command/Command.handler.js @@ -0,0 +1,81 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_console_for_zowe_sdk_1 = require("@zowe/zos-console-for-zowe-sdk"); +const util_1 = require("util"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handle to issue a MVS console command + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + let response; + const issueParms = { + command: commandParameters.arguments.commandtext, + consoleName: commandParameters.arguments["console-name"], + solicitedKeyword: commandParameters.arguments["solicited-keyword"], + sysplexSystem: commandParameters.arguments["sysplex-system"], + async: commandParameters.arguments["key-only"] === true ? "Y" : "N" + }; + if ((0, util_1.isNullOrUndefined)(commandParameters.arguments["wait-to-collect"])) { + response = yield zos_console_for_zowe_sdk_1.IssueCommand.issue(this.mSession, issueParms); + } + else { + const collectParms = { + commandResponseKey: "", + consoleName: commandParameters.arguments["console-name"], + waitToCollect: commandParameters.arguments["wait-to-collect"], + followUpAttempts: commandParameters.arguments["follow-up-attempts"] + }; + response = yield zos_console_for_zowe_sdk_1.IssueCommand.issueAndCollect(this.mSession, issueParms, collectParms); + } + // Print out the response + if (commandParameters.arguments["key-only"]) { + if (!(0, util_1.isNullOrUndefined)(response.lastResponseKey)) { + commandParameters.response.console.log(response.lastResponseKey); + } + } + else { + commandParameters.response.console.log(response.commandResponse); + if (commandParameters.arguments["include-details"]) { + const details = { + responseKey: response.lastResponseKey, + cmdResponseUrl: response.cmdResponseUrl || undefined, + keywordDetected: response.keywordDetected || + ((!(0, util_1.isNullOrUndefined)(commandParameters.arguments["solicited-keyword"])) ? false : undefined) + }; + commandParameters.response.console.log("Additional details:"); + commandParameters.response.console.log("-------------------"); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(details)); + } + } + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Command.handler.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.handler.js.map b/lib/zosconsole/issue/command/Command.handler.js.map new file mode 100644 index 0000000000..912e71bba9 --- /dev/null +++ b/lib/zosconsole/issue/command/Command.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/zosconsole/issue/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,6EAA4G;AAC5G,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,IAAI,QAA0B,CAAC;YAE/B,MAAM,UAAU,GAAgB;gBAC5B,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW;gBAChD,WAAW,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC;gBACxD,gBAAgB,EAAE,iBAAiB,CAAC,SAAS,CAAC,mBAAmB,CAAC;gBAClE,aAAa,EAAE,iBAAiB,CAAC,SAAS,CAAC,gBAAgB,CAAC;gBAC5D,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;aACtE,CAAC;YAEF,IAAI,IAAA,wBAAiB,EAAC,iBAAiB,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACnE,QAAQ,GAAG,MAAM,uCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;aAClE;iBAAM;gBACH,MAAM,YAAY,GAAkB;oBAChC,kBAAkB,EAAE,EAAE;oBACtB,WAAW,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC;oBACxD,aAAa,EAAE,iBAAiB,CAAC,SAAS,CAAC,iBAAiB,CAAC;oBAC7D,gBAAgB,EAAE,iBAAiB,CAAC,SAAS,CAAC,oBAAoB,CAAC;iBACtE,CAAC;gBACF,QAAQ,GAAG,MAAM,uCAAY,CAAC,eAAe,CAAC,IAAI,CAAC,QAA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iles/-strings-/en.d.ts new file mode 100644 index 0000000000..d103162333 --- /dev/null +++ b/lib/zosfiles/-strings-/en.d.ts @@ -0,0 +1,791 @@ +declare const _default: { + COMMON: { + ATTRIBUTE_TITLE: string; + FOR: string; + TO: string; + WITH_VALUE: string; + }; + CREATE: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET_BINARY: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + DATA_SET_CLASSIC: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + DATA_SET_C: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + DATA_SET_LIKE: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + DATA_SET_PARTITIONED: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + DATA_SET_SEQUENTIAL: { + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + }; + }; + VSAM: { + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + OPTIONS: { + RETAINFOR: string; + RETAINTO: string; + SECONDARY: string; + SIZE: string; + VOLUMES: string; + }; + EXAMPLES: { + DEFAULT_VALUES: string; + SHOW_FIVE_MB: string; + RETAIN_100_DAYS: string; + }; + }; + ZFS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + FILESYSTEMNAME: string; + }; + OPTIONS: { + OWNER: string; + GROUP: string; + PERMS: string; + CYLS_PRI: string; + CYLS_SEC: string; + VOLUMES: string; + TIMEOUT: string; + }; + EXAMPLES: { + DEFAULT_VALUES: string; + SPECIFY_CYLS: string; + SPECIFY_VOLUMES: string; + }; + }; + USSFILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + PATH: string; + }; + OPTIONS: { + MODE: string; + }; + EXAMPLES: { + CREATE_FILE: string; + SPECIFY_MODE: string; + }; + }; + USSDIR: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + PATH: string; + }; + OPTIONS: { + MODE: string; + }; + EXAMPLES: { + CREATE_DIRECTORY: string; + SPECIFY_MODE: string; + }; + }; + }; + POSITIONALS: { + DATASETNAME: string; + }; + OPTIONS: { + VOLSER: string; + UNIT: string; + DSORG: string; + ALCUNIT: string; + PRIMARY: string; + SECONDARY: string; + DIRBLK: string; + AVGBLK: string; + RECFM: string; + BLKSIZE: string; + LIKE: string; + LRECL: string; + STORCLASS: string; + MGNTCLASS: string; + DATACLASS: string; + DSNTYPE: string; + FLATFILE: string; + SHOWATTRIBUTES: string; + SIZE: string; + }; + }; + COPY: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + FROMDSNAME: string; + TODSNAME: string; + }; + OPTIONS: { + REPLACE: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + EX5: string; + }; + }; + DATA_SET_CROSS_LPAR: { + DESCRIPTION: string; + POSITIONALS: { + FROMDSNAME: string; + TODSNAME: string; + }; + OPTIONS: { + REPLACE: string; + TARGETHOST: string; + TARGETPORT: string; + TARGETUSER: string; + TARGETPASS: string; + TARGETTOKENVAL: string; + TARGETTOKENTYPE: string; + TARGETPROFILE: string; + TARGETVOLSER: string; + TARGETMGTCLS: string; + TARGETDATACLS: string; + TARGETSTGCLS: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + }; + }; + }; + }; + DELETE: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + DSNAME: string; + }; + OPTIONS: { + VOLUME: string; + FOR_SURE: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + MIGRATED_DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + OPTIONS: { + WAIT: string; + PURGE: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + VSAM: { + DESCRIPTION: string; + POSITIONALS: { + DSNAME: string; + }; + OPTIONS: { + FOR_SURE: string; + ERASE: string; + PURGE: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + }; + }; + USS: { + DESCRIPTION: string; + POSITIONALS: { + FILENAME: string; + }; + OPTIONS: { + FOR_SURE: string; + RECURSIVE: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + ZFS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + FILESYSTEMNAME: string; + }; + OPTIONS: { + FOR_SURE: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + }; + }; + DOWNLOAD: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + ALL_MEMBERS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSFILENAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + USS_DIR: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSDIRNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + DATA_SETS_MATCHING: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + PATTERN: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + }; + OPTIONS: { + ATTRIBUTES: string; + VOLUME: string; + BINARY: string; + RECORD: string; + ENCODING: string; + FAIL_FAST: string; + FAIL_FAST_USS: string; + FILE: string; + EXTENSION: string; + DIRECTORY: string; + DIRECTORY_USS: string; + EXTENSION_MAP: string; + EXCLUDE_PATTERN: string; + MAX_CONCURRENT_REQUESTS: string; + MAX_CONCURRENT_REQUESTS_USS: string; + PRESERVE_ORIGINAL_LETTER_CASE: string; + INCLUDE_HIDDEN: string; + OVERWRITE: string; + }; + }; + INVOKE: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + AMS: { + DESCRIPTION: string; + FILE_CMD: { + SUMMARY: string; + POSITIONAL: string; + EXAMPLES: { + EX1: string; + }; + }; + STATEMENTS_CMD: { + SUMMARY: string; + POSITIONAL: string; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + }; + }; + }; + LIST: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + ALL_MEMBERS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + }; + }; + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + EX5: string; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + PATH: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + FS: { + SUMMARY: string; + DESCRIPTION: string; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + }; + OPTIONS: { + VOLUME: string; + ATTRIBUTES: string; + MAXLENGTH: string; + NAME: string; + PATTERN: string; + PATH: string; + FSNAME: string; + START: string; + GROUP: string; + OWNER: string; + MTIME: string; + SIZE: string; + PERM: string; + TYPE: string; + DEPTH: string; + FILESYS: string; + SYMLINKS: string; + }; + }; + MOUNT: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + FS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + FILESYSTEMNAME: string; + MOUNTPOINT: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + OPTIONS: { + FSTYPE: string; + MODE: string; + }; + }; + }; + }; + OPTIONS: { + RESPONSETIMEOUT: string; + }; + UNMOUNT: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + FS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + FILESYSTEMNAME: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + }; + }; + UPLOAD: { + DESCRIPTION: string; + ACTIONS: { + DIR_TO_PDS: { + DESCRIPTION: string; + POSITIONALS: { + INPUTDIR: string; + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + FILE_TO_DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + INPUTFILE: string; + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + STDIN_TO_DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + }; + }; + FILE_TO_USS: { + DESCRIPTION: string; + POSITIONALS: { + INPUTFILE: string; + USSFILENAME: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + DIR_TO_USS: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + INPUTDIR: string; + USSDIR: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + EX5: string; + }; + }; + }; + OPTIONS: { + VOLUME: string; + BINARY: string; + RECORD: string; + ENCODING: string; + RECALL: string; + RECURSIVE: string; + BINARY_FILES: string; + ASCII_FILES: string; + ATTRIBUTES: string; + MAX_CONCURRENT_REQUESTS: string; + INCLUDE_HIDDEN: string; + }; + }; + VIEW: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + EX3: string; + EX4: string; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSFILE: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + }; + OPTIONS: { + BINARY: string; + ENCODING: string; + RECORD: string; + VOLUME: string; + RANGE: string; + }; + }; + EDIT: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSFILEPATH: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + }; + OPTIONS: { + EDITOR: string; + EXTENSION: string; + }; + }; + COMPARE: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME1: string; + DATASETNAME2: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + LOCAL_FILE_DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + LOCALFILEPATH: string; + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSFILEPATH1: string; + USSFILEPATH2: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + LOCAL_FILE_USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + LOCALFILEPATH: string; + USSFILEPATH: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + SPOOL_DD: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + SPOOLDDDESCRIPTION1: string; + SPOOLDDDESCRIPTION2: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + LOCAL_FILE_SPOOL_DD: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + LOCALFILEPATH: string; + SPOOLDDDESCRIPTION: string; + }; + EXAMPLES: { + EX1: string; + EX2: string; + }; + }; + }; + OPTIONS: { + BINARY: string; + BINARY2: string; + ENCODING: string; + ENCODING2: string; + RECORD: string; + RECORD2: string; + VOLUME: string; + VOLUME2: string; + SEQNUM: string; + CONTEXTLINES: string; + BROWSERVIEW: string; + }; + }; + HMIGRATE: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + }; + OPTIONS: { + WAIT: string; + }; + }; + HRECALL: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + DATASETNAME: string; + }; + EXAMPLES: { + EX1: string; + }; + }; + }; + OPTIONS: { + WAIT: string; + }; + }; + RENAME: { + DESCRIPTION: string; + ACTIONS: { + DATA_SET: { + DESCRIPTION: string; + POSITIONALS: { + BEFOREDSNAME: string; + AFTERDSNAME: string; + }; + OPTIONS: {}; + EXAMPLES: { + EX1: string; + }; + }; + DATA_SET_MEMBER: { + DESCRIPTION: string; + POSITIONALS: { + DSNAME: string; + BEFOREMEMBERNAME: string; + AFTERMEMBERNAME: string; + }; + OPTIONS: {}; + EXAMPLES: { + EX1: string; + }; + }; + }; + }; +}; +export default _default; diff --git a/lib/zosfiles/-strings-/en.js b/lib/zosfiles/-strings-/en.js new file mode 100644 index 0000000000..94de9844c6 --- /dev/null +++ b/lib/zosfiles/-strings-/en.js @@ -0,0 +1,960 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const Constants_1 = require("../../Constants"); +exports.default = { + COMMON: { + ATTRIBUTE_TITLE: "The following attributes are used during creation:\n", + FOR: "for", + TO: "to", + WITH_VALUE: "with value" + }, + CREATE: { + DESCRIPTION: "Create data sets.", + ACTIONS: { + DATA_SET_BINARY: { + DESCRIPTION: "Create executable data sets", + EXAMPLES: { + EX1: "Create an empty binary partitioned data set (PDS) with default parameters", + EX2: "Create an empty binary PDSE using data set type LIBRARY" + } + }, + DATA_SET_CLASSIC: { + DESCRIPTION: "Create classic data sets (JCL, HLASM, CBL, etc...)", + EXAMPLES: { + EX1: "Create an empty z/OS 'classic' PDS with default parameters", + EX2: `Create an empty z/OS 'classic' PDSE using data set type LIBRARY` + } + }, + DATA_SET_C: { + DESCRIPTION: "Create data sets for C code programming", + EXAMPLES: { + EX1: "Create an empty C code PDS with default parameters", + EX2: "Create an empty C code PDSE using data set type LIBRARY" + } + }, + DATA_SET_LIKE: { + DESCRIPTION: "Create data sets based on the properties of an existing data set", + EXAMPLES: { + EX1: "Create a data set with default parameters and like flag", + EX2: "Create a data set with default parameters and like flag and lrecl flag", + EX3: "Create a data set with type LIBRARY" + } + }, + DATA_SET_PARTITIONED: { + DESCRIPTION: "Create partitioned data sets (PDS)", + EXAMPLES: { + EX1: "Create an empty PDS with default parameters", + EX2: "Create an empty PDSE using data set type LIBRARY" + } + }, + DATA_SET_SEQUENTIAL: { + DESCRIPTION: "Create physical sequential data sets (PS)", + EXAMPLES: { + EX1: "Create an empty physical sequential data set with default parameters" + } + }, + VSAM: { + DESCRIPTION: "Create a VSAM cluster", + POSITIONALS: { + DATASETNAME: "The name of the dataset in which to create a VSAM cluster" + }, + OPTIONS: { + RETAINFOR: "The number of days that the VSAM cluster will be retained on the system. You can delete the cluster at any " + + "time when neither retain-for nor retain-to is specified.", + RETAINTO: "The earliest date that a command without the PURGE parameter can delete an entry. Specify the expiration " + + "date in the form yyyyddd, where yyyy is a four-digit year" + + " (maximum value: 2155) and ddd is the three-digit day of the year " + + "from 001 through 365 (for non-leap years) or 366 (for leap years). You can delete the cluster at any time when neither " + + "retain-for nor retain-to is used. You cannot specify both the 'retain-to' and 'retain-for' options.", + SECONDARY: "The number of items for the secondary space allocation (for example, 840). " + + "The type of item allocated is the same as the type used for the '--size' option. " + + "If you do not specify a secondary allocation, a value of ~10% of the primary allocation is used.", + SIZE: "The primary size to allocate for the VSAM cluster. Specify size as the number of items to allocate (nItems). " + + "You specify the type of item by keyword.", + VOLUMES: "The storage volumes on which to allocate a VSAM cluster. Specify a single volume by its volume serial (VOLSER). To " + + "specify more than one volume, enclose the option in double-quotes and separate each VOLSER with a space. " + + "You must specify the volumes option when your cluster is not SMS-managed." + }, + EXAMPLES: { + DEFAULT_VALUES: `Create a VSAM data set named "SOME.DATA.SET.NAME" using default values of INDEXED, 840 KB primary storage and ` + + `84 KB secondary storage`, + SHOW_FIVE_MB: `Create a 5 MB LINEAR VSAM data set named "SOME.DATA.SET.NAME" with 1 MB of secondary space. Show the properties ` + + `of the data set when it is created`, + RETAIN_100_DAYS: `Create a VSAM data set named "SOME.DATA.SET.NAME", which is retained for 100 days` + } + }, + ZFS: { + SUMMARY: "Create a z/OS file system", + DESCRIPTION: "Create a z/OS file system.", + POSITIONALS: { + FILESYSTEMNAME: "The name of the file system to create." + }, + OPTIONS: { + OWNER: "The z/OS user ID or UID for the owner of the ZFS root directory.", + GROUP: "The z/OS group ID or GID for the group of the ZFS root directory.", + PERMS: "The permissions code for the ZFS root directory.", + CYLS_PRI: "The number of primary cylinders to allocate for the ZFS.", + CYLS_SEC: "The number of secondary cylinders to allocate for the ZFS.", + VOLUMES: "The storage volumes on which to allocate the z/OS file system. Specify a single volume by its volume serial " + + "(VOLSER). To specify more than one volume, separate each VOLSER with a space. You must specify the volumes option " + + "when your cluster is not SMS-managed.", + TIMEOUT: `The number of seconds to wait for the underlying "zfsadm format" command to complete. If this command times out, ` + + `the ZFS may have been created but not formatted correctly.` + }, + EXAMPLES: { + DEFAULT_VALUES: `Create a ZFS named "HLQ.MYNEW.ZFS" using default values of 755 permissions, 10 primary and 2 secondary ` + + `cylinders allocated, and a timeout of 20 seconds`, + SPECIFY_CYLS: `Create a ZFS with 100 primary and 10 secondary cylinders allocated`, + SPECIFY_VOLUMES: `Create a ZFS specifying the volumes that should be used` + } + }, + USSFILE: { + SUMMARY: "Create a UNIX file", + DESCRIPTION: "Create a UNIX file.", + POSITIONALS: { + PATH: "The name of the file that you want to create." + }, + OPTIONS: { + MODE: "Specifies the file permission bits to use when creating the file. " + }, + EXAMPLES: { + CREATE_FILE: `Create a USS file named "test.ext" `, + SPECIFY_MODE: `Create a USS file named "text.txt" with mode "rwxrwxrwx" ` + } + }, + USSDIR: { + SUMMARY: "Create a UNIX directory", + DESCRIPTION: "Create a UNIX directory.", + POSITIONALS: { + PATH: "The name of the directory that you want to create." + }, + OPTIONS: { + MODE: "Specifies the file permission bits to use when creating the directory." + }, + EXAMPLES: { + CREATE_DIRECTORY: `Create a USS directory named "testDir" `, + SPECIFY_MODE: `Create a USS directory named "testDir" with mode "rwxrwxrwx" ` + } + } + }, + POSITIONALS: { + DATASETNAME: "The name of the data set that you want to create" + }, + OPTIONS: { + VOLSER: "The volume serial (VOLSER) on which you want the data set to be placed. A VOLSER is analogous to a drive name on a PC.", + UNIT: "The device type, also known as 'unit'", + DSORG: "The data set organization", + ALCUNIT: "The allocation unit (for example, CYL for Cylinders)", + PRIMARY: "The primary space allocation (for example, 5)", + SECONDARY: "The secondary space allocation (for example, 1)", + DIRBLK: "The number of directory blocks (for example, 25)", + AVGBLK: "The number of average blocks (for example, 25)", + RECFM: `The record format for the data set (for example, FB for "Fixed Block")`, + BLKSIZE: "The block size for the data set (for example, 6160)", + LIKE: "Name of an existing data set to base your new data set's properties on", + LRECL: "The logical record length. Analogous to the length of a line (for example, 80)", + STORCLASS: "The SMS storage class to use for the allocation", + MGNTCLASS: "The SMS management class to use for the allocation", + DATACLASS: "The SMS data class to use for the allocation", + DSNTYPE: "The data set type (BASIC, EXTPREF, EXTREQ, HFS, LARGE, PDS, LIBRARY, PIPE)", + FLATFILE: "Indicates that you want to create the data set as a physical sequential file (flat file). A physical sequential file " + + "differs from a partitioned data set (PDS) because it cannot contain members, only file contents.", + SHOWATTRIBUTES: "Show the full allocation attributes", + SIZE: "The size of the data set (specified as nCYL or nTRK - where n is the number of cylinders or tracks). Sets the primary " + + "allocation (the secondary allocation becomes ~10% of the primary)." + } + }, + COPY: { + DESCRIPTION: "Copy a data set.", + ACTIONS: { + DATA_SET: { + DESCRIPTION: "Copy a data set to another data set", + POSITIONALS: { + FROMDSNAME: "The name of the data set that you want to copy from", + TODSNAME: "The name of the data set that you want to copy to (data set must be preallocated)" + }, + OPTIONS: { + REPLACE: "Specify this option as true if you wish to replace like-named members in the target dataset" + }, + EXAMPLES: { + EX1: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET'", + EX2: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set member named 'USER.TO.SET(MEM2)'", + EX3: "Copy the data set named 'USER.FROM.SET' to the data set member named 'USER.TO.SET(MEM2)'", + EX4: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set named 'USER.TO.SET'", + EX5: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' and replace like-named members" + } + }, + DATA_SET_CROSS_LPAR: { + DESCRIPTION: "Copy a data set to another data set on a specified LPAR", + POSITIONALS: { + FROMDSNAME: "The name of the data set that you want to copy from", + TODSNAME: "The name of the data set that you want to copy to. If the dataset does not " + + "exist it will be allocated automatically" + }, + OPTIONS: { + REPLACE: "Specify this option as true if you wish to replace the target dataset if it already exists", + TARGETHOST: "The target z/OSMF server host name.", + TARGETPORT: "The target z/OSMF server port.", + TARGETUSER: "The target z/OSMF user name, which can be the same as your TSO login.", + TARGETPASS: "The target z/OSMF password, which can be the same as your TSO password.", + TARGETTOKENVAL: "The type of token to get and use for the API for the target system.", + TARGETTOKENTYPE: "The value of the token to pass to the API for the target system.", + TARGETPROFILE: "The name of a z/OSMF profile to load for the target host. ", + TARGETVOLSER: "The volume serial (VOLSER) on which you want the target data set to be placed.", + TARGETMGTCLS: "The SMS management class to use for the allocation of the target data set.", + TARGETDATACLS: "The SMS data class to use for the allocation of the target data set.", + TARGETSTGCLS: "The SMS storage class to use for the allocation of the target data set." + }, + EXAMPLES: { + EX1: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' using the --target-zosmf-p" + + " option to specify the target host using a zosmf profile", + EX2: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set member named 'USER.TO.SET(MEM2)'", + EX3: "Copy the data set named 'USER.FROM.SET' to the data set member named 'USER.TO.SET(MEM2)'", + EX4: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set named 'USER.TO.SET' using the " + + "--target-host, --target-user, and --target-password options" + } + } + } + }, + DELETE: { + DESCRIPTION: "Delete a data set or Unix System Services file.", + ACTIONS: { + DATA_SET: { + DESCRIPTION: "Delete a data set or data set member permanently", + POSITIONALS: { + DSNAME: "The name of the data set that you want to delete" + }, + OPTIONS: { + VOLUME: "The volume serial (VOLSER) where the data set resides. The option is required only when the data set is not" + + " catalogued on the system.", + FOR_SURE: "Specify this option to confirm that you want to delete the data set permanently." + }, + EXAMPLES: { + EX1: "Delete the data set named 'ibmuser.cntl'", + EX2: "Delete the data set member named 'ibmuser.cntl(mem)'" + } + }, + MIGRATED_DATA_SET: { + DESCRIPTION: "Delete migrated data sets.", + POSITIONALS: { + DATASETNAME: "The name of the migrated data set you want to delete." + }, + OPTIONS: { + WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued.", + PURGE: "If true then the function uses the PURGE=YES on ARCHDEL request. If false (default) the function uses the PURGE=NO on " + + "ARCHDEL request." + }, + EXAMPLES: { + EX1: `Delete a migrated data set using default options` + } + }, + VSAM: { + DESCRIPTION: "Delete a VSAM cluster permanently", + POSITIONALS: { + DSNAME: "The name of the VSAM cluster that you want to delete" + }, + OPTIONS: { + FOR_SURE: "Specify this option to confirm that you want to delete the VSAM cluster permanently.", + ERASE: "Specify this option to overwrite the data component for the cluster with binary zeros. This " + + "option is ignored if the NOERASE attribute was specified when the cluster was defined or altered.", + PURGE: "Specify this option to delete the VSAM cluster regardless of its retention period or date." + }, + EXAMPLES: { + EX1: "Delete the VSAM data set named 'ibmuser.cntl.vsam'", + EX2: "Delete all expired VSAM data sets that match 'ibmuser.AAA.**.FFF'", + EX3: "Delete a non-expired VSAM data set named 'ibmuser.cntl.vsam'", + EX4: "Delete an expired VSAM data set named 'ibmuser.cntl.vsam' by overwriting the components with zeros" + } + }, + USS: { + DESCRIPTION: "Delete a Unix Systems Services (USS) File or directory permanently", + POSITIONALS: { + FILENAME: "The name of the file or directory that you want to delete" + }, + OPTIONS: { + FOR_SURE: "Specify this option to confirm that you want to delete the file or directory permanently.", + RECURSIVE: "Delete directories recursively." + }, + EXAMPLES: { + EX1: "Delete the empty directory '/u/ibmuser/testcases'", + EX2: "Delete the file named '/a/ibmuser/my_text.txt'", + EX3: "Recursively delete the directory named '/u/ibmuser/testcases'" + } + }, + ZFS: { + SUMMARY: "Delete a z/OS file system permanently", + DESCRIPTION: "Delete a z/OS file system permanently.", + POSITIONALS: { + FILESYSTEMNAME: "The name of the z/OS file system that you want to delete." + }, + OPTIONS: { + FOR_SURE: "Specify this option to confirm that you want to delete the ZFS permanently." + }, + EXAMPLES: { + EX1: "Delete the z/OS file system 'HLQ.MYNEW.ZFS'" + } + } + } + }, + DOWNLOAD: { + SUMMARY: "Download content from data sets and USS files", + DESCRIPTION: "Download content from z/OS data sets and USS files to your PC.", + ACTIONS: { + ALL_MEMBERS: { + SUMMARY: "Download all members from a pds", + DESCRIPTION: "Download all members from a partitioned data set to a local folder", + POSITIONALS: { + DATASETNAME: "The name of the data set from which you want to download members" + }, + EXAMPLES: { + EX1: `Download the members of the data set "ibmuser.loadlib" in binary mode to the directory "loadlib/"`, + EX2: `Download the members of the data set "ibmuser.cntl" in text mode to the directory "jcl/"` + } + }, + DATA_SET: { + SUMMARY: "Download content from a z/OS data set", + DESCRIPTION: "Download content from a z/OS data set to a local file", + POSITIONALS: { + DATASETNAME: "The name of the data set that you want to download" + }, + EXAMPLES: { + EX1: `Download the data set "ibmuser.loadlib(main)" in binary mode to the local file "main.obj"` + } + }, + USS_FILE: { + SUMMARY: "Download content from a USS file", + DESCRIPTION: "Download content from a USS file to a local file on your PC", + POSITIONALS: { + USSFILENAME: "The name of the USS file you want to download" + }, + EXAMPLES: { + EX1: `Download the file "/a/ibmuser/my_text.txt" to ./my_text.txt`, + EX2: `Download the file "/a/ibmuser/MyJava.class" to "java/MyJava.class" in binary mode` + } + }, + USS_DIR: { + SUMMARY: "Download content from a USS directory", + DESCRIPTION: "Download content from a USS directory to a local directory on your PC", + POSITIONALS: { + USSDIRNAME: "The name of the USS directory you want to download" + }, + EXAMPLES: { + EX1: `Download the directory "/a/ibmuser" to "./" in binary mode`, + EX2: `Download the directory "/a/ibmuser" to "./localDir"`, + EX3: `Download files from the directory "/a/ibmuser" that match the name "*.log" and were modified within the last day` + } + }, + DATA_SETS_MATCHING: { + SUMMARY: "Download multiple data sets at once", + DESCRIPTION: "Download all data sets that match a DSLEVEL pattern (see help below). " + + "You can use several options to qualify which data sets will be skipped and how the " + + "downloaded files will be structured. Data sets that are neither physical sequential nor " + + "partitioned data sets (with members) will be excluded.", + POSITIONALS: { + PATTERN: `The pattern or patterns to match data sets against. Also known as 'DSLEVEL'. The following special sequences can be ` + + `used in the pattern: + ${imperative_1.TextUtils.chalk.yellow("%")}: matches any single character + ${imperative_1.TextUtils.chalk.yellow("*")}: matches any number of characters within a data set name qualifier ` + + `(e.g. "ibmuser.j*.old" matches "ibmuser.jcl.old" but not "ibmuser.jcl.very.old") + ${imperative_1.TextUtils.chalk.yellow("**")}: matches any number of characters within any number of data set name qualifiers ` + + `(e.g. "ibmuser.**.old" matches both "ibmuser.jcl.old" and "ibmuser.jcl.very.old") + However, the pattern cannot begin with any of these sequences.You can specify multiple patterns separated by commas, ` + + `for example "ibmuser.**.cntl,ibmuser.**.jcl"` + }, + EXAMPLES: { + EX1: `Download all data sets beginning with "ibmuser" and ending with ".cntl" or ".jcl" to the local directory "jcl" to ` + + `files with the extension ".jcl"`, + EX2: `Download all data sets that begin with "ibmuser.public.project" or "ibmuser.project.private", excluding those that end ` + + `in "lib" to the local directory "project", providing a custom mapping of data set low level qualifier to local file extension` + } + } + }, + OPTIONS: { + ATTRIBUTES: "Path of an attributes file to control how files are downloaded", + VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + + "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", + BINARY: "Download the file content in binary mode, which means that no data conversion is performed. The data transfer process " + + "returns each line as-is, without translation. No delimiters are added between records.", + RECORD: "Download the file content in record mode, which means that no data conversion is performed and the record length is prepended" + + " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + + " Conflicts with binary.", + ENCODING: "Download the file content with encoding mode, which means that data conversion is performed using the file encoding " + + "specified.", + FAIL_FAST: "Set this option to false to continue downloading dataset members if one or more fail.", + FAIL_FAST_USS: "Set this option to false to continue downloading USS files if one or more fail.", + FILE: "The path to the local file where you want to download the content. When you omit the option, the command generates a file " + + "name automatically for you.", + EXTENSION: "Save the local files with a specified file extension. For example, .txt. Or \"\" for no extension. When no extension " + + "is specified, .txt is used as the default file extension.", + DIRECTORY: "The directory to where you want to save the members. The command creates the directory for you when it does not already " + + "exist. By default, the command creates a folder structure based on the data set qualifiers. For example, the data set " + + "ibmuser.new.cntl's members are downloaded to ibmuser/new/cntl).", + DIRECTORY_USS: "The directory to where you want to save the files. The command creates the directory for you when it does not already " + + "exist. By default, the command downloads the files to the current directory.", + EXTENSION_MAP: `Use this option to map data set names that match your pattern to the desired extension. A comma delimited key value ` + + `pairing (e.g. "cntl=.jcl,cpgm=.c" to map the last segment of each data set (also known as the "low level qualifier" to the ` + + `desired local file extension).`, + EXCLUDE_PATTERN: "Exclude data sets that match these DSLEVEL patterns. Any data sets that match" + + " this pattern will not be downloaded.", + MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to download members." + + " Increasing the value results in faster downloads. " + + "However, increasing the value increases resource consumption on z/OS and can be prone " + + "to errors caused by making too many concurrent requests. If the download process encounters an error, " + + "the following message displays:\n" + + "The maximum number of TSO address spaces have been created. When you specify 0, " + + Constants_1.Constants.DISPLAY_NAME + " attempts to download all members at once" + + " without a maximum number of concurrent requests. ", + MAX_CONCURRENT_REQUESTS_USS: "Specifies the maximum number of concurrent z/OSMF REST API requests to download files." + + " Increasing the value results in faster downloads. " + + "However, increasing the value increases resource consumption on z/OS and can be prone " + + "to errors caused by making too many concurrent requests. If the download process encounters an error, " + + "the following message displays:\n" + + "The maximum number of TSO address spaces have been created. When you specify 0, " + + Constants_1.Constants.DISPLAY_NAME + " attempts to download all files at once" + + " without a maximum number of concurrent requests. ", + PRESERVE_ORIGINAL_LETTER_CASE: "Specifies if the automatically generated directories and files use the original letter case", + INCLUDE_HIDDEN: "Include hidden files and folders that have names beginning with a dot", + OVERWRITE: "Overwrite files that already exist in your local environment" + } + }, + INVOKE: { + SUMMARY: "Invoke various z/OS utilities", + DESCRIPTION: "Invoke z/OS utilities such as Access Method Services (AMS).", + ACTIONS: { + AMS: { + DESCRIPTION: "Submit control statements for execution by Access Method Services (IDCAMS). You can use IDCAMS to create VSAM data " + + "sets (CSI, ZFS, etc...), delete data sets, and more. You must format the control statements exactly as the IDCAMS utility " + + "expects. For more information about control statements, see the IBM publication 'z/OS DFSMS Access Method Services Commands'.", + FILE_CMD: { + SUMMARY: "Invoke AMS to submit a file", + POSITIONAL: "The path to a file that contains IDCAMS control statements. Ensure that your file does not contain " + + "statements that are longer than 255 characters (maximum allowed length).", + EXAMPLES: { + EX1: "Reads the specified file and submits the controls statements" + } + }, + STATEMENTS_CMD: { + SUMMARY: "Invoke AMS to submit statements", + POSITIONAL: "The IDCAMS control statement that you want to submit. " + + Constants_1.Constants.DISPLAY_NAME + " attempts to split the inline control " + + "statement at 255 characters.", + EXAMPLES: { + EX1: "Defines a cluster named 'DUMMY.VSAM.CLUSTER'", + EX2: "Deletes a cluster named 'DUMMY.VSAM.CLUSTER'" + } + } + } + } + }, + LIST: { + SUMMARY: "List the details for data sets and the members in the data sets", + DESCRIPTION: "List data sets and data set members. Optionally, you can list their details and attributes.", + ACTIONS: { + ALL_MEMBERS: { + SUMMARY: "List all members of a pds", + DESCRIPTION: "List all members of a partitioned data set. To view additional information about each member, use the --attributes " + + "option under the Options section of this help text.", + POSITIONALS: { + DATASETNAME: "The name of the data set for which you want to list the members" + }, + EXAMPLES: { + EX1: `Show members of the data set "ibmuser.asm"`, + EX2: `Show attributes of members of the data set "ibmuser.cntl"`, + EX3: `Show the first 5 members of the data set "ibmuser.cntl"`, + EX4: `Show the first 4 members of the data set "ibmuser.cntl" matching an input pattern"` + } + }, + DATA_SET: { + SUMMARY: "List data sets", + DESCRIPTION: "List data sets that match a pattern in the data set name", + POSITIONALS: { + DATASETNAME: "The name or pattern of the data set that you want to list" + }, + EXAMPLES: { + EX1: `Show the data set "ibmuser.asm"`, + EX2: `Show attributes of the data set "ibmuser.cntl"`, + EX3: `Show all data sets of the user "ibmuser"`, + EX4: `Show attributes of all data sets of the user "ibmuser"`, + EX5: `Show the first 5 data sets of the user "ibmuser"` + } + }, + USS_FILE: { + SUMMARY: "List USS files", + DESCRIPTION: "List USS files and directories in a UNIX file path", + POSITIONALS: { + PATH: "The directory containing the files and directories to be listed" + }, + EXAMPLES: { + EX1: `Show the files and directories in path '/u/ibmuser'`, + EX2: "Show the files and directories in path '/u/ibmuser displaying only the file or directory name", + EX3: "Show the files and directories in path '/u/ibmuser' displaying the headers associated with the file detail" + } + }, + FS: { + SUMMARY: "Listing mounted z/OS filesystems", + DESCRIPTION: "List all mounted filesystems, or the specific filesystem mounted at a given path, " + + "or the filesystem with a given filesystem name.", + EXAMPLES: { + EX1: "To list all mounted filesystems", + EX2: "To list filesystems mounted to a specific path", + EX3: "To list filesystems mounted with a specific name" + } + } + }, + OPTIONS: { + VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + + "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", + ATTRIBUTES: "Display more information about each member. Data sets with an undefined record format display information related to " + + "executable modules. Variable and fixed block data sets display information about when the members were created and modified.", + MAXLENGTH: "The option --max-length specifies the maximum number of items to return. Skip this parameter to return all items." + + " If you specify an incorrect value, the parameter returns up to 1000 items.", + NAME: "Filters files in USS based on the name of the file or directory.", + PATTERN: "The option --pattern specifies the match pattern used when listing members in a data set. The default is to match against " + + "all members, e.g. \"*\".", + PATH: "Specifies the path where the file system is mounted." + + " This option and --fsname are mutually exclusive.", + FSNAME: "Specifies the name of the mounted file system." + + " This option and --path are mutually exclusive.", + START: "An optional search parameter that specifies the first data set name to return in the response document.", + GROUP: "Filters content in USS based on the owning group name or ID.", + OWNER: "Filters content in USS based on the owning user name or ID.", + MTIME: "Filters content in USS based on the last modification time." + + " N - specify an exact number of days, +N - older than N days, -N - newer than N days ", + SIZE: "Filters content in USS based on the size." + + " Default units are bytes. Add a suffix of K for kilobytes, M for megabytes, or G for gigabytes." + + " N - specify an exact file size, +N - larger than N size, -N - smaller than N size", + PERM: "Filters content in USS based on the octal permissions string.", + TYPE: "Filters content in USS based on the type of content." + + " f - regular file, d - directory, l - symbolic link, p - FIFO named pipe, s - socket", + DEPTH: "Filters content in USS based on the number of directories to traverse down.", + FILESYS: "Filters content in USS based on the filesystem the data is on." + + " true - all filesystems, false - same filesystem as search directory.", + SYMLINKS: "Filters content in USS based on whether or not to follow symbolic links. true - report symlinks, false - follow symlinks" + } + }, + MOUNT: { + SUMMARY: "Mount file systems", + DESCRIPTION: "Mount z/OS UNIX file systems, such as HFS, ZFS, and more. This connects you to USS file systems.", + ACTIONS: { + FS: { + SUMMARY: "Mount a file system", + DESCRIPTION: "Mount a UNIX file system on a specified directory.", + POSITIONALS: { + FILESYSTEMNAME: "The name of the file system to mount.", + MOUNTPOINT: "The directory to use as a mount point." + }, + EXAMPLES: { + EX1: `Mount a z/OS file system using default options`, + EX2: `Mount a hierarchical file system with write access` + }, + OPTIONS: { + FSTYPE: "Specify the file system type that you are going to mount. The name must match the TYPE operand on a FILESYSTYPE" + + " statement in the BPXPRMxx parmlib member for the file system.", + MODE: "Specify the mode for mounting the file system (rdonly - read-only, rdwr - read/write)." + } + } + } + }, + OPTIONS: { + RESPONSETIMEOUT: "The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response." + + " Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600" + }, + UNMOUNT: { + SUMMARY: "Unmount file systems", + DESCRIPTION: "Unmount file systems, such as HFS, ZFS, and more. This disconnects you from USS file systems.", + ACTIONS: { + FS: { + SUMMARY: "Unmount a file system", + DESCRIPTION: "Unmount a UNIX file system.", + POSITIONALS: { + FILESYSTEMNAME: "The name of the file system to unmount." + }, + EXAMPLES: { + EX1: "Unmount a mounted file system" + } + } + } + }, + UPLOAD: { + DESCRIPTION: "Upload the contents of a file to data sets.", + ACTIONS: { + DIR_TO_PDS: { + DESCRIPTION: "Upload files from a local directory to a partitioned data set (PDS)", + POSITIONALS: { + INPUTDIR: "The path for a local directory that you want to upload to a PDS", + DATASETNAME: "The name of the partitioned data set to which you want to upload the files" + }, + EXAMPLES: { + EX1: `Upload a directory named "src" to a PDS named "ibmuser.src"`, + EX2: `Upload a directory named "src" to a migrated PDS named "ibmuser.src" and wait for it to be recalled` + } + }, + FILE_TO_DATA_SET: { + DESCRIPTION: "Upload the contents of a file to a z/OS data set", + POSITIONALS: { + INPUTFILE: "The local file that you want to upload to a data set", + DATASETNAME: "The name of the data set to which you want to upload the file" + }, + EXAMPLES: { + EX1: `Upload file contents to a sequential data set named "ibmuser.ps"`, + EX2: `Upload file contents to a PDS member named "ibmuser.pds(mem)"`, + EX3: `Upload file contents to a migrated data set and wait for it to be recalled` + } + }, + STDIN_TO_DATA_SET: { + DESCRIPTION: "Upload the content of a stdin to a z/OS data set", + POSITIONALS: { + DATASETNAME: "The name of the data set to which you want to upload data" + }, + EXAMPLES: { + EX1: `Stream content from stdin to a sequential data set named "ibmuser.ps" from a Windows console`, + EX2: `Stream content from stdin to a partition data set member named "ibmuser.pds(mem)" from a Windows console`, + EX3: `Stream content from stdin to a migrated data set and wait for it to be recalled from a Windows console` + } + }, + FILE_TO_USS: { + DESCRIPTION: "Upload content to a USS file from local file", + POSITIONALS: { + INPUTFILE: "The local file that you want to upload to a USS file", + USSFILENAME: "The name of the USS file to which you want to upload the file" + }, + EXAMPLES: { + EX1: `Upload to the USS file "/a/ibmuser/my_text.txt" from the file "file.txt"` + } + }, + DIR_TO_USS: { + SUMMARY: "Upload a local directory to a USS directory", + DESCRIPTION: "Upload a local directory to a USS directory.\n\n" + + "An optional .zosattributes file in the source directory can be used to control file conversion and tagging.\n\n" + + "An example .zosattributes file:{{space}}{{space}}\n" + + "# pattern local-encoding remote-encoding{{space}}{{space}}\n" + + "# Don't upload the node_modules directory{{space}}{{space}}\n" + + "node_modules -{{space}}{{space}}\n" + + "# Don't upload files that start with periods{{space}}{{space}}\n" + + ".* -{{space}}{{space}}\n" + + "# Upload jpg images in binary{{space}}{{space}}\n" + + "*.jpg binary binary{{space}}{{space}}\n" + + "# Convert CICS Node.js profiles to EBCDIC{{space}}{{space}}\n" + + "*.profile ISO8859-1 EBCDIC{{space}}{{space}}\n\n" + + "Lines starting with the ‘#’ character are comments. Each line can specify up to three positional attributes:\n" + + "{{bullet}} A pattern to match a set of files. Pattern-matching syntax follows the same rules as those that apply " + + "in .gitignore files (note that negated patterns that begin with ‘!’ are not supported). " + + "See https://git-scm.com/docs/gitignore#_pattern_format.\n" + + "{{bullet}} A local-encoding to identify a file’s encoding on the local workstation. If '-' is specified for local-encoding," + + "files that match the pattern are not transferred.\n" + + "{{bullet}} A remote-encoding to specify the file’s desired character set on USS. This attribute must either match the local " + + "encoding or be set to EBCDIC. If set to EBCDIC, files are transferred in text mode and converted, otherwise they are " + + "transferred in binary mode. Remote files are tagged either with the remote encoding or as binary.\n\n" + + "A .zosattributes file can either be placed in the top-level directory you want to upload, or its location can be specified by " + + "using the --attributes parameter. .zosattributes files that are placed in nested directories are ignored.\n", + POSITIONALS: { + INPUTDIR: "The local directory path that you want to upload to a USS directory", + USSDIR: "The name of the USS directory to which you want to upload the local directory" + }, + EXAMPLES: { + EX1: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory`, + EX2: `Upload all files from the "local_dir" directory and all its sub-directories, ` + + `to the "/a/ibmuser/my_dir" USS directory`, + EX3: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory ` + + `in default ASCII mode, while specifying a list of file names (without path) to be uploaded in binary mode`, + EX4: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory ` + + `in binary mode, while specifying a list of file names (without path) to be uploaded in ASCII mode`, + EX5: `Recursively upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory, ` + + `specifying files to ignore and file encodings in the local file my_global_attributes` + } + } + }, + OPTIONS: { + VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + + "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", + BINARY: "Data content in binary mode, which means that no data conversion is performed. The data transfer process " + + "returns each record as-is, without translation. No delimiters are added between records.", + RECORD: "Data content in record mode, which means that no data conversion is performed and the record length is prepended" + + " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + + " Conflicts with binary.", + ENCODING: "Data content in encoding mode, which means that data conversion is performed according to the encoding specified.", + RECALL: "The method by which migrated data set is handled. By default, a migrated data set is recalled synchronously. You can " + + "specify the following values: wait, nowait, error", + RECURSIVE: "Upload all directories recursively.", + BINARY_FILES: "Comma separated list of file names to be uploaded in binary mode. " + + "Use this option when you upload a directory in default ASCII mode, " + + "but you want to specify certain files to be uploaded in binary mode. " + + "All files matching specified file names will be uploaded in binary mode. " + + "If a .zosattributes file (or equivalent file specified via --attributes) is present, " + + "--binary-files will be ignored.", + ASCII_FILES: "Comma separated list of file names to be uploaded in ASCII mode. " + + "Use this option when you upload a directory with --binary/-b flag, " + + "but you want to specify certain files to be uploaded in ASCII mode. " + + "All files matching specified file names will be uploaded in ASCII mode. " + + "If a .zosattributes file (or equivalent file specified via --attributes) is present, " + + "--ascii-files will be ignored.", + ATTRIBUTES: "Path of an attributes file to control how files are uploaded", + MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to upload files." + + " Increasing the value results in faster uploads. " + + "However, increasing the value increases resource consumption on z/OS and can be prone " + + "to errors caused by making too many concurrent requests. If the upload process encounters an error, " + + "the following message displays:\n" + + "The maximum number of TSO address spaces have been created. When you specify 0, " + + Constants_1.Constants.DISPLAY_NAME + " attempts to upload all members at once" + + " without a maximum number of concurrent requests. ", + INCLUDE_HIDDEN: "Include hidden files and folders that have names beginning with a dot" + } + }, + VIEW: { + SUMMARY: "View the contents of a data set or USS file", + DESCRIPTION: "View the contents of a data set or USS file on your terminal (stdout).", + ACTIONS: { + DATA_SET: { + SUMMARY: "View content from a z/OS data set", + DESCRIPTION: "View content from a z/OS data set on your terminal (stdout).", + POSITIONALS: { + DATASETNAME: "The name of the data set you want to display." + }, + EXAMPLES: { + EX1: `View the contents of the data set member "ibmuser.cntl(iefbr14)"`, + EX2: `View the contents of the data set member "ibmuser.test.loadlib(main)" in binary mode`, + EX3: `View only the first two lines of content for data set member "ibmuser.cntl(iefbr14)"`, + EX4: `View only lines six through eight (zero-based) in the contents of the data set member "ibmuser.cntl(iefbr14)"` + } + }, + USS_FILE: { + SUMMARY: "View content from a USS file", + DESCRIPTION: "View content from a Unix System Services (USS) file on your terminal (stdout).", + POSITIONALS: { + USSFILE: "The name of the USS file you want to display." + }, + EXAMPLES: { + EX1: `View the contents of the USS file "/a/ibmuser/my_text.txt"`, + EX2: `View the contents of the USS file "/a/ibmuser/MyJavaClass.class" in binary mode` + } + } + }, + OPTIONS: { + BINARY: "Transfer the file content in binary mode (no EBCDIC to ASCII conversion).", + ENCODING: "Transfer the file content with encoding mode, which means that data conversion is performed using the file encoding " + + "specified.", + RECORD: "Transfer the file content in record mode, which means that no data conversion is performed and the record length is prepended" + + " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + + " Conflicts with binary.", + VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + + "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", + RANGE: "The range of records to return in either `SSS-EEE` or `SSS,NNN` format. SSS identifies the start record, EEE " + + "identifies the end record, and NNN identifies the number of retrieved records." + } + }, + EDIT: { + SUMMARY: "Edit the contents of a data set or USS file", + DESCRIPTION: "Edit the contents of a data set or USS file with your terminal and default editor.", + ACTIONS: { + DATA_SET: { + SUMMARY: "Edit content from a z/OS data set", + DESCRIPTION: "Edit content from a z/OS data set with your terminal and default editor.", + POSITIONALS: { + DATASETNAME: "The name of the data set you want to edit." + }, + EXAMPLES: { + EX1: `Edit the contents of the data set member "ibmuser.cntl(iefbr14)"`, + EX2: `Edit the contents of the USS file "ibmuser.jcl(iefbr14)" and set extension as "jcl"`, + } + }, + USS_FILE: { + SUMMARY: "Edit content from a USS file", + DESCRIPTION: "Edit content from a Unix System Services (USS) file with your terminal and default editor.", + POSITIONALS: { + USSFILEPATH: "The path of the USS file you want to edit." + }, + EXAMPLES: { + EX1: `Edit the contents of the USS file "/a/ibmuser/my_text.txt" in notepad`, + EX2: `Edit the contents of the USS file "/a/ibmuser/my_jcl.jcl" in notepad and set extension as "jcl"`, + } + } + }, + OPTIONS: { + EDITOR: `Set the default editor that you wish to use for editing. Set the option to the editor's executable file location ` + + `or the program's name: ie "--editor notepad"`, + EXTENSION: `Set the file extension of the file for editing to leverage an editor's file-type-specific formatting: ` + + `ie "--extension jcl"` + } + }, + COMPARE: { + SUMMARY: "Compare the contents of a two data set members", + DESCRIPTION: "Compare the contents of a two data set members on your terminal (stdout).", + ACTIONS: { + DATA_SET: { + SUMMARY: "Compare content of two z/OS data sets", + DESCRIPTION: "Compare content of two z/OS data sets on your terminal (stdout).", + POSITIONALS: { + DATASETNAME1: "The name of the first data set you want to compare.", + DATASETNAME2: "The name of the second data set you want to compare." + }, + EXAMPLES: { + EX1: `Compare the contents of the data set members "sys1.samplib(antptso)" and "sys1.samplib(antxtso)"`, + EX2: `Compare the contents of the data set members "sys1.samplib(antptso)" and "sys1.samplib(antxtso)" without sequence numbers` + } + }, + LOCAL_FILE_DATA_SET: { + SUMMARY: "Compare content of a local file and a z/os dataset", + DESCRIPTION: "Compare content of a local file and a z/os dataset on your terminal (stdout).", + POSITIONALS: { + LOCALFILEPATH: "The path of the local file you want to compare.", + DATASETNAME: "The name of the data set you want to compare." + }, + EXAMPLES: { + EX1: `Compare the contents of the local file and the data set member "./a.txt" and "sys1.samplib(antxtso)"`, + EX2: `Compare the contents of the local file and the data set member "./a.txt" and "sys1.samplib(antxtso)"` + + `without sequence numbers` + } + }, + USS_FILE: { + SUMMARY: "Compare content of a local file and a z/os uss files", + DESCRIPTION: "Compare the contents of a two uss files on your terminal (stdout). browser.", + POSITIONALS: { + USSFILEPATH1: "The path of the first uss file you want to compare.", + USSFILEPATH2: "The path of the second uss file you want to compare." + }, + EXAMPLES: { + EX1: `Compare the contents of the uss file "/u/user/test.txt" and "/u/user/test.txt"`, + EX2: `Compare the contents of the uss file "/u/user/test.txt" and "/u/user/test.txt" without sequence numbers` + } + }, + LOCAL_FILE_USS_FILE: { + SUMMARY: "Compare content of a local file and a z/os uss file", + DESCRIPTION: "Compare content of a local file and a z/os uss file on your terminal (stdout).", + POSITIONALS: { + LOCALFILEPATH: "The path of the local file you want to compare.", + USSFILEPATH: "The path of the uss file set you want to compare." + }, + EXAMPLES: { + EX1: `Compare the contents of the local file and the uss file "./a.txt" and "/u/user/test.txt"`, + EX2: `Compare the contents of the local file and the uss file "./a.txt" and "/u/user/test.txt"` + + `without sequence numbers` + } + }, + SPOOL_DD: { + SUMMARY: "Compare content of two spool dds", + DESCRIPTION: "Compare content of two spool dds on your terminal (stdout).", + POSITIONALS: { + SPOOLDDDESCRIPTION1: "The name of the first job with the id of spool dd", + SPOOLDDDESCRIPTION2: "The name of the second job with the id of spool dd" + }, + EXAMPLES: { + EX1: `Compare the contents of the two spool dds "jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"`, + EX2: `Compare the contents of the two spool dds "jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"` + + `without sequence numbers` + } + }, + LOCAL_FILE_SPOOL_DD: { + SUMMARY: "Compare content of a local file and a spool dd", + DESCRIPTION: "Compare content of a local-file and a spool-dd on your terminal (stdout).", + POSITIONALS: { + LOCALFILEPATH: "The path of the local file you want to compare.", + SPOOLDDDESCRIPTION: "The name of the job with the id of spool dd" + }, + EXAMPLES: { + EX1: `Compare the contents of a local-file and a spool dd "./a.txt" "jobName:jobId:spoolId"`, + EX2: `Compare the contents of a local-file and a spool dd "./a.txt" "jobName:jobId:spoolId"` + + `without sequence numbers` + } + }, + }, + OPTIONS: { + BINARY: "Transfer the content of the first data set in binary mode (no EBCDIC to ASCII conversion). If binary mode is set " + + "and the binary2 flag is not set then both datasets are transferred in binary mode.", + BINARY2: "Transfer the content of the second data set in binary mode.", + ENCODING: "Transfer the content of the first data set with encoding mode, which means that data conversion is performed " + + "using the file encoding specified. If encoding mode is set and the encoding2 flag is not set both data sets are " + + "transferred in encoding mode.", + ENCODING2: "Transfer the content of the second data set with encoding mode.", + RECORD: "Transfer the content for the first data set in record mode, which means that no data conversion is performed and the record " + + "length is prepended to the data. The data transfer process returns each line as-is, without translation. No delimiters are " + + "added between records. If encoding mode is set and the encoding2 flag is not set both data sets are transferred in " + + "encoding mode. This option conflicts with binary mode.", + RECORD2: "Transfer the content for the second data set in record mode. Conflicts with binary2.", + VOLUME: "The volume serial (VOLSER) where the first data set resides. You can use this option at any time. However, the " + + "VOLSER is required only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", + VOLUME2: "The volume serial (VOLSER) where the second data set resides.", + SEQNUM: "If you are comparing two files that contain sequence numbers, this option controls if the sequences numbers are " + + "removed from the end of each string. The default is to keep the sequence numbers. Use the --no-seqnum option to not " + + "include them.", + CONTEXTLINES: "The number of context lines that display before and after detected non-matching lines. By default all matching " + + "lines display. If you want to limit the amount of data returned to only lines with differences use the context " + + "lines option to reduce the matching lines to only those before and after non-matching lines. Using the value " + + "of 0 strips all matching lines.", + BROWSERVIEW: "Opens the diffs between two given files in browser" + } + }, + HMIGRATE: { + DESCRIPTION: "Migrate data sets.", + ACTIONS: { + DATA_SET: { + DESCRIPTION: "Migrate a data set.", + POSITIONALS: { + DATASETNAME: "The name of the data set you want to migrate." + }, + EXAMPLES: { + EX1: `Migrate a data set using default options` + } + } + }, + OPTIONS: { + WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued." + } + }, + HRECALL: { + DESCRIPTION: "Recall migrated data sets.", + ACTIONS: { + DATA_SET: { + DESCRIPTION: "Recall a migrated data set.", + POSITIONALS: { + DATASETNAME: "The name of the data set you want to recall." + }, + EXAMPLES: { + EX1: `Recall a data set using default options` + } + } + }, + OPTIONS: { + WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued." + } + }, + RENAME: { + DESCRIPTION: "Rename a data set or member.", + ACTIONS: { + DATA_SET: { + DESCRIPTION: "Rename a data set.", + POSITIONALS: { + BEFOREDSNAME: "The name of the data set that you want to rename.", + AFTERDSNAME: "The name you want to rename the data set to." + }, + OPTIONS: {}, + EXAMPLES: { + EX1: "Rename the data set named 'USER.BEFORE.SET' to 'USER.AFTER.SET.'" + } + }, + DATA_SET_MEMBER: { + DESCRIPTION: "Rename a data set member.", + POSITIONALS: { + DSNAME: "The name of the data set the member belongs to.", + BEFOREMEMBERNAME: "The name of the data set member that you want to rename.", + AFTERMEMBERNAME: "The name you want to rename the data set member to." + }, + OPTIONS: {}, + EXAMPLES: { + EX1: "In the data set 'USER.DATA.SET', rename the member named 'MEM1' to 'MEM2'." + } + } + } + } +}; +//# sourceMappingURL=en.js.map \ No newline at end of file diff --git a/lib/zosfiles/-strings-/en.js.map b/lib/zosfiles/-strings-/en.js.map new file mode 100644 index 0000000000..059a2dc087 --- /dev/null +++ b/lib/zosfiles/-strings-/en.js.map @@ -0,0 +1 @@ +{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/zosfiles/-strings-/en.ts"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gB,EAAE,0DAA0D;oBAC5E,eAAe,EAAE,qDAAqD;iBACzE;gBACD,OAAO,EAAE,EACR;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE,4EAA4E;iBACpF;aACJ;SACJ;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.definition.d.ts b/lib/zosfiles/compare/Compare.definition.d.ts new file mode 100644 index 0000000000..2e0d7ba2bb --- /dev/null +++ b/lib/zosfiles/compare/Compare.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const CompareDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/Compare.definition.js b/lib/zosfiles/compare/Compare.definition.js new file mode 100644 index 0000000000..733f4fa448 --- /dev/null +++ b/lib/zosfiles/compare/Compare.definition.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompareDefinition = void 0; +const Dataset_definition_1 = require("./ds/Dataset.definition"); +const LocalfileDataset_definition_1 = require("./lf-ds/LocalfileDataset.definition"); +const UssFile_definition_1 = require("./uss/UssFile.definition"); +const LocalfileUss_definition_1 = require("./lf-uss/LocalfileUss.definition"); +const Spooldd_definition_1 = require("./sdd/Spooldd.definition"); +const LocalfileSpooldd_definition_1 = require("./lf-sdd/LocalfileSpooldd.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.COMPARE; +/** + * Compare group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.CompareDefinition = { + name: "compare", + aliases: ["cmp"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Dataset_definition_1.DatasetDefinition, + LocalfileDataset_definition_1.LocalfileDatasetDefinition, + UssFile_definition_1.UssFileDefinition, + LocalfileUss_definition_1.LocalfileUssFileDefinition, + Spooldd_definition_1.SpoolddDefinition, + LocalfileSpooldd_definition_1.LocalfileSpoolddDefinition + ], +}; +//# sourceMappingURL=Compare.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.definition.js.map b/lib/zosfiles/compare/Compare.definition.js.map new file mode 100644 index 0000000000..93bee18780 --- /dev/null +++ b/lib/zosfiles/compare/Compare.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Compare.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/Compare.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAC1D,qFAAiF;AACjF,iEAA2D;AAC3D,8EAA8E;AAC9E,iEAA6D;AAC7D,sFAAkF;AAIlF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,wDAA0B;QAC1B,sCAAiB;QACjB,oDAA0B;QAC1B,sCAAiB;QACjB,wDAA0B;KAC7B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.options.d.ts b/lib/zosfiles/compare/Compare.options.d.ts new file mode 100644 index 0000000000..b82e8cc64b --- /dev/null +++ b/lib/zosfiles/compare/Compare.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the Compare API + */ +export declare const CompareOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/compare/Compare.options.js b/lib/zosfiles/compare/Compare.options.js new file mode 100644 index 0000000000..27c0717570 --- /dev/null +++ b/lib/zosfiles/compare/Compare.options.js @@ -0,0 +1,133 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompareOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.COMPARE.OPTIONS; +/** + * Object containing all options to be used by the Compare API + */ +exports.CompareOptions = { + /** + * The binary option + * @type {ICommandOptionDefinition} + */ + binary: { + name: "binary", + aliases: ["b"], + description: strings.BINARY, + type: "boolean" + }, + /** + * The binary option for file 2 + * @type {ICommandOptionDefinition} + */ + binary2: { + name: "binary2", + aliases: ["b2"], + description: strings.BINARY2, + type: "boolean" + }, + /** + * The encoding option + * @type {ICommandOptionDefinition} + */ + encoding: { + name: "encoding", + aliases: ["ec"], + description: strings.ENCODING, + type: "string" + }, + /** + * The encoding option for file 2 + * @type {ICommandOptionDefinition} + */ + encoding2: { + name: "encoding2", + aliases: ["ec2"], + description: strings.ENCODING2, + type: "string" + }, + /** + * The record option + * @type {ICommandOptionDefinition} + */ + record: { + name: "record", + aliases: ["r"], + description: strings.RECORD, + type: "boolean", + conflictsWith: ["binary"] + }, + /** + * The record option for file 2 + * @type {ICommandOptionDefinition} + */ + record2: { + name: "record2", + aliases: ["r2"], + description: strings.RECORD2, + type: "boolean", + conflictsWith: ["binary2"] + }, + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volume: { + name: "volume-serial", + aliases: ["vs"], + description: strings.VOLUME, + type: "string" + }, + /** + * The volume serial for file 2 + * @type {ICommandOptionDefinition} + */ + volume2: { + name: "volume-serial2", + aliases: ["vs2"], + description: strings.VOLUME2, + type: "string" + }, + /** + * The seqnum option + * @type {ICommandOptionDefinition} + */ + seqnum: { + name: "seqnum", + aliases: ["sn"], + description: strings.SEQNUM, + defaultValue: true, + type: "boolean" + }, + /** + * The contextlines option + * @type {ICommandOptionDefinition} + */ + contextLines: { + name: "context-lines", + aliases: ["cl"], + description: strings.CONTEXTLINES, + type: "number" + }, + /** + * Open in browser option + */ + browserView: { + name: "browser-view", + aliases: ["bv"], + description: strings.BROWSERVIEW, + type: "boolean" + } +}; +//# sourceMappingURL=Compare.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.options.js.map b/lib/zosfiles/compare/Compare.options.js.map new file mode 100644 index 0000000000..a8f6affeaf --- /dev/null +++ b/lib/zosfiles/compare/Compare.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Compare.options.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/Compare.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC,OAAO,CAAC;AAE3F;;GAEG;AACU,QAAA,cAAc,GAAgD;IAEvE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,SAA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pB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBase.handler.d.ts b/lib/zosfiles/compare/CompareBase.handler.d.ts new file mode 100644 index 0000000000..30067f615e --- /dev/null +++ b/lib/zosfiles/compare/CompareBase.handler.d.ts @@ -0,0 +1,38 @@ +/// +import { AbstractSession, ICommandArguments, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../ZosFilesBase.handler"; +import { CompareBaseHelper } from "./CompareBaseHelper"; +/** + * This class is used by the various zosfiles-compare handlers as the base class for their implementation. + * All handlers within zosfiles-compare should extend this class. + * + * This class should not be used outside of the zosfiles-compare package. + * + * @private + */ +export declare abstract class CompareBaseHandler extends ZosFilesBaseHandler { + /** + * This will grab the zosmf profile and create a session before calling the subclass + * {@link ZosFilesBaseHandler#processWithSession} method. + * + * @param {IHandlerParameters} commandParameters Command parameters sent by imperative. + * + * @returns {Promise} + */ + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; + /** + * Abstract method required for compare handlers to determine how they gather the contents of the file/dataset to compare + * @param session Gives access to the session object in case the handler needs to submit a request to get the first file + * @param args Command arguments required for getting the dataset, filepath, or spool descriptor + * @param helper CompareBaseHelper instance to access prepare- functions + */ + abstract getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + /** + * Abstract method required for compare handlers to determine how they gather the contents of the file/dataset to compare + * @param session Gives access to the session object in case the handler needs to submit a request to get the contents + * @param args Command arguments required for getting the dataset, filepath, or spool descriptor + * @param helper CompareBaseHelper instance to access prepare- functions + */ + abstract getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/CompareBase.handler.js b/lib/zosfiles/compare/CompareBase.handler.js new file mode 100644 index 0000000000..6753509b0f --- /dev/null +++ b/lib/zosfiles/compare/CompareBase.handler.js @@ -0,0 +1,62 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompareBaseHandler = void 0; +const imperative_1 = require("@zowe/imperative"); +const ZosFilesBase_handler_1 = require("../ZosFilesBase.handler"); +const CompareBaseHelper_1 = require("./CompareBaseHelper"); +/** + * This class is used by the various zosfiles-compare handlers as the base class for their implementation. + * All handlers within zosfiles-compare should extend this class. + * + * This class should not be used outside of the zosfiles-compare package. + * + * @private + */ +class CompareBaseHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + /** + * This will grab the zosmf profile and create a session before calling the subclass + * {@link ZosFilesBaseHandler#processWithSession} method. + * + * @param {IHandlerParameters} commandParameters Command parameters sent by imperative. + * + * @returns {Promise} + */ + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const helper = new CompareBaseHelper_1.CompareBaseHelper(commandParameters); + helper.task = { + percentComplete: 0, + statusMessage: `Retrieving content for the first file/dataset`, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task: helper.task }); + const fileContent1 = yield this.getFile1(session, commandParameters.arguments, helper); + commandParameters.response.progress.endBar(); + commandParameters.response.progress.startBar({ task: helper.task }); + helper.task.statusMessage = `Retrieving content for the second file/dataset`; + const fileContent2 = yield this.getFile2(session, commandParameters.arguments, helper); + return helper.getResponse(helper.prepareContent(fileContent1), helper.prepareContent(fileContent2)); + }); + } +} +exports.CompareBaseHandler = CompareBaseHandler; +//# sourceMappingURL=CompareBase.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBase.handler.js.map b/lib/zosfiles/compare/CompareBase.handler.js.map new file mode 100644 index 0000000000..3ef3e55ec7 --- /dev/null +++ b/lib/zosfiles/compare/CompareBase.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CompareBase.handler.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/CompareBase.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,iDAAqG;AAErG,kEAA8D;AAC9D,2DAAwD;AAExD;;;;;;;GAOG;AACH,MAAsB,kBAAmB,SAAQ,0CAAmB;IAChE;;;;;;;OAOG;IACU,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,MAAM,GAAG,IAAI,qCAAiB,CAAC,iBAAiB,CAAC,CAAC;YACxD,MAAM,CAAC,IAAI,GAAG;gBACV,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,+CAA+C;gBAC9D,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YAEpE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACvF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC7C,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YAEpE,MAAM,CAAC,IAAI,CAAC,aAAa,GAAG,gDAAgD,CAAC;YAC7E,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAEvF,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;QACxG,CAAC;KAAA;CAyBJ;AApDD,gDAoDC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBaseHelper.d.ts b/lib/zosfiles/compare/CompareBaseHelper.d.ts new file mode 100644 index 0000000000..5d30abe1c6 --- /dev/null +++ b/lib/zosfiles/compare/CompareBaseHelper.d.ts @@ -0,0 +1,93 @@ +/// +import { IHandlerParameters, ITaskWithStatus, IDiffOptions, IDiffNameOptions } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ICompareFileOptions } from "./doc/ICompareFileOptions"; +/** + * Base helper for compare command to handle common operations through the comparison + * @export + */ +export declare class CompareBaseHelper { + /** + * file compare option for file1 + * @public + * @memberof CompareBaseHelper + */ + file1Options: ICompareFileOptions; + /** + * file compare option for file2 + * @public + * @memberof CompareBaseHelper + */ + file2Options: ICompareFileOptions; + /** + * responseTimeout option + * @public + * @memberof CompareBaseHelper + */ + responseTimeout: number; + /** + * seqnum option + * @public + * @memberof CompareBaseHelper + */ + seqnum: boolean; + /** + * contextLines option + * @private + * @memberof CompareBaseHelper + */ + contextLines: number; + /** + * browserView option + * @private + * @memberof CompareBaseHelper + */ + browserView: boolean; + /** + * task + * @private + * @memberof CompareBaseHelper + */ + task: ITaskWithStatus; + /** + * Creates an instance of CompareBaseHelper + * @param {IHandlerParameters} commandParameters Command parameters sent to the handler + * @memberof CompareBaseHelper + */ + constructor(commandParameters: IHandlerParameters); + /** + * Parse the spool description and split them into individual properties + * @param spoolDescription Colon-separated (:) spool descriptor + * @returns Object containing the name, job id, and spool id + */ + prepareSpoolDescriptor(spoolDescription: string): { + jobName: string; + jobId: string; + spoolId: number; + }; + /** + * Helper function that compare-related handlers will use to get the contents of a local file + * @param filePath Path to the file to compare against + * @returns Buffer with the contents of the file + */ + prepareLocalFile(filePath: string): Buffer; + /** + * This method will prepare the strings for comparison ready + * @param {string | Buffer } content - Content string or buffer of file 1 + * @param {string | Buffer } content2 - - Content string or buffer of file 2 + * @returns + * @public + * @memberof CompareBaseHelper + */ + prepareContent(content: string | Buffer): string; + /** + * To get the difference string in terminal or in browser + * @param {string} string1 - string of file 1 content + * @param {string} string2 - string of file 2 content + * @param {IDiffOptions} options + * @returns {IZosFilesResponse} + * @public + * @memberof CompareBaseHelper + */ + getResponse(string1: string, string2: string, options?: IDiffOptions | IDiffNameOptions): Promise; +} diff --git a/lib/zosfiles/compare/CompareBaseHelper.js b/lib/zosfiles/compare/CompareBaseHelper.js new file mode 100644 index 0000000000..fbd4a42f6a --- /dev/null +++ b/lib/zosfiles/compare/CompareBaseHelper.js @@ -0,0 +1,176 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CompareBaseHelper = void 0; +const path = require("path"); +const fs = require("fs"); +const imperative_1 = require("@zowe/imperative"); +/** + * Base helper for compare command to handle common operations through the comparison + * @export + */ +class CompareBaseHelper { + /** + * Creates an instance of CompareBaseHelper + * @param {IHandlerParameters} commandParameters Command parameters sent to the handler + * @memberof CompareBaseHelper + */ + constructor(commandParameters) { + var _a; + /** + * file compare option for file1 + * @public + * @memberof CompareBaseHelper + */ + this.file1Options = {}; + /** + * file compare option for file2 + * @public + * @memberof CompareBaseHelper + */ + this.file2Options = {}; + this.file1Options.binary = commandParameters.arguments.binary; + this.file2Options.binary = commandParameters.arguments.binary2; + this.file1Options.encoding = commandParameters.arguments.encoding; + this.file2Options.encoding = commandParameters.arguments.encoding2; + this.file1Options.record = commandParameters.arguments.record; + this.file2Options.record = commandParameters.arguments.record2; + this.file1Options.volumeSerial = commandParameters.arguments.volumeSerial; + this.file2Options.volumeSerial = commandParameters.arguments.volumeSerial2; + if (((_a = this.file2Options) === null || _a === void 0 ? void 0 : _a.binary) == null) { + this.file2Options.binary = this.file1Options.binary; + } + if (this.file2Options.encoding == null) { + this.file2Options.encoding = this.file1Options.encoding; + } + if (this.file2Options.record == null) { + this.file2Options.record = this.file1Options.record; + } + this.seqnum = commandParameters.arguments.seqnum; + this.browserView = commandParameters.arguments.browserView; + this.contextLines = commandParameters.arguments.contextLines; + this.responseTimeout = commandParameters.arguments.responseTimeout; + this.file1Options.responseTimeout = this.responseTimeout; + this.file2Options.responseTimeout = this.responseTimeout; + // Clear undefined properties + this.file1Options = JSON.parse(JSON.stringify(this.file1Options)); + this.file2Options = JSON.parse(JSON.stringify(this.file2Options)); + } + /** + * Parse the spool description and split them into individual properties + * @param spoolDescription Colon-separated (:) spool descriptor + * @returns Object containing the name, job id, and spool id + */ + prepareSpoolDescriptor(spoolDescription) { + const descriptionSeparator = ":"; + const spoolDescArr = spoolDescription.split(descriptionSeparator); + const jobName = spoolDescArr[0]; + const jobId = spoolDescArr[1]; + const spoolId = Number(spoolDescArr[2]); + return { jobName, jobId, spoolId }; + } + /** + * Helper function that compare-related handlers will use to get the contents of a local file + * @param filePath Path to the file to compare against + * @returns Buffer with the contents of the file + */ + prepareLocalFile(filePath) { + const localFile = path.isAbsolute(filePath) ? filePath : path.resolve(filePath); + let lfContentBuf; + let localFileHandle; + try { + try { + // check if the path given is of a file or not + localFileHandle = fs.openSync(localFile, 'r'); + if (!fs.fstatSync(localFileHandle).isFile()) { + throw new imperative_1.ImperativeError({ + msg: 'Path is not of a file. Please check the path and try again' + }); + } + } + catch (error) { + if (error instanceof imperative_1.ImperativeError) + throw error; + throw new imperative_1.ImperativeError({ + msg: 'Path not found. Please check the path and try again' + }); + } + // reading local file as buffer + lfContentBuf = fs.readFileSync(localFileHandle); + } + finally { + if (localFileHandle != null) + fs.closeSync(localFileHandle); + } + return lfContentBuf; + } + /** + * This method will prepare the strings for comparison ready + * @param {string | Buffer } content - Content string or buffer of file 1 + * @param {string | Buffer } content2 - - Content string or buffer of file 2 + * @returns + * @public + * @memberof CompareBaseHelper + */ + prepareContent(content) { + let contentString = content.toString(); + if (this.seqnum === false) { + const seqnumlen = 8; + contentString = content.toString().split("\n").map((line) => line.slice(0, -seqnumlen)).join("\n"); + } + return contentString; + } + /** + * To get the difference string in terminal or in browser + * @param {string} string1 - string of file 1 content + * @param {string} string2 - string of file 2 content + * @param {IDiffOptions} options + * @returns {IZosFilesResponse} + * @public + * @memberof CompareBaseHelper + */ + getResponse(string1, string2, options) { + return __awaiter(this, void 0, void 0, function* () { + // CHECKING IF THE BROWSER VIEW IS TRUE, OPEN UP THE DIFFS IN BROWSER + if (this.browserView) { + yield imperative_1.DiffUtils.openDiffInbrowser(string1, string2, options); + return { + success: true, + commandResponse: "Launching data-sets diffs in browser...", + apiResponse: {} + }; + } + const jsonDiff = yield imperative_1.DiffUtils.getDiffString(string1, string2, { + outputFormat: 'terminal', + contextLinesArg: this.contextLines, + name1: options === null || options === void 0 ? void 0 : options.name1, + name2: options === null || options === void 0 ? void 0 : options.name2 + }); + return { + success: true, + commandResponse: jsonDiff, + apiResponse: {} + }; + }); + } +} +exports.CompareBaseHelper = CompareBaseHelper; +//# sourceMappingURL=CompareBaseHelper.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBaseHelper.js.map b/lib/zosfiles/compare/CompareBaseHelper.js.map new file mode 100644 index 0000000000..3958b56f36 --- /dev/null +++ b/lib/zosfiles/compare/CompareBaseHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CompareBaseHelper.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/CompareBaseHelper.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,6BAA6B;AAC7B,yBAAyB;AACzB,iDAAmI;AAInI;;;GAGG;AACH,MAAa,iBAAiB;IAmD1B;;;;OAIG;IACH,YAAY,iBAAqC;;QAtDjD;;;;WAIG;QACI,iBAAY,GAAwB,EAAE,CAAC;QAE9C;;;;WAIG;QACI,iBAAY,GAAwB,EAAE,CAAC;QA2C1C,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC;QAC9D,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC;QAC/D,IAAI,CAAC,YAAY,CAAC,QAAQ,GAAG,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC;QAClE,IAAI,CAAC,YAAY,CAAC,QAAQ,GAAG,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC;QACnE,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC;QAC9D,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC;QAC/D,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1E,IAAI,CAAC,YAAY,CAA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Options.d.ts b/lib/zosfiles/compare/doc/ICompareFileOptions.d.ts new file mode 100644 index 0000000000..74c07d42f7 --- /dev/null +++ b/lib/zosfiles/compare/doc/ICompareFileOptions.d.ts @@ -0,0 +1,14 @@ +import { IZosFilesOptions } from "@zowe/zos-files-for-zowe-sdk"; +/** + * These are the options to be used in file comaparison to handle the + * binary, encoding, record and volumeSerial operations in the comparison process + * + * @exports + * @interface ICompareFileOptions + */ +export interface ICompareFileOptions extends IZosFilesOptions { + binary?: boolean; + encoding?: string; + record?: boolean; + volumeSerial?: string; +} diff --git a/lib/zosfiles/compare/doc/ICompareFileOptions.js b/lib/zosfiles/compare/doc/ICompareFileOptions.js new file mode 100644 index 0000000000..d0bffc1ed3 --- /dev/null +++ b/lib/zosfiles/compare/doc/ICompareFileOptions.js @@ -0,0 +1,13 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ICompareFileOptions.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/doc/ICompareFileOptions.js.map b/lib/zosfiles/compare/doc/ICompareFileOptions.js.map new file mode 100644 index 0000000000..2cdf99eacc --- /dev/null +++ b/lib/zosfiles/compare/doc/ICompareFileOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ICompareFileOptions.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/doc/ICompareFileOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.definition.d.ts b/lib/zosfiles/compare/ds/Dataset.definition.d.ts new file mode 100644 index 0000000000..61c5636664 --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/ds/Dataset.definition.js b/lib/zosfiles/compare/ds/Dataset.definition.js new file mode 100644 index 0000000000..583ab47c23 --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.definition.js @@ -0,0 +1,69 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DatasetDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DatasetDefinition = { + name: "data-set", + aliases: ["ds"], + summary: strings.ACTIONS.DATA_SET.SUMMARY, + description: strings.ACTIONS.DATA_SET.DESCRIPTION, + type: "command", + handler: __dirname + "/Dataset.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "dataSetName1", + description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME1, + type: "string", + required: true + }, + { + name: "dataSetName2", + type: "string", + description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME2, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.binary, + Compare_options_1.CompareOptions.binary2, + Compare_options_1.CompareOptions.encoding, + Compare_options_1.CompareOptions.encoding2, + Compare_options_1.CompareOptions.record, + Compare_options_1.CompareOptions.record2, + Compare_options_1.CompareOptions.volume, + Compare_options_1.CompareOptions.volume2, + Compare_options_1.CompareOptions.seqnum, + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, + options: `"sys1.samplib(antptso)" "sys1.samplib(antxtso)"` + }, + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX2, + options: `"sys1.samplib(antptso)" "sys1.samplib(antxtso)" --no-seqnum` + } + ] +}; +//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.definition.js.map b/lib/zosfiles/compare/ds/Dataset.definition.js.map new file mode 100644 index 0000000000..6c97e3b336 --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,QAAQ;QACvB,gCAAc,CAAC,SAAS;QACxB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,iDAAiD;SAC7D;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,6DAA6D;SACzE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.handler.d.ts b/lib/zosfiles/compare/ds/Dataset.handler.d.ts new file mode 100644 index 0000000000..6b0644e91e --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHandler } from "../CompareBase.handler"; +import { CompareBaseHelper } from '../CompareBaseHelper'; +/** + * Handler to view a data set's content + * @export + */ +export default class DatasetHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/ds/Dataset.handler.js b/lib/zosfiles/compare/ds/Dataset.handler.js new file mode 100644 index 0000000000..54f29f5836 --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to view a data set's content + * @export + */ +class DatasetHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName1, Object.assign(Object.assign({}, helper.file1Options), { task: helper.task })); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName2, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); + }); + } +} +exports.default = DatasetHandler; +//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.handler.js.map b/lib/zosfiles/compare/ds/Dataset.handler.js.map new file mode 100644 index 0000000000..9139210542 --- /dev/null +++ b/lib/zosfiles/compare/ds/Dataset.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AACnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts new file mode 100644 index 0000000000..6ddf0a291e --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare local files and data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const LocalfileDatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js new file mode 100644 index 0000000000..10f3fd73d3 --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js @@ -0,0 +1,65 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocalfileDatasetDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare local files and data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.LocalfileDatasetDefinition = { + name: "local-file-data-set", + aliases: ["lf-ds"], + summary: strings.ACTIONS.LOCAL_FILE_DATA_SET.SUMMARY, + description: strings.ACTIONS.LOCAL_FILE_DATA_SET.DESCRIPTION, + type: "command", + handler: __dirname + "/LocalfileDataset.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "localFilePath", + description: strings.ACTIONS.LOCAL_FILE_DATA_SET.POSITIONALS.LOCALFILEPATH, + type: "string", + required: true + }, + { + name: "dataSetName", + type: "string", + description: strings.ACTIONS.LOCAL_FILE_DATA_SET.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.binary, + Compare_options_1.CompareOptions.encoding, + Compare_options_1.CompareOptions.record, + Compare_options_1.CompareOptions.volume, + Compare_options_1.CompareOptions.seqnum, + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.LOCAL_FILE_DATA_SET.EXAMPLES.EX1, + options: `"./a.txt" "sys1.samplib(antxtso)"` + }, + { + description: strings.ACTIONS.LOCAL_FILE_DATA_SET.EXAMPLES.EX2, + options: `"./a.txt" "sys1.samplib(antxtso)" --no-seqnum` + } + ] +}; +//# sourceMappingURL=LocalfileDataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map new file mode 100644 index 0000000000..2064c10454 --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileDataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-ds/LocalfileDataset.definition.ts"],"names":[],"mappings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,CAAC,GAAG;YAC7D,OAAO,EAAE,+CAA+C;SAC3D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts new file mode 100644 index 0000000000..cd3286cf4b --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHelper } from '../CompareBaseHelper'; +import { CompareBaseHandler } from '../CompareBase.handler'; +/** + * Handler to compare a localfile and a dataset content + * @export + */ +export default class LocalfileDatasetHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js new file mode 100644 index 0000000000..f4f382f081 --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to compare a localfile and a dataset content + * @export + */ +class LocalfileDatasetHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return helper.prepareLocalFile(args.localFilePath); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); + }); + } +} +exports.default = LocalfileDatasetHandler; +//# sourceMappingURL=LocalfileDataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map new file mode 100644 index 0000000000..71653b243f --- /dev/null +++ b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileDataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-ds/LocalfileDataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AAEnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,uBAAwB,SAAQ,wCAAkB;IACtD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACvG,CAAC;KAAA;CACJ;AAPD,0CAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts new file mode 100644 index 0000000000..dae17067c6 --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare local-file-spool-dd command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const LocalfileSpoolddDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js new file mode 100644 index 0000000000..86cf2cad9c --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js @@ -0,0 +1,61 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocalfileSpoolddDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare local-file-spool-dd command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.LocalfileSpoolddDefinition = { + name: "local-file-spool-dd", + aliases: ["lf-sdd"], + summary: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.SUMMARY, + description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.DESCRIPTION, + type: "command", + handler: __dirname + "/LocalfileSpooldd.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "localFilePath", + description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.POSITIONALS.LOCALFILEPATH, + type: "string", + required: true + }, + { + name: "spoolDescription", + type: "string", + description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.seqnum, + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.EXAMPLES.EX1, + options: `"./a.txt" "jobName:jobId:spoolId"` + }, + { + description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.EXAMPLES.EX2, + options: `"./a.txt" "jobName:jobId:spoolId" --no-seqnum` + } + ] +}; +//# sourceMappingURL=LocalfileSpooldd.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map new file mode 100644 index 0000000000..7b76b23323 --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileSpooldd.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO;IACpD,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,aAAa;YAC1E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,kBAAkB;YAC/E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,mCAAmC;SAC/C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,+CAA+C;SAC3D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts new file mode 100644 index 0000000000..b3d3e2f093 --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHelper } from "../CompareBaseHelper"; +import { CompareBaseHandler } from "../CompareBase.handler"; +/** + * Handler to compare spooldd's content + * @export + */ +export default class LocalfileSpoolddHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js new file mode 100644 index 0000000000..9de16d90f3 --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js @@ -0,0 +1,42 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to compare spooldd's content + * @export + */ +class LocalfileSpoolddHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return helper.prepareLocalFile(args.localFilePath); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription); + return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); + }); + } +} +exports.default = LocalfileSpoolddHandler; +//# sourceMappingURL=LocalfileSpooldd.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map new file mode 100644 index 0000000000..bbadfe5eef --- /dev/null +++ b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileSpooldd.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsD;AAEtD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,uBAAwB,SAAQ,wCAAkB;IACtD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACzF,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AARD,0CAQC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts new file mode 100644 index 0000000000..b1dc65f343 --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare local files and data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const LocalfileUssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js new file mode 100644 index 0000000000..7528276cf8 --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js @@ -0,0 +1,63 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocalfileUssFileDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare local files and data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.LocalfileUssFileDefinition = { + name: "local-file-uss-file", + aliases: ["lf-uss"], + summary: strings.ACTIONS.LOCAL_FILE_USS_FILE.SUMMARY, + description: strings.ACTIONS.LOCAL_FILE_USS_FILE.DESCRIPTION, + type: "command", + handler: __dirname + "/LocalfileUss.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "localFilePath", + description: strings.ACTIONS.LOCAL_FILE_USS_FILE.POSITIONALS.LOCALFILEPATH, + type: "string", + required: true + }, + { + name: "ussFilePath", + type: "string", + description: strings.ACTIONS.LOCAL_FILE_USS_FILE.POSITIONALS.USSFILEPATH, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.binary, + Compare_options_1.CompareOptions.encoding, + Compare_options_1.CompareOptions.seqnum, + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.LOCAL_FILE_USS_FILE.EXAMPLES.EX1, + options: `"./a.txt" "/u/user/test.txt"` + }, + { + description: strings.ACTIONS.LOCAL_FILE_USS_FILE.EXAMPLES.EX2, + options: `"./a.txt" "/u/user/test.txt" --no-seqnum` + } + ] +}; +//# sourceMappingURL=LocalfileUss.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map new file mode 100644 index 0000000000..1cc3094f7d --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileUss.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-uss/LocalfileUss.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO;IACpD,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,uBAAuB;IAC5C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,aAAa;YAC1E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,WAAW;YACxE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,QAAQ;QACvB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,8BAA8B;SAC1C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,0CAA0C;SACtD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts new file mode 100644 index 0000000000..f60ec09483 --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHelper } from '../CompareBaseHelper'; +import { CompareBaseHandler } from '../CompareBase.handler'; +/** + * Handler to compare the local file and uss file's content + * @export + */ +export default class LocalfileUssHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js new file mode 100644 index 0000000000..b37fcef06b --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to compare the local file and uss file's content + * @export + */ +class LocalfileUssHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return helper.prepareLocalFile(args.localFilePath); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); + }); + } +} +exports.default = LocalfileUssHandler; +//# sourceMappingURL=LocalfileUss.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map new file mode 100644 index 0000000000..7e6c60f671 --- /dev/null +++ b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LocalfileUss.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-uss/LocalfileUss.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AAEnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,wCAAkB;IAClD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACvG,CAAC;KAAA;CACJ;AAPD,sCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts b/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts new file mode 100644 index 0000000000..e60990bfdc --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare spool-dds command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const SpoolddDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.js b/lib/zosfiles/compare/sdd/Spooldd.definition.js new file mode 100644 index 0000000000..03a11da164 --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.definition.js @@ -0,0 +1,60 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SpoolddDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare spool-dds command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.SpoolddDefinition = { + name: "spool-dd", + aliases: ["sdd"], + summary: strings.ACTIONS.SPOOL_DD.SUMMARY, + description: strings.ACTIONS.SPOOL_DD.DESCRIPTION, + type: "command", + handler: __dirname + "/Spooldd.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "spoolDescription1", + description: strings.ACTIONS.SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION1, + type: "string", + required: true + }, + { + name: "spoolDescription2", + type: "string", + description: strings.ACTIONS.SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION2, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.SPOOL_DD.EXAMPLES.EX1, + options: `"jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"` + }, + { + description: strings.ACTIONS.SPOOL_DD.EXAMPLES.EX2, + options: `"jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2" --no-seqnum` + } + ] +}; +//# sourceMappingURL=Spooldd.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.js.map b/lib/zosfiles/compare/sdd/Spooldd.definition.js.map new file mode 100644 index 0000000000..46fb810e7a --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Spooldd.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/sdd/Spooldd.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,mBAAmB;YACrE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,mBAAmB;YACrE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uDAAuD;SACnE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,mEAAmE;SAC/E;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts b/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts new file mode 100644 index 0000000000..f293bae78c --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHandler } from "../CompareBase.handler"; +import { CompareBaseHelper } from "../CompareBaseHelper"; +/** + * Handler to compare spooldd's content + * @export + */ +export default class SpoolddHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.js b/lib/zosfiles/compare/sdd/Spooldd.handler.js new file mode 100644 index 0000000000..9bcb42bc47 --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.handler.js @@ -0,0 +1,43 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to compare spooldd's content + * @export + */ +class SpoolddHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription1); + return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription2); + return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); + }); + } +} +exports.default = SpoolddHandler; +//# sourceMappingURL=Spooldd.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.js.map b/lib/zosfiles/compare/sdd/Spooldd.handler.js.map new file mode 100644 index 0000000000..2597c450de --- /dev/null +++ b/lib/zosfiles/compare/sdd/Spooldd.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Spooldd.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/sdd/Spooldd.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsD;AACtD,gEAA4D;AAG5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC1F,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC1F,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AATD,iCASC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.definition.d.ts b/lib/zosfiles/compare/uss/UssFile.definition.d.ts new file mode 100644 index 0000000000..7e7f490a85 --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Compare uss-files command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/uss/UssFile.definition.js b/lib/zosfiles/compare/uss/UssFile.definition.js new file mode 100644 index 0000000000..fe310b8e44 --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.definition.js @@ -0,0 +1,65 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssFileDefinition = void 0; +const Compare_options_1 = require("../Compare.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COMPARE; +/** + * Compare uss-files command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.UssFileDefinition = { + name: "uss-files", + aliases: ["uss", "uf"], + summary: strings.ACTIONS.USS_FILE.SUMMARY, + description: strings.ACTIONS.USS_FILE.DESCRIPTION, + type: "command", + handler: __dirname + "/UssFile.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "ussFilePath1", + description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH1, + type: "string", + required: true + }, + { + name: "ussFilePath2", + type: "string", + description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH2, + required: true + } + ], + options: [ + Compare_options_1.CompareOptions.binary, + Compare_options_1.CompareOptions.binary2, + Compare_options_1.CompareOptions.encoding, + Compare_options_1.CompareOptions.encoding2, + Compare_options_1.CompareOptions.seqnum, + Compare_options_1.CompareOptions.contextLines, + Compare_options_1.CompareOptions.browserView + ], + examples: [ + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, + options: `"/u/user/test.txt" "/u/user/test.txt"` + }, + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, + options: `"/u/user/test.txt" "/u/user/test.txt" --no-seqnum` + } + ] +}; +//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.definition.js.map b/lib/zosfiles/compare/uss/UssFile.definition.js.map new file mode 100644 index 0000000000..061ac27e2f --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;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OAAO,EAAE,mDAAmD;SAC/D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.handler.d.ts b/lib/zosfiles/compare/uss/UssFile.handler.d.ts new file mode 100644 index 0000000000..c6fcd360e9 --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.handler.d.ts @@ -0,0 +1,12 @@ +/// +import { AbstractSession, ICommandArguments } from "@zowe/imperative"; +import { CompareBaseHandler } from "../CompareBase.handler"; +import { CompareBaseHelper } from "../CompareBaseHelper"; +/** + * Handler to view a data set's content + * @export + */ +export default class UssFileHandler extends CompareBaseHandler { + getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; + getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; +} diff --git a/lib/zosfiles/compare/uss/UssFile.handler.js b/lib/zosfiles/compare/uss/UssFile.handler.js new file mode 100644 index 0000000000..4454bf9657 --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const CompareBase_handler_1 = require("../CompareBase.handler"); +/** + * Handler to view a data set's content + * @export + */ +class UssFileHandler extends CompareBase_handler_1.CompareBaseHandler { + getFile1(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath1, Object.assign(Object.assign({}, helper.file1Options), { task: helper.task })); + }); + } + getFile2(session, args, helper) { + return __awaiter(this, void 0, void 0, function* () { + return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath2, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); + }); + } +} +exports.default = UssFileHandler; +//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.handler.js.map b/lib/zosfiles/compare/uss/UssFile.handler.js.map new file mode 100644 index 0000000000..ab8b7b2cbe --- /dev/null +++ b/lib/zosfiles/compare/uss/UssFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AACnD,gEAA4D;AAG5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/Copy.definition.d.ts b/lib/zosfiles/copy/Copy.definition.d.ts new file mode 100644 index 0000000000..6ff7b358fb --- /dev/null +++ b/lib/zosfiles/copy/Copy.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the copy group within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const CopyDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/Copy.definition.js b/lib/zosfiles/copy/Copy.definition.js new file mode 100644 index 0000000000..a38d640f0a --- /dev/null +++ b/lib/zosfiles/copy/Copy.definition.js @@ -0,0 +1,34 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CopyDefinition = void 0; +const Ds_definition_1 = require("./ds/Ds.definition"); +const Dsclp_definition_1 = require("./dsclp/Dsclp.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.COPY; +/** + * This object defines the command for the copy group within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.CopyDefinition = { + name: "copy", + aliases: ["cp"], + type: "group", + description: strings.DESCRIPTION, + children: [ + Ds_definition_1.DsDefinition, + Dsclp_definition_1.DsclpDefinition + ] +}; +//# sourceMappingURL=Copy.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/Copy.definition.js.map b/lib/zosfiles/copy/Copy.definition.js.map new file mode 100644 index 0000000000..3714e39752 --- /dev/null +++ b/lib/zosfiles/copy/Copy.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Copy.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/copy/Copy.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,sDAAkD;AAClD,+DAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,kCAAe;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.definition.d.ts b/lib/zosfiles/copy/ds/Ds.definition.d.ts new file mode 100644 index 0000000000..cf04797175 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for copy data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @type {ICommandDefinition} + */ +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/ds/Ds.definition.js b/lib/zosfiles/copy/ds/Ds.definition.js new file mode 100644 index 0000000000..bfbd322825 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.definition.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COPY.ACTIONS.DATA_SET; +/** + * This object defines the command for copy data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @type {ICommandDefinition} + */ +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "Ds.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fromDataSetName", + type: "string", + description: strings.POSITIONALS.FROMDSNAME, + required: true + }, + { + name: "toDataSetName", + type: "string", + description: strings.POSITIONALS.TODSNAME, + required: true + } + ], + options: [ + { + name: "replace", + aliases: ["rep"], + description: strings.OPTIONS.REPLACE, + type: "boolean" + } + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"USER.FROM.SET" "USER.TO.SET"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"USER.FROM.SET(mem1)" "USER.TO.SET(mem2)"` + }, + { + description: strings.EXAMPLES.EX3, + options: `"USER.FROM.SET" "USER.TO.SET(mem2)"` + }, + { + description: strings.EXAMPLES.EX4, + options: `"USER.FROM.SET(mem1)" "USER.TO.SET"` + }, + { + description: strings.EXAMPLES.EX5, + options: `"USER.FROM.SET" "USER.TO.SET" --replace` + } + ] +}; +//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.definition.js.map b/lib/zosfiles/copy/ds/Ds.definition.js.map new file mode 100644 index 0000000000..1cdb5e1332 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAI5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,S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iles/copy/ds/Ds.handler.d.ts new file mode 100644 index 0000000000..5f41a8f0b4 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to copy a data set. + */ +export default class DsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/copy/ds/Ds.handler.js b/lib/zosfiles/copy/ds/Ds.handler.js new file mode 100644 index 0000000000..cc2e48dda3 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.handler.js @@ -0,0 +1,44 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const ZosFiles_utils_1 = require("../../ZosFiles.utils"); +/** + * Handler to copy a data set. + */ +class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const fromDataSet = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.fromDataSetName); + const toDataSet = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.toDataSetName); + const options = { + "from-dataset": fromDataSet, + enq: commandParameters.arguments.enq, + replace: commandParameters.arguments.replace, + responseTimeout: commandParameters.arguments.responseTimeout + }; + return zos_files_for_zowe_sdk_1.Copy.dataSet(session, toDataSet, options); + }); + } +} +exports.default = DsHandler; +//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.handler.js.map b/lib/zosfiles/copy/ds/Ds.handler.js.map new file mode 100644 index 0000000000..d98bfe2244 --- /dev/null +++ b/lib/zosfiles/copy/ds/Ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAsG;AACtG,qEAAiE;AACjE,yDAAkD;AAElD;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,WAAW,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YACtF,MAAM,SAAS,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAClF,MAAM,OAAO,GAAwB;gBACjC,cAAc,EAAE,WAAW;gBAC3B,GAAG,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG;gBACpC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,6BAAI,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,4BAaC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts b/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts new file mode 100644 index 0000000000..b59d17a4f4 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for copy data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @type {ICommandDefinition} + */ +export declare const DsclpDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.js b/lib/zosfiles/copy/dsclp/Dsclp.definition.js new file mode 100644 index 0000000000..a2f2956930 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.definition.js @@ -0,0 +1,185 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsclpDefinition = void 0; +const path_1 = require("path"); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const ZosFiles_options_1 = require("../../ZosFiles.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.COPY.ACTIONS.DATA_SET_CROSS_LPAR; +const TargetZosmfOptions = [ + { + name: "target-host", + aliases: ["th"], + description: strings.OPTIONS.TARGETHOST, + type: "string" + }, + { + name: "target-port", + aliases: ["tp"], + description: strings.OPTIONS.TARGETPORT, + type: "number" + }, + { + name: "target-user", + aliases: ["tu"], + description: strings.OPTIONS.TARGETUSER, + type: "string" + }, + { + name: "target-password", + aliases: ["tpw"], + description: strings.OPTIONS.TARGETPASS, + type: "string" + }, + { + name: "target-token-type", + aliases: ["ttt"], + description: strings.OPTIONS.TARGETTOKENTYPE, + type: "string" + }, + { + name: "target-token-value", + aliases: ["ttv"], + description: strings.OPTIONS.TARGETTOKENVAL, + type: "string" + }, + { + name: "target-zosmf-profile", + aliases: ["t-zosmf-p", "target-zosmf-p"], + description: strings.OPTIONS.TARGETPROFILE, + type: "string" + } +]; +const GeneralOptions = [ + { + name: "replace", + aliases: ["rep"], + description: strings.OPTIONS.REPLACE, + type: "boolean" + }, + { + name: "target-volume-serial", + aliases: ["tvs", "target-volser"], + description: strings.OPTIONS.TARGETVOLSER, + type: "string" + }, + { + name: "target-management-class", + aliases: ["tmc"], + description: strings.OPTIONS.TARGETMGTCLS, + type: "string" + }, + { + name: "target-data-class", + aliases: ["tdc"], + description: strings.OPTIONS.TARGETDATACLS, + type: "string" + }, + { + name: "target-storage-class", + aliases: ["tsc"], + description: strings.OPTIONS.TARGETSTGCLS, + type: "string" + } +]; +const Positionals = [ + { + name: "fromDataSetName", + type: "string", + description: strings.POSITIONALS.FROMDSNAME, + required: true + }, + { + name: "toDataSetName", + type: "string", + description: strings.POSITIONALS.TODSNAME, + required: true + } +]; +function buildChainedHandlerArgMapping(optionDefs) { + return optionDefs.map((optionDef) => ({ + from: optionDef.name, + to: imperative_1.CliUtils.getOptionFormat(optionDef.name).camelCase, + mapFromArguments: true, + applyToHandlers: [0], + optional: !optionDef.required + })); +} +/** + * This object defines the command for copy data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @type {ICommandDefinition} + */ +exports.DsclpDefinition = { + name: "data-set-cross-lpar", + aliases: ["dsclp"], + description: strings.DESCRIPTION, + type: "command", + chainedHandlers: [ + { + handler: (0, path_1.join)(__dirname, "TargetProfile.handler"), + mapping: [ + ...buildChainedHandlerArgMapping(zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS), + ...buildChainedHandlerArgMapping(TargetZosmfOptions), + { + from: "apiResponse.sessCfg", + to: "targetZosmfSession" + } + ] + }, + { + handler: (0, path_1.join)(__dirname, "Dsclp.handler"), + mapping: [ + ...buildChainedHandlerArgMapping(Positionals), + ...buildChainedHandlerArgMapping(zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS), + ...buildChainedHandlerArgMapping(ZosFiles_options_1.ZosFilesOptionDefinitions), + ...buildChainedHandlerArgMapping(GeneralOptions) + ] + } + ], + profile: { + optional: ["zosmf"] + }, + positionals: Positionals, + options: [ + ...TargetZosmfOptions, + ...GeneralOptions, + { + name: "target-zosmf-session", + description: "Session configuration for target z/OSMF profile", + type: "json", + hidden: true + } + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"USER.FROM.SET" "USER.TO.SET" --target-zosmf-p SYS1` + }, + { + description: strings.EXAMPLES.EX2, + options: `"USER.FROM.SET(mem1)" "USER.TO.SET(mem2)" --target-zosmf-p SYS1` + }, + { + description: strings.EXAMPLES.EX3, + options: `"USER.FROM.SET" "USER.TO.SET(mem2)" --target-zosmf-p SYS1` + }, + { + description: strings.EXAMPLES.EX4, + options: `"USER.FROM.SET(mem1)" "USER.TO.SET" --target-host sys1.com --target-user user1 --target-password pass1` + } + ] +}; +//# sourceMappingURL=Dsclp.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map b/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map new file mode 100644 index 0000000000..79b2bfa1cc --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dsclp.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/Dsclp.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,+BAA4B;AAC5B,iDAC2D;AAC3D,iEAAwD;AACxD,6DAAmE;AAInE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC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AAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qDAAqD;SACjE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iEAAiE;SAC7E;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2DAA2D;SACvE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wGAAwG;SACpH;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts b/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts new file mode 100644 index 0000000000..b10444b144 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts @@ -0,0 +1,13 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to copy a data set. + */ +export default class DsclpHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; + /** + * Private function to prompt user if they wish to overwrite an existing dataset. + */ + private promptForOverwrite; +} diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.js b/lib/zosfiles/copy/dsclp/Dsclp.handler.js new file mode 100644 index 0000000000..e35153abf1 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.handler.js @@ -0,0 +1,66 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const ZosFiles_utils_1 = require("../../ZosFiles.utils"); +/** + * Handler to copy a data set. + */ +class DsclpHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const sourceDataset = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.fromDataSetName); + const targetDataset = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.toDataSetName); + const options = { + "from-dataset": sourceDataset, + enq: commandParameters.arguments.enq, + replace: commandParameters.arguments.replace, + responseTimeout: commandParameters.arguments.responseTimeout, + targetVolser: commandParameters.arguments.targetVolser, + targetManagementClass: commandParameters.arguments.targetManagementClass, + targetStorageClass: commandParameters.arguments.targetStorageClass, + targetDataClass: commandParameters.arguments.targetDataClass, + promptFn: this.promptForOverwrite(commandParameters.response.console) + }; + const sourceOptions = { + binary: commandParameters.arguments.binary, + encoding: commandParameters.arguments.encoding, + record: commandParameters.arguments.record, + volume: commandParameters.arguments.volume + }; + const targetSession = new imperative_1.Session(commandParameters.arguments.targetZosmfSession); + return zos_files_for_zowe_sdk_1.Copy.dataSetCrossLPAR(session, targetDataset, options, sourceOptions, targetSession); + }); + } + /** + * Private function to prompt user if they wish to overwrite an existing dataset. + */ + promptForOverwrite(console) { + return (targetDSN) => __awaiter(this, void 0, void 0, function* () { + const answer = yield console.prompt(`The dataset '${targetDSN}' already exists on the target system. Do you want to overwrite it? [y/N]: `); + return (answer != null && (answer.toLowerCase() === "y" || answer.toLowerCase() === "yes")); + }); + } +} +exports.default = DsclpHandler; +//# sourceMappingURL=Dsclp.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map b/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map new file mode 100644 index 0000000000..3d59e2c7b3 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dsclp.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/Dsclp.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA4G;AAC5G,yEAA4H;AAC5H,qEAAiE;AACjE,yDAAkD;AAElD;;GAEG;AAEH,MAAqB,YAAa,SAAQ,0CAAmB;IAC5C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,aAAa,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YACxF,MAAM,aAAa,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAEtF,MAAM,OAAO,GAAiC;gBAC1C,cAAc,EAAE,aAAa;gBAC7B,GAAG,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG;gBACpC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACtD,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,kBAAkB,EAAE,iBAAiB,CAAC,SAAS,CAAC,kBAAkB;gBAClE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC;aACxE,CAAC;YAEF,MAAM,aAAa,GAAgB;gBAC/B,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;aAC7C,CAAC;YAEF,MAAM,aAAa,GAAG,IAAI,oBAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;YAElF,OAAO,6BAAI,CAAC,gBAAgB,CAAC,OAAO,EAChC,aAAa,EACb,OAAO,EACP,aAAa,EACb,aAAa,CAChB,CAAC;QACN,CAAC;KAAA;IAED;;OAEG;IACK,kBAAkB,CAAC,OAAmC;QAC1D,OAAO,CAAO,SAAiB,EAAE,EAAE;YAC/B,MAAM,MAAM,GAAW,MAAM,OAAO,CAAC,MAAM,CACvC,gBAAgB,SAAS,6EAA6E,CAAC,CAAC;YAC5G,OAAO,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC;QAChG,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AA5CD,+BA4CC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts b/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts new file mode 100644 index 0000000000..cb59ddef06 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts @@ -0,0 +1,18 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to load a target profile. + * + * TODO Consider migrating code for loading target profiles to Imperative + */ +export default class TargetProfileHandler extends ZosFilesBaseHandler { + /** + * Build target z/OSMF session from profiles and command arguments. + */ + process(params: IHandlerParameters): Promise; + /** + * Return session config for target profile to pass on to the next handler. + */ + processWithSession(_params: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js new file mode 100644 index 0000000000..5d4f8e6f72 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js @@ -0,0 +1,81 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to load a target profile. + * + * TODO Consider migrating code for loading target profiles to Imperative + */ +class TargetProfileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + /** + * Build target z/OSMF session from profiles and command arguments. + */ + process(params) { + const _super = Object.create(null, { + process: { get: () => super.process } + }); + var _a; + return __awaiter(this, void 0, void 0, function* () { + const targetProfileName = params.arguments.targetZosmfProfile; + let targetCmdArgs = {}; + try { + if (targetProfileName != null) { + if ((_a = imperative_1.ImperativeConfig.instance.config) === null || _a === void 0 ? void 0 : _a.exists) { + targetCmdArgs = imperative_1.ImperativeConfig.instance.config.api.profiles.get(targetProfileName); + } + else { + targetCmdArgs = params.profiles.get("zosmf", false, targetProfileName); + } + } + const targetPrefix = "target"; + for (const [k, v] of Object.entries(params.arguments)) { + if (k.startsWith(targetPrefix) && v != null) { + const normalizedOptName = k.charAt(targetPrefix.length).toLowerCase() + k.slice(targetPrefix.length + 1); + targetCmdArgs[normalizedOptName] = v; + } + } + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: `Failed to load target z/OSMF profile: ${err.message}`, + causeErrors: err + }); + } + yield _super.process.call(this, Object.assign(Object.assign({}, params), { arguments: Object.assign(Object.assign({}, params.arguments), targetCmdArgs) })); + }); + } + /** + * Return session config for target profile to pass on to the next handler. + */ + processWithSession(_params, session) { + return __awaiter(this, void 0, void 0, function* () { + return { + success: true, + commandResponse: undefined, + apiResponse: { sessCfg: session.ISession } + }; + }); + } +} +exports.default = TargetProfileHandler; +//# sourceMappingURL=TargetProfile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map new file mode 100644 index 0000000000..a4e3d29b11 --- /dev/null +++ b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TargetProfile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/TargetProfile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA0G;AAE1G,qEAAiE;AAEjE;;;;GAIG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACjE;;OAEG;IACU,OAAO,CAAC,MAA0B;;;;;;YAC3C,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC;YAC9D,IAAI,aAAa,GAAwB,EAAE,CAAC;YAE5C,IAAI;gBACA,IAAI,iBAAiB,IAAI,IAAI,EAAE;oBAC3B,IAAI,MA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AAA;CACJ;AA/CD,uCA+CC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.definition.d.ts b/lib/zosfiles/create/Create.definition.d.ts new file mode 100644 index 0000000000..c978ee66f2 --- /dev/null +++ b/lib/zosfiles/create/Create.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const CreateDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/Create.definition.js b/lib/zosfiles/create/Create.definition.js new file mode 100644 index 0000000000..f57dea1ba4 --- /dev/null +++ b/lib/zosfiles/create/Create.definition.js @@ -0,0 +1,47 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CreateDefinition = void 0; +const BinaryPDS_definition_1 = require("./binaryPds/BinaryPDS.definition"); +const ClassicPDS_definition_1 = require("./classicPds/ClassicPDS.definition"); +const CPDS_definition_1 = require("./cPds/CPDS.definition"); +const ds_definition_1 = require("./ds/ds.definition"); +const Pds_definition_1 = require("./pds/Pds.definition"); +const Ps_definition_1 = require("./ps/Ps.definition"); +const vsam_definition_1 = require("./vsam/vsam.definition"); +const zfs_definition_1 = require("./zfs/zfs.definition"); +const ussDir_definition_1 = require("./ussDir/ussDir.definition"); +const ussFile_definition_1 = require("./ussFile/ussFile.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.CREATE; +/** + * Create group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.CreateDefinition = { + name: "create", + aliases: ["cre"], + type: "group", + description: strings.DESCRIPTION, + children: [Ps_definition_1.PsDefinition, + Pds_definition_1.PdsDefinition, + BinaryPDS_definition_1.BinaryPDSDefinition, + CPDS_definition_1.CPDSDefinition, + ClassicPDS_definition_1.ClassicPDSDefinition, + ds_definition_1.DsDefinition, + vsam_definition_1.VsamDefinition, + zfs_definition_1.ZfsDefinition, + ussFile_definition_1.UssFileDefinition, + ussDir_definition_1.UssDirDefinition + ] +}; +//# sourceMappingURL=Create.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.definition.js.map b/lib/zosfiles/create/Create.definition.js.map new file mode 100644 index 0000000000..cc15454ce9 --- /dev/null +++ b/lib/zosfiles/create/Create.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2EAAuE;AACvE,8EAA0E;AAC1E,4DAAwD;AACxD,sDAAkD;AAClD,yDAAqD;AACrD,sDAAkD;AAClD,4DAAwD;AACxD,yDAAqD;AAGrD,kEAA8D;AAC9D,qEAAiE;AAEjE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE,CAAC,4BAAY;QACnB,8BAAa;QACb,0CAAmB;QACnB,gCAAc;QACd,4CAAoB;QACpB,4BAAY;QACZ,gCAAc;QACd,8BAAa;QACb,sCAAiB;QACjB,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.options.d.ts b/lib/zosfiles/create/Create.options.d.ts new file mode 100644 index 0000000000..789b85a1fe --- /dev/null +++ b/lib/zosfiles/create/Create.options.d.ts @@ -0,0 +1,13 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the Create API + */ +export declare const ZosFilesCreateExtraOptions: { + [key: string]: ICommandOptionDefinition; +}; +/** + * Object containing all options to be used by the Create API + */ +export declare const ZosFilesCreateOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/create/Create.options.js b/lib/zosfiles/create/Create.options.js new file mode 100644 index 0000000000..761e65b6b1 --- /dev/null +++ b/lib/zosfiles/create/Create.options.js @@ -0,0 +1,228 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZosFilesCreateOptions = exports.ZosFilesCreateExtraOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.CREATE.OPTIONS; +/** + * Object containing all extra options to be used by the Create API + */ +exports.ZosFilesCreateExtraOptions = { + /** + * The indicator of a flat file creation (Sequential data set) + * @type {ICommandOptionDefinition} + */ + flatFile: { + name: "flat-file", + aliases: ["ff"], + description: strings.FLATFILE, + type: "boolean" + }, + /** + * The indicator that we should print all allocation attributes + * @type {ICommandOptionDefinition} + * @deprecated + */ + showAttributes: { + name: "show-attributes", + aliases: ["pa"], + description: strings.SHOWATTRIBUTES, + hidden: true, + type: "boolean" + }, + /** + * The indicator that we should print all allocation attributes + * @type {ICommandOptionDefinition} + */ + attributes: { + name: "attributes", + aliases: ["a"], + description: strings.SHOWATTRIBUTES, + type: "boolean" + }, + /** + * The size of the data set + * @type {ICommandOptionDefinition} + */ + size: { + name: "size", + aliases: ["sz"], + description: strings.SIZE, + type: "string" + }, + /** + * The like value of data set + * @type {ICommandOptionDefinition} + */ + like: { + name: "like", + aliases: ["lk"], + description: strings.LIKE, + type: "string" + } +}; +/** + * Object containing all options to be used by the Create API + */ +exports.ZosFilesCreateOptions = { + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volser: { + name: "volume-serial", + aliases: ["vs", "volser"], + description: strings.VOLSER, + type: "string" + }, + /** + * The device type + * @type {ICommandOptionDefinition} + */ + unit: { + name: "device-type", + aliases: ["dt", "unit"], + description: strings.UNIT, + type: "string" + }, + /** + * The data set organization + * @type {ICommandOptionDefinition} + */ + dsorg: { + name: "data-set-organization", + aliases: ["dso", "dsorg"], + description: strings.DSORG, + type: "string" + }, + /** + * The unit of space allocation + * @type {ICommandOptionDefinition} + */ + alcunit: { + name: "allocation-space-unit", + aliases: ["asu"], + description: strings.ALCUNIT, + type: "string" + }, + /** + * The primary space allocation + * @type {ICommandOptionDefinition} + */ + primary: { + name: "primary-space", + aliases: ["ps"], + description: strings.PRIMARY, + type: "number" + }, + /** + * The secondary space allocation + * @type {ICommandOptionDefinition} + */ + secondary: { + name: "secondary-space", + aliases: ["ss"], + description: strings.SECONDARY, + type: "number" + }, + /** + * The number of directory blocks + * @type {ICommandOptionDefinition} + */ + dirblk: { + name: "directory-blocks", + aliases: ["db", "dirblks"], + description: strings.DIRBLK, + type: "number" + }, + /** + * The average block + * @type {ICommandOptionDefinition} + */ + avgblk: { + name: "average-blocks", + aliases: ["ab"], + description: strings.AVGBLK, + type: "number" + }, + /** + * The record format + * @type {ICommandOptionDefinition} + */ + recfm: { + name: "record-format", + aliases: ["rf", "recfm"], + description: strings.RECFM, + type: "string" + }, + /** + * The block size + * @type {ICommandOptionDefinition} + */ + blksize: { + name: "block-size", + aliases: ["bs", "blksize"], + description: strings.BLKSIZE, + type: "number" + }, + /** + * The record length + * @type {ICommandOptionDefinition} + */ + lrecl: { + name: "record-length", + aliases: ["rl", "lrecl"], + description: strings.LRECL, + type: "number" + }, + /** + * The storage class + * @type {ICommandOptionDefinition} + */ + storclass: { + name: "storage-class", + aliases: ["sc"], + description: strings.STORCLASS, + type: "string" + }, + /** + * The management class + * @type {ICommandOptionDefinition} + */ + mgntclass: { + name: "management-class", + aliases: ["mc"], + description: strings.MGNTCLASS, + type: "string" + }, + /** + * The data class + * @type {ICommandOptionDefinition} + */ + dataclass: { + name: "data-class", + aliases: ["dc"], + description: strings.DATACLASS, + type: "string" + }, + /** + * The data set type + * @type {ICommandOptionDefinition} + */ + dsntype: { + name: "data-set-type", + aliases: ["dst", "dsntype"], + description: strings.DSNTYPE, + type: "string" + } +}; +//# sourceMappingURL=Create.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.options.js.map b/lib/zosfiles/create/Create.options.js.map new file mode 100644 index 0000000000..7b06487a05 --- /dev/null +++ b/lib/zosfiles/create/Create.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.options.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAE1F;;GAEG;AACU,QAAA,0BAA0B,GAAgD;IACnF;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,SAAS;KAClB;IAED;;;;OAIG;IACH,cAAc,EAAE;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAA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EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;QAC3B,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.utils.d.ts b/lib/zosfiles/create/Create.utils.d.ts new file mode 100644 index 0000000000..d4e62809d7 --- /dev/null +++ b/lib/zosfiles/create/Create.utils.d.ts @@ -0,0 +1,8 @@ +import { Arguments } from "yargs"; +import { ICreateDataSetOptions } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Generate the appropriate options object to create a dataset before sending it to the z/OS MF APIs + * @param {yargs.Arguments} commandArguments - The provided command arguments + * @return {ICreateDataSetOptions} Object to be sent + */ +export declare function generateZosmfOptions(commandArguments: Arguments): ICreateDataSetOptions; diff --git a/lib/zosfiles/create/Create.utils.js b/lib/zosfiles/create/Create.utils.js new file mode 100644 index 0000000000..b48f79a783 --- /dev/null +++ b/lib/zosfiles/create/Create.utils.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.generateZosmfOptions = void 0; +/** + * Generate the appropriate options object to create a dataset before sending it to the z/OS MF APIs + * @param {yargs.Arguments} commandArguments - The provided command arguments + * @return {ICreateDataSetOptions} Object to be sent + */ +function generateZosmfOptions(commandArguments) { + return JSON.parse(JSON.stringify({ + alcunit: commandArguments.allocationSpaceUnit, + volser: commandArguments.volumeSerial, + primary: commandArguments.primarySpace, + secondary: commandArguments.secondarySpace, + dirblk: commandArguments.directoryBlocks, + recfm: commandArguments.recordFormat, + blksize: commandArguments.blockSize, + lrecl: commandArguments.recordLength, + storclass: commandArguments.storageClass, + mgntclass: commandArguments.managementClass, + dataclass: commandArguments.dataClass, + dsntype: commandArguments.dataSetType, + showAttributes: commandArguments.showAttributes || commandArguments.attributes, + size: commandArguments.size, + responseTimeout: commandArguments.responseTimeout + })); +} +exports.generateZosmfOptions = generateZosmfOptions; +//# sourceMappingURL=Create.utils.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.utils.js.map b/lib/zosfiles/create/Create.utils.js.map new file mode 100644 index 0000000000..6f5ff11970 --- /dev/null +++ b/lib/zosfiles/create/Create.utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Create.utils.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAOF;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,gBAA2B;IAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;QAC7B,OAAO,EAAE,gBAAgB,CAAC,mBAAmB;QAC7C,MAAM,EAAE,gBAAgB,CAAC,YAAY;QACrC,OAAO,EAAE,gBAAgB,CAAC,YAAY;QACtC,SAAS,EAAE,gBAAgB,CAAC,cAAc;QAC1C,MAAM,EAAE,gBAAgB,CAAC,eAAe;QACxC,KAAK,EAAE,gBAAgB,CAAC,YAAY;QACpC,OAAO,EAAE,gBAAgB,CAAC,SAAS;QACnC,KAAK,EAAE,gBAAgB,CAAC,YAAY;QACpC,SAAS,EAAE,gBAAgB,CAAC,YAAY;QACxC,SAAS,EAAE,gBAAgB,CAAC,eAAe;QAC3C,SAAS,EAAE,gBAAgB,CAAC,SAAS;QACrC,OAAO,EAAE,gBAAgB,CAAC,WAAW;QACrC,cAAc,EAAE,gBAAgB,CAAC,cAAc,IAAI,gBAAgB,CAAC,UAAU;QAC9E,IAAI,EAAE,gBAAgB,CAAC,IAAI;QAC3B,eAAe,EAAE,gBAAgB,CAAC,eAAe;KACpD,CAAC,CAAC,CAAC;AACR,CAAC;AAlBD,oDAkBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts new file mode 100644 index 0000000000..978b58df87 --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create Binary PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const BinaryPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js new file mode 100644 index 0000000000..68c411c7b2 --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js @@ -0,0 +1,67 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BinaryPDSDefinition = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create Binary PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.BinaryPDSDefinition = { + name: "data-set-binary", + aliases: ["bin"], + description: strings.ACTIONS.DATA_SET_BINARY.DESCRIPTION, + type: "command", + handler: __dirname + "/BinaryPDS.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.primary }), + Create_options_1.ZosFilesCreateOptions.volser, + Create_options_1.ZosFilesCreateOptions.secondary, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.dirblk }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.recfm }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.blksize }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.lrecl }), + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateOptions.dsntype, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_BINARY.EXAMPLES.EX1, + options: "NEW.BINARY.DATASET" + }, + { + description: strings.ACTIONS.DATA_SET_BINARY.EXAMPLES.EX2, + options: "NEW.BINARY.DATASET --data-set-type LIBRARY" + } + ] +}; +//# sourceMappingURL=BinaryPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map new file mode 100644 index 0000000000..88532b8d05 --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map @@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CAAC,MAAM,CAAC,KAAK;QACnF,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG;YACzD,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG;YACzD,OAAO,EAAE,4CAA4C;SACxD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts new file mode 100644 index 0000000000..3c230c3625 --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a Binary-PDS data set + */ +export default class BinaryPDSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js new file mode 100644 index 0000000000..ab8fc77562 --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to create a Binary-PDS data set + */ +class BinaryPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 0 /* CreateDataSetTypeEnum.DATA_SET_BINARY */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + }); + } +} +exports.default = BinaryPDSHandler; +//# sourceMappingURL=BinaryPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map new file mode 100644 index 0000000000..b3454c664b --- /dev/null +++ b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BinaryPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/binaryPds/BinaryPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,gBAAiB,SAAQ,0CAAmB;IAChD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,iDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,mCASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.definition.d.ts b/lib/zosfiles/create/cPds/CPDS.definition.d.ts new file mode 100644 index 0000000000..47e6be1fdb --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create C-code PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const CPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/cPds/CPDS.definition.js b/lib/zosfiles/create/cPds/CPDS.definition.js new file mode 100644 index 0000000000..85bf47a6ec --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.definition.js @@ -0,0 +1,67 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CPDSDefinition = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create C-code PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.CPDSDefinition = { + name: "data-set-c", + aliases: ["dsc"], + description: strings.ACTIONS.DATA_SET_C.DESCRIPTION, + type: "command", + handler: __dirname + "/CPDS.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Create_options_1.ZosFilesCreateOptions.volser, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.primary }), + Create_options_1.ZosFilesCreateOptions.secondary, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.dirblk }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.recfm }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.blksize }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.lrecl }), + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateOptions.dsntype, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_C.EXAMPLES.EX1, + options: "NEW.CCODE.DATASET" + }, + { + description: strings.ACTIONS.DATA_SET_C.EXAMPLES.EX2, + options: "NEW.CCODE.DATASET --data-set-type LIBRARY" + } + ] +}; +//# sourceMappingURL=CPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.definition.js.map b/lib/zosfiles/create/cPds/CPDS.definition.js.map new file mode 100644 index 0000000000..eaba079bf3 --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CPDS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/cPds/CPDS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAGtF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW;IACnD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;QAClF,sCAAqB,CAAC,SAAS;wCAC3B,sCAAqB,CAAC,MAAM,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;wCAC5E,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;wCAC1E,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;wCAC9E,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;QAC9E,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpD,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpD,OAAO,EAAE,2CAA2C;SACvD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.handler.d.ts b/lib/zosfiles/create/cPds/CPDS.handler.d.ts new file mode 100644 index 0000000000..cce9c8a62a --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a C-PDS data set + */ +export default class CPDSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/cPds/CPDS.handler.js b/lib/zosfiles/create/cPds/CPDS.handler.js new file mode 100644 index 0000000000..3b3349abad --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to create a C-PDS data set + */ +class CPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 1 /* CreateDataSetTypeEnum.DATA_SET_C */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + }); + } +} +exports.default = CPDSHandler; +//# sourceMappingURL=CPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.handler.js.map b/lib/zosfiles/create/cPds/CPDS.handler.js.map new file mode 100644 index 0000000000..f659472b9c --- /dev/null +++ b/lib/zosfiles/create/cPds/CPDS.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/cPds/CPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,4CAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,8BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts b/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts new file mode 100644 index 0000000000..3f29ed7f5b --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create Classic PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const ClassicPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js new file mode 100644 index 0000000000..acc08a9bfe --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js @@ -0,0 +1,67 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ClassicPDSDefinition = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create Classic PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.ClassicPDSDefinition = { + name: "data-set-classic", + aliases: ["classic"], + description: strings.ACTIONS.DATA_SET_CLASSIC.DESCRIPTION, + type: "command", + handler: __dirname + "/ClassicPDS.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.primary }), + Create_options_1.ZosFilesCreateOptions.volser, + Create_options_1.ZosFilesCreateOptions.secondary, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.dirblk }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.recfm }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.blksize }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.lrecl }), + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateOptions.dsntype, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_CLASSIC.EXAMPLES.EX1, + options: "NEW.CLASSIC.DATASET" + }, + { + description: strings.ACTIONS.DATA_SET_CLASSIC.EXAMPLES.EX2, + options: "NEW.CLASSIC.DATASET --data-set-type LIBRARY" + } + ] +}; +//# sourceMappingURL=ClassicPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map new file mode 100644 index 0000000000..7c9790756a --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassicPDS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/classicPds/ClassicPDS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAGtF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW;IACzD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;wCAC3B,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;QACxF,sCAAqB,CAAC,MAAM;QAC5B,sCAAqB,CAAC,SAAS;wCAC3B,sCAAqB,CAAC,MAAM,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;wCAClF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;wCAChF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;wCACpF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;QACpF,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG;YAC1D,OAAO,EAAE,qBAAqB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG;YAC1D,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts b/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts new file mode 100644 index 0000000000..b6c6ad299b --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a Classic-PDS data set + */ +export default class ClassicPDSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js new file mode 100644 index 0000000000..ee7353d77a --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to create a Classic-PDS data set + */ +class ClassicPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 2 /* CreateDataSetTypeEnum.DATA_SET_CLASSIC */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + }); + } +} +exports.default = ClassicPDSHandler; +//# sourceMappingURL=ClassicPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map new file mode 100644 index 0000000000..0c83e903fb --- /dev/null +++ b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ClassicPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/classicPds/ClassicPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,kDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,oCASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.definition.d.ts b/lib/zosfiles/create/ds/ds.definition.d.ts new file mode 100644 index 0000000000..f2b61e435b --- /dev/null +++ b/lib/zosfiles/create/ds/ds.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create dataSet command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ds/ds.definition.js b/lib/zosfiles/create/ds/ds.definition.js new file mode 100644 index 0000000000..9a5fb121d4 --- /dev/null +++ b/lib/zosfiles/create/ds/ds.definition.js @@ -0,0 +1,71 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create dataSet command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: strings.ACTIONS.DATA_SET_LIKE.DESCRIPTION, + type: "command", + handler: __dirname + "/ds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Create_options_1.ZosFilesCreateOptions.volser, + Create_options_1.ZosFilesCreateOptions.primary, + Create_options_1.ZosFilesCreateOptions.secondary, + Create_options_1.ZosFilesCreateOptions.dirblk, + Create_options_1.ZosFilesCreateOptions.recfm, + Create_options_1.ZosFilesCreateOptions.blksize, + Create_options_1.ZosFilesCreateOptions.lrecl, + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateOptions.dsntype, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes, + Create_options_1.ZosFilesCreateExtraOptions.like + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX1, + options: "NEW.DATASET --like EXISTING.DATASET" + }, + { + description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX2, + options: "NEW.DATASET --like EXISTING.DATASET --lrecl 1024" + }, + { + description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX3, + options: "NEW.DATASET --data-set-type LIBRARY" + } + ] +}; +//# sourceMappingURL=ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.definition.js.map b/lib/zosfiles/create/ds/ds.definition.js.map new file mode 100644 index 0000000000..daca8f1e9a --- /dev/null +++ b/lib/zosfiles/create/ds/ds.definition.js.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C,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,qCAAqC;SACjD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.handler.d.ts b/lib/zosfiles/create/ds/ds.handler.d.ts new file mode 100644 index 0000000000..bde5233885 --- /dev/null +++ b/lib/zosfiles/create/ds/ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to like a data set + */ +export default class DataSetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/ds/ds.handler.js b/lib/zosfiles/create/ds/ds.handler.js new file mode 100644 index 0000000000..aab043cf1d --- /dev/null +++ b/lib/zosfiles/create/ds/ds.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to like a data set + */ +class DataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + if (commandParameters.arguments.like == null) { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 5 /* CreateDataSetTypeEnum.DATA_SET_BLANK */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + } + else { + return zos_files_for_zowe_sdk_1.Create.dataSetLike(session, commandParameters.arguments.dataSetName, commandParameters.arguments.like, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + } + }); + } +} +exports.default = DataSetHandler; +//# sourceMappingURL=ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.handler.js.map b/lib/zosfiles/create/ds/ds.handler.js.map new file mode 100644 index 0000000000..f22d029d5e --- /dev/null +++ b/lib/zosfiles/create/ds/ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ds/ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AAEH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE;gBAC1C,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,gDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;aAEL;iBACI;gBACD,OAAO,+BAAM,CAAC,WAAW,CACrB,OAAO,EACP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAChC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;aACL;QAEL,CAAC;KAAA;CACJ;AArBD,iCAqBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.definition.d.ts b/lib/zosfiles/create/pds/Pds.definition.d.ts new file mode 100644 index 0000000000..8fc6944388 --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const PdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/pds/Pds.definition.js b/lib/zosfiles/create/pds/Pds.definition.js new file mode 100644 index 0000000000..14bf9e3a74 --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.definition.js @@ -0,0 +1,68 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PdsDefinition = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create PDS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.PdsDefinition = { + name: "data-set-partitioned", + aliases: ["pds"], + description: strings.ACTIONS.DATA_SET_PARTITIONED.DESCRIPTION, + type: "command", + handler: __dirname + "/Pds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Create_options_1.ZosFilesCreateOptions.volser, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.primary }), + Create_options_1.ZosFilesCreateOptions.secondary, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.dirblk }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.recfm }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.blksize }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.lrecl }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.alcunit), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.alcunit }), + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateOptions.dsntype, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_PARTITIONED.EXAMPLES.EX1, + options: "NEW.PDS.DATASET" + }, + { + description: strings.ACTIONS.DATA_SET_PARTITIONED.EXAMPLES.EX2, + options: "NEW.PDSE.DATASET --data-set-type LIBRARY" + } + ] +}; +//# sourceMappingURL=Pds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.definition.js.map b/lib/zosfiles/create/pds/Pds.definition.js.map new file mode 100644 index 0000000000..0931a3af64 --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Pds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/pds/Pds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAGtF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;QAC5F,sCAAqB,CAAC,SAAS;wCAC3B,sCAAqB,CAAC,MAAM,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM;wCACtF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;wCACpF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;wCACxF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;wCACpF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;QAC5F,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG;YAC9D,OAAO,EAAE,iBAAiB;SAC7B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG;YAC9D,OAAO,EAAE,0CAA0C;SACtD;KAEJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.handler.d.ts b/lib/zosfiles/create/pds/Pds.handler.d.ts new file mode 100644 index 0000000000..8e2cc2217e --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a PDS data set + */ +export default class PdsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/pds/Pds.handler.js b/lib/zosfiles/create/pds/Pds.handler.js new file mode 100644 index 0000000000..24d76b6c27 --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to create a PDS data set + */ +class PdsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 3 /* CreateDataSetTypeEnum.DATA_SET_PARTITIONED */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + }); + } +} +exports.default = PdsHandler; +//# sourceMappingURL=Pds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.handler.js.map b/lib/zosfiles/create/pds/Pds.handler.js.map new file mode 100644 index 0000000000..68437c1279 --- /dev/null +++ b/lib/zosfiles/create/pds/Pds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Pds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/pds/Pds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,sDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,6BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.definition.d.ts b/lib/zosfiles/create/ps/Ps.definition.d.ts new file mode 100644 index 0000000000..7a9eec24d3 --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Create PS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const PsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ps/Ps.definition.js b/lib/zosfiles/create/ps/Ps.definition.js new file mode 100644 index 0000000000..ce4336c100 --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.definition.js @@ -0,0 +1,62 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PsDefinition = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE; +/** + * Create PS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.PsDefinition = { + name: "data-set-sequential", + aliases: ["ps"], + description: strings.ACTIONS.DATA_SET_SEQUENTIAL.DESCRIPTION, + type: "command", + handler: __dirname + "/Ps.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + Create_options_1.ZosFilesCreateExtraOptions.size, + Create_options_1.ZosFilesCreateOptions.volser, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.primary }), + Create_options_1.ZosFilesCreateOptions.secondary, + Create_options_1.ZosFilesCreateOptions.dirblk, + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.recfm }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.blksize }), + Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.lrecl }), + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + Create_options_1.ZosFilesCreateOptions.unit, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.ACTIONS.DATA_SET_SEQUENTIAL.EXAMPLES.EX1, + options: "NEW.PS.DATASET" + } + ] +}; +//# sourceMappingURL=Ps.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.definition.js.map b/lib/zosfiles/create/ps/Ps.definition.js.map new file mode 100644 index 0000000000..ca547a3eaf --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ps.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ps/Ps.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAItF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO;QAC3F,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;wCACnF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO;wCACvF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;QACvF,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,gBAAgB;SAC5B;KAEJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.handler.d.ts b/lib/zosfiles/create/ps/Ps.handler.d.ts new file mode 100644 index 0000000000..ce45077196 --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a PDS data set + */ +export default class PsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/ps/Ps.handler.js b/lib/zosfiles/create/ps/Ps.handler.js new file mode 100644 index 0000000000..cb626cba0d --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const Create_utils_1 = require("../Create.utils"); +/** + * Handler to create a PDS data set + */ +class PsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Create.dataSet(session, 4 /* CreateDataSetTypeEnum.DATA_SET_SEQUENTIAL */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); + }); + } +} +exports.default = PsHandler; +//# sourceMappingURL=Ps.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.handler.js.map b/lib/zosfiles/create/ps/Ps.handler.js.map new file mode 100644 index 0000000000..0179d7d30d --- /dev/null +++ b/lib/zosfiles/create/ps/Ps.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ps.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ps/Ps.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,qDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,4BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/uss.options.d.ts b/lib/zosfiles/create/ussDir/uss.options.d.ts new file mode 100644 index 0000000000..f8bf395765 --- /dev/null +++ b/lib/zosfiles/create/ussDir/uss.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Specifies the file or directory permission bits to be used in creating the file or directory. + */ +export declare const UssCreateOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/create/ussDir/uss.options.js b/lib/zosfiles/create/ussDir/uss.options.js new file mode 100644 index 0000000000..95b8348416 --- /dev/null +++ b/lib/zosfiles/create/ussDir/uss.options.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssCreateOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE.ACTIONS.USSDIR.OPTIONS; +/** + * Specifies the file or directory permission bits to be used in creating the file or directory. + */ +exports.UssCreateOptions = { + /** + * The permission bits for owner, group, and world users of the directory + * @type {ICommandOptionDefinition} + */ + mode: { + name: "mode", + aliases: ["m"], + description: strings.MODE, + type: "string", + // eslint-disable-next-line @typescript-eslint/no-magic-numbers + stringLengthRange: [9, 9] + } +}; +//# sourceMappingURL=uss.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/uss.options.js.map b/lib/zosfiles/create/ussDir/uss.options.js.map new file mode 100644 index 0000000000..de4d30e729 --- /dev/null +++ b/lib/zosfiles/create/ussDir/uss.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uss.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/uss.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;AAE5G;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,+DAA+D;QAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.d.ts b/lib/zosfiles/create/ussDir/ussDir.definition.d.ts new file mode 100644 index 0000000000..e862ca926b --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const UssDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.js b/lib/zosfiles/create/ussDir/ussDir.definition.js new file mode 100644 index 0000000000..bdfc27baba --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssDirDefinition = void 0; +const uss_options_1 = require("../ussDir/uss.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const ussStrings = fileStrings.CREATE.ACTIONS.USSDIR; +exports.UssDirDefinition = { + name: "uss-directory", + aliases: ["dir"], + summary: ussStrings.SUMMARY, + description: ussStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/ussDir.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "ussPath", + type: "string", + description: ussStrings.POSITIONALS.PATH, + required: true + } + ], + options: [ + uss_options_1.UssCreateOptions.mode + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: ussStrings.EXAMPLES.CREATE_DIRECTORY, + options: "testDir" + }, + { + description: ussStrings.EXAMPLES.SPECIFY_MODE, + options: "testDir -m rwxrwxrwx" + } + ] +}; +//# sourceMappingURL=ussDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.js.map b/lib/zosfiles/create/ussDir/ussDir.definition.js.map new file mode 100644 index 0000000000..ec862e67a1 --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ussDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/ussDir.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uDAAyD;AAGzD,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;AAExC,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC,OAAO;IAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAgB,CAAC,IAAI;KACxB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB;YACjD,OAAO,EAAE,SAAS;SACrB;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY;YAC7C,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.d.ts b/lib/zosfiles/create/ussDir/ussDir.handler.d.ts new file mode 100644 index 0000000000..8cf42b7760 --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a USS Directory + */ +export default class UssDirHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.js b/lib/zosfiles/create/ussDir/ussDir.handler.js new file mode 100644 index 0000000000..380db9de90 --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.handler.js @@ -0,0 +1,37 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a USS Directory + */ +class UssDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const strMode = commandParameters.arguments.mode; + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + return zos_files_for_zowe_sdk_1.Create.uss(session, commandParameters.arguments.ussPath, "directory", strMode, zosFilesOptions); + }); + } +} +exports.default = UssDirHandler; +//# sourceMappingURL=ussDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.js.map b/lib/zosfiles/create/ussDir/ussDir.handler.js.map new file mode 100644 index 0000000000..a10aa05f9d --- /dev/null +++ b/lib/zosfiles/create/ussDir/ussDir.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ussDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/ussDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,aAAc,SAAQ,0CAAmB;IAC7C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;YACjD,MAAM,eAAe,GAAqB,EAAE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAE1G,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;QAC3G,CAAC;KAAA;CACJ;AAPD,gCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/uss.options.d.ts b/lib/zosfiles/create/ussFile/uss.options.d.ts new file mode 100644 index 0000000000..f8bf395765 --- /dev/null +++ b/lib/zosfiles/create/ussFile/uss.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Specifies the file or directory permission bits to be used in creating the file or directory. + */ +export declare const UssCreateOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/create/ussFile/uss.options.js b/lib/zosfiles/create/ussFile/uss.options.js new file mode 100644 index 0000000000..cf6bb8c89f --- /dev/null +++ b/lib/zosfiles/create/ussFile/uss.options.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssCreateOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE.ACTIONS.USSFILE.OPTIONS; +/** + * Specifies the file or directory permission bits to be used in creating the file or directory. + */ +exports.UssCreateOptions = { + /** + * The permission bits for the owner, group, and world users of the file + * @type {ICommandOptionDefinition} + */ + mode: { + name: "mode", + aliases: ["m"], + description: strings.MODE, + type: "string", + // eslint-disable-next-line @typescript-eslint/no-magic-numbers + stringLengthRange: [9, 9] + } +}; +//# sourceMappingURL=uss.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/uss.options.js.map b/lib/zosfiles/create/ussFile/uss.options.js.map new file mode 100644 index 0000000000..9d3d0026b8 --- /dev/null +++ b/lib/zosfiles/create/ussFile/uss.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"uss.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/uss.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AAE7G;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,+DAA+D;QAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.d.ts b/lib/zosfiles/create/ussFile/ussFile.definition.d.ts new file mode 100644 index 0000000000..312a696e09 --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.js b/lib/zosfiles/create/ussFile/ussFile.definition.js new file mode 100644 index 0000000000..1f048153f8 --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssFileDefinition = void 0; +const uss_options_1 = require("./uss.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const ussStrings = fileStrings.CREATE.ACTIONS.USSFILE; +exports.UssFileDefinition = { + name: "uss-file", + aliases: ["file"], + summary: ussStrings.SUMMARY, + description: ussStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/ussFile.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "ussPath", + type: "string", + description: ussStrings.POSITIONALS.PATH, + required: true + } + ], + options: [ + uss_options_1.UssCreateOptions.mode + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: ussStrings.EXAMPLES.CREATE_FILE, + options: "text.txt" + }, + { + description: ussStrings.EXAMPLES.SPECIFY_MODE, + options: "text.txt -m rwxrwxrwx" + } + ] +}; +//# sourceMappingURL=ussFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.js.map b/lib/zosfiles/create/ussFile/ussFile.definition.js.map new file mode 100644 index 0000000000..6c84a87a76 --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ussFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/ussFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+CAAiD;AAGjD,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;AAEzC,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC,OAAO;IAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAgB,CAAC,IAAI;KACxB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW;YAC5C,OAAO,EAAE,UAAU;SACtB;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY;YAC7C,OAAO,EAAE,uBAAuB;SACnC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.d.ts b/lib/zosfiles/create/ussFile/ussFile.handler.d.ts new file mode 100644 index 0000000000..46c4867f7f --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a USS file + */ +export default class UssFileHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.js b/lib/zosfiles/create/ussFile/ussFile.handler.js new file mode 100644 index 0000000000..6d85247974 --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.handler.js @@ -0,0 +1,37 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a USS file + */ +class UssFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const strMode = commandParameters.arguments.mode; + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + return zos_files_for_zowe_sdk_1.Create.uss(session, commandParameters.arguments.ussPath, "file", strMode, zosFilesOptions); + }); + } +} +exports.default = UssFileHandler; +//# sourceMappingURL=ussFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.js.map b/lib/zosfiles/create/ussFile/ussFile.handler.js.map new file mode 100644 index 0000000000..b97d07188f --- /dev/null +++ b/lib/zosfiles/create/ussFile/ussFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ussFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/ussFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;YACjD,MAAM,eAAe,GAAqB,EAAE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAE1G,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;QACtG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.definition.d.ts b/lib/zosfiles/create/vsam/vsam.definition.d.ts new file mode 100644 index 0000000000..f0d6deffaf --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const VsamDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/vsam/vsam.definition.js b/lib/zosfiles/create/vsam/vsam.definition.js new file mode 100644 index 0000000000..80f297a549 --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.definition.js @@ -0,0 +1,84 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VsamDefinition = void 0; +const vsam_options_1 = require("./vsam.options"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const vsamStrings = fileStrings.CREATE.ACTIONS.VSAM; +// Add the allowable values to the description of dataset organization. +const vsamDsOrg = Create_options_1.ZosFilesCreateOptions.dsorg; +vsamDsOrg.description += + "."; +vsamDsOrg.defaultValue = zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.dsorg; +vsamDsOrg.allowableValues = { + values: zos_files_for_zowe_sdk_1.ZosFilesConstants.VSAM_DSORG_CHOICES, + caseSensitive: false +}; +// revise the description of size for VSAM. +const vsamSize = Object.assign({}, ...[Create_options_1.ZosFilesCreateExtraOptions.size]); +vsamSize.description = + vsamStrings.OPTIONS.SIZE; +vsamSize.defaultValue = zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.primary + zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.alcunit; +// revise the description of secondary-space for VSAM. +const vsamSecondary = Object.assign({}, ...[Create_options_1.ZosFilesCreateOptions.secondary]); +vsamSecondary.description = vsamStrings.OPTIONS.SECONDARY; +// Add the allowable values to the description of retainFor. +const vsamRetainFor = Object.assign({}, ...[vsam_options_1.VsamCreateOptions.retainFor]); +exports.VsamDefinition = { + name: "data-set-vsam", + aliases: ["vsam"], + description: vsamStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/vsam.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: vsamStrings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + vsamDsOrg, + vsamSize, + vsamSecondary, + vsam_options_1.VsamCreateOptions.volumes, + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + vsamRetainFor, + vsam_options_1.VsamCreateOptions.retainTo, + Create_options_1.ZosFilesCreateExtraOptions.showAttributes, + Create_options_1.ZosFilesCreateExtraOptions.attributes + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: vsamStrings.EXAMPLES.DEFAULT_VALUES, + options: "SOME.DATA.SET.NAME" + }, + { + description: vsamStrings.EXAMPLES.SHOW_FIVE_MB, + options: "SOME.DATA.SET.NAME --data-set-organization LINEAR --size 5MB --secondary-space 1 --attributes" + }, + { + description: vsamStrings.EXAMPLES.RETAIN_100_DAYS, + options: "SOME.DATA.SET.NAME --retain-for 100 " + } + ] +}; +//# sourceMappingURL=vsam.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.definition.js.map b/lib/zosfiles/create/vsam/vsam.definition.js.map new file mode 100644 index 0000000000..38f00ae587 --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vsam.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iDAAmD;AACnD,yEAAiF;AACjF,sDAAsF;AAItF,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AAEpD,uEAAuE;AACvE,MAAM,SAAS,GAAG,sCAAqB,CAAC,KAAK,CAAC;AAC9C,SAAS,CAAC,WAAW;IACjB,GAAG,CAAC;AACR,SAAS,CAAC,YAAY,GAAG,uCAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AACnD,SAAS,CAAC,eAAe,GAAG;IACxB,MAAM,EAAE,0CAAiB,CAAC,kBAAkB;IAC5C,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF,2CAA2C;AAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,2CAA0B,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,QAAQ,CAAC,WAAW;IAChB,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;AAC7B,QAAQ,CAAC,YAAY,GAAG,uCAAc,CAAC,IAAI,CAAC,OAAO,GAAG,uCAAc,CAAC,IAAI,CAAC,OAAO,CAAC;AAElF,s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,QAAQ,CAAC,YAAY;YAC9C,OAAO,EAAE,+FAA+F;SAC3G;QACD;YACI,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,eAAe;YACjD,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.handler.d.ts b/lib/zosfiles/create/vsam/vsam.handler.d.ts new file mode 100644 index 0000000000..17e77c7738 --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a VSAM data set + */ +export default class VsamHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/vsam/vsam.handler.js b/lib/zosfiles/create/vsam/vsam.handler.js new file mode 100644 index 0000000000..8f68436747 --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.handler.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a VSAM data set + */ +class VsamHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + // collect the options from our command line arguments into an object + const createVsamOptions = JSON.parse(JSON.stringify({ + dsorg: commandParameters.arguments.dataSetOrganization, + size: commandParameters.arguments.size, + secondary: commandParameters.arguments.secondarySpace, + volumes: commandParameters.arguments.volumes, + storclass: commandParameters.arguments.storageClass, + mgntclass: commandParameters.arguments.managementClass, + dataclass: commandParameters.arguments.dataClass, + retainFor: commandParameters.arguments.retainFor, + retainTo: commandParameters.arguments.retainTo, + showAttributes: commandParameters.arguments.showAttributes || commandParameters.arguments.attributes, + responseTimeout: commandParameters.arguments.responseTimeout + })); + return zos_files_for_zowe_sdk_1.Create.vsam(session, commandParameters.arguments.dataSetName, createVsamOptions); + }); + } +} +exports.default = VsamHandler; +//# sourceMappingURL=vsam.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.handler.js.map b/lib/zosfiles/create/vsam/vsam.handler.js.map new file mode 100644 index 0000000000..e059e80fac --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vsam.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.handler.ts"],"names":[],"mappings":";AACA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA6F;AAC7F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,iBAAiB,GAAgC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;gBAC7E,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,mBAAmB;gBACtD,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc;gBACrD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACnD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBACtD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBACpG,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC,CAAC;YAEJ,OAAO,+BAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AAnBD,8BAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.options.d.ts b/lib/zosfiles/create/vsam/vsam.options.d.ts new file mode 100644 index 0000000000..c6ede2fd1e --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the Create API + */ +export declare const VsamCreateOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/create/vsam/vsam.options.js b/lib/zosfiles/create/vsam/vsam.options.js new file mode 100644 index 0000000000..3b336a452a --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.options.js @@ -0,0 +1,53 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VsamCreateOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE.ACTIONS.VSAM.OPTIONS; +/** + * Object containing all extra options to be used by the Create API + */ +exports.VsamCreateOptions = { + /** + * The volumes on which to allocate a VSAM cluster + * @type {ICommandOptionDefinition} + */ + volumes: { + name: "volumes", + aliases: ["v"], + description: strings.VOLUMES, + type: "string" + }, + /** + * The number of days for which the VSAM cluster will be retained. + * @type {ICommandOptionDefinition} + */ + retainFor: { + name: "retain-for", + aliases: ["rf"], + description: strings.RETAINFOR, + type: "number", + conflictsWith: ["retain-to"] + }, + /** + * The number of days for which the VSAM cluster will be retained. + * @type {ICommandOptionDefinition} + */ + retainTo: { + name: "retain-to", + aliases: ["rt"], + description: strings.RETAINTO, + type: "string", + conflictsWith: ["retain-for"] + } +}; +//# sourceMappingURL=vsam.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.options.js.map b/lib/zosfiles/create/vsam/vsam.options.js.map new file mode 100644 index 0000000000..d49d815767 --- /dev/null +++ b/lib/zosfiles/create/vsam/vsam.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vsam.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAE1G;;GAEG;AACU,QAAA,iBAAiB,GAAgD;IAC1E;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,WAAW,CAAC;KAC/B;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,YAAY,CAAC;KAChC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.definition.d.ts b/lib/zosfiles/create/zfs/zfs.definition.d.ts new file mode 100644 index 0000000000..99dfaa72b4 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ZfsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/zfs/zfs.definition.js b/lib/zosfiles/create/zfs/zfs.definition.js new file mode 100644 index 0000000000..15632f14fc --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.definition.js @@ -0,0 +1,64 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZfsDefinition = void 0; +const zfs_options_1 = require("./zfs.options"); +const Create_options_1 = require("../Create.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const zfsStrings = fileStrings.CREATE.ACTIONS.ZFS; +exports.ZfsDefinition = { + name: "zos-file-system", + aliases: ["zfs"], + summary: zfsStrings.SUMMARY, + description: zfsStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/zfs.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fileSystemName", + type: "string", + description: zfsStrings.POSITIONALS.FILESYSTEMNAME, + required: true + } + ], + options: [ + zfs_options_1.ZfsCreateOptions.owner, + zfs_options_1.ZfsCreateOptions.group, + zfs_options_1.ZfsCreateOptions.perms, + zfs_options_1.ZfsCreateOptions.cylsPri, + zfs_options_1.ZfsCreateOptions.cylsSec, + Create_options_1.ZosFilesCreateOptions.storclass, + Create_options_1.ZosFilesCreateOptions.mgntclass, + Create_options_1.ZosFilesCreateOptions.dataclass, + zfs_options_1.ZfsCreateOptions.volumes, + zfs_options_1.ZfsCreateOptions.timeout + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: zfsStrings.EXAMPLES.DEFAULT_VALUES, + options: "HLQ.MYNEW.ZFS" + }, + { + description: zfsStrings.EXAMPLES.SPECIFY_CYLS, + options: "HLQ.MYNEW.ZFS --cp 100 --cs 10" + }, + { + description: zfsStrings.EXAMPLES.SPECIFY_VOLUMES, + options: "HLQ.MYNEW.ZFS -v ZFS001 ZFS002" + } + ] +}; +//# sourceMappingURL=zfs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.definition.js.map b/lib/zosfiles/create/zfs/zfs.definition.js.map new file mode 100644 index 0000000000..0c9bdf7f83 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"zfs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+CAAiD;AACjD,sDAA0D;AAG1D,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAErC,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC,OAAO;IAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,cAAc;YAClD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAgB,CAAC,KAAK;QACtB,8BAAgB,CAAC,KAAK;QACtB,8BAAgB,CAAC,KAAK;QACtB,8BAAgB,CAAC,OAAO;QACxB,8BAAgB,CAAC,OAAO;QACxB,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,8BAAgB,CAAC,OAAO;QACxB,8BAAgB,CAAC,OAAO;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc;YAC/C,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY;YAC7C,OAAO,EAAE,gCAAgC;SAC5C;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe;YAChD,OAAO,EAAE,gCAAgC;SAC5C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.handler.d.ts b/lib/zosfiles/create/zfs/zfs.handler.d.ts new file mode 100644 index 0000000000..68b24794ee --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a z/OS file system + */ +export default class ZfsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/create/zfs/zfs.handler.js b/lib/zosfiles/create/zfs/zfs.handler.js new file mode 100644 index 0000000000..235352aeb2 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.handler.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a z/OS file system + */ +class ZfsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + // collect the options from our command line arguments into an object + const createZfsOptions = { + owner: commandParameters.arguments.owner, + group: commandParameters.arguments.group, + perms: commandParameters.arguments.perms, + cylsPri: commandParameters.arguments.cylsPri, + cylsSec: commandParameters.arguments.cylsSec, + storclass: commandParameters.arguments.storageClass, + mgntclass: commandParameters.arguments.managementClass, + dataclass: commandParameters.arguments.dataClass, + volumes: commandParameters.arguments.volumes, + timeout: commandParameters.arguments.timeout, + responseTimeout: commandParameters.arguments.responseTimeout + }; + return zos_files_for_zowe_sdk_1.Create.zfs(session, commandParameters.arguments.fileSystemName, createZfsOptions); + }); + } +} +exports.default = ZfsHandler; +//# sourceMappingURL=zfs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.handler.js.map b/lib/zosfiles/create/zfs/zfs.handler.js.map new file mode 100644 index 0000000000..8a8b73f59d --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"zfs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA4F;AAC5F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,gBAAgB,GAA+B;gBACjD,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACnD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBACtD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAC7F,CAAC;KAAA;CACJ;AAnBD,6BAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.options.d.ts b/lib/zosfiles/create/zfs/zfs.options.d.ts new file mode 100644 index 0000000000..d23c5608f6 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the Create API + */ +export declare const ZfsCreateOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/create/zfs/zfs.options.js b/lib/zosfiles/create/zfs/zfs.options.js new file mode 100644 index 0000000000..5b774459f9 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.options.js @@ -0,0 +1,95 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZfsCreateOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.CREATE.ACTIONS.ZFS.OPTIONS; +/** + * Object containing all extra options to be used by the Create API + */ +exports.ZfsCreateOptions = { + /** + * The user ID for owner of the ZFS root directory + * @type {ICommandOptionDefinition} + */ + owner: { + name: "owner", + aliases: ["o"], + description: strings.OWNER, + type: "string" + }, + /** + * The group ID for the ZFS root directory + * @type {ICommandOptionDefinition} + */ + group: { + name: "group", + aliases: ["g"], + description: strings.GROUP, + type: "string" + }, + /** + * The permissions code for the ZFS root directory + * @type {ICommandOptionDefinition} + */ + perms: { + name: "perms", + aliases: ["p"], + description: strings.PERMS, + type: "number", + defaultValue: 755 + }, + /** + * The number of primary cylinders to allocate for the ZFS + * @type {ICommandOptionDefinition} + */ + cylsPri: { + name: "cyls-pri", + aliases: ["cp"], + description: strings.CYLS_PRI, + type: "number", + defaultValue: 10 + }, + /** + * The number of secondary cylinders to allocate for the ZFS + * @type {ICommandOptionDefinition} + */ + cylsSec: { + name: "cyls-sec", + aliases: ["cs"], + description: strings.CYLS_SEC, + type: "number", + defaultValue: 2 + }, + /** + * The volumes on which to create the ZFS + * @type {ICommandOptionDefinition} + */ + volumes: { + name: "volumes", + aliases: ["v"], + description: strings.VOLUMES, + type: "array" + }, + /** + * The number of seconds to wait for the create command to complete + * @type {ICommandOptionDefinition} + */ + timeout: { + name: "timeout", + aliases: ["t"], + description: strings.TIMEOUT, + type: "number", + defaultValue: 20 + } +}; +//# sourceMappingURL=zfs.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.options.js.map b/lib/zosfiles/create/zfs/zfs.options.js.map new file mode 100644 index 0000000000..e02cd31ef7 --- /dev/null +++ b/lib/zosfiles/create/zfs/zfs.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"zfs.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;AAEzG;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,GAAG;KACpB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACnB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,CAAC;KAClB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,OAAO;KAChB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/Delete.definition.d.ts b/lib/zosfiles/delete/Delete.definition.d.ts new file mode 100644 index 0000000000..1dd9dc9521 --- /dev/null +++ b/lib/zosfiles/delete/Delete.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for the delete group within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/Delete.definition.js b/lib/zosfiles/delete/Delete.definition.js new file mode 100644 index 0000000000..dc3ae481c4 --- /dev/null +++ b/lib/zosfiles/delete/Delete.definition.js @@ -0,0 +1,40 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDefinition = void 0; +const Ds_definition_1 = require("./ds/Ds.definition"); +const Vsam_definition_1 = require("./vsam/Vsam.definition"); +const Uss_definition_1 = require("./uss/Uss.definition"); +const zfs_definition_1 = require("./zfs/zfs.definition"); +const Mds_definition_1 = require("./mds/Mds.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.DELETE; +/** + * This object defines the command for the delete group within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.DeleteDefinition = { + name: "delete", + aliases: ["del"], + type: "group", + description: strings.DESCRIPTION, + children: [ + Ds_definition_1.DsDefinition, + Mds_definition_1.MdsDefinition, + Vsam_definition_1.VsamDefinition, + Uss_definition_1.UssDefinition, + zfs_definition_1.ZfsDefinition + ] +}; +//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/Delete.definition.js.map b/lib/zosfiles/delete/Delete.definition.js.map new file mode 100644 index 0000000000..e668c09006 --- /dev/null +++ b/lib/zosfiles/delete/Delete.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,sDAAkD;AAClD,4DAAwD;AACxD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAErD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,8BAAa;QACb,gCAAc;QACd,8BAAa;QACb,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.definition.d.ts b/lib/zosfiles/delete/ds/Ds.definition.d.ts new file mode 100644 index 0000000000..57f09cdcc4 --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/ds/Ds.definition.js b/lib/zosfiles/delete/ds/Ds.definition.js new file mode 100644 index 0000000000..39e46b6913 --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.definition.js @@ -0,0 +1,66 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DELETE.ACTIONS.DATA_SET; +/** + * This object defines the command for delete data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "Ds.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DSNAME, + required: true + } + ], + options: [ + { + name: "for-sure", + aliases: ["f"], + description: strings.OPTIONS.FOR_SURE, + type: "boolean", + required: true + }, + { + name: "volume", + aliases: ["vol"], + description: strings.OPTIONS.VOLUME, + type: "string" + } + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.cntl" -f` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.cntl(mem)" -f` + } + ] +}; +//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.definition.js.map b/lib/zosfiles/delete/ds/Ds.definition.js.map new file mode 100644 index 0000000000..fbf71d72b1 --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEtG;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,YAAY,CAAC;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM;YACvC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM;YACnC,IAAI,EAAE,QAAQ;SACjB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.handler.d.ts b/lib/zosfiles/delete/ds/Ds.handler.d.ts new file mode 100644 index 0000000000..92f2bc5fe4 --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to delete a data set. + */ +export default class DsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/delete/ds/Ds.handler.js b/lib/zosfiles/delete/ds/Ds.handler.js new file mode 100644 index 0000000000..da292a0739 --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.handler.js @@ -0,0 +1,40 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to delete a data set. + */ +class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const options = {}; + if (commandParameters.arguments.volume) { + options.volume = commandParameters.arguments.volume; + } + options.responseTimeout = commandParameters.arguments.responseTimeout; + return zos_files_for_zowe_sdk_1.Delete.dataSet(session, commandParameters.arguments.dataSetName, options); + }); + } +} +exports.default = DsHandler; +//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.handler.js.map b/lib/zosfiles/delete/ds/Ds.handler.js.map new file mode 100644 index 0000000000..d366bddbee --- /dev/null +++ b/lib/zosfiles/delete/ds/Ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAA0B,EAAE,CAAC;YAE1C,IAAI,iBAAiB,CAAC,SAAS,CAAC,MAAM,EAAE;gBACpC,OAAO,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC;aACvD;YACD,OAAO,CAAC,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC;YAEtE,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACrF,CAAC;KAAA;CACJ;AAXD,4BAWC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.definition.d.ts b/lib/zosfiles/delete/mds/Mds.definition.d.ts new file mode 100644 index 0000000000..26bfe6ace4 --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const MdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/mds/Mds.definition.js b/lib/zosfiles/delete/mds/Mds.definition.js new file mode 100644 index 0000000000..1361477cce --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.definition.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MdsDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DELETE.ACTIONS.MIGRATED_DATA_SET; +exports.MdsDefinition = { + name: "migrated-data-set", + aliases: ["mds"], + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/Mds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + { + name: "wait", + aliases: ["w"], + description: strings.OPTIONS.WAIT, + type: "boolean", + defaultValue: false, + required: false + }, + { + name: "purge", + aliases: ["p"], + description: strings.OPTIONS.PURGE, + type: "boolean", + defaultValue: false, + required: false + } + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"USER.DATA.SET"` + } + ] +}; +//# sourceMappingURL=Mds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.definition.js.map b/lib/zosfiles/delete/mds/Mds.definition.js.map new file mode 100644 index 0000000000..d1ab825ad2 --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Mds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/mds/Mds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;AAElG,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;YACjC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAClC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.handler.d.ts b/lib/zosfiles/delete/mds/Mds.handler.d.ts new file mode 100644 index 0000000000..ea8cead525 --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Handler to rename a Data Set + */ +export default class MDSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/delete/mds/Mds.handler.js b/lib/zosfiles/delete/mds/Mds.handler.js new file mode 100644 index 0000000000..9dac2e302e --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +/** + * Handler to rename a Data Set + */ +class MDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const { options } = commandParameters.arguments; + return zos_files_for_zowe_sdk_1.HDelete.dataSet(session, commandParameters.arguments.dataSetName, options); + }); + } +} +exports.default = MDSHandler; +//# sourceMappingURL=Mds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.handler.js.map b/lib/zosfiles/delete/mds/Mds.handler.js.map new file mode 100644 index 0000000000..491a5c3426 --- /dev/null +++ b/lib/zosfiles/delete/mds/Mds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Mds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/mds/Mds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAA0E;AAE1E;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,gCAAO,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtF,CAAC;KAAA;CACJ;AAVD,6BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.definition.d.ts b/lib/zosfiles/delete/uss/Uss.definition.d.ts new file mode 100644 index 0000000000..ad66459cac --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const UssDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/uss/Uss.definition.js b/lib/zosfiles/delete/uss/Uss.definition.js new file mode 100644 index 0000000000..17b567811f --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.definition.js @@ -0,0 +1,71 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DELETE.ACTIONS.USS; +/** + * This object defines the command for delete data-set within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.UssDefinition = { + name: "uss-file", + aliases: ["uf", "uss"], + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "Uss.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fileName", + type: "string", + description: strings.POSITIONALS.FILENAME, + required: true + } + ], + options: ([ + { + name: "for-sure", + aliases: ["f"], + description: strings.OPTIONS.FOR_SURE, + type: "boolean", + required: true + }, + { + name: "recursive", + aliases: ["r"], + description: strings.OPTIONS.RECURSIVE, + type: "boolean", + required: false + } + ]), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"/a/ibmuser/testcases" -f` + }, + { + description: strings.EXAMPLES.EX2, + options: `"/a/ibmuser/testcases/my_text.txt" -f` + }, + { + description: strings.EXAMPLES.EX3, + options: `"/a/ibmuser/testcases" -rf` + } + ] +}; +//# sourceMappingURL=Uss.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.definition.js.map b/lib/zosfiles/delete/uss/Uss.definition.js.map new file mode 100644 index 0000000000..d07d1ff512 --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Uss.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/uss/Uss.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;;;GAKG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;YACtC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;SAClB;KACJ,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2BAA2B;SACvC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,uCAAuC;SACnD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.handler.d.ts b/lib/zosfiles/delete/uss/Uss.handler.d.ts new file mode 100644 index 0000000000..00c1b251a4 --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to delete a USS file. + */ +export default class UssHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/delete/uss/Uss.handler.js b/lib/zosfiles/delete/uss/Uss.handler.js new file mode 100644 index 0000000000..d1910f8d04 --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to delete a USS file. + */ +class UssHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + return zos_files_for_zowe_sdk_1.Delete.ussFile(session, commandParameters.arguments.fileName, commandParameters.arguments.recursive, zosFilesOptions); + }); + } +} +exports.default = UssHandler; +//# sourceMappingURL=Uss.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.handler.js.map b/lib/zosfiles/delete/uss/Uss.handler.js.map new file mode 100644 index 0000000000..9c8b13b664 --- /dev/null +++ b/lib/zosfiles/delete/uss/Uss.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Uss.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/uss/Uss.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QACjI,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.d.ts b/lib/zosfiles/delete/vsam/Vsam.definition.d.ts new file mode 100644 index 0000000000..48ed718b3c --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete vsam-cluster within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const VsamDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.js b/lib/zosfiles/delete/vsam/Vsam.definition.js new file mode 100644 index 0000000000..62cfbdca15 --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.definition.js @@ -0,0 +1,82 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.VsamDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DELETE.ACTIONS.VSAM; +/** + * This object defines the command for delete vsam-cluster within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.VsamDefinition = { + name: "data-set-vsam", + aliases: ["vsam"], + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "Vsam.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: strings.POSITIONALS.DSNAME, + required: true + } + ], + options: [ + { + name: "for-sure", + aliases: ["f"], + description: strings.OPTIONS.FOR_SURE, + type: "boolean", + required: true + }, + { + name: "erase", + aliases: ["e"], + description: strings.OPTIONS.ERASE, + type: "boolean", + defaultValue: false + }, + { + name: "purge", + aliases: ["p"], + description: strings.OPTIONS.PURGE, + type: "boolean", + defaultValue: false + } + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.cntl.vsam" -f` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.AAA.**.FFF" -f` + }, + { + description: strings.EXAMPLES.EX3, + options: `"ibmuser.cntl.vsam" -f --purge` + }, + { + description: strings.EXAMPLES.EX4, + options: `"ibmuser.cntl.vsam" -f --erase` + } + ] +}; +//# sourceMappingURL=Vsam.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.js.map b/lib/zosfiles/delete/vsam/Vsam.definition.js.map new file mode 100644 index 0000000000..5aac60be81 --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Vsam.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/vsam/Vsam.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AAElG;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,cAAc,CAAC;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM;YACvC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAClC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;SACtB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAClC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;SACtB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,gCAAgC;SAC5C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,gCAAgC;SAC5C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.handler.d.ts b/lib/zosfiles/delete/vsam/Vsam.handler.d.ts new file mode 100644 index 0000000000..8a22cb2d1a --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to delete a VSAM data set. + */ +export default class VsamHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/delete/vsam/Vsam.handler.js b/lib/zosfiles/delete/vsam/Vsam.handler.js new file mode 100644 index 0000000000..d059668bb2 --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.handler.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to delete a VSAM data set. + */ +class VsamHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + return zos_files_for_zowe_sdk_1.Delete.vsam(session, commandParameters.arguments.dataSetName, { + erase: commandParameters.arguments.erase, + purge: commandParameters.arguments.purge, + responseTimeout: commandParameters.arguments.responseTimeout + }); + }); + } +} +exports.default = VsamHandler; +//# sourceMappingURL=Vsam.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.handler.js.map b/lib/zosfiles/delete/vsam/Vsam.handler.js.map new file mode 100644 index 0000000000..bf66c8c749 --- /dev/null +++ b/lib/zosfiles/delete/vsam/Vsam.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Vsam.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/vsam/Vsam.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAyE;AACzE,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACjE,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AARD,8BAQC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.definition.d.ts b/lib/zosfiles/delete/zfs/zfs.definition.d.ts new file mode 100644 index 0000000000..6c26a19a66 --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.definition.d.ts @@ -0,0 +1,8 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * This object defines the command for delete zos-file-system within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +export declare const ZfsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/zfs/zfs.definition.js b/lib/zosfiles/delete/zfs/zfs.definition.js new file mode 100644 index 0000000000..62c83ca969 --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.definition.js @@ -0,0 +1,57 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ZfsDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DELETE.ACTIONS.ZFS; +/** + * This object defines the command for delete zos-file-system within zosfiles. This is not + * something that is intended to be used outside of the zosfiles package. + * + * @private + */ +exports.ZfsDefinition = { + name: "zos-file-system", + aliases: ["zfs"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "zfs.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fileSystemName", + type: "string", + description: strings.POSITIONALS.FILESYSTEMNAME, + required: true + } + ], + options: [ + { + name: "for-sure", + aliases: ["f"], + description: strings.OPTIONS.FOR_SURE, + type: "boolean", + required: true + } + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"HLQ.MYNEW.ZFS" -f` + } + ] +}; +//# sourceMappingURL=zfs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.definition.js.map b/lib/zosfiles/delete/zfs/zfs.definition.js.map new file mode 100644 index 0000000000..3da821bb06 --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"zfs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/zfs/zfs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;;;GAKG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,cAAc;YAC/C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;SAChC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.handler.d.ts b/lib/zosfiles/delete/zfs/zfs.handler.d.ts new file mode 100644 index 0000000000..d014f5f17b --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Handler to delete a z/OS file system. + */ +export default class ZfsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/delete/zfs/zfs.handler.js b/lib/zosfiles/delete/zfs/zfs.handler.js new file mode 100644 index 0000000000..61ec8e4c47 --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +/** + * Handler to delete a z/OS file system. + */ +class ZfsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + return zos_files_for_zowe_sdk_1.Delete.zfs(session, commandParameters.arguments.fileSystemName, zosFilesOptions); + }); + } +} +exports.default = ZfsHandler; +//# sourceMappingURL=zfs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.handler.js.map b/lib/zosfiles/delete/zfs/zfs.handler.js.map new file mode 100644 index 0000000000..9928b35bd1 --- /dev/null +++ b/lib/zosfiles/delete/zfs/zfs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"zfs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/zfs/zfs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAA2F;AAE3F;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/download/Download.definition.d.ts b/lib/zosfiles/download/Download.definition.d.ts new file mode 100644 index 0000000000..65a9b542ef --- /dev/null +++ b/lib/zosfiles/download/Download.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const DownloadDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/Download.definition.js b/lib/zosfiles/download/Download.definition.js new file mode 100644 index 0000000000..1247e2d02d --- /dev/null +++ b/lib/zosfiles/download/Download.definition.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DownloadDefinition = void 0; +const Dataset_definition_1 = require("./ds/Dataset.definition"); +const AllMembers_definition_1 = require("./am/AllMembers.definition"); +const UssFile_definition_1 = require("./uss/UssFile.definition"); +const DataSetMatching_definition_1 = require("./dsm/DataSetMatching.definition"); +const UssDir_definition_1 = require("./ussdir/UssDir.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.DOWNLOAD; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.DownloadDefinition = { + name: "download", + aliases: ["dl"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Dataset_definition_1.DatasetDefinition, + AllMembers_definition_1.AllMembersDefinition, + UssFile_definition_1.UssFileDefinition, + UssDir_definition_1.UssDirDefinition, + DataSetMatching_definition_1.DataSetMatchingDefinition + ] +}; +//# sourceMappingURL=Download.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/Download.definition.js.map b/lib/zosfiles/download/Download.definition.js.map new file mode 100644 index 0000000000..1e3c77fb4b --- /dev/null +++ b/lib/zosfiles/download/Download.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Download.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/download/Download.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA4D;AAC5D,sEAAkE;AAGlE,iEAA6D;AAC7D,iFAA6E;AAC7E,kEAA8D;AAE9D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC;AAEpF;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,4CAAoB;QACpB,sCAAiB;QACjB,oCAAgB;QAChB,sDAAyB;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/Download.options.d.ts b/lib/zosfiles/download/Download.options.d.ts new file mode 100644 index 0000000000..29e0f21835 --- /dev/null +++ b/lib/zosfiles/download/Download.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the Download data set API + */ +export declare const DownloadOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/download/Download.options.js b/lib/zosfiles/download/Download.options.js new file mode 100644 index 0000000000..2cb84c8dfb --- /dev/null +++ b/lib/zosfiles/download/Download.options.js @@ -0,0 +1,189 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DownloadOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.DOWNLOAD.OPTIONS; +const maxConcurrentRequestsMaxValue = 99999; +/** + * Object containing all options to be used by the Download data set API + */ +exports.DownloadOptions = { + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volume: { + name: "volume-serial", + aliases: ["vs"], + description: strings.VOLUME, + type: "string" + }, + /** + * The binary option + * @type {ICommandOptionDefinition} + */ + binary: { + name: "binary", + aliases: ["b"], + description: strings.BINARY, + type: "boolean" + }, + /** + * The record option + * @type {ICommandOptionDefinition} + */ + record: { + name: "record", + aliases: ["r"], + description: strings.RECORD, + type: "boolean", + conflictsWith: ["binary"] + }, + /** + * The encoding option + * @type {ICommandOptionDefinition} + */ + encoding: { + name: "encoding", + aliases: ["ec"], + description: strings.ENCODING, + type: "string" + }, + /** + * The local file to download the data set to + * @type {ICommandOptionDefinition} + */ + file: { + name: "file", + aliases: ["f"], + description: strings.FILE, + type: "string" + }, + /** + * The file extension to use for the downloaded file + * @type {ICommandOptionDefinition} + */ + extension: { + name: "extension", + aliases: ["e"], + description: strings.EXTENSION, + type: "stringOrEmpty" + }, + /** + * The directory to download all members to + * @type {ICommandOptionDefinition} + */ + directory: { + name: "directory", + aliases: ["d"], + description: strings.DIRECTORY, + type: "string" + }, + directoryUss: { + name: "directory", + aliases: ["d"], + description: strings.DIRECTORY_USS, + type: "string" + }, + /** + * The pattern to be excluded + * @type {ICommandOptionDefinition} + */ + excludePattern: { + name: "exclude-patterns", + aliases: ["ep"], + description: strings.EXCLUDE_PATTERN, + type: "string" + }, + /** + * The extension-map to use for the downloaded file + * @type {ICommandOptionDefinition} + */ + extensionMap: { + name: "extension-map", + aliases: ["em"], + description: strings.EXTENSION_MAP, + type: "string", + conflictsWith: ["extension"] + }, + /** + * The maximum concurrent requests for "download all-members" + * @type {ICommandOptionDefinition} + */ + maxConcurrentRequests: { + name: "max-concurrent-requests", + aliases: ["mcr"], + description: strings.MAX_CONCURRENT_REQUESTS, + type: "number", + defaultValue: 1, + numericValueRange: [0, maxConcurrentRequestsMaxValue] + }, + maxConcurrentRequestsUss: { + name: "max-concurrent-requests", + aliases: ["mcr"], + description: strings.MAX_CONCURRENT_REQUESTS_USS, + type: "number", + defaultValue: 1, + numericValueRange: [0, maxConcurrentRequestsMaxValue] + }, + preserveOriginalLetterCase: { + name: "preserve-original-letter-case", + aliases: ["po"], + description: strings.PRESERVE_ORIGINAL_LETTER_CASE, + type: "boolean", + defaultValue: false + }, + failFast: { + name: "fail-fast", + aliases: ["ff"], + description: strings.FAIL_FAST, + type: "boolean", + defaultValue: true + }, + failFastUss: { + name: "fail-fast", + aliases: ["ff"], + description: strings.FAIL_FAST_USS, + type: "boolean", + defaultValue: true + }, + /** + * The attributes option to specify the path to a zos-files-attributes file + */ + attributes: { + name: "attributes", + aliases: ["attrs"], + description: strings.ATTRIBUTES, + type: "existingLocalFile", + conflictsWith: ["binary", "record"] + }, + /** + * The include hidden option for download + */ + includeHidden: { + name: "include-hidden", + aliases: ["ih"], + description: strings.INCLUDE_HIDDEN, + type: "boolean" + }, + /** + * The include hidden option for download + */ + overwrite: { + name: "overwrite", + aliases: ["ow"], + description: strings.OVERWRITE, + type: "boolean" + } +}; +//# sourceMappingURL=Download.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/Download.options.js.map b/lib/zosfiles/download/Download.options.js.map new file mode 100644 index 0000000000..e0effcdcec --- /dev/null +++ b/lib/zosfiles/download/Download.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Download.options.js","sourceRoot":"","sources":["../../../src/zosfiles/download/Download.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC;AAE5F,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAE5C;;GAEG;AACU,QAAA,eAAe,GAAgD;IACxE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QAC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iles/download/am/AllMembers.definition.d.ts new file mode 100644 index 0000000000..773fe099ab --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const AllMembersDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/am/AllMembers.definition.js b/lib/zosfiles/download/am/AllMembers.definition.js new file mode 100644 index 0000000000..f444aaf785 --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.definition.js @@ -0,0 +1,61 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllMembersDefinition = void 0; +const Download_options_1 = require("../Download.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.ALL_MEMBERS; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.AllMembersDefinition = { + name: "all-members", + aliases: ["am"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/AllMembers.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + Download_options_1.DownloadOptions.volume, + Download_options_1.DownloadOptions.directory, + Download_options_1.DownloadOptions.binary, + Download_options_1.DownloadOptions.record, + Download_options_1.DownloadOptions.encoding, + Download_options_1.DownloadOptions.extension, + Download_options_1.DownloadOptions.maxConcurrentRequests, + Download_options_1.DownloadOptions.preserveOriginalLetterCase, + Download_options_1.DownloadOptions.failFast + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.loadlib" -b -d loadlib` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.cntl" -d jcl` + } + ] +}; +//# sourceMappingURL=AllMembers.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.definition.js.map b/lib/zosfiles/download/am/AllMembers.definition.js.map new file mode 100644 index 0000000000..311c5d85eb --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllMembers.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/am/AllMembers.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;AAE3G;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;QACxB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,qBAAqB;QACrC,kCAAe,CAAC,0BAA0B;QAC1C,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iCAAiC;SAC7C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,uBAAuB;SACnC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.handler.d.ts b/lib/zosfiles/download/am/AllMembers.handler.d.ts new file mode 100644 index 0000000000..8ac63c0256 --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to download all members from a pds + * @export + */ +export default class AllMembersHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/download/am/AllMembers.handler.js b/lib/zosfiles/download/am/AllMembers.handler.js new file mode 100644 index 0000000000..ee51a1994c --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.handler.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to download all members from a pds + * @export + */ +class AllMembersHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const status = { + statusMessage: "Downloading all members", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task: status }); + return zos_files_for_zowe_sdk_1.Download.allMembers(session, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + encoding: commandParameters.arguments.encoding, + directory: commandParameters.arguments.directory, + extension: commandParameters.arguments.extension, + maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, + preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, + failFast: commandParameters.arguments.failFast, + task: status, + responseTimeout: commandParameters.arguments.responseTimeout + }); + }); + } +} +exports.default = AllMembersHandler; +//# sourceMappingURL=AllMembers.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.handler.js.map b/lib/zosfiles/download/am/AllMembers.handler.js.map new file mode 100644 index 0000000000..6ff40a8922 --- /dev/null +++ b/lib/zosfiles/download/am/AllMembers.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllMembers.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/am/AllMembers.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAA2E;AAC3E,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,yBAAyB;gBACxC,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC;YAC7D,OAAO,iCAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACzE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,MAAM;gBACZ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAtBD,oCAsBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.definition.d.ts b/lib/zosfiles/download/ds/Dataset.definition.d.ts new file mode 100644 index 0000000000..7b6fea174a --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/ds/Dataset.definition.js b/lib/zosfiles/download/ds/Dataset.definition.js new file mode 100644 index 0000000000..934d9eb51f --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.definition.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DatasetDefinition = void 0; +const Download_options_1 = require("../Download.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.DATA_SET; +/** + * Download data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DatasetDefinition = { + name: "data-set", + aliases: ["ds"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/Dataset.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + Download_options_1.DownloadOptions.volume, + Download_options_1.DownloadOptions.file, + Download_options_1.DownloadOptions.extension, + Download_options_1.DownloadOptions.binary, + Download_options_1.DownloadOptions.record, + Download_options_1.DownloadOptions.preserveOriginalLetterCase, + Download_options_1.DownloadOptions.encoding + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.loadlib(main)" -b -f main.obj` + } + ] +}; +//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.definition.js.map b/lib/zosfiles/download/ds/Dataset.definition.js.map new file mode 100644 index 0000000000..4cdf6b0ea2 --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAExG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,IAAI;QACpB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,0BAA0B;QAC1C,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wCAAwC;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.handler.d.ts b/lib/zosfiles/download/ds/Dataset.handler.d.ts new file mode 100644 index 0000000000..c4e1396f69 --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to download a data set or member + * @export + */ +export default class DatasetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/download/ds/Dataset.handler.js b/lib/zosfiles/download/ds/Dataset.handler.js new file mode 100644 index 0000000000..b1a659a982 --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.handler.js @@ -0,0 +1,54 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to download a data set or member + * @export + */ +class DatasetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Downloading data set", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + return zos_files_for_zowe_sdk_1.Download.dataSet(session, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + encoding: commandParameters.arguments.encoding, + file: commandParameters.arguments.file, + extension: commandParameters.arguments.extension, + preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, + task, + responseTimeout: commandParameters.arguments.responseTimeout, + overwrite: commandParameters.arguments.overwrite + }); + }); + } +} +exports.default = DatasetHandler; +//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.handler.js.map b/lib/zosfiles/download/ds/Dataset.handler.js.map new file mode 100644 index 0000000000..4e6801c49f --- /dev/null +++ b/lib/zosfiles/download/ds/Dataset.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAA2E;AAC3E,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,sBAAsB;gBACrC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YACrD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACtE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;aACnD,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AArBD,iCAqBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts b/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts new file mode 100644 index 0000000000..00f9ec2955 --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DataSetMatchingDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.js b/lib/zosfiles/download/dsm/DataSetMatching.definition.js new file mode 100644 index 0000000000..6f132e707c --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.definition.js @@ -0,0 +1,64 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataSetMatchingDefinition = void 0; +const Download_options_1 = require("../Download.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.DATA_SETS_MATCHING; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DataSetMatchingDefinition = { + name: "data-sets-matching", + aliases: ["dsm", "data-set-matching"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/DataSetMatching.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "pattern", + description: strings.POSITIONALS.PATTERN, + type: "string", + required: true + } + ], + options: [ + Download_options_1.DownloadOptions.volume, + Download_options_1.DownloadOptions.directory, + Download_options_1.DownloadOptions.binary, + Download_options_1.DownloadOptions.record, + Download_options_1.DownloadOptions.encoding, + Download_options_1.DownloadOptions.extension, + Download_options_1.DownloadOptions.excludePattern, + Download_options_1.DownloadOptions.extensionMap, + Download_options_1.DownloadOptions.maxConcurrentRequests, + Download_options_1.DownloadOptions.preserveOriginalLetterCase, + Download_options_1.DownloadOptions.failFast + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.**.cntl, ibmuser.**.jcl" --directory jcl --extension .jcl` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.public.project.*, ibmuser.project.private.*" --exclude-patterns "ibmuser.public.**.*lib" ` + + `--directory project --extension-map cpgm=c,asmpgm=asm,java=java,chdr=c,jcl=jcl,cntl=jcl` + } + ] +}; +//# sourceMappingURL=DataSetMatching.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map b/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map new file mode 100644 index 0000000000..bfa19c1c67 --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataSetMatching.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/dsm/DataSetMatching.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;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;gBAC7G,yFAAyF;SAC5F;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts b/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts new file mode 100644 index 0000000000..852f33ef3e --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to download all members from a pds + * @export + */ +export default class DataSetMatchingHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.js b/lib/zosfiles/download/dsm/DataSetMatching.handler.js new file mode 100644 index 0000000000..2f10c7c5f7 --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.handler.js @@ -0,0 +1,93 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to download all members from a pds + * @export + */ +class DataSetMatchingHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const extensionMap = {}; + try { + if (commandParameters.arguments.extensionMap) { + commandParameters.arguments.extensionMap = commandParameters.arguments.extensionMap.toLowerCase(); + const unoptimizedMap = commandParameters.arguments.extensionMap.split(","); + for (const entry of unoptimizedMap) { + const splitEntry = entry.split("="); + imperative_1.ImperativeExpect.toBeEqual(splitEntry.length, 2); + extensionMap[splitEntry[0]] = splitEntry[1]; + } + } + } + catch (err) { + throw new imperative_1.ImperativeError({ msg: "An error occurred processing the extension map.", causeErrors: err }); + } + const listStatus = { + statusMessage: "Searching for data sets", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + const listOptions = { + excludePatterns: (_a = commandParameters.arguments.excludePatterns) === null || _a === void 0 ? void 0 : _a.split(","), + maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, + task: listStatus, + responseTimeout: commandParameters.arguments.responseTimeout + }; + commandParameters.response.progress.startBar({ task: listStatus }); + const response = yield zos_files_for_zowe_sdk_1.List.dataSetsMatchingPattern(session, commandParameters.arguments.pattern.split(","), listOptions); + commandParameters.response.progress.endBar(); + if (response.success) { + commandParameters.response.console.log(`\r${response.commandResponse}\n`); + } + else { + return response; + } + const downloadStatus = { + statusMessage: "Downloading data sets", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + const downloadOptions = { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + encoding: commandParameters.arguments.encoding, + directory: commandParameters.arguments.directory, + extension: commandParameters.arguments.extension, + extensionMap: commandParameters.arguments.extensionMap ? extensionMap : undefined, + maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, + preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, + failFast: commandParameters.arguments.failFast, + task: downloadStatus, + responseTimeout: commandParameters.arguments.responseTimeout + }; + commandParameters.response.progress.startBar({ task: downloadStatus }); + return zos_files_for_zowe_sdk_1.Download.allDataSets(session, response.apiResponse, downloadOptions); + }); + } +} +exports.default = DataSetMatchingHandler; +//# sourceMappingURL=DataSetMatching.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map b/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map new file mode 100644 index 0000000000..76eb0dd8f7 --- /dev/null +++ b/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataSetMatching.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/dsm/DataSetMatching.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAsI;AACtI,yEAAoH;AACpH,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,sBAAuB,SAAQ,0CAAmB;IACtD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;;YAC3F,MAAM,YAAY,GAA4B,EAAE,CAAC;YACjD,IAAI;gBACA,IAAI,iBAAiB,CAAC,SAAS,CAAC,YAAY,EAAE;oBAC1C,iBAAiB,CAAC,SAAS,CAAC,YAAY,GAAG,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;oBAClG,MAAM,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAC3E,KAAK,MAAM,KAAK,IAAI,cAAc,EAAE;wBAChC,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpC,6BAAgB,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;wBACjD,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;qBAC/C;iBAC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AAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;gBACjF,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,cAAc;gBACpB,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;YACvE,OAAO,iCAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;;KAC/E;CACJ;AA7DD,yCA6DC"} \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.definition.d.ts b/lib/zosfiles/download/uss/UssFile.definition.d.ts new file mode 100644 index 0000000000..2dd2fd8077 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/uss/UssFile.definition.js b/lib/zosfiles/download/uss/UssFile.definition.js new file mode 100644 index 0000000000..7f4f1f3b29 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.definition.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssFileDefinition = void 0; +const Download_options_1 = require("../Download.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.USS_FILE; +/** + * Download data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.UssFileDefinition = { + name: "uss-file", + aliases: ["uf", "uss"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/UssFile.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "ussFileName", + description: strings.POSITIONALS.USSFILENAME, + type: "string", + required: true + } + ], + options: [ + Download_options_1.DownloadOptions.file, + Download_options_1.DownloadOptions.binary, + Download_options_1.DownloadOptions.encoding + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"/a/ibmuser/my_text.txt" -f ./my_text.txt` + }, + { + description: strings.EXAMPLES.EX2, + options: `"/a/ibmuser/MyJava.class" -b -f "java/MyJava.class"` + } + ] +}; +//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.definition.js.map b/lib/zosfiles/download/uss/UssFile.definition.js.map new file mode 100644 index 0000000000..bbce0b0643 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAExG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,IAAI;QACpB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2CAA2C;SACvD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qDAAqD;SACjE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.handler.d.ts b/lib/zosfiles/download/uss/UssFile.handler.d.ts new file mode 100644 index 0000000000..20c488cfe9 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.handler.d.ts @@ -0,0 +1,10 @@ +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Handler to download an uss file + * @export + */ +export default class UssFileHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/download/uss/UssFile.handler.js b/lib/zosfiles/download/uss/UssFile.handler.js new file mode 100644 index 0000000000..ac31de5f97 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.handler.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +/** + * Handler to download an uss file + * @export + */ +class UssFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Downloading USS file", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + return zos_files_for_zowe_sdk_1.Download.ussFile(session, commandParameters.arguments.ussFileName, { + binary: commandParameters.arguments.binary, + encoding: commandParameters.arguments.encoding, + file: commandParameters.arguments.file, + task, + responseTimeout: commandParameters.arguments.responseTimeout, + overwrite: commandParameters.arguments.overwrite + }); + }); + } +} +exports.default = UssFileHandler; +//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.handler.js.map b/lib/zosfiles/download/uss/UssFile.handler.js.map new file mode 100644 index 0000000000..f105f02b44 --- /dev/null +++ b/lib/zosfiles/download/uss/UssFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,qEAAiE;AACjE,iDAAmG;AACnG,yEAA2E;AAE3E;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,sBAAsB;gBACrC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YACrD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACtE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;aACnD,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAjBD,iCAiBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.d.ts b/lib/zosfiles/download/ussdir/UssDir.definition.d.ts new file mode 100644 index 0000000000..ddf9ad74bb --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const UssDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.js b/lib/zosfiles/download/ussdir/UssDir.definition.js new file mode 100644 index 0000000000..870f77136d --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.definition.js @@ -0,0 +1,76 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UssDirDefinition = void 0; +const Download_options_1 = require("../Download.options"); +const List_options_1 = require("../../list/List.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.USS_DIR; +/** + * Download all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.UssDirDefinition = { + name: "uss-directory", + aliases: ["uss-dir"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/UssDir.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "ussDirName", + description: strings.POSITIONALS.USSDIRNAME, + type: "string", + required: true + } + ], + options: [ + Download_options_1.DownloadOptions.attributes, + Download_options_1.DownloadOptions.directoryUss, + Download_options_1.DownloadOptions.binary, + Download_options_1.DownloadOptions.encoding, + Download_options_1.DownloadOptions.maxConcurrentRequestsUss, + Download_options_1.DownloadOptions.failFastUss, + Download_options_1.DownloadOptions.includeHidden, + Download_options_1.DownloadOptions.overwrite, + List_options_1.ListOptions.name, + List_options_1.ListOptions.maxLength, + List_options_1.ListOptions.group, + List_options_1.ListOptions.owner, + List_options_1.ListOptions.mtime, + List_options_1.ListOptions.size, + List_options_1.ListOptions.perm, + List_options_1.ListOptions.type, + List_options_1.ListOptions.depth, + List_options_1.ListOptions.filesys, + List_options_1.ListOptions.symlinks + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `/a/ibmuser --binary` + }, + { + description: strings.EXAMPLES.EX2, + options: `/a/ibmuser --directory localDir` + }, + { + description: strings.EXAMPLES.EX3, + options: `/a/ibmuser --name "*.log" --mtime -1` + } + ] +}; +//# sourceMappingURL=UssDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.js.map b/lib/zosfiles/download/ussdir/UssDir.definition.js.map new file mode 100644 index 0000000000..d9122aebc9 --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ussdir/UssDir.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAEtD,0DAAsD;AAEtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;AAEvG;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU;YAC3C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,UAAU;QAC1B,kCAAe,CAAC,YAAY;QAC5B,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;QACxB,kCAAe,CAAC,wBAAwB;QACxC,kCAAe,CAAC,WAAW;QAC3B,kCAAe,CAAC,aAAa;QAC7B,kCAAe,CAAC,SAAS;QACzB,0BAAW,CAAC,IAAI;QAChB,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,KAAK;QACjB,0BAAW,CAAC,KAAK;QACjB,0BAAW,CAAC,KAAK;QACjB,0BAAW,CAAC,IAAI;QAChB,0BAAW,CAAC,IAAI;QAChB,0BAAW,CAAC,IAAI;QAChB,0BAAW,CAAC,KAAK;QACjB,0BAAW,CAAC,OAAO;QACnB,0BAAW,CAAC,QAAQ;KACvB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qBAAqB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iCAAiC;SAC7C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.d.ts b/lib/zosfiles/download/ussdir/UssDir.handler.d.ts new file mode 100644 index 0000000000..e5a9a35b9b --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to download all members from a pds + * @export + */ +export default class UssDirHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.js b/lib/zosfiles/download/ussdir/UssDir.handler.js new file mode 100644 index 0000000000..d24712fe99 --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.handler.js @@ -0,0 +1,70 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to download all members from a pds + * @export + */ +class UssDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const downloadStatus = { + statusMessage: "Searching for files", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + const zosAttributes = zos_files_for_zowe_sdk_1.ZosFilesAttributes.loadFromFile(commandParameters.arguments.attributes, commandParameters.arguments.directory); + const downloadOptions = { + binary: commandParameters.arguments.binary, + directory: commandParameters.arguments.directory, + maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, + task: downloadStatus, + responseTimeout: commandParameters.arguments.responseTimeout, + failFast: commandParameters.arguments.failFast, + attributes: zosAttributes, + includeHidden: commandParameters.arguments.includeHidden, + overwrite: commandParameters.arguments.overwrite + }; + const listOptions = { + name: commandParameters.arguments.name ? commandParameters.arguments.name : "*", + maxLength: commandParameters.arguments.maxLength, + group: commandParameters.arguments.group, + user: commandParameters.arguments.owner, + mtime: commandParameters.arguments.mtime, + size: commandParameters.arguments.size, + perm: commandParameters.arguments.perm, + type: commandParameters.arguments.type, + depth: commandParameters.arguments.depth, + filesys: commandParameters.arguments.filesys, + symlinks: commandParameters.arguments.symlinks + }; + commandParameters.response.progress.startBar({ task: downloadStatus }); + const response = yield zos_files_for_zowe_sdk_1.Download.ussDir(session, commandParameters.arguments.ussDirName, downloadOptions, listOptions); + commandParameters.response.progress.endBar(); + return response; + }); + } +} +exports.default = UssDirHandler; +//# sourceMappingURL=UssDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.js.map b/lib/zosfiles/download/ussdir/UssDir.handler.js.map new file mode 100644 index 0000000000..f560638c31 --- /dev/null +++ b/lib/zosfiles/download/ussdir/UssDir.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ussdir/UssDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAkI;AAClI,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,aAAc,SAAQ,0CAAmB;IAC7C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,cAAc,GAAoB;gBACpC,aAAa,EAAE,qBAAqB;gBACpC,eAAe,EAAE,CAAC;gBA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AAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;aACjD,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;YACvE,MAAM,QAAQ,GAAG,MAAM,iCAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;YACtH,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC7C,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAzCD,gCAyCC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.definition.d.ts b/lib/zosfiles/edit/Edit.definition.d.ts new file mode 100644 index 0000000000..c83673a4a5 --- /dev/null +++ b/lib/zosfiles/edit/Edit.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Edit group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const EditDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/Edit.definition.js b/lib/zosfiles/edit/Edit.definition.js new file mode 100644 index 0000000000..9f045f5d03 --- /dev/null +++ b/lib/zosfiles/edit/Edit.definition.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EditDefinition = void 0; +const Dataset_definition_1 = require("./ds/Dataset.definition"); +const USSFile_definition_1 = require("./uss/USSFile.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.EDIT; +/** + * Edit group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.EditDefinition = { + name: "edit", + aliases: ["ed"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Dataset_definition_1.DatasetDefinition, + USSFile_definition_1.USSFileDefinition + ], +}; +//# sourceMappingURL=Edit.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.definition.js.map b/lib/zosfiles/edit/Edit.definition.js.map new file mode 100644 index 0000000000..d542ebc0ba --- /dev/null +++ b/lib/zosfiles/edit/Edit.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Edit.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAG1D,iEAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.handler.d.ts b/lib/zosfiles/edit/Edit.handler.d.ts new file mode 100644 index 0000000000..58ca6dd4ff --- /dev/null +++ b/lib/zosfiles/edit/Edit.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../ZosFilesBase.handler"; +/** + * Handler to Edit USS or DS content locally + * @export + */ +export default class EditHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/edit/Edit.handler.js b/lib/zosfiles/edit/Edit.handler.js new file mode 100644 index 0000000000..35d1d5c52d --- /dev/null +++ b/lib/zosfiles/edit/Edit.handler.js @@ -0,0 +1,111 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const ZosFilesBase_handler_1 = require("../ZosFilesBase.handler"); +const Edit_utils_1 = require("../edit/Edit.utils"); +/** + * Handler to Edit USS or DS content locally + * @export + */ +class EditHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + // Setup - build temp and check for stash + let lfFile = { + tempPath: null, + fileName: (_a = commandParameters.arguments.ussFilePath) !== null && _a !== void 0 ? _a : commandParameters.arguments.dataSetName, + fileType: commandParameters.positionals[2].includes('d') ? "ds" : "uss", + guiAvail: imperative_1.ProcessUtils.isGuiAvailable() === imperative_1.GuiResult.GUI_AVAILABLE, + conflict: false, + zosResp: null + }; + lfFile.tempPath = commandParameters.arguments.localFilePath = yield Edit_utils_1.EditUtilities.buildTempPath(lfFile, commandParameters); + // Use or override stash if exists + const stash = yield Edit_utils_1.EditUtilities.checkForStash(lfFile.tempPath); + let useStash, viewDiff = false; + if (stash) { + useStash = yield Edit_utils_1.EditUtilities.promptUser(Edit_utils_1.Prompt.useStash); + } + // Retrieve etag & download mf file to edit locally if not using stash + try { + const task = { + percentComplete: 10, + statusMessage: "Retrieving file", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + // Retrieve etag AND file contents if not using stash + lfFile = yield Edit_utils_1.EditUtilities.localDownload(session, lfFile, useStash); + commandParameters.response.progress.endBar(); + // Show a file comparison for the purpose of seeing the current version of remote compared to past edits + if (useStash) { + viewDiff = yield Edit_utils_1.EditUtilities.promptUser(Edit_utils_1.Prompt.viewDiff); + if (viewDiff) { + yield Edit_utils_1.EditUtilities.fileComparison(session, commandParameters, lfFile); + } + } + } + catch (error) { + if (error instanceof imperative_1.ImperativeError && error.errorCode === String(imperative_1.RestConstants.HTTP_STATUS_404)) { + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red(`File not found on mainframe. Command terminated.`), + causeErrors: error + }); + } + else { + throw error; + } + } + // Edit local copy of mf file (automatically open an editor for user if not in headless linux) + commandParameters.response.console.log(imperative_1.TextUtils.chalk.green(`Temp file location: `) + + imperative_1.TextUtils.chalk.blue(lfFile.tempPath)); + const overwrite = yield Edit_utils_1.EditUtilities.makeEdits(lfFile, commandParameters.arguments.editor); + if (!overwrite) { + return { + success: true, + commandResponse: imperative_1.TextUtils.chalk.green("Exiting now. Temp file persists for editing.") + }; + } + // Once done editing, user will provide terminal input. Upload local file with saved etag + let uploaded = false; + let canceled = false; + do { + [uploaded, canceled] = yield Edit_utils_1.EditUtilities.uploadEdits(session, commandParameters, lfFile); + } while (!uploaded && !canceled); + if (!canceled) { + return { + success: true, + commandResponse: imperative_1.TextUtils.chalk.green("Successfully uploaded edits to mainframe.") + }; + } + else { + return { + success: true, + commandResponse: imperative_1.TextUtils.chalk.green("Exiting now. Temp file persists for editing.") + }; + } + }); + } +} +exports.default = EditHandler; +//# sourceMappingURL=Edit.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.handler.js.map b/lib/zosfiles/edit/Edit.handler.js.map new file mode 100644 index 0000000000..f0c1484956 --- /dev/null +++ b/lib/zosfiles/edit/Edit.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Edit.handler.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDACkH;AAElH,kEAA8D;AAC9D,mDAAgF;AAEhF;;;GAGG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;;YAC3F,yCAAyC;YACzC,IAAI,MAAM,GAAe;gBACrB,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,MAAA,iBAAiB,CAAC,SAAS,CAAC,WAAW,mCAAI,iBAAiB,CAAC,SAAS,CAAC,WAAW;gBAC5F,QAAQ,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;gBACvE,QAAQ,EAAE,yBAAY,CAAC,cAAc,EAAE,KAAK,sBAAS,CAAC,aAAa;gBACnE,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,IAAI;aAChB,CAAC;YACF,MAAM,CAAC,QAAQ,GAAG,iBAAiB,CAAC,SAAS,CAAC,aAAa,GAAG,MAAM,0BAAK,CAAC,aAAa,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;YAEnH,kCAAkC;YAClC,MAAM,KAAK,GAAY,MAAM,0BAAK,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAClE,IAAI,QAAQ,EAAE,QAAQ,GAAY,KAAK,CAAC;YACxC,IAAI,KAAK,EAAE;gBACP,QAAQ,GAAG,MAAM,0BAAK,CAAC,UAAU,CAAC,mBAAM,CAAC,QAAQ,CAAC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C,MAAM,SAAS,GAAG,MAAM,0BAAK,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAEpF,IAAI,CAAC,SAAS,EAAC;gBACX,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,8CAA8C,CACjD;iBACJ,CAAC;aACL;YAED,yFAAyF;YACzF,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,GAAG;gBACC,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM,0BAAK,CAAC,WAAW,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;aACtF,QAAQ,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE;YACjC,IAAI,CAAC,QAAQ,EAAC;gBACV,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,2CAA2C,CAC9C;iBACJ,CAAC;aACL;iBAAM;gBACH,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,8CAA8C,CACjD;iBACJ,CAAC;aACL;;KAEJ;CACJ;AA1FD,8BA0FC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.options.d.ts b/lib/zosfiles/edit/Edit.options.d.ts new file mode 100644 index 0000000000..ee8a064c70 --- /dev/null +++ b/lib/zosfiles/edit/Edit.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the Edit API + */ +export declare const EditOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/edit/Edit.options.js b/lib/zosfiles/edit/Edit.options.js new file mode 100644 index 0000000000..539e05d0dd --- /dev/null +++ b/lib/zosfiles/edit/Edit.options.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EditOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.EDIT.OPTIONS; +/** + * Object containing all options to be used by the Edit API + */ +exports.EditOptions = { + /** + * The option to set a default editor + * @type {ICommandOptionDefinition} + */ + editor: { + name: "editor", + aliases: ["ed"], + description: strings.EDITOR, + type: "string", + required: false + }, + extension: { + name: "extension", + aliases: ["ext"], + description: strings.EXTENSION, + type: "string", + required: false + }, +}; +//# sourceMappingURL=Edit.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.options.js.map b/lib/zosfiles/edit/Edit.options.js.map new file mode 100644 index 0000000000..71909f07ce --- /dev/null +++ b/lib/zosfiles/edit/Edit.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Edit.options.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC;AAExF;;GAEG;AACU,QAAA,WAAW,GAAgD;IAEpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.utils.d.ts b/lib/zosfiles/edit/Edit.utils.d.ts new file mode 100644 index 0000000000..0a3034e99d --- /dev/null +++ b/lib/zosfiles/edit/Edit.utils.d.ts @@ -0,0 +1,118 @@ +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +/** + * enum of prompts to be used as input to {@link EditUtilities.promptUser} during the file editing process + * @export + * @enum + */ +export declare enum Prompt { + useStash = 0, + viewDiff = 1, + overwriteRemote = 2, + viewUpdatedRemote = 3, + continueToUpload = 4 +} +/** + * Type indicates which file system is being used for storage on mainframe {@link ILocalFile} + * @export + * @type + */ +export declare type EditFileType = "uss" | "ds"; +/** + * A class to hold pertinent information about the local file during the editing process + * @export + * @interface + */ +export interface ILocalFile { + tempPath: string | null; + fileName: string; + fileType: EditFileType; + guiAvail: boolean; + zosResp: IZosFilesResponse | null; + conflict: boolean; + encoding?: string | null; +} +/** + * A shared utility class that uss and ds handlers use for local file editing + * @export + * @class + */ +export declare class EditUtilities { + /** + * Builds a temp path where local file will be saved. If uss file, file name will be hashed + * to prevent any conflicts with file naming. A given filename will always result in the + * same unique file path. + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise} - returns unique file path for temp file + * @memberof EditUtilities + */ + static buildTempPath(lfFile: ILocalFile, commandParameters: IHandlerParameters): Promise; + /** + * Check for temp path's existence (check if previously 'stashed'/temp edits exist) + * @param {string} tempPath - unique file path for local file (stash/temp file) + * @returns {Promise} - promise that resolves to true if stash exists or false if doesn't + * @memberof EditUtilities + */ + static checkForStash(tempPath: string): Promise; + /** + * Collection of prompts to be used at different points in editing process + * @param {Prompt} prompt - selected prompt from {@link Prompt} (enum object) + * @param {Boolean} conflict - optional. true if detected conflict between local and remote files + * @returns {Promise} - promise whose resolution depends on user input + * @memberof EditUtilities + */ + static promptUser(prompt: Prompt, conflict?: boolean): Promise; + /** + * Download file and determine if downloading just to get etag (useStash) or to save file locally & get etag (!useStash) + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {boolean} useStash - should be true if don't want to overwrite local file when refreshing etag + * @returns {ILocalFile} + */ + static localDownload(session: AbstractSession, lfFile: ILocalFile, useStash: boolean): Promise; + /** + * Performs appropriate file comparison (either in browser or as a terminal diff) between local file and remote + * Local file (lf) will then be opened in default editor + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {boolean} promptUser - optional. if there are changes then prompt user to show diff, otherwise return + * @returns {Promise} - the response generated by {@link CompareBaseHelper.getResponse} + * @memberof EditUtilities + */ + static fileComparison(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile, promptUser?: boolean): Promise; + /** + * Enable user to make their edits and wait for user input to indicate editing is complete + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {string} editor - optional parameter originally supplied by args + * @memberof EditUtilities + */ + static makeEdits(lfFile: ILocalFile, editor?: string): Promise; + /** + * Upload temp file with saved etag + * - if matching etag: successful upload, destroy stash/temp -> END + * - if non-matching etag: unsuccessful upload -> refresh etag -> perform file comparison/edit -> re-attempt upload + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise<[boolean, boolean]>} - [resolves to true if uploading was successful and + * false if not, resolves to true if user wishes to cancel command and false if not] + * @memberof EditUtilities + */ + static uploadEdits(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile): Promise<[boolean, boolean]>; + /** + * When changes occur in the remote file, user will have to overwrite remote or account for the discrepancy between files + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise} - returns a boolean where true means command is canceled and false means continue + * @memberof EditUtilities + */ + static etagMismatch(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile): Promise<[boolean, boolean]>; + /** + * Destroy path of temporary local file (remove stash) + * @param {string} tempPath - unique file path for local file (stash) + * @memberof EditUtilities + */ + static destroyTempFile(tempPath: string): Promise; +} diff --git a/lib/zosfiles/edit/Edit.utils.js b/lib/zosfiles/edit/Edit.utils.js new file mode 100644 index 0000000000..d0110fbfba --- /dev/null +++ b/lib/zosfiles/edit/Edit.utils.js @@ -0,0 +1,365 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EditUtilities = exports.Prompt = void 0; +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const imperative_1 = require("@zowe/imperative"); +const CompareBaseHelper_1 = require("../compare/CompareBaseHelper"); +const fs_1 = require("fs"); +const os_1 = require("os"); +const path = require("path"); +const LocalfileDataset_handler_1 = require("../compare/lf-ds/LocalfileDataset.handler"); +const LocalfileUss_handler_1 = require("../compare/lf-uss/LocalfileUss.handler"); +/** + * enum of prompts to be used as input to {@link EditUtilities.promptUser} during the file editing process + * @export + * @enum + */ +var Prompt; +(function (Prompt) { + Prompt[Prompt["useStash"] = 0] = "useStash"; + Prompt[Prompt["viewDiff"] = 1] = "viewDiff"; + Prompt[Prompt["overwriteRemote"] = 2] = "overwriteRemote"; + Prompt[Prompt["viewUpdatedRemote"] = 3] = "viewUpdatedRemote"; + Prompt[Prompt["continueToUpload"] = 4] = "continueToUpload"; +})(Prompt = exports.Prompt || (exports.Prompt = {})); +/** + * A shared utility class that uss and ds handlers use for local file editing + * @export + * @class + */ +class EditUtilities { + /** + * Builds a temp path where local file will be saved. If uss file, file name will be hashed + * to prevent any conflicts with file naming. A given filename will always result in the + * same unique file path. + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise} - returns unique file path for temp file + * @memberof EditUtilities + */ + static buildTempPath(lfFile, commandParameters) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + // find the appropriate extension for either uss or ds + const ussExt = (lfFile.fileType === 'uss' && lfFile.fileName.includes(".")) ? lfFile.fileName.split(".").pop() : ""; + let ext = "." + (lfFile.fileType === 'uss' ? ussExt : ((_a = commandParameters.arguments.extension) !== null && _a !== void 0 ? _a : "txt")); + ext = (ext === "." ? "" : ext); + if (lfFile.fileType === 'uss') { + // Hash in a repeatable way if uss fileName (in case presence of special chars) + const crypto = require("crypto"); + let hash = crypto.createHash('sha256').update(lfFile.fileName).digest('hex'); + // shorten hash + const hashLen = 10; + hash = hash.slice(0, hashLen); + return path.join((0, os_1.tmpdir)(), path.parse(lfFile.fileName).name + '_' + hash + ext); + } + return path.join((0, os_1.tmpdir)(), lfFile.fileName + ext); + }); + } + /** + * Check for temp path's existence (check if previously 'stashed'/temp edits exist) + * @param {string} tempPath - unique file path for local file (stash/temp file) + * @returns {Promise} - promise that resolves to true if stash exists or false if doesn't + * @memberof EditUtilities + */ + static checkForStash(tempPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + return (0, fs_1.existsSync)(tempPath); + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: 'Failure when checking for stash. Command terminated.', + causeErrors: err + }); + } + }); + } + /** + * Collection of prompts to be used at different points in editing process + * @param {Prompt} prompt - selected prompt from {@link Prompt} (enum object) + * @param {Boolean} conflict - optional. true if detected conflict between local and remote files + * @returns {Promise} - promise whose resolution depends on user input + * @memberof EditUtilities + */ + static promptUser(prompt, conflict) { + return __awaiter(this, void 0, void 0, function* () { + let input; + let promptText; + const promptPrefix = (conflict ? 'CONFLICT: ' : ''); + switch (prompt) { + case Prompt.useStash: + promptText = 'Keep and continue editing found temp file? y/n'; + break; + case Prompt.viewDiff: + promptText = 'View diff between temp and mainframe files? y/n'; + break; + case Prompt.viewUpdatedRemote: + promptText = promptPrefix + 'Remote has changed. View diff between local and mainframe files? y/n'; + break; + case Prompt.overwriteRemote: + promptText = promptPrefix + 'Overwrite remote with local edits? (Answer after editing) y/n'; + break; + case Prompt.continueToUpload: + promptText = promptPrefix + 'Ignore conflicts and overwrite remote? y/n'; + break; + } + do { + input = yield imperative_1.CliUtils.readPrompt(imperative_1.TextUtils.chalk.green(promptText)); + } while (input != null && input.toLowerCase() != 'y' && input.toLowerCase() != 'n'); + if (input == null) { + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red('No input provided. Command terminated. Temp file will persist.') + }); + } + return input.toLowerCase() === 'y'; + }); + } + /** + * Download file and determine if downloading just to get etag (useStash) or to save file locally & get etag (!useStash) + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {boolean} useStash - should be true if don't want to overwrite local file when refreshing etag + * @returns {ILocalFile} + */ + static localDownload(session, lfFile, useStash) { + return __awaiter(this, void 0, void 0, function* () { + // account for both useStash|!useStash and uss|ds when downloading + const tempPath = useStash ? path.posix.join((0, os_1.tmpdir)(), "toDelete.txt") : lfFile.tempPath; + const args = [ + session, + lfFile.fileName, + { + returnEtag: true, + binary: null, + encoding: null, + file: tempPath + } + ]; + if (lfFile.fileType === 'uss') { + lfFile.zosResp = yield zos_files_for_zowe_sdk_1.Download.ussFile(...args); + lfFile.encoding = args[2].encoding; + } + else { + lfFile.zosResp = yield zos_files_for_zowe_sdk_1.Download.dataSet(...args); + } + if (useStash) { + yield this.destroyTempFile(path.posix.join((0, os_1.tmpdir)(), "toDelete.txt")); + } + return lfFile; + }); + } + /** + * Performs appropriate file comparison (either in browser or as a terminal diff) between local file and remote + * Local file (lf) will then be opened in default editor + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {boolean} promptUser - optional. if there are changes then prompt user to show diff, otherwise return + * @returns {Promise} - the response generated by {@link CompareBaseHelper.getResponse} + * @memberof EditUtilities + */ + static fileComparison(session, commandParameters, lfFile, promptUser) { + return __awaiter(this, void 0, void 0, function* () { + const handlerDs = new LocalfileDataset_handler_1.default(); + const handlerUss = new LocalfileUss_handler_1.default(); + const helper = new CompareBaseHelper_1.CompareBaseHelper(commandParameters); + const gui = imperative_1.ProcessUtils.isGuiAvailable(); + const options = { + name1: "local file", + name2: "remote file" + }; + helper.browserView = (gui === imperative_1.GuiResult.GUI_AVAILABLE); + const lf = yield handlerDs.getFile1(session, commandParameters.arguments, helper); + let mf; + try { + if (commandParameters.positionals[2].includes('d')) { + mf = yield handlerDs.getFile2(session, commandParameters.arguments, helper); + } + else { + mf = yield handlerUss.getFile2(session, commandParameters.arguments, helper); + } + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red(err + '\nCommand terminated. Issue retrieving files for comparison.'), + causeErrors: err + }); + } + const localContent = helper.prepareContent(lf); + const remoteContent = helper.prepareContent(mf); + let viewUpdatedRemote = !promptUser; + if (localContent !== remoteContent) { + lfFile.conflict = true; + } + if (promptUser && lfFile.conflict) { + viewUpdatedRemote = yield this.promptUser(Prompt.viewUpdatedRemote, lfFile.conflict); + } + if (!viewUpdatedRemote) { + return; + } + const diffResponse = yield helper.getResponse(localContent, remoteContent, options); + if (!helper.browserView) { + if (diffResponse) { + commandParameters.response.console.log('\n' + diffResponse.commandResponse); + } + else { + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red('Diff was unable to be generated') + }); + } + } + return diffResponse; + }); + } + /** + * Enable user to make their edits and wait for user input to indicate editing is complete + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @param {string} editor - optional parameter originally supplied by args + * @memberof EditUtilities + */ + static makeEdits(lfFile, editor) { + return __awaiter(this, void 0, void 0, function* () { + if (lfFile.guiAvail) { + imperative_1.ProcessUtils.openInEditor(lfFile.tempPath, editor, true); + } + return yield this.promptUser(Prompt.overwriteRemote, lfFile.conflict); + }); + } + /** + * Upload temp file with saved etag + * - if matching etag: successful upload, destroy stash/temp -> END + * - if non-matching etag: unsuccessful upload -> refresh etag -> perform file comparison/edit -> re-attempt upload + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise<[boolean, boolean]>} - [resolves to true if uploading was successful and + * false if not, resolves to true if user wishes to cancel command and false if not] + * @memberof EditUtilities + */ + static uploadEdits(session, commandParameters, lfFile) { + return __awaiter(this, void 0, void 0, function* () { + const etagMismatchCode = 412; + const args = [ + session, + lfFile.tempPath, + lfFile.fileName, + { + encoding: lfFile.encoding, + etag: lfFile.zosResp.apiResponse.etag, + returnEtag: true + }, + ]; + let response; + try { + if (lfFile.fileType === 'uss') { + response = yield zos_files_for_zowe_sdk_1.Upload.fileToUssFile(...args); + } + else { + response = yield zos_files_for_zowe_sdk_1.Upload.fileToDataset(...args); + } + if (response.success) { + // If matching etag & successful upload, destroy temp file -> END + yield this.destroyTempFile(lfFile.tempPath); + return [true, false]; + } + else { + if (response.commandResponse.includes('412')) { + return yield this.etagMismatch(session, commandParameters, lfFile); + //returns [uploaded, canceled] + } + } + } + catch (err) { + if (err.errorCode && err.errorCode == etagMismatchCode) { + return yield this.etagMismatch(session, commandParameters, lfFile); + } + } + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red((response === null || response === void 0 ? void 0 : response.errorMessage) + + 'Command terminated. Issue uploading stash. Temp file will persist'), + causeErrors: response === null || response === void 0 ? void 0 : response.errorMessage + }); + }); + } + /** + * When changes occur in the remote file, user will have to overwrite remote or account for the discrepancy between files + * @param {AbstractSession} session - the session object generated from the connected profile + * @param {IHandlerParameters} commandParameters - parameters supplied by args + * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process + * @returns {Promise} - returns a boolean where true means command is canceled and false means continue + * @memberof EditUtilities + */ + static etagMismatch(session, commandParameters, lfFile) { + return __awaiter(this, void 0, void 0, function* () { + lfFile.conflict = true; + try { + //alert user that the version of document they've been editing has changed + //ask if they want to see changes on the remote file before continuing + const viewUpdatedRemote = yield this.promptUser(Prompt.viewUpdatedRemote, lfFile.conflict); + if (viewUpdatedRemote) { + yield this.fileComparison(session, commandParameters, lfFile); + } + //ask if they want to keep editing or upload despite changes to remote + const continueToUpload = yield this.promptUser(Prompt.continueToUpload, lfFile.conflict); + // refresh etag, keep stash + yield this.localDownload(session, lfFile, true); + if (!continueToUpload) { + // create more edits & open stash/lf in editor + const readyToUpload = yield this.makeEdits(lfFile, commandParameters.arguments.editor); + if (readyToUpload) { + return yield EditUtilities.uploadEdits(session, commandParameters, lfFile); + } + else { + return [false, true]; //[uploaded, canceled] + } + } + return [false, false]; //[uploaded, canceled] + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: imperative_1.TextUtils.chalk.red('Command terminated. Issue with etag. Temp file will persist.'), + causeErrors: err + }); + } + }); + } + /** + * Destroy path of temporary local file (remove stash) + * @param {string} tempPath - unique file path for local file (stash) + * @memberof EditUtilities + */ + static destroyTempFile(tempPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + (0, fs_1.unlinkSync)(tempPath); + } + catch (err) { + throw new imperative_1.ImperativeError({ + msg: 'Temporary file could not be deleted: ${tempPath}', + causeErrors: err + }); + } + }); + } +} +exports.EditUtilities = EditUtilities; +//# sourceMappingURL=Edit.utils.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.utils.js.map b/lib/zosfiles/edit/Edit.utils.js.map new file mode 100644 index 0000000000..1667136f94 --- /dev/null +++ b/lib/zosfiles/edit/Edit.utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Edit.utils.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,yEAAqH;AACrH,iDACoE;AACpE,oEAAiE;AACjE,2BAA4C;AAC5C,2BAA4B;AAC5B,6BAA6B;AAC7B,wFAAgF;AAChF,iFAAyE;AAGzE;;;;GAIG;AACH,IAAY,MAMX;AAND,WAAY,MAAM;IACd,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,yDAAe,CAAA;IACf,6DAAiB,CAAA;IACjB,2DAAgB,CAAA;AACpB,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAwBD;;;;GAIG;AACH,MAAa,aAAa;IACtB;;;;;;;OAOG;IACI,MAAM,CAAO,aAAa,CAAC,MAAkB,EAAE,iBAAqC;;;YACvF,sDAAsD;YACtD,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACpH,IAAI,GAAG,GAAG,GAAG,GAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAA,iBAAiB,CAAC,SAAS,CA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SC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/ds/Dataset.definition.d.ts b/lib/zosfiles/edit/ds/Dataset.definition.d.ts new file mode 100644 index 0000000000..f236389be7 --- /dev/null +++ b/lib/zosfiles/edit/ds/Dataset.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Edit data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/ds/Dataset.definition.js b/lib/zosfiles/edit/ds/Dataset.definition.js new file mode 100644 index 0000000000..d77cdc987a --- /dev/null +++ b/lib/zosfiles/edit/ds/Dataset.definition.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DatasetDefinition = void 0; +const Edit_options_1 = require("../Edit.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.EDIT; +/** + * Edit data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DatasetDefinition = { + name: "data-set", + aliases: ["ds"], + summary: strings.ACTIONS.DATA_SET.SUMMARY, + description: strings.ACTIONS.DATA_SET.DESCRIPTION, + type: "command", + handler: __dirname + "/../Edit.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "dataSetName", + description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME, + type: "string", + required: true + }, + ], + options: [ + Edit_options_1.EditOptions.editor, + Edit_options_1.EditOptions.extension + ], + examples: [ + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, + options: `ibmuser.cntl(iefbr14) --editor notepad` + }, + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, + options: `ibmuser.cntl(iefbr14) --editor C:\\Windows\\System32\\Notepad.exe` + }, + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, + options: `ibmuser.jcl(iefbr14) --editor notepad --extension jcl` + } + ] +}; +//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/ds/Dataset.definition.js.map b/lib/zosfiles/edit/ds/Dataset.definition.js.map new file mode 100644 index 0000000000..32854d156c --- /dev/null +++ b/lib/zosfiles/edit/ds/Dataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/edit/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW;YAC7D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,SAAS;KACxB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,wCAAwC;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,mEAAmE;SAC/E;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uDAAuD;SACnE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/uss/USSFile.definition.d.ts b/lib/zosfiles/edit/uss/USSFile.definition.d.ts new file mode 100644 index 0000000000..96a2e822eb --- /dev/null +++ b/lib/zosfiles/edit/uss/USSFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Edit USS file content command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/uss/USSFile.definition.js b/lib/zosfiles/edit/uss/USSFile.definition.js new file mode 100644 index 0000000000..fdb2a8d3b8 --- /dev/null +++ b/lib/zosfiles/edit/uss/USSFile.definition.js @@ -0,0 +1,53 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.USSFileDefinition = void 0; +const Edit_options_1 = require("../Edit.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.EDIT; +/** + * Edit USS file content command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.USSFileDefinition = { + name: "uss-file", + aliases: ["uss", "uf"], + summary: strings.ACTIONS.USS_FILE.SUMMARY, + description: strings.ACTIONS.USS_FILE.DESCRIPTION, + type: "command", + handler: __dirname + "/../Edit.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "ussFilePath", + description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH, + type: "string", + required: true + }, + ], + options: [ + Edit_options_1.EditOptions.editor + ], + examples: [ + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, + options: `/a/ibmuser/my_text.txt --editor notepad` + }, + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, + options: `/a/ibmuser/my_text.txt --editor C:\\Windows\\System32\\Notepad.exe` + } + ] +}; +//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/uss/USSFile.definition.js.map b/lib/zosfiles/edit/uss/USSFile.definition.js.map new file mode 100644 index 0000000000..1e9dff66d8 --- /dev/null +++ b/lib/zosfiles/edit/uss/USSFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/edit/uss/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW;YAC7D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;KACrB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,yCAAyC;SACrD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,oEAAoE;SAChF;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.d.ts b/lib/zosfiles/hMigrate/HMigrate.definition.d.ts new file mode 100644 index 0000000000..2128308885 --- /dev/null +++ b/lib/zosfiles/hMigrate/HMigrate.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * hMigrate group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const HMigrateDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.js b/lib/zosfiles/hMigrate/HMigrate.definition.js new file mode 100644 index 0000000000..cda38aff48 --- /dev/null +++ b/lib/zosfiles/hMigrate/HMigrate.definition.js @@ -0,0 +1,30 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HMigrateDefinition = void 0; +const Ds_definition_1 = require("./ds/Ds.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const { DESCRIPTION } = require("../-strings-/en").default.HMIGRATE; +/** + * hMigrate group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.HMigrateDefinition = { + name: "migrate", + aliases: ["hmigr", "hMigrate"], + type: "group", + description: DESCRIPTION, + children: [ + Ds_definition_1.DsDefinition + ] +}; +//# sourceMappingURL=HMigrate.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.js.map b/lib/zosfiles/hMigrate/HMigrate.definition.js.map new file mode 100644 index 0000000000..956cb04851 --- /dev/null +++ b/lib/zosfiles/hMigrate/HMigrate.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HMigrate.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/hMigrate/HMigrate.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,EAAE,WAAW,EAAE,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC;AAE5F;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts b/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts new file mode 100644 index 0000000000..bdc580965f --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.js b/lib/zosfiles/hMigrate/ds/Ds.definition.js new file mode 100644 index 0000000000..378e35a422 --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.definition.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default; +const dSStrings = strings.HMIGRATE.ACTIONS.DATA_SET; +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: dSStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/Ds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: dSStrings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + { + name: "wait", + aliases: ["w"], + description: strings.HMIGRATE.OPTIONS.WAIT, + type: "boolean", + defaultValue: false, + required: false + } + ], + examples: [ + { + description: dSStrings.EXAMPLES.EX1, + options: `"USER.DATA.SET"` + } + ] +}; +//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.js.map b/lib/zosfiles/hMigrate/ds/Ds.definition.js.map new file mode 100644 index 0000000000..aadb5c232a --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/hMigrate/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEvC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;YAC1C,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts b/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts new file mode 100644 index 0000000000..ed9f9f474f --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to migrate a Data Set + */ +export default class DSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.js b/lib/zosfiles/hMigrate/ds/Ds.handler.js new file mode 100644 index 0000000000..d26ca2623b --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to migrate a Data Set + */ +class DSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const { options } = commandParameters.arguments; + return zos_files_for_zowe_sdk_1.HMigrate.dataSet(session, commandParameters.arguments.dataSetName, options); + }); + } +} +exports.default = DSHandler; +//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.js.map b/lib/zosfiles/hMigrate/ds/Ds.handler.js.map new file mode 100644 index 0000000000..431fedc3d7 --- /dev/null +++ b/lib/zosfiles/hMigrate/ds/Ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/hMigrate/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2E;AAC3E,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACvF,CAAC;KAAA;CACJ;AAVD,4BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/HRecall.definition.d.ts b/lib/zosfiles/hRecall/HRecall.definition.d.ts new file mode 100644 index 0000000000..c2cca0039e --- /dev/null +++ b/lib/zosfiles/hRecall/HRecall.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * hRecall group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const HRecallDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hRecall/HRecall.definition.js b/lib/zosfiles/hRecall/HRecall.definition.js new file mode 100644 index 0000000000..1a004225fb --- /dev/null +++ b/lib/zosfiles/hRecall/HRecall.definition.js @@ -0,0 +1,30 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HRecallDefinition = void 0; +const Ds_definition_1 = require("./ds/Ds.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const { DESCRIPTION } = require("../-strings-/en").default.HRECALL; +/** + * hRecall group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.HRecallDefinition = { + name: "recall", + aliases: ["hrec", "hRecall"], + type: "group", + description: DESCRIPTION, + children: [ + Ds_definition_1.DsDefinition + ] +}; +//# sourceMappingURL=HRecall.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/HRecall.definition.js.map b/lib/zosfiles/hRecall/HRecall.definition.js.map new file mode 100644 index 0000000000..e40a685a7e --- /dev/null +++ b/lib/zosfiles/hRecall/HRecall.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HRecall.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/hRecall/HRecall.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,EAAE,WAAW,EAAE,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAE3F;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC5B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.d.ts b/lib/zosfiles/hRecall/ds/Ds.definition.d.ts new file mode 100644 index 0000000000..bdc580965f --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.js b/lib/zosfiles/hRecall/ds/Ds.definition.js new file mode 100644 index 0000000000..e0eea3529c --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.definition.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default; +const dSStrings = strings.HRECALL.ACTIONS.DATA_SET; +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: dSStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/Ds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: dSStrings.POSITIONALS.DATASETNAME, + required: true + } + ], + options: [ + { + name: "wait", + aliases: ["w"], + description: strings.HRECALL.OPTIONS.WAIT, + type: "boolean", + defaultValue: false, + required: false + } + ], + examples: [ + { + description: dSStrings.EXAMPLES.EX1, + options: `"USER.DATA.SET"` + } + ] +}; +//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.js.map b/lib/zosfiles/hRecall/ds/Ds.definition.js.map new file mode 100644 index 0000000000..d0ada8f0b0 --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/hRecall/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEtC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YACzC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.d.ts b/lib/zosfiles/hRecall/ds/Ds.handler.d.ts new file mode 100644 index 0000000000..bdbbb1f30b --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to rename a Data Set + */ +export default class DSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.js b/lib/zosfiles/hRecall/ds/Ds.handler.js new file mode 100644 index 0000000000..eb6f2b2022 --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to rename a Data Set + */ +class DSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const { options } = commandParameters.arguments; + return zos_files_for_zowe_sdk_1.HRecall.dataSet(session, commandParameters.arguments.dataSetName, options); + }); + } +} +exports.default = DSHandler; +//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.js.map b/lib/zosfiles/hRecall/ds/Ds.handler.js.map new file mode 100644 index 0000000000..22d893b7d9 --- /dev/null +++ b/lib/zosfiles/hRecall/ds/Ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/hRecall/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA0E;AAC1E,qEAAiE;AACjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,gCAAO,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtF,CAAC;KAAA;CACJ;AAVD,4BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/Invoke.definition.d.ts b/lib/zosfiles/invoke/Invoke.definition.d.ts new file mode 100644 index 0000000000..55b1f4d568 --- /dev/null +++ b/lib/zosfiles/invoke/Invoke.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Invoke group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const InvokeDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/Invoke.definition.js b/lib/zosfiles/invoke/Invoke.definition.js new file mode 100644 index 0000000000..e5a3840f35 --- /dev/null +++ b/lib/zosfiles/invoke/Invoke.definition.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InvokeDefinition = void 0; +const AmsStatements_definition_1 = require("./amsStatements/AmsStatements.definition"); +const AmsFile_definition_1 = require("./amsFile/AmsFile.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.INVOKE; +/** + * Invoke group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.InvokeDefinition = { + name: "invoke", + aliases: ["call"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + AmsStatements_definition_1.AmsStatementsDefinition, + AmsFile_definition_1.AmsFileDefinition + ] +}; +//# sourceMappingURL=Invoke.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/Invoke.definition.js.map b/lib/zosfiles/invoke/Invoke.definition.js.map new file mode 100644 index 0000000000..c2732fa231 --- /dev/null +++ b/lib/zosfiles/invoke/Invoke.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Invoke.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/invoke/Invoke.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uFAAmF;AACnF,qEAAiE;AAIjE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,kDAAuB;QACvB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts b/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts new file mode 100644 index 0000000000..c8ce4f518e --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * AMS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const AmsFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js new file mode 100644 index 0000000000..6ef9e7652c --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js @@ -0,0 +1,46 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AmsFileDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.INVOKE.ACTIONS.AMS; +/** + * AMS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.AmsFileDefinition = { + name: "ams-file", + aliases: ["af"], + summary: strings.FILE_CMD.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "AmsFile.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "controlStatementsFile", + description: strings.FILE_CMD.POSITIONAL, + type: "string", + required: true + } + ], + examples: [ + { + description: strings.FILE_CMD.EXAMPLES.EX1, + options: `"./path/to/file/MyControlStatements.idcams"` + } + ] +}; +//# sourceMappingURL=AmsFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map new file mode 100644 index 0000000000..9383fea4de --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AmsFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsFile/AmsFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACjC,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC;IAC3C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,UAAU;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAC1C,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts b/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts new file mode 100644 index 0000000000..bf30f80062 --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a PDS data set + * @export + */ +export default class AmsFileHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js new file mode 100644 index 0000000000..16f3a78811 --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js @@ -0,0 +1,40 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a PDS data set + * @export + */ +class AmsFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + const response = yield zos_files_for_zowe_sdk_1.Invoke.ams(session, commandParameters.arguments.controlStatementsFile, zosFilesOptions); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse)); + return response; + }); + } +} +exports.default = AmsFileHandler; +//# sourceMappingURL=AmsFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map new file mode 100644 index 0000000000..8ed29e0201 --- /dev/null +++ b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AmsFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsFile/AmsFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAA2F;AAC3F,qEAAiE;AACjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,MAAM,QAAQ,GAAsB,MAAM,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;YAClI,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YACnF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts new file mode 100644 index 0000000000..ccb0745c38 --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * AMS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const AmsStatementsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js new file mode 100644 index 0000000000..0e2328f09e --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AmsStatementsDefinition = void 0; +const path_1 = require("path"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.INVOKE.ACTIONS.AMS; +/** + * AMS command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.AmsStatementsDefinition = { + name: "ams-statements", + aliases: ["as"], + summary: strings.STATEMENTS_CMD.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: (0, path_1.join)(__dirname, "AmsStatements.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "controlStatements", + description: strings.STATEMENTS_CMD.POSITIONAL, + type: "string", + required: true + } + ], + examples: [ + { + description: strings.STATEMENTS_CMD.EXAMPLES.EX1, + options: `"DEFINE CLUSTER ( NAME (DUMMY.VSAM.CLUSTER) CYL(1 1))"` + }, + { + description: strings.STATEMENTS_CMD.EXAMPLES.EX2, + options: `"DELETE DUMMY.VSAM.CLUSTER CLUSTER"` + } + ] +}; +//# sourceMappingURL=AmsStatements.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map new file mode 100644 index 0000000000..cf35a5b2ba --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AmsStatements.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsStatements/AmsStatements.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;GAGG;AACU,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,OAAO;IACvC,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,uBAAuB,CAAC;IACjD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;YAChD,OAAO,EAAE,wDAAwD;SACpE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;YAChD,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts new file mode 100644 index 0000000000..4c095ae50d --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to create a PDS data set + * @export + */ +export default class AmsStatementsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js new file mode 100644 index 0000000000..d1557b796e --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js @@ -0,0 +1,46 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to create a PDS data set + * @export + */ +class AmsStatementsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + const statements = imperative_1.TextUtils + .wordWrap(commandParameters.arguments.controlStatements, zos_files_for_zowe_sdk_1.ZosFilesConstants.MAX_AMS_LINE - zos_files_for_zowe_sdk_1.ZosFilesConstants.MAX_AMS_BUFFER) + .split(/\r?\n/); + for (let stIdx = 0; stIdx < statements.length - 1; ++stIdx) { + statements[stIdx] += " -"; + } + const response = yield zos_files_for_zowe_sdk_1.Invoke.ams(session, statements, zosFilesOptions); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse)); + return response; + }); + } +} +exports.default = AmsStatementsHandler; +//# sourceMappingURL=AmsStatements.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map new file mode 100644 index 0000000000..bbbc7cc44f --- /dev/null +++ b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AmsStatements.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsStatements/AmsStatements.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAA8G;AAC9G,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACpD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAEzG,MAAM,UAAU,GAAG,sBAAS;iBACvB,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,iBAAiB,EAAE,0CAAiB,CAAC,YAAY,GAAG,0CAAiB,CAAC,cAAc,CAAC;iBAC1H,KAAK,CAAC,OAAO,CAAC,CAAC;YACpB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE;gBACxD,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;aAC7B;YAED,MAAM,QAAQ,GAAsB,MAAM,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;YAC3F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YAEnF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAhBD,uCAgBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/List.definition.d.ts b/lib/zosfiles/list/List.definition.d.ts new file mode 100644 index 0000000000..54f0997f20 --- /dev/null +++ b/lib/zosfiles/list/List.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/List.definition.js b/lib/zosfiles/list/List.definition.js new file mode 100644 index 0000000000..ed2a9f18f1 --- /dev/null +++ b/lib/zosfiles/list/List.definition.js @@ -0,0 +1,37 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDefinition = void 0; +const AllMembers_definition_1 = require("./am/AllMembers.definition"); +const DataSet_definition_1 = require("./ds/DataSet.definition"); +const UssFile_definition_1 = require("./uss/UssFile.definition"); +const Fs_definition_1 = require("./fs/Fs.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.LIST; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.ListDefinition = { + name: "list", + aliases: ["ls"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + AllMembers_definition_1.AllMembersDefinition, + DataSet_definition_1.DataSetDefinition, + UssFile_definition_1.USSFileDefinition, + Fs_definition_1.FsDefinition + ] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/List.definition.js.map b/lib/zosfiles/list/List.definition.js.map new file mode 100644 index 0000000000..7783e40cc4 --- /dev/null +++ b/lib/zosfiles/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sEAAkE;AAClE,gEAA4D;AAC5D,iEAA6D;AAC7D,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4CAAoB;QACpB,sCAAiB;QACjB,sCAAiB;QACjB,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/List.options.d.ts b/lib/zosfiles/list/List.options.d.ts new file mode 100644 index 0000000000..59d88728cd --- /dev/null +++ b/lib/zosfiles/list/List.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the List data-set/member API + */ +export declare const ListOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/list/List.options.js b/lib/zosfiles/list/List.options.js new file mode 100644 index 0000000000..e31b2408d3 --- /dev/null +++ b/lib/zosfiles/list/List.options.js @@ -0,0 +1,172 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.LIST.OPTIONS; +/** + * Object containing all options to be used by the List data-set/member API + */ +exports.ListOptions = { + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volume: { + name: "volume-serial", + aliases: ["vs"], + description: strings.VOLUME, + type: "string", + stringLengthRange: [1, 6] // eslint-disable-line @typescript-eslint/no-magic-numbers + }, + /** + * The indicator that we want to show more attributes + * @type {ICommandOptionDefinition} + */ + attributes: { + name: "attributes", + aliases: ["a"], + description: strings.ATTRIBUTES, + type: "boolean" + }, + /** + * The indicator of how many lines will the list have, the default is 0 which means all the data sets. + * @type {ICommandOptionDefinition} + */ + maxLength: { + name: "max-length", + aliases: ["max"], + description: strings.MAXLENGTH, + type: "number" + }, + /** + * The pattern to match against a list of members in a data set. + * @type {ICommandOptionDefinition} + */ + pattern: { + name: "pattern", + description: strings.PATTERN, + type: "string" + }, + /** + * The indicator that where ti file syste is mounted. + * @type {ICommandOptionDefinition} + */ + path: { + name: "path", + aliases: ["p"], + description: strings.PATH, + type: "string" + }, + /** + * The indicator that where the name of mounted. + * @type {ICommandOptionDefinition} + */ + fsname: { + name: "fsname", + aliases: ["f"], + description: strings.FSNAME, + type: "string", + conflictsWith: ["path"] + }, + /** + * An optional search parameter that specifies the first data set name to return in the response document. + */ + start: { + name: "start", + aliases: ["s"], + description: strings.START, + type: "string" + }, + /** + * An optional USS search parameter for a file or directory name + */ + name: { + name: "name", + description: strings.NAME, + type: "string" + }, + /** + * An optional USS search parameter to filter by group name or number + */ + group: { + name: "group", + description: strings.GROUP, + type: "string" + }, + /** + * An optional USS search parameter to filter by owner name or number + */ + owner: { + name: "owner", + description: strings.OWNER, + type: "string" + }, + /** + * An optional USS search parameter to filter by modified time in number of days + */ + mtime: { + name: "mtime", + description: strings.MTIME, + type: "string" + }, + /** + * An optional USS search parameter to filter by file size + */ + size: { + name: "size", + description: strings.SIZE, + type: "string" + }, + /** + * An optional USS search parameter to filter by permission octal string + */ + perm: { + name: "perm", + description: strings.PERM, + type: "string" + }, + /** + * An optional USS search parameter to filter by the type of file, directory, device, or special file + */ + type: { + name: "type", + description: strings.TYPE, + type: "string", + allowableValues: { values: ["f", "d", "l", "p", "s"], caseSensitive: true } + }, + /** + * An optional USS search parameter to limit the depth of the file and directory search + */ + depth: { + name: "depth", + description: strings.DEPTH, + type: "number" + }, + /** + * An optional USS search parameter to determine whether or not to search all filesystems + */ + filesys: { + name: "filesys", + description: strings.FILESYS, + type: "boolean" + }, + /** + * An optional USS search parameter to determine whether or not to follow symlinks + */ + symlinks: { + name: "symlinks", + description: strings.SYMLINKS, + type: "boolean" + } +}; +//# sourceMappingURL=List.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/List.options.js.map b/lib/zosfiles/list/List.options.js.map new file mode 100644 index 0000000000..a201d93371 --- /dev/null +++ b/lib/zosfiles/list/List.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.options.js","sourceRoot":"","sources":["../../../src/zosfiles/list/List.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC;AAExF;;GAEG;AACU,QAAA,WAAW,GAAgD;IACpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,0DAA0D;KACxF;IAED;;;OAGG;IACH,UAAU,E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AK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,EAAC,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,aAAa,EAAE,IAAI,EAAC;KAC5E;IAED;;OAEG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,SAAS;KAClB;IAED;;OAEG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.definition.d.ts b/lib/zosfiles/list/am/AllMembers.definition.d.ts new file mode 100644 index 0000000000..01a4f9cb9f --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * List all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const AllMembersDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/am/AllMembers.definition.js b/lib/zosfiles/list/am/AllMembers.definition.js new file mode 100644 index 0000000000..7a51993b72 --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.definition.js @@ -0,0 +1,63 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllMembersDefinition = void 0; +const List_options_1 = require("../List.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.LIST.ACTIONS.ALL_MEMBERS; +/** + * List all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.AllMembersDefinition = { + name: "all-members", + aliases: ["am"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/AllMembers.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + List_options_1.ListOptions.attributes, + List_options_1.ListOptions.maxLength, + List_options_1.ListOptions.pattern + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.asm"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.cntl" -a` + }, + { + description: strings.EXAMPLES.EX3, + options: `"ibmuser.cntl" --max 5` + }, + { + description: strings.EXAMPLES.EX4, + options: `"sys1.maclib" --pattern IJK* --max 4` + } + ] +}; +//# sourceMappingURL=AllMembers.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.definition.js.map b/lib/zosfiles/list/am/AllMembers.definition.js.map new file mode 100644 index 0000000000..9a36fa7a6a --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllMembers.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/am/AllMembers.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;AAEvG;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,UAAU;QACtB,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,OAAO;KACtB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.handler.d.ts b/lib/zosfiles/list/am/AllMembers.handler.d.ts new file mode 100644 index 0000000000..16035feea0 --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to list a data set members + * @export + */ +export default class AllMembersHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/list/am/AllMembers.handler.js b/lib/zosfiles/list/am/AllMembers.handler.js new file mode 100644 index 0000000000..ff2ff17825 --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.handler.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to list a data set members + * @export + */ +class AllMembersHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield zos_files_for_zowe_sdk_1.List.allMembers(session, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + attributes: commandParameters.arguments.attributes, + maxLength: commandParameters.arguments.maxLength, + pattern: commandParameters.arguments.pattern, + responseTimeout: commandParameters.arguments.responseTimeout + }); + if (commandParameters.arguments.attributes && response.apiResponse.items.length > 0) { + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse.items)); + } + else { + const memberList = response.apiResponse.items.map((mem) => mem.member); + commandParameters.response.console.log(memberList.join("\n")); + } + return response; + }); + } +} +exports.default = AllMembersHandler; +//# sourceMappingURL=AllMembers.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.handler.js.map b/lib/zosfiles/list/am/AllMembers.handler.js.map new file mode 100644 index 0000000000..c2b9cc5228 --- /dev/null +++ b/lib/zosfiles/list/am/AllMembers.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllMembers.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/am/AllMembers.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAAuE;AACvE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrF,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,UAAU,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBAClD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEH,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;aAC5F;iBAAM;gBACH,MAAM,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC5E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjE;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,oCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.definition.d.ts b/lib/zosfiles/list/ds/DataSet.definition.d.ts new file mode 100644 index 0000000000..2da35483bc --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * List data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/ds/DataSet.definition.js b/lib/zosfiles/list/ds/DataSet.definition.js new file mode 100644 index 0000000000..b2b1bd6d8e --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.definition.js @@ -0,0 +1,69 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataSetDefinition = void 0; +const path = require("path"); +const List_options_1 = require("../List.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.LIST.ACTIONS.DATA_SET; +/** + * List data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DataSetDefinition = { + name: "data-set", + aliases: ["ds"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "DataSet.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + List_options_1.ListOptions.attributes, + List_options_1.ListOptions.maxLength, + List_options_1.ListOptions.volume, + List_options_1.ListOptions.start + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.asm"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.cntl" -a` + }, + { + description: strings.EXAMPLES.EX3, + options: `"ibmuser.*"` + }, + { + description: strings.EXAMPLES.EX4, + options: `"ibmuser.*" -a` + }, + { + description: strings.EXAMPLES.EX5, + options: `"ibmuser.cntl" --max 5` + } + ] +}; +//# sourceMappingURL=DataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.definition.js.map b/lib/zosfiles/list/ds/DataSet.definition.js.map new file mode 100644 index 0000000000..342a50e70a --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/ds/DataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,UAAU;QACtB,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,KAAK;KACpB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,gBAAgB;SAC5B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.handler.d.ts b/lib/zosfiles/list/ds/DataSet.handler.d.ts new file mode 100644 index 0000000000..f7e4a912a2 --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to list a data sets + * @export + */ +export default class DataSetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/list/ds/DataSet.handler.js b/lib/zosfiles/list/ds/DataSet.handler.js new file mode 100644 index 0000000000..5180bfb5c5 --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.handler.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to list a data sets + * @export + */ +class DataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield zos_files_for_zowe_sdk_1.List.dataSet(session, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + attributes: commandParameters.arguments.attributes, + maxLength: commandParameters.arguments.maxLength, + responseTimeout: commandParameters.arguments.responseTimeout, + start: commandParameters.arguments.start + }); + if (commandParameters.arguments.attributes && response.apiResponse.items.length > 0) { + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse.items)); + } + else { + const dsnameList = response.apiResponse.items.map((mem) => mem.dsname); + commandParameters.response.console.log(dsnameList.join("\n")); + } + return response; + }); + } +} +exports.default = DataSetHandler; +//# sourceMappingURL=DataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.handler.js.map b/lib/zosfiles/list/ds/DataSet.handler.js.map new file mode 100644 index 0000000000..5865bb3e57 --- /dev/null +++ b/lib/zosfiles/list/ds/DataSet.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/ds/DataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAAuE;AACvE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBAClF,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,UAAU,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBAClD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;aAC3C,CAAC,CAAC;YAEH,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;aAC5F;iBAAM;gBACH,MAAM,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC5E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjE;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,iCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.definition.d.ts b/lib/zosfiles/list/fs/Fs.definition.d.ts new file mode 100644 index 0000000000..76aca7f399 --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * List data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/fs/Fs.definition.js b/lib/zosfiles/list/fs/Fs.definition.js new file mode 100644 index 0000000000..9304aabfa3 --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.definition.js @@ -0,0 +1,53 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FsDefinition = void 0; +const path = require("path"); +const List_options_1 = require("../List.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.LIST.ACTIONS.FS; +/** + * List data sets command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.FsDefinition = { + name: "file-system", + aliases: ["fs"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + outputFormatOptions: true, + handler: path.join(__dirname, "Fs.handler"), + profile: { + optional: ["zosmf"] + }, + options: [ + List_options_1.ListOptions.maxLength, + List_options_1.ListOptions.fsname, + List_options_1.ListOptions.path + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: "" + }, + { + description: strings.EXAMPLES.EX2, + options: "-p /a/ibmuser" + }, + { + description: strings.EXAMPLES.EX3, + options: "-f MY.ZFS" + } + ] +}; +//# sourceMappingURL=Fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.definition.js.map b/lib/zosfiles/list/fs/Fs.definition.js.map new file mode 100644 index 0000000000..97bc078cec --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/fs/Fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAE9F;;;GAGG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,mBAAmB,EAAE,IAAI;IACzB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;IAC3C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,IAAI;KACnB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.handler.d.ts b/lib/zosfiles/list/fs/Fs.handler.d.ts new file mode 100644 index 0000000000..d2face9e51 --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to list a data sets + * @export + */ +export default class FsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/list/fs/Fs.handler.js b/lib/zosfiles/list/fs/Fs.handler.js new file mode 100644 index 0000000000..27707dba48 --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.handler.js @@ -0,0 +1,59 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to list a data sets + * @export + */ +class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + let response; + if (commandParameters.arguments.path) { + response = yield zos_files_for_zowe_sdk_1.List.fsWithPath(session, { + path: commandParameters.arguments.path, + fsname: null, + maxLength: commandParameters.arguments.maxLength, + responseTimeout: commandParameters.arguments.responseTimeout + }); + } + else { + response = yield zos_files_for_zowe_sdk_1.List.fs(session, { + path: null, + fsname: commandParameters.arguments.fsname, + maxLength: commandParameters.arguments.maxLength, + responseTimeout: commandParameters.arguments.responseTimeout + }); + } + commandParameters.response.data.setObj(response); + commandParameters.response.format.output({ + fields: ["name", "mountpoint"], + output: response.apiResponse.items, + format: "table" + }); + return response; + }); + } +} +exports.default = FsHandler; +//# sourceMappingURL=Fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.handler.js.map b/lib/zosfiles/list/fs/Fs.handler.js.map new file mode 100644 index 0000000000..cacaa1beb7 --- /dev/null +++ b/lib/zosfiles/list/fs/Fs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/fs/Fs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAuE;AACvE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,IAAI,QAAQ,CAAC;YACb,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,EACpC;gBACI,QAAQ,GAAG,MAAM,6BAAI,CAAC,UAAU,CAAC,OAAO,EAAE;oBACtC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBACtC,MAAM,EAAE,IAAI;oBACZ,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;oBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;iBAC/D,CAAC,CAAC;aACN;iBAED;gBACI,QAAQ,GAAG,MAAM,6BAAI,CAAC,EAAE,CAAC,OAAO,EAAE;oBAC9B,IAAI,EAAE,IAAI;oBACV,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;oBAC1C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;oBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;iBAC/D,CAAC,CAAC;aACN;YAED,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACjD,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC;gBAC9B,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK;gBAClC,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AA/BD,4BA+BC"} \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.definition.d.ts b/lib/zosfiles/list/uss/UssFile.definition.d.ts new file mode 100644 index 0000000000..2433752c02 --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * List all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/uss/UssFile.definition.js b/lib/zosfiles/list/uss/UssFile.definition.js new file mode 100644 index 0000000000..3c14d958b9 --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.definition.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.USSFileDefinition = void 0; +const List_options_1 = require("../List.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.LIST.ACTIONS.USS_FILE; +/** + * List all members command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.USSFileDefinition = { + name: "uss-files", + aliases: ["uf", "uss"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: __dirname + "/UssFile.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "path", + description: strings.POSITIONALS.PATH, + type: "string", + required: true + } + ], + options: [ + List_options_1.ListOptions.maxLength + ], + outputFormatOptions: true, + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"/u/ibmuser"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"/u/ibmuser" --rff name` + }, + { + description: strings.EXAMPLES.EX3, + options: `"/u/ibmuser" --rfh` + } + ] +}; +//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.definition.js.map b/lib/zosfiles/list/uss/UssFile.definition.js.map new file mode 100644 index 0000000000..0bc0603c57 --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAI9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI;YACrC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,SAAS;KACxB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,cAAc;SAC1B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;SAChC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.handler.d.ts b/lib/zosfiles/list/uss/UssFile.handler.d.ts new file mode 100644 index 0000000000..7663b1b08d --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to list a unix directory + * @param {IHandlerParameters} params - Command handler parameters + */ +export default class USSFileHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/list/uss/UssFile.handler.js b/lib/zosfiles/list/uss/UssFile.handler.js new file mode 100644 index 0000000000..bf2cc95127 --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.handler.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to list a unix directory + * @param {IHandlerParameters} params - Command handler parameters + */ +class USSFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield zos_files_for_zowe_sdk_1.List.fileList(session, commandParameters.arguments.path, { + maxLength: commandParameters.arguments.maxLength, + responseTimeout: commandParameters.arguments.responseTimeout + }); + // Populate the response object + commandParameters.response.data.setObj(response); + commandParameters.response.data.setMessage(`Returned list of UNIX files and directories in path "${commandParameters.arguments.path}"`); + // Format the output with the default fields + commandParameters.response.format.output({ + fields: ["name", "mode", "size", "uid", "user"], + output: response.apiResponse.items, + format: "table" + }); + return response; + }); + } +} +exports.default = USSFileHandler; +//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.handler.js.map b/lib/zosfiles/list/uss/UssFile.handler.js.map new file mode 100644 index 0000000000..be7734b5cf --- /dev/null +++ b/lib/zosfiles/list/uss/UssFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAuE;AACvE,qEAAiE;AACjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAE3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAAE;gBAC5E,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEH,+BAA+B;YAC/B,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACjD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,wDAAwD,iBAAiB,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,CAAC;YACxI,4CAA4C;YAC5C,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;gBAC/C,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK;gBAClC,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,iCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/Mount.definition.d.ts b/lib/zosfiles/mount/Mount.definition.d.ts new file mode 100644 index 0000000000..1a540d1b30 --- /dev/null +++ b/lib/zosfiles/mount/Mount.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const MountDefinition: ICommandDefinition; diff --git a/lib/zosfiles/mount/Mount.definition.js b/lib/zosfiles/mount/Mount.definition.js new file mode 100644 index 0000000000..5038ca61df --- /dev/null +++ b/lib/zosfiles/mount/Mount.definition.js @@ -0,0 +1,31 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MountDefinition = void 0; +const fs_definition_1 = require("./fs/fs.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.MOUNT; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.MountDefinition = { + name: "mount", + aliases: [], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + fs_definition_1.FsDefinition + ] +}; +//# sourceMappingURL=Mount.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/Mount.definition.js.map b/lib/zosfiles/mount/Mount.definition.js.map new file mode 100644 index 0000000000..65757ec7a2 --- /dev/null +++ b/lib/zosfiles/mount/Mount.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Mount.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/mount/Mount.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC;AAEjF;;;GAGG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.definition.d.ts b/lib/zosfiles/mount/fs/fs.definition.d.ts new file mode 100644 index 0000000000..1cf2d0a853 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/mount/fs/fs.definition.js b/lib/zosfiles/mount/fs/fs.definition.js new file mode 100644 index 0000000000..01add9de37 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.definition.js @@ -0,0 +1,57 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FsDefinition = void 0; +const fs_options_1 = require("./fs.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const fsStrings = fileStrings.MOUNT.ACTIONS.FS; +exports.FsDefinition = { + name: "file-system", + aliases: ["fs"], + summary: fsStrings.SUMMARY, + description: fsStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/fs.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fileSystemName", + type: "string", + description: fsStrings.POSITIONALS.FILESYSTEMNAME, + required: true + }, + { + name: "mountPoint", + type: "string", + description: fsStrings.POSITIONALS.MOUNTPOINT, + required: true + } + ], + options: [ + fs_options_1.FsMountOptions.fsType, + fs_options_1.FsMountOptions.mode + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: fsStrings.EXAMPLES.EX1, + options: "MY.ZFS /a/ibmuser/mountdir" + }, + { + description: fsStrings.EXAMPLES.EX2, + options: "MY.HFS /a/ibmuser/mountdir --ft HFS -m rdwr" + } + ] +}; +//# sourceMappingURL=fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.definition.js.map b/lib/zosfiles/mount/fs/fs.definition.js.map new file mode 100644 index 0000000000..63c263d845 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6CAA8C;AAI9C,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;AAElC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,cAAc;YACjD,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,UAAU;YAC7C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2BAAc,CAAC,MAAM;QACrB,2BAAc,CAAC,IAAI;KACtB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,4BAA4B;SACxC;QACD;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.handler.d.ts b/lib/zosfiles/mount/fs/fs.handler.d.ts new file mode 100644 index 0000000000..3333629c18 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to mount a Unix file system + */ +export default class FsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/mount/fs/fs.handler.js b/lib/zosfiles/mount/fs/fs.handler.js new file mode 100644 index 0000000000..1214def409 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.handler.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to mount a Unix file system + */ +class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + // collect the options from our command line arguments into an object + const mountFsOptions = { + "fs-type": commandParameters.arguments.fsType, + "mode": commandParameters.arguments.mode, + responseTimeout: commandParameters.arguments.responseTimeout + }; + return zos_files_for_zowe_sdk_1.Mount.fs(session, commandParameters.arguments.fileSystemName, commandParameters.arguments.mountPoint, mountFsOptions); + }); + } +} +exports.default = FsHandler; +//# sourceMappingURL=fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.handler.js.map b/lib/zosfiles/mount/fs/fs.handler.js.map new file mode 100644 index 0000000000..adce3959c0 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAyF;AACzF,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,cAAc,GAA6B;gBAC7C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC7C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,8BAAK,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjI,CAAC;KAAA;CACJ;AAXD,4BAWC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.options.d.ts b/lib/zosfiles/mount/fs/fs.options.d.ts new file mode 100644 index 0000000000..fd024053a4 --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all extra options to be used by the Mount API + */ +export declare const FsMountOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/mount/fs/fs.options.js b/lib/zosfiles/mount/fs/fs.options.js new file mode 100644 index 0000000000..ae0fcf9d9a --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.options.js @@ -0,0 +1,47 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FsMountOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.MOUNT.ACTIONS.FS.OPTIONS; +/** + * Object containing all extra options to be used by the Mount API + */ +exports.FsMountOptions = { + /** + * The file system type to mount + * @type {ICommandOptionDefinition} + */ + fsType: { + name: "fs-type", + aliases: ["ft"], + description: strings.FSTYPE, + type: "string", + defaultValue: "ZFS" + }, + /** + * The read/write mode for the file system + * @type {ICommandOptionDefinition} + */ + mode: { + name: "mode", + aliases: ["m"], + description: strings.MODE, + type: "string", + defaultValue: "rdonly", + allowableValues: { + values: ["rdonly", "rdwr"], + caseSensitive: true + } + } +}; +//# sourceMappingURL=fs.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.options.js.map b/lib/zosfiles/mount/fs/fs.options.js.map new file mode 100644 index 0000000000..646ef3f35a --- /dev/null +++ b/lib/zosfiles/mount/fs/fs.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;AAEvG;;GAEG;AACU,QAAA,cAAc,GAAgD;IACvE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,KAAK;KACtB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,QAAQ;QACtB,eAAe,EAAE;YACb,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;YAC1B,aAAa,EAAE,IAAI;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/Rename.definition.d.ts b/lib/zosfiles/rename/Rename.definition.d.ts new file mode 100644 index 0000000000..a8bb499f9f --- /dev/null +++ b/lib/zosfiles/rename/Rename.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Rename group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const RenameDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/Rename.definition.js b/lib/zosfiles/rename/Rename.definition.js new file mode 100644 index 0000000000..3f3bf579a7 --- /dev/null +++ b/lib/zosfiles/rename/Rename.definition.js @@ -0,0 +1,32 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RenameDefinition = void 0; +const Ds_definition_1 = require("./ds/Ds.definition"); +const Dsm_definition_1 = require("./dsm/Dsm.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.RENAME; +/** + * Rename group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.RenameDefinition = { + name: "rename", + aliases: [], + type: "group", + description: strings.DESCRIPTION, + children: [ + Ds_definition_1.DsDefinition, + Dsm_definition_1.DsmDefinition + ] +}; +//# sourceMappingURL=Rename.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/Rename.definition.js.map b/lib/zosfiles/rename/Rename.definition.js.map new file mode 100644 index 0000000000..94bce0c210 --- /dev/null +++ b/lib/zosfiles/rename/Rename.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Rename.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/rename/Rename.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAClD,yDAAqD;AAIrD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.definition.d.ts b/lib/zosfiles/rename/ds/Ds.definition.d.ts new file mode 100644 index 0000000000..bdc580965f --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/ds/Ds.definition.js b/lib/zosfiles/rename/ds/Ds.definition.js new file mode 100644 index 0000000000..688f61ff84 --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.definition.js @@ -0,0 +1,47 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default; +const dsStrings = strings.RENAME.ACTIONS.DATA_SET; +exports.DsDefinition = { + name: "data-set", + aliases: ["ds"], + description: dsStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/Ds.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "beforeDataSetName", + type: "string", + description: dsStrings.POSITIONALS.BEFOREDSNAME, + required: true + }, + { + name: "afterDataSetName", + type: "string", + description: dsStrings.POSITIONALS.AFTERDSNAME, + required: true + } + ], + examples: [ + { + description: dsStrings.EXAMPLES.EX1, + options: '"USER.BEFORE.SET" "USER.AFTER.SET"' + } + ] +}; +//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.definition.js.map b/lib/zosfiles/rename/ds/Ds.definition.js.map new file mode 100644 index 0000000000..f64ea82587 --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;AAErC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,YAAY;YAC/C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,oCAAoC;SAChD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.handler.d.ts b/lib/zosfiles/rename/ds/Ds.handler.d.ts new file mode 100644 index 0000000000..a72c6f2336 --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Handler to rename a data set + */ +export default class DsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/rename/ds/Ds.handler.js b/lib/zosfiles/rename/ds/Ds.handler.js new file mode 100644 index 0000000000..a129a8dc53 --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +/** + * Handler to rename a data set + */ +class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const { beforeDataSetName, afterDataSetName } = commandParameters.arguments; + return zos_files_for_zowe_sdk_1.Rename.dataSet(session, beforeDataSetName, afterDataSetName); + }); + } +} +exports.default = DsHandler; +//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.handler.js.map b/lib/zosfiles/rename/ds/Ds.handler.js.map new file mode 100644 index 0000000000..6c389f7d1d --- /dev/null +++ b/lib/zosfiles/rename/ds/Ds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAAyE;AAEzE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC5E,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;QACxE,CAAC;KAAA;CACJ;AALD,4BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.d.ts b/lib/zosfiles/rename/dsm/Dsm.definition.d.ts new file mode 100644 index 0000000000..55ef403037 --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DsmDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.js b/lib/zosfiles/rename/dsm/Dsm.definition.js new file mode 100644 index 0000000000..e059f8ab6e --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.definition.js @@ -0,0 +1,53 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DsmDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default; +const dsmStrings = strings.RENAME.ACTIONS.DATA_SET_MEMBER; +exports.DsmDefinition = { + name: "data-set-member", + aliases: ["dsm"], + description: dsmStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/Dsm.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + type: "string", + description: dsmStrings.POSITIONALS.DSNAME, + required: true + }, + { + name: "beforeMemberName", + type: "string", + description: dsmStrings.POSITIONALS.BEFOREMEMBERNAME, + required: true + }, + { + name: "afterMemberName", + type: "string", + description: dsmStrings.POSITIONALS.AFTERMEMBERNAME, + required: true + } + ], + examples: [ + { + description: dsmStrings.EXAMPLES.EX1, + options: '"USER.DATA.SET" "MEM1" "MEM2' + } + ] +}; +//# sourceMappingURL=Dsm.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.js.map b/lib/zosfiles/rename/dsm/Dsm.definition.js.map new file mode 100644 index 0000000000..299644585a --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dsm.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/dsm/Dsm.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;AAE7C,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,MAAM;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,gBAAgB;YACpD,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,eAAe;YACnD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpC,OAAO,EAAE,8BAA8B;SAC1C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.d.ts b/lib/zosfiles/rename/dsm/Dsm.handler.d.ts new file mode 100644 index 0000000000..31bc5683db --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +/** + * Handler to rename a data set member + */ +export default class DsmHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.js b/lib/zosfiles/rename/dsm/Dsm.handler.js new file mode 100644 index 0000000000..da3d39eeea --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +/** + * Handler to rename a data set member + */ +class DsmHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const { dataSetName, beforeMemberName, afterMemberName } = commandParameters.arguments; + return zos_files_for_zowe_sdk_1.Rename.dataSetMember(session, dataSetName, beforeMemberName, afterMemberName); + }); + } +} +exports.default = DsmHandler; +//# sourceMappingURL=Dsm.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.js.map b/lib/zosfiles/rename/dsm/Dsm.handler.js.map new file mode 100644 index 0000000000..e9f5c3e43f --- /dev/null +++ b/lib/zosfiles/rename/dsm/Dsm.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dsm.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/dsm/Dsm.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAAyE;AAEzE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YACvF,OAAO,+BAAM,CAAC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/Unmount.definition.d.ts b/lib/zosfiles/unmount/Unmount.definition.d.ts new file mode 100644 index 0000000000..dc91b9f453 --- /dev/null +++ b/lib/zosfiles/unmount/Unmount.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const UnmountDefinition: ICommandDefinition; diff --git a/lib/zosfiles/unmount/Unmount.definition.js b/lib/zosfiles/unmount/Unmount.definition.js new file mode 100644 index 0000000000..74da98c43f --- /dev/null +++ b/lib/zosfiles/unmount/Unmount.definition.js @@ -0,0 +1,31 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UnmountDefinition = void 0; +const fs_definition_1 = require("./fs/fs.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.UNMOUNT; +/** + * Download group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.UnmountDefinition = { + name: "unmount", + aliases: ["umount"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + fs_definition_1.FsDefinition + ] +}; +//# sourceMappingURL=Unmount.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/Unmount.definition.js.map b/lib/zosfiles/unmount/Unmount.definition.js.map new file mode 100644 index 0000000000..ae3d238082 --- /dev/null +++ b/lib/zosfiles/unmount/Unmount.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Unmount.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/unmount/Unmount.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.definition.d.ts b/lib/zosfiles/unmount/fs/fs.definition.d.ts new file mode 100644 index 0000000000..1cf2d0a853 --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/unmount/fs/fs.definition.js b/lib/zosfiles/unmount/fs/fs.definition.js new file mode 100644 index 0000000000..52b6627a69 --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.definition.js @@ -0,0 +1,42 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FsDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const fileStrings = require("../../-strings-/en").default; +const fsStrings = fileStrings.UNMOUNT.ACTIONS.FS; +exports.FsDefinition = { + name: "file-system", + aliases: ["fs"], + summary: fsStrings.SUMMARY, + description: fsStrings.DESCRIPTION, + type: "command", + handler: __dirname + "/fs.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "fileSystemName", + type: "string", + description: fsStrings.POSITIONALS.FILESYSTEMNAME, + required: true + } + ], + examples: [ + { + description: fsStrings.EXAMPLES.EX1, + options: "MY.FS" + } + ] +}; +//# sourceMappingURL=fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.definition.js.map b/lib/zosfiles/unmount/fs/fs.definition.js.map new file mode 100644 index 0000000000..7114688aef --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/unmount/fs/fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;AAEpC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,cAAc;YACjD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,OAAO;SACnB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.handler.d.ts b/lib/zosfiles/unmount/fs/fs.handler.d.ts new file mode 100644 index 0000000000..6672475223 --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.handler.d.ts @@ -0,0 +1,9 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to unmount a Unix file system + */ +export default class FsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/unmount/fs/fs.handler.js b/lib/zosfiles/unmount/fs/fs.handler.js new file mode 100644 index 0000000000..f7ad36a617 --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.handler.js @@ -0,0 +1,36 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to unmount a Unix file system + */ +class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; + return zos_files_for_zowe_sdk_1.Unmount.fs(session, commandParameters.arguments.fileSystemName, zosFilesOptions); + }); + } +} +exports.default = FsHandler; +//# sourceMappingURL=fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.handler.js.map b/lib/zosfiles/unmount/fs/fs.handler.js.map new file mode 100644 index 0000000000..6dfa5ca7ce --- /dev/null +++ b/lib/zosfiles/unmount/fs/fs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/unmount/fs/fs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA4F;AAC5F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,gCAAO,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AALD,4BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.definition.d.ts b/lib/zosfiles/upload/Upload.definition.d.ts new file mode 100644 index 0000000000..bc99d967c6 --- /dev/null +++ b/lib/zosfiles/upload/Upload.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const UploadDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/Upload.definition.js b/lib/zosfiles/upload/Upload.definition.js new file mode 100644 index 0000000000..bd5f339060 --- /dev/null +++ b/lib/zosfiles/upload/Upload.definition.js @@ -0,0 +1,38 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UploadDefinition = void 0; +const FileToDataSet_definition_1 = require("./ftds/FileToDataSet.definition"); +const StdinToDataSet_definition_1 = require("./stds/StdinToDataSet.definition"); +const DirToPds_definition_1 = require("./dtp/DirToPds.definition"); +const FileToUSS_definition_1 = require("./ftu/FileToUSS.definition"); +const DirToUSSDir_definition_1 = require("./dtu/DirToUSSDir.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.UPLOAD; +/** + * Upload group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.UploadDefinition = { + name: "upload", + aliases: ["ul"], + type: "group", + description: strings.DESCRIPTION, + children: [ + FileToDataSet_definition_1.FileToDataSetDefinition, + StdinToDataSet_definition_1.StdinToDataSetDefinition, + DirToPds_definition_1.DirToPdsDefinition, + FileToUSS_definition_1.FileToUSSDefinition, + DirToUSSDir_definition_1.DirToUSSDirDefinition + ] +}; +//# sourceMappingURL=Upload.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.definition.js.map b/lib/zosfiles/upload/Upload.definition.js.map new file mode 100644 index 0000000000..bfd806623b --- /dev/null +++ b/lib/zosfiles/upload/Upload.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Upload.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/upload/Upload.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,8EAA0E;AAC1E,gFAA4E;AAC5E,mEAA+D;AAE/D,qEAAiE;AACjE,yEAAqE;AAErE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,kDAAuB;QACvB,oDAAwB;QACxB,wCAAkB;QAClB,0CAAmB;QACnB,8CAAqB;KACxB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.options.d.ts b/lib/zosfiles/upload/Upload.options.d.ts new file mode 100644 index 0000000000..5a3a02bee1 --- /dev/null +++ b/lib/zosfiles/upload/Upload.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the Upload API + */ +export declare const UploadOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/upload/Upload.options.js b/lib/zosfiles/upload/Upload.options.js new file mode 100644 index 0000000000..b48a22a9f9 --- /dev/null +++ b/lib/zosfiles/upload/Upload.options.js @@ -0,0 +1,138 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UploadOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.UPLOAD.OPTIONS; +const maxConcurrentRequestsMaxValue = 99999; +/** + * Object containing all options to be used by the Upload API + */ +exports.UploadOptions = { + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volume: { + name: "volume-serial", + aliases: ["vs"], + description: strings.VOLUME, + type: "string" + }, + /** + * The binary option + * @type {ICommandOptionDefinition} + */ + binary: { + name: "binary", + aliases: ["b"], + description: strings.BINARY, + type: "boolean" + }, + /** + * The record option + * @type {ICommandOptionDefinition} + */ + record: { + name: "record", + aliases: ["r"], + description: strings.RECORD, + type: "boolean", + conflictsWith: ["binary"] + }, + /** + * The encoding option + * @type {ICommandOptionDefinition} + */ + encoding: { + name: "encoding", + aliases: ["ec"], + description: strings.ENCODING, + type: "string" + }, + /** + * The migrated recall option + * @type {ICommandOptionDefinition} + */ + recall: { + name: "migrated-recall", + aliases: ["mr"], + description: strings.RECALL, + type: "string", + defaultValue: "nowait" + }, + /** + * The recursive option + * @type {ICommandOptionDefinition} + */ + recursive: { + name: "recursive", + aliases: ["r"], + description: strings.RECURSIVE, + type: "boolean" + }, + /** + * The binary-files option + * @type {ICommandOptionDefinition} + */ + binaryFiles: { + name: "binary-files", + aliases: ["bf"], + description: strings.BINARY_FILES, + type: "string", + conflictsWith: ["ascii-files"] + }, + /** + * The ascii-files option + * @type {ICommandOptionDefinition} + */ + asciiFiles: { + name: "ascii-files", + aliases: ["af"], + description: strings.ASCII_FILES, + type: "string", + conflictsWith: ["binary-files"] + }, + /** + * The attributes option + * @type {ICommandOptionDefinition} + */ + attributes: { + name: "attributes", + aliases: ["attrs"], + description: strings.ATTRIBUTES, + type: "string", + conflictsWith: ["ascii-files, binary-files"] + }, + /** + * The maximum concurrent requests for upload + * @type {ICommandOptionDefinition} + */ + maxConcurrentRequests: { + name: "max-concurrent-requests", + aliases: ["mcr"], + description: strings.MAX_CONCURRENT_REQUESTS, + type: "number", + defaultValue: 1, + numericValueRange: [0, maxConcurrentRequestsMaxValue] + }, + /** + * The include hidden option for upload + */ + includeHidden: { + name: "include-hidden", + aliases: ["ih"], + description: strings.INCLUDE_HIDDEN, + type: "boolean" + } +}; +//# sourceMappingURL=Upload.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.options.js.map b/lib/zosfiles/upload/Upload.options.js.map new file mode 100644 index 0000000000..1f6e61a480 --- /dev/null +++ b/lib/zosfiles/upload/Upload.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Upload.options.js","sourceRoot":"","sources":["../../../src/zosfiles/upload/Upload.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAE1F,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAE5C;;GAEG;AACU,QAAA,aAAa,GAA8C;IACpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAA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,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC,UAAU;QAC/B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,2BAA2B,CAAC;KAC/C;IAED;;;OAGG;IACH,qBAAqB,EAAE;QACnB,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,uBAAuB;QAC5C,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,6BAA6B,CAAC;KACxD;IAED;;OAEG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts b/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts new file mode 100644 index 0000000000..7b7112ec12 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload dir-to-pds command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DirToPdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.js b/lib/zosfiles/upload/dtp/DirToPds.definition.js new file mode 100644 index 0000000000..19482ca4b1 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.definition.js @@ -0,0 +1,63 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirToPdsDefinition = void 0; +const path = require("path"); +const Upload_options_1 = require("../Upload.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.DIR_TO_PDS; +/** + * Upload dir-to-pds command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DirToPdsDefinition = { + name: "dir-to-pds", + aliases: ["dtp"], + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "/DirToPds.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "inputdir", + description: strings.POSITIONALS.INPUTDIR, + type: "string", + required: true + }, + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + Upload_options_1.UploadOptions.volume, + Upload_options_1.UploadOptions.binary, + Upload_options_1.UploadOptions.record, + Upload_options_1.UploadOptions.recall, + Upload_options_1.UploadOptions.encoding + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"src" "ibmuser.src"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"src" "ibmuser.src" --mr wait` + } + ] +}; +//# sourceMappingURL=DirToPds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.js.map b/lib/zosfiles/upload/dtp/DirToPds.definition.js.map new file mode 100644 index 0000000000..2815afdc49 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DirToPds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtp/DirToPds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;AAExG;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qBAAqB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+BAA+B;SAC3C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts b/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts new file mode 100644 index 0000000000..f6edf66021 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to upload content of a directory to a PDS + * @export + */ +export default class DirToPdsHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.js b/lib/zosfiles/upload/dtp/DirToPds.handler.js new file mode 100644 index 0000000000..7492ce7271 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.handler.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to upload content of a directory to a PDS + * @export + */ +class DirToPdsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const status = { + statusMessage: "Uploading directory to PDS", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task: status }); + const response = yield zos_files_for_zowe_sdk_1.Upload.dirToPds(session, commandParameters.arguments.inputdir, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + encoding: commandParameters.arguments.encoding, + task: status, + responseTimeout: commandParameters.arguments.responseTimeout + }); + if (response.apiResponse) { + let skipCount = 0; + let successCount = 0; + let errorCount = 0; + response.apiResponse.forEach((element) => { + if (element.success === true) { + const formatMessage = imperative_1.TextUtils.prettyJson(element); + commandParameters.response.console.log(formatMessage); + successCount++; + } + else if (element.success === false) { + const formatMessage = imperative_1.TextUtils.prettyJson(element); + commandParameters.response.console.error(imperative_1.TextUtils.chalk.red(formatMessage)); + errorCount++; + } + else { + skipCount++; + } + }); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson({ + file_to_upload: response.apiResponse.length, + success: successCount, + error: errorCount, + skipped: skipCount + })); + } + return response; + }); + } +} +exports.default = DirToPdsHandler; +//# sourceMappingURL=DirToPds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.js.map b/lib/zosfiles/upload/dtp/DirToPds.handler.js.map new file mode 100644 index 0000000000..1198b66078 --- /dev/null +++ b/lib/zosfiles/upload/dtp/DirToPds.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DirToPds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtp/DirToPds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAwF;AACxF,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,eAAgB,SAAQ,0CAAmB;IAC/C,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,4BAA4B;gBAC3C,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,W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,CAAC,aAAa,CAAC,CAAC,CAAC;wBAC7E,UAAU,EAAE,CAAC;qBAChB;yBAAM;wBACH,SAAS,EAAE,CAAC;qBACf;gBACL,CAAC,CAAC,CAAC;gBAEH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC;oBACxD,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM;oBAC3C,OAAO,EAAE,YAAY;oBACrB,KAAK,EAAE,UAAU;oBACjB,OAAO,EAAE,SAAS;iBACrB,CAAC,CAAC,CAAC;aACP;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AArDD,kCAqDC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts new file mode 100644 index 0000000000..9c46501e9c --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload dir-to-uss command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DirToUSSDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js new file mode 100644 index 0000000000..848d83e9c3 --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js @@ -0,0 +1,78 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DirToUSSDirDefinition = void 0; +const path = require("path"); +const Upload_options_1 = require("../Upload.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.DIR_TO_USS; +/** + * Upload dir-to-uss command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DirToUSSDirDefinition = { + name: "dir-to-uss", + aliases: ["dtu"], + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "/DirToUSSDir.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "inputDir", + description: strings.POSITIONALS.INPUTDIR, + type: "string", + required: true + }, + { + name: "USSDir", + description: strings.POSITIONALS.USSDIR, + type: "string", + required: true + } + ], + options: [ + Upload_options_1.UploadOptions.binary, + Upload_options_1.UploadOptions.recursive, + Upload_options_1.UploadOptions.binaryFiles, + Upload_options_1.UploadOptions.asciiFiles, + Upload_options_1.UploadOptions.attributes, + Upload_options_1.UploadOptions.maxConcurrentRequests, + Upload_options_1.UploadOptions.includeHidden + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"local_dir" "/a/ibmuser/my_dir"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"local_dir" "/a/ibmuser/my_dir" --recursive` + }, + { + description: strings.EXAMPLES.EX3, + options: `"local_dir" "/a/ibmuser/my_dir" --binary-files "myFile1.exe,myFile2.exe,myFile3.exe"` + }, + { + description: strings.EXAMPLES.EX4, + options: `"local_dir" "/a/ibmuser/my_dir" --binary --ascii-files "myFile1.txt,myFile2.txt,myFile3.txt"` + }, + { + description: strings.EXAMPLES.EX5, + options: `"local_dir" "/a/ibmuser/my_dir" --recursive --attributes my_global_attributes` + } + ] +}; +//# sourceMappingURL=DirToUSSDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map new file mode 100644 index 0000000000..ab5f4567da --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DirToUSSDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/up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W,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,sFAAsF;SAClG;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,8FAA8F;SAC1G;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+EAA+E;SAC3F;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts new file mode 100644 index 0000000000..e2abd22215 --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts @@ -0,0 +1,11 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to upload content from a local directory to a USS directory + * @export + */ +export default class DirToUSSDirHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; + private buildFilesMap; +} diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js new file mode 100644 index 0000000000..f323bcab81 --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js @@ -0,0 +1,86 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +const path = require("path"); +/** + * Handler to upload content from a local directory to a USS directory + * @export + */ +class DirToUSSDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const status = { + statusMessage: "Uploading all files", + percentComplete: 0, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + let inputDir; + // resolving to full path if local path passed is not absolute + if (path.isAbsolute(commandParameters.arguments.inputDir)) { + inputDir = commandParameters.arguments.inputDir; + } + else { + inputDir = path.resolve(commandParameters.arguments.inputDir); + } + const uploadOptions = { + binary: commandParameters.arguments.binary, + maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, + task: status, + responseTimeout: commandParameters.arguments.responseTimeout, + includeHidden: commandParameters.arguments.includeHidden + }; + const attributes = zos_files_for_zowe_sdk_1.ZosFilesAttributes.loadFromFile(commandParameters.arguments.attributes, inputDir); + if (attributes != null) { + uploadOptions.attributes = attributes; + } + else { + uploadOptions.filesMap = this.buildFilesMap(commandParameters); + } + const uploadApi = commandParameters.arguments.recursive ? zos_files_for_zowe_sdk_1.Upload.dirToUSSDirRecursive : zos_files_for_zowe_sdk_1.Upload.dirToUSSDir; + const response = yield uploadApi.bind(zos_files_for_zowe_sdk_1.Upload)(session, inputDir, commandParameters.arguments.USSDir, uploadOptions); + const formatMessage = imperative_1.TextUtils.prettyJson(response.apiResponse); + commandParameters.response.console.log(formatMessage); + return response; + }); + } + buildFilesMap(commandParameters) { + let filesMap = null; + // checking if binary-files or ascii-files are used, and update filesMap argument + if (commandParameters.arguments.binaryFiles) { + filesMap = { + binary: true, + fileNames: commandParameters.arguments.binaryFiles.split(",").map((fileName) => fileName.trim()) + }; + } + if (commandParameters.arguments.asciiFiles) { + filesMap = { + binary: false, + fileNames: commandParameters.arguments.asciiFiles.split(",").map((fileName) => fileName.trim()) + }; + } + return filesMap; + } +} +exports.default = DirToUSSDirHandler; +//# sourceMappingURL=DirToUSSDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map new file mode 100644 index 0000000000..1c10a80f43 --- /dev/null +++ b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DirToUSSDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtu/DirToUSSDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyH;AACzH,qEAAiE;AACjE,6BAA6B;AAE7B;;;GAGG;AAEH,MAAqB,kBAAmB,SAAQ,0CAAmB;IAClD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,qBAAqB;gBACpC,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YAEF,IAAI,QAAgB,CAAC;YAErB,8DAA8D;YAC9D,IAAI,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;gBACvD,QAAQ,GAAG,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC;aACnD;iBAAM;gBACH,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aACjE;YAED,MAAM,aAAa,GAAmB;gBAClC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,qB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AAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aAC3G,CAAC;SACL;QACD,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE;YACxC,QAAQ,GAAG;gBACP,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aAC1G,CAAC;SACL;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AA5DD,qCA4DC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts b/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts new file mode 100644 index 0000000000..3c09e1fac6 --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload file-to-data-set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const FileToDataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js new file mode 100644 index 0000000000..85dcffa788 --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js @@ -0,0 +1,67 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FileToDataSetDefinition = void 0; +const path = require("path"); +const Upload_options_1 = require("../Upload.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.FILE_TO_DATA_SET; +/** + * Upload file-to-data-set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.FileToDataSetDefinition = { + name: "file-to-data-set", + aliases: ["ftds"], + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "/FileToDataSet.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "inputfile", + description: strings.POSITIONALS.INPUTFILE, + type: "string", + required: true + }, + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + Upload_options_1.UploadOptions.volume, + Upload_options_1.UploadOptions.binary, + Upload_options_1.UploadOptions.record, + Upload_options_1.UploadOptions.recall, + Upload_options_1.UploadOptions.encoding + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"file.txt" "ibmuser.ps"` + }, + { + description: strings.EXAMPLES.EX2, + options: `"file.txt" "ibmuser.pds(mem)"` + }, + { + description: strings.EXAMPLES.EX3, + options: `"file.txt" "ibmuser.ps" --mr wait` + } + ] +}; +//# sourceMappingURL=FileToDataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map new file mode 100644 index 0000000000..f5995f62ac --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FileToDataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftds/FileToDataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC;AAE9G;;;GAGG;AACU,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+BAA+B;SAC3C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mCAAmC;SAC/C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts b/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts new file mode 100644 index 0000000000..c3619d4f06 --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to upload content from a file to a data set + * @export + */ +export default class FileToDataSetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js new file mode 100644 index 0000000000..12f28dfbbf --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to upload content from a file to a data set + * @export + */ +class FileToDataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Uploading to data set", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + const response = yield zos_files_for_zowe_sdk_1.Upload.fileToDataset(session, commandParameters.arguments.inputfile, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + encoding: commandParameters.arguments.encoding, + task, + responseTimeout: commandParameters.arguments.responseTimeout + }); + if (response.apiResponse) { + let skipCount = 0; + let successCount = 0; + let errorCount = 0; + response.apiResponse.forEach((element) => { + if (element.success === true) { + const formatMessage = imperative_1.TextUtils.prettyJson(element); + commandParameters.response.console.log(formatMessage); + successCount++; + } + else if (element.success === false) { + const formatMessage = imperative_1.TextUtils.prettyJson(element); + commandParameters.response.console.error(imperative_1.TextUtils.chalk.red(formatMessage)); + errorCount++; + } + else { + skipCount++; + } + }); + commandParameters.response.console.log(imperative_1.TextUtils.prettyJson({ + file_to_upload: response.apiResponse.length, + success: successCount, + error: errorCount, + skipped: skipCount + })); + } + return response; + }); + } +} +exports.default = FileToDataSetHandler; +//# sourceMappingURL=FileToDataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map new file mode 100644 index 0000000000..4ad82f3c47 --- /dev/null +++ b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FileToDataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftds/FileToDataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAwF;AACxF,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACpD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,uBAAuB;gBACtC,SAAS,EAAE,sBAAS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,CAAC,CAAC;wBAC7E,UAAU,EAAE,CAAC;qBAChB;yBAAM;wBACH,SAAS,EAAE,CAAC;qBACf;gBACL,CAAC,CAAC,CAAC;gBAEH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC;oBACxD,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM;oBAC3C,OAAO,EAAE,YAAY;oBACrB,KAAK,EAAE,UAAU;oBACjB,OAAO,EAAE,SAAS;iBACrB,CAAC,CAAC,CAAC;aACP;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAlDD,uCAkDC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts b/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts new file mode 100644 index 0000000000..3b1b410e61 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload file-to-uss command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const FileToUSSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.js b/lib/zosfiles/upload/ftu/FileToUSS.definition.js new file mode 100644 index 0000000000..87d936ecd7 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.definition.js @@ -0,0 +1,56 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FileToUSSDefinition = void 0; +const path = require("path"); +const Upload_options_1 = require("../Upload.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.FILE_TO_USS; +/** + * Upload file-to-uss command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.FileToUSSDefinition = { + name: "file-to-uss", + aliases: ["ftu"], + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "/FileToUSS.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "inputfile", + description: strings.POSITIONALS.INPUTFILE, + type: "string", + required: true + }, + { + name: "USSFileName", + description: strings.POSITIONALS.USSFILENAME, + type: "string", + required: true + } + ], + options: [ + Upload_options_1.UploadOptions.binary, + Upload_options_1.UploadOptions.encoding + ], + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"file.txt" "/a/ibmuser/my_text.txt"` + } + ] +}; +//# sourceMappingURL=FileToUSS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map b/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map new file mode 100644 index 0000000000..62001bca29 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FileToUSS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftu/FileToUSS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;AAEzG;;;GAGG;AACU,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACnD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts b/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts new file mode 100644 index 0000000000..b18296aa68 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to upload content from a local file to a USS file + * @export + */ +export default class FileToUSSHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.js b/lib/zosfiles/upload/ftu/FileToUSS.handler.js new file mode 100644 index 0000000000..f0b5424b83 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.handler.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to upload content from a local file to a USS file + * @export + */ +class FileToUSSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Uploading USS file", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + const response = yield zos_files_for_zowe_sdk_1.Upload.fileToUssFile(session, commandParameters.arguments.inputfile, commandParameters.arguments.USSFileName, { + binary: commandParameters.arguments.binary, + encoding: commandParameters.arguments.encoding, + task, + responseTimeout: commandParameters.arguments.responseTimeout + }); + const formatMessage = imperative_1.TextUtils.prettyJson(response.apiResponse); + commandParameters.response.console.log(formatMessage); + return response; + }); + } +} +exports.default = FileToUSSHandler; +//# sourceMappingURL=FileToUSS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map b/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map new file mode 100644 index 0000000000..64ac44e8b6 --- /dev/null +++ b/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FileToUSS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftu/FileToUSS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyE;AACzE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,gBAAiB,SAAQ,0CAAmB;IAChD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YACxB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,oBAAoB;gBACnC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAEvD,MAAM,QAAQ,GAAG,MAAM,+BAAM,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,EACtF,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEP,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YACtD,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAtBD,mCAsBC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts b/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts new file mode 100644 index 0000000000..68f6da0efd --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Upload stdin-to-data-set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const StdinToDataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js new file mode 100644 index 0000000000..20adb4b5d3 --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js @@ -0,0 +1,63 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StdinToDataSetDefinition = void 0; +const path = require("path"); +const Upload_options_1 = require("../Upload.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.STDIN_TO_DATA_SET; +/** + * Upload stdin-to-data-set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.StdinToDataSetDefinition = { + name: "stdin-to-data-set", + aliases: ["stds"], + description: strings.DESCRIPTION, + type: "command", + handler: path.join(__dirname, "/StdinToDataSet.handler"), + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "dataSetName", + description: strings.POSITIONALS.DATASETNAME, + type: "string", + required: true + } + ], + options: [ + Upload_options_1.UploadOptions.volume, + Upload_options_1.UploadOptions.binary, + Upload_options_1.UploadOptions.record, + Upload_options_1.UploadOptions.recall + ].sort((a, b) => a.name.localeCompare(b.name)), + examples: [ + { + description: strings.EXAMPLES.EX1, + options: `"ibmuser.ps"`, + prefix: `echo "hello world" |` + }, + { + description: strings.EXAMPLES.EX2, + options: `"ibmuser.pds(mem)"`, + prefix: `echo "hello world" |` + }, + { + description: strings.EXAMPLES.EX3, + options: `"ibmuser.ps" --mr wait`, + prefix: `echo "hello world" |` + } + ] +}; +//# sourceMappingURL=StdinToDataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map new file mode 100644 index 0000000000..7899f38ccf --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StdinToDataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/stds/StdinToDataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;AAE/G;;;GAGG;AACU,QAAA,wBAAwB,GAAuB;IACxD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,yBAAyB,CAAC;IACxD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;KACvB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,cAAc;YACvB,MAAM,EAAE,sBAAsB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;YAC7B,MAAM,EAAE,sBAAsB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;YACjC,MAAM,EAAE,sBAAsB;SACjC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts b/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts new file mode 100644 index 0000000000..d8fd329453 --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to stream data from stdin to a data set + * @export + */ +export default class StdinToDataSetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js new file mode 100644 index 0000000000..9f2bdd05d5 --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js @@ -0,0 +1,58 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to stream data from stdin to a data set + * @export + */ +class StdinToDataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Uploading stdin to data set", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + const result = yield zos_files_for_zowe_sdk_1.Upload.streamToDataSet(session, commandParameters.stdin, commandParameters.arguments.dataSetName, { + volume: commandParameters.arguments.volumeSerial, + binary: commandParameters.arguments.binary, + record: commandParameters.arguments.record, + task, + responseTimeout: commandParameters.arguments.responseTimeout + }); + if (result.success) { + const formatMessage = imperative_1.TextUtils.prettyJson({ + success: result.success, + from: "stdin", + to: commandParameters.arguments.dataSetName + }); + commandParameters.response.console.log(formatMessage); + } + return result; + }); + } +} +exports.default = StdinToDataSetHandler; +//# sourceMappingURL=StdinToDataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map new file mode 100644 index 0000000000..1eada02bdd --- /dev/null +++ b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StdinToDataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/stds/StdinToDataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyE;AACzE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,qBAAsB,SAAQ,0CAAmB;IACrD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,6BAA6B;gBAC5C,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,MAAM,GAAG,MAAM,+BAAM,CAAC,eAAe,CAAC,OAAO,EAC/C,iBAAiB,CAAC,KAAK,EACvB,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEP,IAAI,MAAM,CAAC,OAAO,EAAE;gBAChB,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC;oBACvC,OAAO,EAAE,MAAM,CAAC,OAAO;oBACvB,IAAI,EAAE,OAAO;oBACb,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW;iBAC9C,CAAC,CAAC;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;aACzD;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ;AA/BD,wCA+BC"} \ No newline at end of file diff --git a/lib/zosfiles/view/View.definition.d.ts b/lib/zosfiles/view/View.definition.d.ts new file mode 100644 index 0000000000..8c78bb625e --- /dev/null +++ b/lib/zosfiles/view/View.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * View group definition containing its description and children + * @type {ICommandDefinition} + */ +export declare const ViewDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/View.definition.js b/lib/zosfiles/view/View.definition.js new file mode 100644 index 0000000000..1fac48ee3b --- /dev/null +++ b/lib/zosfiles/view/View.definition.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ViewDefinition = void 0; +const Dataset_definition_1 = require("./ds/Dataset.definition"); +const USSFile_definition_1 = require("./uss/USSFile.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.VIEW; +/** + * View group definition containing its description and children + * @type {ICommandDefinition} + */ +exports.ViewDefinition = { + name: "view", + aliases: ["vw"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Dataset_definition_1.DatasetDefinition, + USSFile_definition_1.USSFileDefinition + ], +}; +//# sourceMappingURL=View.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/View.definition.js.map b/lib/zosfiles/view/View.definition.js.map new file mode 100644 index 0000000000..af97e81877 --- /dev/null +++ b/lib/zosfiles/view/View.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"View.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/view/View.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAG1D,iEAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/View.options.d.ts b/lib/zosfiles/view/View.options.d.ts new file mode 100644 index 0000000000..6be5655e3b --- /dev/null +++ b/lib/zosfiles/view/View.options.d.ts @@ -0,0 +1,7 @@ +import { ICommandOptionDefinition } from "@zowe/imperative"; +/** + * Object containing all options to be used by the View API + */ +export declare const ViewOptions: { + [key: string]: ICommandOptionDefinition; +}; diff --git a/lib/zosfiles/view/View.options.js b/lib/zosfiles/view/View.options.js new file mode 100644 index 0000000000..10a6af8581 --- /dev/null +++ b/lib/zosfiles/view/View.options.js @@ -0,0 +1,73 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ViewOptions = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.VIEW.OPTIONS; +/** + * Object containing all options to be used by the View API + */ +exports.ViewOptions = { + /** + * The binary option + * @type {ICommandOptionDefinition} + */ + binary: { + name: "binary", + aliases: ["b"], + description: strings.BINARY, + type: "boolean" + }, + /** + * The encoding option + * @type {ICommandOptionDefinition} + */ + encoding: { + name: "encoding", + aliases: ["ec"], + description: strings.ENCODING, + type: "string", + conflictsWith: ["binary", "record"] + }, + /** + * The record option + * @type {ICommandOptionDefinition} + */ + record: { + name: "record", + aliases: ["r"], + description: strings.RECORD, + type: "boolean", + conflictsWith: ["binary"] + }, + /** + * The volume serial + * @type {ICommandOptionDefinition} + */ + volume: { + name: "volume-serial", + aliases: ["vs"], + description: strings.VOLUME, + type: "string" + }, + /** + * The range of records to return + * @type {ICommandOptionDefinition} + */ + range: { + name: "range", + aliases: ["R"], + description: strings.RANGE, + type: "string" + } +}; +//# sourceMappingURL=View.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/View.options.js.map b/lib/zosfiles/view/View.options.js.map new file mode 100644 index 0000000000..c83627e584 --- /dev/null +++ b/lib/zosfiles/view/View.options.js.map @@ -0,0 +1 @@ +{"version":3,"file":"View.options.js","sourceRoot":"","sources":["../../../src/zosfiles/view/View.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC;AAExF;;GAEG;AACU,QAAA,WAAW,GAAgD;IAEpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;KACtC;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.definition.d.ts b/lib/zosfiles/view/ds/Dataset.definition.d.ts new file mode 100644 index 0000000000..3840e87c40 --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * View data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/ds/Dataset.definition.js b/lib/zosfiles/view/ds/Dataset.definition.js new file mode 100644 index 0000000000..0e8c676f7d --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.definition.js @@ -0,0 +1,65 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DatasetDefinition = void 0; +const View_options_1 = require("../View.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.VIEW; +/** + * View data set command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.DatasetDefinition = { + name: "data-set", + aliases: ["ds"], + summary: strings.ACTIONS.DATA_SET.SUMMARY, + description: strings.ACTIONS.DATA_SET.DESCRIPTION, + type: "command", + handler: __dirname + "/Dataset.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "dataSetName", + description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME, + type: "string", + required: true + }, + ], + options: [ + View_options_1.ViewOptions.binary, + View_options_1.ViewOptions.encoding, + View_options_1.ViewOptions.record, + View_options_1.ViewOptions.volume, + View_options_1.ViewOptions.range + ], + examples: [ + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, + options: `"ibmuser.cntl(iefbr14)"` + }, + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX2, + options: `"ibmuser.test.loadlib(main)" --binary` + }, + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX3, + options: `"ibmuser.cntl(iefbr14)" --range 0,2` + }, + { + description: strings.ACTIONS.DATA_SET.EXAMPLES.EX4, + options: `"ibmuser.cntl(iefbr14)" --range 5-7` + } + ] +}; +//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.definition.js.map b/lib/zosfiles/view/ds/Dataset.definition.js.map new file mode 100644 index 0000000000..59a464ba16 --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW;YAC7D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,QAAQ;QACpB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,KAAK;KACpB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uCAAuC;SACnD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,qCAAqC;SACjD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.handler.d.ts b/lib/zosfiles/view/ds/Dataset.handler.d.ts new file mode 100644 index 0000000000..747d63b02e --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to view a data set's content + * @export + */ +export default class DatasetHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/view/ds/Dataset.handler.js b/lib/zosfiles/view/ds/Dataset.handler.js new file mode 100644 index 0000000000..b73a6ef3d9 --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.handler.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to view a data set's content + * @export + */ +class DatasetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Retrieving data set", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + const dsContentBuf = yield zos_files_for_zowe_sdk_1.Get.dataSet(session, commandParameters.arguments.dataSetName, { binary: commandParameters.arguments.binary, + encoding: commandParameters.arguments.encoding, + record: commandParameters.arguments.record, + volume: commandParameters.arguments.volumeSerial, + range: commandParameters.arguments.range, + responseTimeout: commandParameters.arguments.responseTimeout, + task: task + }); + return { + success: true, + commandResponse: dsContentBuf.toString(), + apiResponse: {} + }; + }); + } +} +exports.default = DatasetHandler; +//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.handler.js.map b/lib/zosfiles/view/ds/Dataset.handler.js.map new file mode 100644 index 0000000000..eba20ba17a --- /dev/null +++ b/lib/zosfiles/view/ds/Dataset.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAsE;AACtE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,qBAAqB;gBACpC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,YAAY,GAAG,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACnF,EAAI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,IAAI,EAAE,IAAI;aACb,CACJ,CAAC;YACF,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,YAAY,CAAC,QAAQ,EAAE;gBACxC,WAAW,EAAE,EAAE;aAClB,CAAC;QACN,CAAC;KAAA;CACJ;AAzBD,iCAyBC"} \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.definition.d.ts b/lib/zosfiles/view/uss/USSFile.definition.d.ts new file mode 100644 index 0000000000..c064d2aa86 --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.definition.d.ts @@ -0,0 +1,6 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * View USS file content command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/uss/USSFile.definition.js b/lib/zosfiles/view/uss/USSFile.definition.js new file mode 100644 index 0000000000..0def2d5d44 --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.definition.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.USSFileDefinition = void 0; +const View_options_1 = require("../View.options"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.VIEW; +/** + * View USS file content command definition containing its description, examples and/or options + * @type {ICommandDefinition} + */ +exports.USSFileDefinition = { + name: "uss-file", + aliases: ["uf"], + summary: strings.ACTIONS.USS_FILE.SUMMARY, + description: strings.ACTIONS.USS_FILE.DESCRIPTION, + type: "command", + handler: __dirname + "/USSFile.handler", + profile: { + optional: ["zosmf"], + }, + positionals: [ + { + name: "file", + description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILE, + type: "string", + required: true + }, + ], + options: [ + View_options_1.ViewOptions.binary, + View_options_1.ViewOptions.encoding, + View_options_1.ViewOptions.range + ], + examples: [ + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, + options: `"/a/ibmuser/my_text.txt"` + }, + { + description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, + options: `"/a/ibmuser/MyJavaClass.class" --binary` + } + ] +}; +//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.definition.js.map b/lib/zosfiles/view/uss/USSFile.definition.js.map new file mode 100644 index 0000000000..a1c53977a0 --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/uss/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;YACzD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,QAAQ;QACpB,0BAAW,CAAC,KAAK;KACpB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,0BAA0B;SACtC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,yCAAyC;SACrD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.handler.d.ts b/lib/zosfiles/view/uss/USSFile.handler.d.ts new file mode 100644 index 0000000000..9469c10e5a --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.handler.d.ts @@ -0,0 +1,10 @@ +import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; +import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; +import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; +/** + * Handler to view USS file content + * @export + */ +export default class USSFileHandler extends ZosFilesBaseHandler { + processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; +} diff --git a/lib/zosfiles/view/uss/USSFile.handler.js b/lib/zosfiles/view/uss/USSFile.handler.js new file mode 100644 index 0000000000..5e6225017d --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.handler.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); +/** + * Handler to view USS file content + * @export + */ +class USSFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { + processWithSession(commandParameters, session) { + return __awaiter(this, void 0, void 0, function* () { + const task = { + percentComplete: 0, + statusMessage: "Retrieving USS file", + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + commandParameters.response.progress.startBar({ task }); + const dsContentBuf = yield zos_files_for_zowe_sdk_1.Get.USSFile(session, commandParameters.arguments.file, { + binary: commandParameters.arguments.binary, + encoding: commandParameters.arguments.encoding, + record: commandParameters.arguments.record, + range: commandParameters.arguments.range, + responseTimeout: commandParameters.arguments.responseTimeout, + task: task + }); + return { + success: true, + commandResponse: dsContentBuf.toString(), + apiResponse: {} + }; + }); + } +} +exports.default = USSFileHandler; +//# sourceMappingURL=USSFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.handler.js.map b/lib/zosfiles/view/uss/USSFile.handler.js.map new file mode 100644 index 0000000000..fcc97a1139 --- /dev/null +++ b/lib/zosfiles/view/uss/USSFile.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"USSFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/uss/USSFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAsE;AACtE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,qBAAqB;gBACpC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,YAAY,GAAG,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAC5E;gBACI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,IAAI,EAAE,IAAI;aACb,CACJ,CAAC;YACF,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,YAAY,CAAC,QAAQ,EAAE;gBACxC,WAAW,EAAE,EAAE;aAClB,CAAC;QACN,CAAC;KAAA;CACJ;AAzBD,iCAyBC"} \ No newline at end of file diff --git a/lib/zosjobs/-strings-/en.d.ts b/lib/zosjobs/-strings-/en.d.ts new file mode 100644 index 0000000000..ecf6c3ee27 --- /dev/null +++ b/lib/zosjobs/-strings-/en.d.ts @@ -0,0 +1,182 @@ +declare const _default: { + CANCEL: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + JOB: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + JOB_ID: string; + }; + OPTIONS: {}; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + }; + }; + MODIFY: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + JOB: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + JOB_ID: string; + }; + OPTIONS: { + JOB_CLASS: string; + HOLD: string; + RELEASE: string; + }; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX3: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + }; + }; + DELETE: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + JOB: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + JOB_ID: string; + }; + OPTIONS: {}; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + OLD_JOBS: { + SUMMARY: string; + DESCRIPTION: string; + OPTIONS: { + PREFIX: string; + MAX_CONCURRENT_REQUESTS: string; + }; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + }; + }; + DOWNLOAD: {}; + LIST: {}; + OPTIONS: { + MODIFY_VERSION: string; + }; + SUBMIT: { + SUMMARY: string; + DESCRIPTION: string; + ACTIONS: { + COMMON_OPT: { + WAIT_FOR_ACTIVE: string; + WAIT_FOR_OUTPUT: string; + VIEW_ALL_SPOOL_CONTENT: string; + DIRECTORY: string; + EXTENSION: string; + JCL_SYMBOLS: string; + }; + DATA_SET: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + DATASET: string; + }; + OPTIONS: { + VOLUME: string; + }; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + USS_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + USSFILE: string; + }; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + LOCAL_FILE: { + SUMMARY: string; + DESCRIPTION: string; + POSITIONALS: { + NAME: string; + }; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + }; + }; + STDIN: { + SUMMARY: string; + DESCRIPTION: string; + EXAMPLES: { + EX1: { + DESCRIPTION: string; + OPTIONS: string; + }; + EX2: { + DESCRIPTION: string; + OPTIONS: string; + PREFIX: string; + }; + }; + }; + }; + }; + VIEW: {}; +}; +export default _default; diff --git a/lib/zosjobs/-strings-/en.js b/lib/zosjobs/-strings-/en.js new file mode 100644 index 0000000000..3d68620f47 --- /dev/null +++ b/lib/zosjobs/-strings-/en.js @@ -0,0 +1,229 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +// Todo: migrate strings into here for other JOBS commands +exports.default = { + CANCEL: { + SUMMARY: "Cancel a z/OS job", + DESCRIPTION: "Cancel a single job by job ID. This cancels the job if it is running or on input.", + ACTIONS: { + JOB: { + SUMMARY: "Cancel a single job by job ID", + DESCRIPTION: "Cancel a single job by job ID", + POSITIONALS: { + JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + + "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + + "the job ID if desired. You can use, for example \"J123\"." + }, + OPTIONS: {}, + EXAMPLES: { + EX1: { + DESCRIPTION: "Cancel job with job ID JOB03456", + OPTIONS: "JOB03456" + }, + EX2: { + DESCRIPTION: "Cancel job with job ID JOB03456 synchronously", + OPTIONS: "JOB03456 --modify-version \"2.0\"" + } + } + } + } + }, + MODIFY: { + SUMMARY: "Modify a z/OS job", + DESCRIPTION: "Modify the job class or the hold status of a job.", + ACTIONS: { + JOB: { + SUMMARY: "Modify the job class or the hold status of a job", + DESCRIPTION: "Modify the job class or the hold status of a job.", + POSITIONALS: { + JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + + "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + + "the job ID if desired. You can use, for example \"J123\".", + }, + OPTIONS: { + JOB_CLASS: "The job class (e.g. 'A', 'B', ...) assigned to the job.", + HOLD: "Setting this flag will prevent a job from executing until " + + "entering a second command with the '--release' flag", + RELEASE: "Flag that releases a held a job for execution", + }, + EXAMPLES: { + EX1: { + DESCRIPTION: "Modify class of job with job ID JOB0000", + OPTIONS: "JOB0000 --jobclass A", + }, + EX2: { + DESCRIPTION: "Hold job with job ID JOB0000", + OPTIONS: "JOB0000 --hold", + }, + EX3: { + DESCRIPTION: "Release job with job ID JOB0000", + OPTIONS: "JOB0000 --release", + }, + } + } + } + }, + DELETE: { + SUMMARY: "Delete a z/OS job or jobs", + DESCRIPTION: "Delete a single job by job ID or delete multiple jobs in OUTPUT status.", + ACTIONS: { + JOB: { + SUMMARY: "Delete a single job by job ID", + DESCRIPTION: "Delete a single job by job ID", + POSITIONALS: { + JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + + "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + + "the job ID if desired. You can use, for example \"J123\"." + }, + OPTIONS: {}, + EXAMPLES: { + EX1: { + DESCRIPTION: "Delete job with job ID JOB03456", + OPTIONS: "JOB03456" + }, + EX2: { + DESCRIPTION: "Delete job with job ID JOB03456 synchronously", + OPTIONS: "JOB03456 --modify-version \"2.0\"" + } + } + }, + OLD_JOBS: { + SUMMARY: "Delete multiple jobs in OUTPUT status", + DESCRIPTION: "Delete (purge) jobs in OUTPUT status. Defaults to deleting all jobs owned by your user ID that are in output status.", + OPTIONS: { + PREFIX: "Only delete jobs with job names that match this prefix. " + + "Defaults to deleting all jobs owned by your user ID that are in output status.", + MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to delete jobs. " + + "Increasing the value makes the command run faster. " + + "However, increasing the value increases resource consumption on z/OS and can be prone to errors caused by making too " + + "many concurrent requests. " + + "When you specify 0, Zowe CLI attempts to delete all jobs at once without a maximum number of concurrent requests." + }, + EXAMPLES: { + EX1: { + DESCRIPTION: "Delete all of your jobs in output status with a job name starting with \"ibmuser\"", + OPTIONS: "-p \"ibmuser*\"" + } + } + } + } + }, + DOWNLOAD: {}, + LIST: {}, + OPTIONS: { + MODIFY_VERSION: "Using this option to set X-IBM-Job-Modify-Version to \"1.0\" will make the delete job API aynchronous. " + + "Otherwise, it will be synchronous by default." + }, + SUBMIT: { + SUMMARY: "Submit a z/OS job", + DESCRIPTION: "Submit a job (JCL).", + ACTIONS: { + COMMON_OPT: { + WAIT_FOR_ACTIVE: "Wait for the job to enter ACTIVE status before completing the command.", + WAIT_FOR_OUTPUT: "Wait for the job to enter OUTPUT status before completing the command.", + VIEW_ALL_SPOOL_CONTENT: "Print all spool output." + + " If you use this option you will wait for the job to complete.", + DIRECTORY: "The local directory you would like to download the output of the job." + + " Creates a subdirectory using the jobID as the name and files are titled based on DD names." + + " If you use this option you will wait for the job to complete.", + EXTENSION: "A file extension to save the job output with. Default is '.txt'.", + JCL_SYMBOLS: "A string of JCL symbols to use for substitution. " + + "For symbol values with no spaces: \"symbol1=value1 symbol2=value2 ...\". " + + "When a value contains spaces, enclose the value in single quotes: " + + "\"symbol1='value 1 with spaces' symbol2='value 2 with spaces' ...\". " + + "To embed a single quote in a value, use two single quotes: \"NAME=O''Brian\"." + }, + DATA_SET: { + SUMMARY: "Submit a job contained in a data set", + DESCRIPTION: "Submit a job (JCL) contained in a data set. The data set may be of type physical sequential or a " + + "PDS member. The command does not pre-validate the data set name. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + + "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", + POSITIONALS: { + DATASET: "The z/OS data set containing the JCL to submit. " + + "You can specify a physical sequential data set (for example, \"DATA.SET\") " + + "or a partitioned data set qualified by a member (for example, \"DATA.SET(MEMBER)\")." + }, + OPTIONS: { + VOLUME: "The volume serial (VOLSER) where the data set resides. The option is required only when the data set is not" + + " catalogued on the system." + }, + EXAMPLES: { + EX1: { + DESCRIPTION: "Submit the JCL in the data set \"ibmuser.cntl(deploy)\"", + OPTIONS: "\"ibmuser.cntl(deploy)\"" + }, + EX2: { + DESCRIPTION: "Submit the JCL in the data set \"ibmuser.cntl(deploy)\", wait for the job to " + + "complete and print all output from the job", + OPTIONS: "\"ibmuser.cntl(deploy)\" --vasc" + } + } + }, + USS_FILE: { + SUMMARY: "Submit a job contained in a USS file", + DESCRIPTION: "Submit a job (JCL) contained in a USS file. The command does not pre-validate the USS file path. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + + "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", + POSITIONALS: { + USSFILE: "Path to the USS file that contains the JCL to submit." + }, + EXAMPLES: { + EX1: { + DESCRIPTION: "Submit the JCL in the USS file \"/a/ibmuser/compile.jcl\"", + OPTIONS: "\"/a/ibmuser/compile.jcl\"" + }, + EX2: { + DESCRIPTION: "Submit the JCL in the USS file \"/a/ibmuser/compile.jcl\", wait for the job to " + + "complete and print all output from the job", + OPTIONS: "\"/a/ibmuser/compile.jcl\" --vasc" + } + } + }, + LOCAL_FILE: { + SUMMARY: "Submit a job contained in a local file", + DESCRIPTION: "Submit a job (JCL) contained in a local file. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + + "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", + POSITIONALS: { + NAME: "The local file containing the JCL to submit." + }, + EXAMPLES: { + EX1: { + DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\"", + OPTIONS: "\"iefbr14.txt\"" + } + } + }, + STDIN: { + SUMMARY: "Submit a job read from standard in", + DESCRIPTION: "Submit a job (JCL) passed to the command via the stdin stream. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + + "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", + EXAMPLES: { + EX1: { + DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\" via standard in", + OPTIONS: "< iefbr14.txt" + }, + EX2: { + DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\" via standard in from the output of another command", + OPTIONS: "", + PREFIX: "cat iefbr14.txt |" + } + } + } + } + }, + VIEW: {} +}; +//# sourceMappingURL=en.js.map \ No newline at end of file diff --git a/lib/zosjobs/-strings-/en.js.map b/lib/zosjobs/-strings-/en.js.map new file mode 100644 index 0000000000..f1bb882d1b --- /dev/null +++ b/lib/zosjobs/-strings-/en.js.map @@ -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iBAAiB;qBAC7B;iBACJ;aACJ;YACD,KAAK,EAAE;gBACH,OAAO,EAAE,oCAAoC;gBAC7C,WAAW,EAAE,iEAAiE;oBAC1E,4EAA4E;oBAC5E,gGAAgG;gBACpG,QAAQ,EAAE;oBACN,GAAG,EAAE;wBACD,WAAW,EAAE,4DAA4D;wBACzE,OAAO,EAAE,eAAe;qBAC3B;oBACD,GAAG,EAAE;wBACD,WAAW,EAAE,+FAA+F;wBAC5G,OAAO,EAAE,EAAE;wBACX,MAAM,EAAE,mBAAmB;qBAC9B;iBACJ;aACJ;SACJ;KACJ;IACD,IAAI,EAAE,EACL;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/Cancel.definition.d.ts b/lib/zosjobs/cancel/Cancel.definition.d.ts new file mode 100644 index 0000000000..7276ec821a --- /dev/null +++ b/lib/zosjobs/cancel/Cancel.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const CancelDefinition: ICommandDefinition; diff --git a/lib/zosjobs/cancel/Cancel.definition.js b/lib/zosjobs/cancel/Cancel.definition.js new file mode 100644 index 0000000000..42aed10f0e --- /dev/null +++ b/lib/zosjobs/cancel/Cancel.definition.js @@ -0,0 +1,26 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CancelDefinition = void 0; +const Job_definition_1 = require("./job/Job.definition"); +const strings = require("../-strings-/en").default.CANCEL; +exports.CancelDefinition = { + name: "cancel", + aliases: ["can"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Job_definition_1.JobDefinition + ] +}; +//# sourceMappingURL=Cancel.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/Cancel.definition.js.map b/lib/zosjobs/cancel/Cancel.definition.js.map new file mode 100644 index 0000000000..6d3cf347dd --- /dev/null +++ b/lib/zosjobs/cancel/Cancel.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Cancel.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/cancel/Cancel.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAIrD,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.definition.d.ts b/lib/zosjobs/cancel/job/Job.definition.d.ts new file mode 100644 index 0000000000..216ba02bb1 --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/cancel/job/Job.definition.js b/lib/zosjobs/cancel/job/Job.definition.js new file mode 100644 index 0000000000..00a3823406 --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.definition.js @@ -0,0 +1,45 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JobDefinition = void 0; +const ZosJobs_options_1 = require("../../ZosJobs.options"); +const strings = require("../../-strings-/en").default.CANCEL; +exports.JobDefinition = { + name: "job", + type: "command", + summary: strings.ACTIONS.JOB.SUMMARY, + description: strings.ACTIONS.JOB.DESCRIPTION, + handler: __dirname + "/Job.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, + type: "string", + required: true + } + ], + options: [ZosJobs_options_1.ZosJobsOptions.modifyVersion], + examples: [ + { + description: strings.ACTIONS.JOB.EXAMPLES.EX1.DESCRIPTION, + options: strings.ACTIONS.JOB.EXAMPLES.EX1.OPTIONS + }, + { + description: strings.ACTIONS.JOB.EXAMPLES.EX2.DESCRIPTION, + options: strings.ACTIONS.JOB.EXAMPLES.EX2.OPTIONS + } + ] +}; +//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.definition.js.map b/lib/zosjobs/cancel/job/Job.definition.js.map new file mode 100644 index 0000000000..3c6f0109f7 --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/cancel/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAIvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG,CAAC,gCAAc,CAAC,aAAa,CAAC;IACxC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.handler.d.ts b/lib/zosjobs/cancel/job/Job.handler.d.ts new file mode 100644 index 0000000000..48cb2097ca --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.handler.d.ts @@ -0,0 +1,24 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs cancel job" command handler. Cancel a job by ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +export default class JobHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof JobHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs cancel job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/cancel/job/Job.handler.js b/lib/zosjobs/cancel/job/Job.handler.js new file mode 100644 index 0000000000..b8102e303a --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.handler.js @@ -0,0 +1,70 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs cancel job" command handler. Cancel a job by ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs cancel job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + // Force yargs `jobid` parameter to be a string + const jobid = this.arguments.jobid + ""; + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); + // Cancel the job + const response = yield zos_jobs_for_zowe_sdk_1.CancelJobs.cancelJobForJob(this.mSession, job, this.arguments.modifyVersion); + let message; + if (this.arguments.modifyVersion == null || this.arguments.modifyVersion === "1.0") { + message = `Successfully submitted request to cancel job ${job.jobname} (${jobid})`; + } + else if (this.arguments.modifyVersion === "2.0" && (response === null || response === void 0 ? void 0 : response.status) === "0") { + message = `Successfully canceled job ${job.jobname} (${jobid})`; + } + else { + throw new imperative_1.ImperativeError({ + msg: `Failed to cancel job ${job.jobname} (${jobid})`, + additionalDetails: response === null || response === void 0 ? void 0 : response.message, + errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] + }); + } + // Print message to console + this.console.log(message); + // Return as an object when using --response-format-json + this.data.setMessage(message); + this.data.setObj(job); + }); + } +} +exports.default = JobHandler; +//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.handler.js.map b/lib/zosjobs/cancel/job/Job.handler.js.map new file mode 100644 index 0000000000..db230fda0f --- /dev/null +++ b/lib/zosjobs/cancel/job/Job.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/cancel/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,uEAAwE;AACxE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,UAAW,SAAQ,qCAAgB;IASpD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,+CAA+C;YAC/C,MAAM,KAAK,GAAW,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC;YAEhD,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC7D,iBAAiB;YACjB,MAAM,QAAQ,GAAG,MAAM,kCAAU,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YACpG,IAAI,OAAe,CAAC;YAEpB,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,KAAK,KAAK,EAAE;gBAChF,OAAO,GAAG,gDAAgD,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG,CAAC;aACtF;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,KAAK,KAAK,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,MAAK,GAAG,EAAE;gBAC3E,OAAO,GAAG,6BAA6B,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG,CAAC;aACnE;iBAAM;gBACH,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,wBAAwB,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG;oBACrD,iBAAiB,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO;oBACpC,SAAS,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,eAAe,CAAC;iBACzC,CAAC,CAAC;aACN;YAED,2BAA2B;YAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAE1B,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;KAAA;CACJ;AA9CD,6BA8CC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/Delete.definition.d.ts b/lib/zosjobs/delete/Delete.definition.d.ts new file mode 100644 index 0000000000..c62fc727d5 --- /dev/null +++ b/lib/zosjobs/delete/Delete.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/Delete.definition.js b/lib/zosjobs/delete/Delete.definition.js new file mode 100644 index 0000000000..c2b1acd0a3 --- /dev/null +++ b/lib/zosjobs/delete/Delete.definition.js @@ -0,0 +1,28 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteDefinition = void 0; +const Job_definition_1 = require("./job/Job.definition"); +const OldJobs_definition_1 = require("./old-jobs/OldJobs.definition"); +const strings = require("../-strings-/en").default.DELETE; +exports.DeleteDefinition = { + name: "delete", + aliases: ["del"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Job_definition_1.JobDefinition, + OldJobs_definition_1.OldJobsDefinition + ] +}; +//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/Delete.definition.js.map b/lib/zosjobs/delete/Delete.definition.js.map new file mode 100644 index 0000000000..393c3a11eb --- /dev/null +++ b/lib/zosjobs/delete/Delete.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AACrD,sEAAkE;AAIlE,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;QACb,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.definition.d.ts b/lib/zosjobs/delete/job/Job.definition.d.ts new file mode 100644 index 0000000000..216ba02bb1 --- /dev/null +++ b/lib/zosjobs/delete/job/Job.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/job/Job.definition.js b/lib/zosjobs/delete/job/Job.definition.js new file mode 100644 index 0000000000..69a38f042e --- /dev/null +++ b/lib/zosjobs/delete/job/Job.definition.js @@ -0,0 +1,45 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JobDefinition = void 0; +const ZosJobs_options_1 = require("../../ZosJobs.options"); +const strings = require("../../-strings-/en").default.DELETE; +exports.JobDefinition = { + name: "job", + type: "command", + summary: strings.ACTIONS.JOB.SUMMARY, + description: strings.ACTIONS.JOB.DESCRIPTION, + handler: __dirname + "/Job.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, + type: "string", + required: true + } + ], + options: [ZosJobs_options_1.ZosJobsOptions.modifyVersion], + examples: [ + { + description: strings.ACTIONS.JOB.EXAMPLES.EX1.DESCRIPTION, + options: strings.ACTIONS.JOB.EXAMPLES.EX1.OPTIONS + }, + { + description: strings.ACTIONS.JOB.EXAMPLES.EX2.DESCRIPTION, + options: strings.ACTIONS.JOB.EXAMPLES.EX2.OPTIONS + } + ] +}; +//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.definition.js.map b/lib/zosjobs/delete/job/Job.definition.js.map new file mode 100644 index 0000000000..bac079a553 --- /dev/null +++ b/lib/zosjobs/delete/job/Job.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAGvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG,CAAC,gCAAc,CAAC,aAAa,CAAC;IACxC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.handler.d.ts b/lib/zosjobs/delete/job/Job.handler.d.ts new file mode 100644 index 0000000000..2e7b2e3dbc --- /dev/null +++ b/lib/zosjobs/delete/job/Job.handler.d.ts @@ -0,0 +1,24 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs delete job" command handler. Delete (purge) a job by ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +export default class JobHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof JobHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/delete/job/Job.handler.js b/lib/zosjobs/delete/job/Job.handler.js new file mode 100644 index 0000000000..c956d93864 --- /dev/null +++ b/lib/zosjobs/delete/job/Job.handler.js @@ -0,0 +1,70 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs delete job" command handler. Delete (purge) a job by ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + // Force yargs `jobid` parameter to be a string + const jobid = this.arguments.jobid + ""; + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); + // Delete the job + const response = yield zos_jobs_for_zowe_sdk_1.DeleteJobs.deleteJobForJob(this.mSession, job, this.arguments.modifyVersion); + let message; + if (this.arguments.modifyVersion == null || this.arguments.modifyVersion === "1.0") { + message = `Successfully submitted request to delete job ${job.jobname} (${jobid})`; + } + else if (this.arguments.modifyVersion === "2.0" && (response === null || response === void 0 ? void 0 : response.status) === "0") { + message = `Successfully deleted job ${job.jobname} (${jobid})`; + } + else { + throw new imperative_1.ImperativeError({ + msg: `Failed to delete job ${job.jobname} (${jobid})`, + additionalDetails: response === null || response === void 0 ? void 0 : response.message, + errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] + }); + } + // Print message to console + this.console.log(message); + // Return as an object when using --response-format-json + this.data.setMessage(message); + this.data.setObj(job); + }); + } +} +exports.default = JobHandler; +//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.handler.js.map b/lib/zosjobs/delete/job/Job.handler.js.map new file mode 100644 index 0000000000..a6d7c2a4c4 --- /dev/null +++ b/lib/zosjobs/delete/job/Job.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,uEAAwE;AACxE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,UAAW,SAAQ,qCAAgB;IASpD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GA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AAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;KAAA;CACJ;AA9CD,6BA8CC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts b/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts new file mode 100644 index 0000000000..774a2e945b --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const OldJobsDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js new file mode 100644 index 0000000000..fbb03c09f1 --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OldJobsDefinition = void 0; +const ZosJobs_options_1 = require("../../ZosJobs.options"); +const strings = require("../../-strings-/en").default.DELETE; +exports.OldJobsDefinition = { + name: "old-jobs", + aliases: ["oj"], + type: "command", + summary: strings.ACTIONS.OLD_JOBS.SUMMARY, + description: strings.ACTIONS.OLD_JOBS.DESCRIPTION, + handler: __dirname + "/OldJobs.handler", + profile: { + optional: ["zosmf"] + }, + options: [ + { + name: "prefix", + aliases: ["p"], + description: strings.ACTIONS.OLD_JOBS.OPTIONS.PREFIX, + type: "string" + }, + { + name: "max-concurrent-requests", + aliases: ["mcr"], + description: strings.ACTIONS.OLD_JOBS.OPTIONS.MAX_CONCURRENT_REQUESTS, + type: "number", + defaultValue: 1 + }, + ZosJobs_options_1.ZosJobsOptions.modifyVersion, + ], + examples: [ + { + description: strings.ACTIONS.OLD_JOBS.EXAMPLES.EX1.DESCRIPTION, + options: strings.ACTIONS.OLD_JOBS.EXAMPLES.EX1.OPTIONS + } + ] +}; +//# sourceMappingURL=OldJobs.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map new file mode 100644 index 0000000000..02e66bc631 --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OldJobs.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/old-jobs/OldJobs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAIvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;YACpD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,uBAAuB;YACrE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,CAAC;SAClB;QACD,gCAAc,CAAC,aAAa;KAC/B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YAC9D,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts b/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts new file mode 100644 index 0000000000..39d06afcc7 --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts @@ -0,0 +1,24 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs delete old-jobs" command handler. Delete (purge) multiple jobs in OUTPUT status. + * @export + * @class OldJobsHandler + * @implements {ICommandHandler} + */ +export default class OldJobsHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof OldJobsHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof OldJobsHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js new file mode 100644 index 0000000000..a3d6169e18 --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js @@ -0,0 +1,92 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk"); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs delete old-jobs" command handler. Delete (purge) multiple jobs in OUTPUT status. + * @export + * @class OldJobsHandler + * @implements {ICommandHandler} + */ +class OldJobsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof OldJobsHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + // Retrieve the list of user's jobs + const prefix = this.arguments.prefix || zos_jobs_for_zowe_sdk_1.JobsConstants.DEFAULT_PREFIX; + const jobs = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJobsByPrefix(this.mSession, prefix); + // Handle no jobs + if (jobs.length === 0) { + let notFoundMessage = "No jobs found"; + if (prefix != null && prefix.length > 0) { + notFoundMessage += ` with prefix ${prefix}`; + } + this.console.log(notFoundMessage); + return; + } + // Loop through the jobs and delete those in OUTPUT status + const deletedJobs = []; + for (const job of jobs) { + if (job.status === zos_jobs_for_zowe_sdk_1.JOB_STATUS.OUTPUT) { + deletedJobs.push(job); + } + } + const deleteJobPromise = (job) => __awaiter(this, void 0, void 0, function* () { + const response = yield zos_jobs_for_zowe_sdk_1.DeleteJobs.deleteJobForJob(this.mSession, job, this.arguments.modifyVersion); + if (response != null && response.status !== "0") { + throw new imperative_1.ImperativeError({ + msg: `Failed to delete job ${job.jobname} (${job.jobid})`, + additionalDetails: response === null || response === void 0 ? void 0 : response.message, + errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] + }); + } + }); + if (this.arguments.maxConcurrentRequests === 0) { + yield Promise.all(deletedJobs.map(deleteJobPromise)); + } + else { + yield (0, core_for_zowe_sdk_1.asyncPool)(this.arguments.maxConcurrentRequests, deletedJobs, deleteJobPromise); + } + const message = `Successfully deleted ${deletedJobs.length} job${deletedJobs.length === 1 ? "" : "s"}`; + // Format the output + this.console.log(message); + params.response.format.output({ + fields: ["jobname", "jobid", "status"], + output: deletedJobs, + format: "table" + }); + // Return as an object when using --response-format-json + this.data.setMessage(message); + this.data.setObj(deletedJobs); + }); + } +} +exports.default = OldJobsHandler; +//# sourceMappingURL=OldJobs.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map new file mode 100644 index 0000000000..e35ff8c162 --- /dev/null +++ b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OldJobs.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/old-jobs/OldJobs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,+DAAoD;AACpD,uEAAmG;AACnG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,cAAe,SAAQ,qCAAgB;IASxD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,mCAAmC;YACnC,MAAM,MAAM,GAAW,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,qCAAa,CAAC,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C,qBAAqB,KAAK,CAAC,EAAE;gBAC5C,MAAM,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;aACxD;iBAAM;gBACH,MAAM,IAAA,6BAAS,EAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;aACxF;YAED,MAAM,OAAO,GAAW,wBAAwB,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;YAC/G,oBAAoB;YACpB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC1B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC1B,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC;gBACtC,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;YAEH,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAClC,CAAC;KAAA;CACJ;AApED,iCAoEC"} \ No newline at end of file diff --git a/lib/zosjobs/download/Download.definition.d.ts b/lib/zosjobs/download/Download.definition.d.ts new file mode 100644 index 0000000000..36d9e2b1a1 --- /dev/null +++ b/lib/zosjobs/download/Download.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DownloadDefinition: ICommandDefinition; diff --git a/lib/zosjobs/download/Download.definition.js b/lib/zosjobs/download/Download.definition.js new file mode 100644 index 0000000000..e1773dc22f --- /dev/null +++ b/lib/zosjobs/download/Download.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DownloadDefinition = void 0; +const Output_definition_1 = require("./download-output/Output.definition"); +exports.DownloadDefinition = { + name: "download", + aliases: ["dl"], + type: "group", + summary: "Download job output", + description: "Download the output of a job as separate files.", + children: [ + Output_definition_1.OutputDefinition + ] +}; +//# sourceMappingURL=Download.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/Download.definition.js.map b/lib/zosjobs/download/Download.definition.js.map new file mode 100644 index 0000000000..c9e924ff9f --- /dev/null +++ b/lib/zosjobs/download/Download.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Download.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/download/Download.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2EAAuE;AAG1D,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,qBAAqB;IAC9B,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE;QACN,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.definition.d.ts b/lib/zosjobs/download/download-output/Output.definition.d.ts new file mode 100644 index 0000000000..07c1e012a1 --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const OutputDefinition: ICommandDefinition; diff --git a/lib/zosjobs/download/download-output/Output.definition.js b/lib/zosjobs/download/download-output/Output.definition.js new file mode 100644 index 0000000000..f2a8765828 --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.definition.js @@ -0,0 +1,77 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OutputDefinition = void 0; +exports.OutputDefinition = { + name: "output", + aliases: ["o"], + type: "command", + summary: "Download all job output to a directory", + description: "Download all job output to a local directory. " + + "Each spool DD will be downloaded to its own file in the directory.", + handler: __dirname + "/Output.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: "The z/OS JOBID of the job containing the spool files you want to view. " + + "No pre-validation of the JOBID is performed.", + type: "string", + required: true + } + ], + options: [ + { + name: "directory", + aliases: ["d", "dir"], + description: "The local directory you would like to download the output for the job to.", + type: "string" + }, + { + name: "extension", + aliases: ["e"], + description: "A file extension to save the job output with. Defaults to '.txt'.", + type: "string" + }, + { + name: "omit-jobid-directory", + aliases: ["ojd"], + description: "If specified, job output will be saved directly to the specified " + + "directory rather than creating a subdirectory named after the ID of the job.", + type: "boolean" + }, + { + name: "binary", + aliases: ["b"], + description: "If specified, job output will be downloaded in binary format instead " + + "of performing text conversion. Conflicts with record.", + type: "boolean" + }, + { + name: "record", + aliases: ["r"], + description: "If specified, job output will be downloaded in record format instead " + + "of performing text conversion. Conflicts with binary.", + type: "boolean", + conflictsWith: ["binary"] + } + ], + examples: [ + { + description: "Download all the output of the job with job ID JOB00234 to an automatically generated directory.", + options: "JOB00234" + } + ] +}; +//# sourceMappingURL=Output.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.definition.js.map b/lib/zosjobs/download/download-output/Output.definition.js.map new file mode 100644 index 0000000000..7f61c4e231 --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Output.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/download/download-output/Output.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,gBAA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"} \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.handler.d.ts b/lib/zosjobs/download/download-output/Output.handler.d.ts new file mode 100644 index 0000000000..4068bfe32e --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs download output" command handler. Download each spool DD to a separate file. + * @export + * @class OutputHandler + * @implements {ICommandHandler} + */ +export default class OutputHandler extends ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs download output" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof OutputHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/download/download-output/Output.handler.js b/lib/zosjobs/download/download-output/Output.handler.js new file mode 100644 index 0000000000..9e638d98f1 --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.handler.js @@ -0,0 +1,69 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs download output" command handler. Download each spool DD to a separate file. + * @export + * @class OutputHandler + * @implements {ICommandHandler} + */ +class OutputHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs download output" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof OutputHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + const response = {}; + const jobid = this.mArguments.jobid + ""; + const outDir = this.mArguments.directory; + const omitJobidDirectory = !!this.mArguments.ojd; + const extension = this.mArguments.extension; + const binary = this.mArguments.binary; + const record = this.mArguments.record; + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); + const options = { + jobname: job.jobname, + jobid, + outDir, + omitJobidDirectory, + extension, + binary, + record + }; + // Download 'em all + yield zos_jobs_for_zowe_sdk_1.DownloadJobs.downloadAllSpoolContentCommon(this.mSession, options); + if (options.outDir == null) { + options.outDir = zos_jobs_for_zowe_sdk_1.DownloadJobs.DEFAULT_JOBS_OUTPUT_DIR; + } + this.console.log(`Successfully downloaded the job output\nDestination: ${options.outDir}`); + // Return as an object when using --response-format-json + this.data.setObj(response); + }); + } +} +exports.default = OutputHandler; +//# sourceMappingURL=Output.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.handler.js.map b/lib/zosjobs/download/download-output/Output.handler.js.map new file mode 100644 index 0000000000..391ad98e9f --- /dev/null +++ b/lib/zosjobs/download/download-output/Output.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Output.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/download/download-output/Output.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAyG;AACzG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,aAAc,SAAQ,qCAAgB;IACvD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,MAAM,QAAQ,GAAQ,EAAE,CAAC;YACzB,MAAM,KAAK,GAAW,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC;YACjD,MAAM,MAAM,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjD,MAAM,kBAAkB,GAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YAC1D,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACpD,MAAM,MAAM,GAAY,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/C,MAAM,MAAM,GAAY,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/C,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC7D,MAAM,OAAO,GAAkC;gBAC3C,OAAO,EAAE,GAAG,CAAC,OAAO;gBACpB,KAAK;gBACL,MAAM;gBACN,kBAAkB;gBAClB,SAAS;gBACT,MAAM;gBACN,MAAM;aACT,CAAC;YACF,mBAAmB;YACnB,MAAM,oCAAY,CAAC,6BAA6B,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAEzE,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,EAAE;gBACxB,OAAO,CAAC,MAAM,GAAG,oCAAY,CAAC,uBAAuB,CAAC;aACzD;YAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wDAAwD,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YAE3F,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;KAAA;CACJ;AAtCD,gCAsCC"} \ No newline at end of file diff --git a/lib/zosjobs/list/List.definition.d.ts b/lib/zosjobs/list/List.definition.d.ts new file mode 100644 index 0000000000..f80abb94cf --- /dev/null +++ b/lib/zosjobs/list/List.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/List.definition.js b/lib/zosjobs/list/List.definition.js new file mode 100644 index 0000000000..8c67c03c0b --- /dev/null +++ b/lib/zosjobs/list/List.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDefinition = void 0; +const SpoolFilesByJobid_definition_1 = require("./spool-files-by-jobid/SpoolFilesByJobid.definition"); +const Jobs_definition_1 = require("./jobs/Jobs.definition"); +exports.ListDefinition = { + name: "list", + aliases: ["ls"], + type: "group", + summary: "List jobs and spool files", + description: "List z/OS jobs and list the spool files (DDs) for a z/OS job on the JES/spool queues.", + children: [SpoolFilesByJobid_definition_1.SpoolFilesByJobidDefinition, + Jobs_definition_1.JobsDefinition] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/List.definition.js.map b/lib/zosjobs/list/List.definition.js.map new file mode 100644 index 0000000000..a04f7140f1 --- /dev/null +++ b/lib/zosjobs/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sGAAkG;AAClG,4DAAwD;AAE3C,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,uFAAuF;IACpG,QAAQ,EAAE,CAAC,0DAA2B;QAClC,gCAAc,CAAC;CACtB,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.definition.d.ts b/lib/zosjobs/list/jobs/Jobs.definition.d.ts new file mode 100644 index 0000000000..eac4817a69 --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const JobsDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/jobs/Jobs.definition.js b/lib/zosjobs/list/jobs/Jobs.definition.js new file mode 100644 index 0000000000..deb0b10e46 --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.definition.js @@ -0,0 +1,83 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JobsDefinition = void 0; +exports.JobsDefinition = { + name: "jobs", + aliases: ["js"], + summary: "List z/OS jobs on JES spool/queues", + description: "List jobs on JES spool/queues. " + + "By default, the command lists jobs owned (owner) by the user specified in your z/OSMF profile." + + " The default for prefix is \"*\". " + + "The command does not prevalidate your user ID. " + + "The command surfaces errors verbatim from the z/OSMF Jobs REST endpoints.", + type: "command", + handler: __dirname + "/Jobs.handler", + options: [ + { + name: "owner", aliases: ["o"], + description: "Specify the owner of the jobs you want to list. " + + "The owner is the individual/user who submitted the job OR the user ID assigned to the job. " + + "The command does not prevalidate the owner. " + + "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + + "which is usually in the form \"USER*\".", + type: "string" + }, + { + name: "prefix", aliases: ["p"], + description: "Specify the job name prefix of the jobs you want to list. " + + "The command does not prevalidate the owner. " + + "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + + "which is usually in the form \"JOB*\".", + type: "string" + }, + { + name: "exec-data", aliases: ["ed"], + description: "Use this option to retrieve execution data for jobs via the z/OSMF REST API.", + type: "boolean", + default: false + } + ], + profile: { + optional: ["zosmf"] + }, + examples: [ + { + options: "", + description: "List all jobs with default settings." + + " The command returns jobs owned by your user ID with any job name" + }, + { + options: "-o \"ibmu*\" -p \"myjo*\"", + description: "List all jobs owned by user IDs starting with 'ibmu' and job names starting with 'myjo'" + }, + { + options: "--rff jobid --rft table", + description: "List all jobs with default owner and prefix settings, displaying only the job ID of each job" + }, + { + options: "--exec-data", + description: "List all jobs and return job execution data along with the default information" + }, + { + options: "-o \"ibmu*\" --exec-data", + description: "List all jobs owned by user IDs starting with 'ibmu' and return job execution data along with the default information" + }, + { + options: "-o \"ibmu*\" -p \"myjo*\" --exec-data", + description: "List all jobs owned by user IDs starting with 'ibmu' and job names starting with 'myjo' and \ + return job execution data along with the default information" + } + ], + outputFormatOptions: true +}; +//# sourceMappingURL=Jobs.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.definition.js.map b/lib/zosjobs/list/jobs/Jobs.definition.js.map new file mode 100644 index 0000000000..bd48574dc2 --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Jobs.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/jobs/Jobs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,iCAAiC;QAC1C,gGAAgG;QAChG,oCAAoC;QACpC,iDAAiD;QACjD,2EAA2E;IAC/E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAG;QACN;YACI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YAC7B,WAAW,EAAE,kDAAkD;gBAC3D,6FAA6F;gBAC7F,8CAA8C;gBAC9C,uFAAuF;gBACvF,yCAAyC;YAC7C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YAC9B,WAAW,EAAE,4DAA4D;gBACrE,8CAA8C;gBAC9C,uFAAuF;gBACvF,wCAAwC;YAC5C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC;YAClC,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;KAC2B;IAChC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,sCAAsC;gBAC/C,mEAAmE;SAC1E;QACD;YACI,OAAO,EAAE,2BAA2B;YACpC,WAAW,EAAE,yFAAyF;SACzG;QACD;YACI,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,8FAA8F;SAC9G;QACD;YACI,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,gFAAgF;SAChG;QACD;YACI,OAAO,EAAE,0BAA0B;YACnC,WAAW,EAAE,uHAAuH;SACvI;QACD;YACI,OAAO,EAAE,uCAAuC;YAChD,WAAW,EAAE;yFAC4D;SAC5E;KACJ;IACL,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.handler.d.ts b/lib/zosjobs/list/jobs/Jobs.handler.d.ts new file mode 100644 index 0000000000..285c44e37d --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.handler.d.ts @@ -0,0 +1,18 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler for the "zos-jobs list jobs" command. + * @export + * @class JobsHandler + * @implements {ICommandHandler} + */ +export default class JobsHandler extends ZosmfBaseHandler { + /** + * Handler for the "zos-jobs list jobs" command. Produces a tabular list of jobs on spool based on + * the input parameters. + * @param {IHandlerParameters} params - see interface for details + * @returns {Promise} - promise to fulfill or reject when the command is complete + * @memberof JobsHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/list/jobs/Jobs.handler.js b/lib/zosjobs/list/jobs/Jobs.handler.js new file mode 100644 index 0000000000..a5538ff6e3 --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.handler.js @@ -0,0 +1,69 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler for the "zos-jobs list jobs" command. + * @export + * @class JobsHandler + * @implements {ICommandHandler} + */ +class JobsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Handler for the "zos-jobs list jobs" command. Produces a tabular list of jobs on spool based on + * the input parameters. + * @param {IHandlerParameters} params - see interface for details + * @returns {Promise} - promise to fulfill or reject when the command is complete + * @memberof JobsHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + // Obtain the list of jobs - by default uses the session user and * for owner and prefix. + const owner = (params.arguments.owner != null) ? params.arguments.owner : null; + const prefix = (params.arguments.prefix != null) ? params.arguments.prefix : zos_jobs_for_zowe_sdk_1.JobsConstants.DEFAULT_PREFIX; + const execData = params.arguments.execData; + const jobs = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJobsCommon(this.mSession, { owner, prefix, execData }); + // Populate the response object + params.response.data.setObj(jobs); + params.response.data.setMessage(`List of jobs returned for prefix "${prefix}" and owner "${owner}"`); + if (!params.arguments.execData) { + // Format the output with the default fields + params.response.format.output({ + fields: ["jobid", "retcode", "jobname", "status"], + output: jobs, + format: "table" + }); + } + else { + // Format the output with the fields showing execution data + params.response.format.output({ + fields: ["jobid", "retcode", "jobname", "status", "exec-system", "exec-member", "exec-submitted", "exec-started", "exec-ended"], + output: jobs, + format: "table", + header: true + }); + } + }); + } +} +exports.default = JobsHandler; +//# sourceMappingURL=Jobs.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.handler.js.map b/lib/zosjobs/list/jobs/Jobs.handler.js.map new file mode 100644 index 0000000000..3f1b79b722 --- /dev/null +++ b/lib/zosjobs/list/jobs/Jobs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Jobs.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/jobs/Jobs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA2E;AAC3E,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,WAAY,SAAQ,qCAAgB;IACrD;;;;;;OAMG;IACU,UAAU,CAAC,MAA0B;;YAE9C,yFAAyF;YACzF,MAAM,KAAK,GAAW,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACvF,MAAM,MAAM,GAAW,CA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d.ts b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts new file mode 100644 index 0000000000..bc1a9e7785 --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SpoolFilesByJobidDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js new file mode 100644 index 0000000000..664426e5af --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js @@ -0,0 +1,43 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SpoolFilesByJobidDefinition = void 0; +exports.SpoolFilesByJobidDefinition = { + name: "spool-files-by-jobid", + aliases: ["sfbj"], + type: "command", + summary: "List spool files of a z/OS job", + description: "Given a z/OS job JOBID, list the spool files (DDs) for a z/OS job on the JES/spool queues. " + + "The command does not pre-validate the JOBID. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", + handler: __dirname + "/SpoolFilesByJobid.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: "The z/OS JOBID of the job with the spool files you want to list. " + + "No pre-validation of the JOBID is performed.", + type: "string", + required: true + } + ], + outputFormatOptions: true, + examples: [ + { + options: "job00123", + description: "List the spool files of the job with JOBID JOB00123" + } + ] +}; +//# sourceMappingURL=SpoolFilesByJobid.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map new file mode 100644 index 0000000000..eeed557c3d --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SpoolFilesByJobid.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,2BAA2B,GAAuB;IAC3D,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,6FAA6F;QACtG,+CAA+C;QAC/C,2EAA2E;IAC/E,OAAO,EAAE,SAAS,GAAG,4BAA4B;IACjD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mEAAmE;gBAC5E,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,qDAAqD;SACrE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts new file mode 100644 index 0000000000..da07be86d9 --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts @@ -0,0 +1,31 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs list spool-files" command handler. Outputs a table of spool files. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +export default class SpoolFilesHandler extends ZosmfBaseHandler { + /** + * The z/OSMF profile for this command + * @private + * @type {*} + * @memberof JobHandler + */ + private profile; + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof JobHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs list spool-files" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js new file mode 100644 index 0000000000..26105148f1 --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js @@ -0,0 +1,56 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs list spool-files" command handler. Outputs a table of spool files. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +class SpoolFilesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs list spool-files" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + // First obtain the details for the job (to acquire JOBNAME), then get the list of output spool files + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.arguments.jobid); + const files = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolFilesForJob(this.mSession, job); + // Set the object, message, and log the prettified object + this.data.setObj(files); + this.data.setMessage(`"${files.length}" spool files obtained for job "${job.jobname}(${job.jobid})"`); + // Format & print the response + params.response.format.output({ + fields: ["id", "ddname", "procstep", "stepname"], + output: files, + format: "table" + }); + }); + } +} +exports.default = SpoolFilesHandler; +//# sourceMappingURL=SpoolFilesByJobid.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map new file mode 100644 index 0000000000..279a587336 --- /dev/null +++ b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SpoolFilesByJobid.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsE;AACtE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,iBAAkB,SAAQ,qCAAgB;IAiB3D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,qGAAqG;YACrG,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC5E,MAAM,KAAK,GAAe,MAAM,+BAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAEhF,yDAAyD;YACzD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,mCAAmC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;YAEtG,8BAA8B;YAC9B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC;gBAChD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA1CD,oCA0CC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/Modify.definition.d.ts b/lib/zosjobs/modify/Modify.definition.d.ts new file mode 100644 index 0000000000..b4cc878f7e --- /dev/null +++ b/lib/zosjobs/modify/Modify.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ModifyDefinition: ICommandDefinition; diff --git a/lib/zosjobs/modify/Modify.definition.js b/lib/zosjobs/modify/Modify.definition.js new file mode 100644 index 0000000000..06ee1aeb98 --- /dev/null +++ b/lib/zosjobs/modify/Modify.definition.js @@ -0,0 +1,26 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ModifyDefinition = void 0; +const Job_definition_1 = require("./job/Job.definition"); +const strings = require("../-strings-/en").default.MODIFY; +exports.ModifyDefinition = { + name: "modify", + aliases: ["mod"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + Job_definition_1.JobDefinition + ] +}; +//# sourceMappingURL=Modify.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/Modify.definition.js.map b/lib/zosjobs/modify/Modify.definition.js.map new file mode 100644 index 0000000000..b8d76a0d8d --- /dev/null +++ b/lib/zosjobs/modify/Modify.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Modify.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/modify/Modify.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAIrD,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.definition.d.ts b/lib/zosjobs/modify/job/Job.definition.d.ts new file mode 100644 index 0000000000..216ba02bb1 --- /dev/null +++ b/lib/zosjobs/modify/job/Job.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/modify/job/Job.definition.js b/lib/zosjobs/modify/job/Job.definition.js new file mode 100644 index 0000000000..cd201a18d5 --- /dev/null +++ b/lib/zosjobs/modify/job/Job.definition.js @@ -0,0 +1,61 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JobDefinition = void 0; +const strings = require("../../-strings-/en").default.MODIFY; +exports.JobDefinition = { + name: "job", + type: "command", + summary: strings.ACTIONS.JOB.SUMMARY, + description: strings.ACTIONS.JOB.DESCRIPTION, + handler: __dirname + "/Job.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, + type: "string", + required: true + }, + ], + options: [ + { + name: "jobclass", + description: strings.ACTIONS.JOB.OPTIONS.JOB_CLASS, + type: "string", + defaultValue: undefined, + required: false, + }, + { + name: "hold", + description: strings.ACTIONS.JOB.OPTIONS.HOLD, + type: "boolean", + defaultValue: undefined, + required: false, + conflictsWith: ["release"] + }, + { + name: "release", + description: strings.ACTIONS.JOB.OPTIONS.RELEASE, + type: "boolean", + defaultValue: undefined, + required: false, + } + ], + examples: Object.values(strings.ACTIONS.JOB.EXAMPLES).map((item) => ({ + description: item.DESCRIPTION, + options: item.OPTIONS + })) +}; +//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.definition.js.map b/lib/zosjobs/modify/job/Job.definition.js.map new file mode 100644 index 0000000000..6a70519292 --- /dev/null +++ b/lib/zosjobs/modify/job/Job.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/modify/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS;YAClD,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI;YAC7C,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;YACf,aAAa,EAAE,CAAC,SAAS,CAAC;SAC7B;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO;YAChD,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;QACtE,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;KACxB,CAAC,CAAC;CACN,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.handler.d.ts b/lib/zosjobs/modify/job/Job.handler.d.ts new file mode 100644 index 0000000000..2ce1e9c40d --- /dev/null +++ b/lib/zosjobs/modify/job/Job.handler.d.ts @@ -0,0 +1,24 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs modify job" command handler. Modify a job by name and ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +export default class JobHandler extends ZosmfBaseHandler { + /** + * Command line arguments passed + * @private + * @type {*} + * @memberof JobHandler + */ + private arguments; + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs modify job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/modify/job/Job.handler.js b/lib/zosjobs/modify/job/Job.handler.js new file mode 100644 index 0000000000..eac9dfc0e0 --- /dev/null +++ b/lib/zosjobs/modify/job/Job.handler.js @@ -0,0 +1,73 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs modify job" command handler. Modify a job by name and ID. + * @export + * @class JobHandler + * @implements {ICommandHandler} + */ +class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs modify job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof JobHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + this.arguments = params.arguments; + // Force yargs parameters to be proper types + const jobid = this.arguments.jobid + ""; + const hold = this.arguments.hold; + const release = this.arguments.release; + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); + // Modify the job and print output + const response = yield zos_jobs_for_zowe_sdk_1.ModifyJobs.modifyJob(this.mSession, { jobname: job.jobname, jobid }, { jobclass: this.arguments.jobclass, hold, release }); + imperative_1.ImperativeExpect.toNotBeNullOrUndefined(response, "You must specify at least one option to modify your job with."); + this.data.setObj(job); + let mergedMessage = ""; + if (this.arguments.jobclass) { + if (response.message.includes("Job class invalid")) { + mergedMessage = "\nUnsuccessful. Job class '" + this.arguments.jobclass + "' invalid"; + } + else { + mergedMessage = "\nSuccessful. Class Change: " + job.class + " -> " + this.arguments.jobclass; + } + } + if (this.arguments.hold || this.arguments.release) { + if (this.arguments.hold) { + mergedMessage = mergedMessage + "\nSuccessful. Job Held"; + } + else { + mergedMessage = mergedMessage + "\nSuccessful. Job Released"; + } + } + this.console.log(mergedMessage); + }); + } +} +exports.default = JobHandler; +//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.handler.js.map b/lib/zosjobs/modify/job/Job.handler.js.map new file mode 100644 index 0000000000..3387519856 --- /dev/null +++ b/lib/zosjobs/modify/job/Job.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/modify/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,i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S,CAAC,QAAQ,CAAC;iBACjG;aACJ;YACD,IAAG,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAC;gBAC7C,IAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAC;oBACnB,aAAa,GAAG,aAAa,GAAG,wBAAwB,CAAC;iBAC5D;qBAAI;oBACD,aAAa,GAAG,aAAa,GAAG,4BAA4B,CAAC;iBAChE;aACJ;YACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACpC,CAAC;KAAA;CACJ;AAhDD,6BAgDC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.definition.d.ts b/lib/zosjobs/submit/Submit.definition.d.ts new file mode 100644 index 0000000000..91171eaae1 --- /dev/null +++ b/lib/zosjobs/submit/Submit.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SubmitDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/Submit.definition.js b/lib/zosjobs/submit/Submit.definition.js new file mode 100644 index 0000000000..4e5735e2b9 --- /dev/null +++ b/lib/zosjobs/submit/Submit.definition.js @@ -0,0 +1,33 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SubmitDefinition = void 0; +const DataSet_definition_1 = require("./data-set/DataSet.definition"); +const localFile_definition_1 = require("./local-file/localFile.definition"); +const stdin_definition_1 = require("./stdin/stdin.definition"); +const USSFile_definition_1 = require("./uss-file/USSFile.definition"); +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../-strings-/en").default.SUBMIT; +exports.SubmitDefinition = { + name: "submit", + aliases: ["sub"], + type: "group", + summary: strings.SUMMARY, + description: strings.DESCRIPTION, + children: [ + DataSet_definition_1.DataSetDefinition, + localFile_definition_1.LocalFileDefinition, + stdin_definition_1.StdinDefinition, + USSFile_definition_1.USSFileDefinition + ] +}; +//# sourceMappingURL=Submit.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.definition.js.map b/lib/zosjobs/submit/Submit.definition.js.map new file mode 100644 index 0000000000..150bde8a41 --- /dev/null +++ b/lib/zosjobs/submit/Submit.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Submit.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/submit/Submit.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sEAAkE;AAClE,4EAAwE;AACxE,+DAA2D;AAG3D,sEAAkE;AAElE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,0CAAmB;QACnB,kCAAe;QACf,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.shared.handler.d.ts b/lib/zosjobs/submit/Submit.shared.handler.d.ts new file mode 100644 index 0000000000..ef5173d7c6 --- /dev/null +++ b/lib/zosjobs/submit/Submit.shared.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs submit data-set" command handler. Submits a job (JCL) contained within a z/OS data set (PS or PDS member). + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +export default class SharedSubmitHandler extends ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs submit data-set" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/submit/Submit.shared.handler.js b/lib/zosjobs/submit/Submit.shared.handler.js new file mode 100644 index 0000000000..a99deefc3c --- /dev/null +++ b/lib/zosjobs/submit/Submit.shared.handler.js @@ -0,0 +1,181 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const fs = require("fs"); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const getStream = require("get-stream"); +/** + * "zos-jobs submit data-set" command handler. Submits a job (JCL) contained within a z/OS data set (PS or PDS member). + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +class SharedSubmitHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs submit data-set" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + const status = { + statusMessage: "Submitting job", + percentComplete: imperative_1.TaskProgress.TEN_PERCENT, + stageName: imperative_1.TaskStage.IN_PROGRESS + }; + // Save the needed parameters for convenience + const parms = { + jclSource: undefined, + viewAllSpoolContent: this.mArguments.viewAllSpoolContent, + directory: this.mArguments.directory, + extension: this.mArguments.extension, + volume: this.mArguments.volume, + waitForActive: this.mArguments.waitForActive, + waitForOutput: this.mArguments.waitForOutput, + task: status, + jclSymbols: this.mArguments.jclSymbols + }; + const options = {}; + params.response.progress.startBar({ task: status }); + // Determine the positional parameter specified and invoke the correct API + // TODO: More will be added with additional commands + let sourceType; + if (this.mArguments.dataset) { + sourceType = "dataset"; + } + else if (this.mArguments.file) { + sourceType = "uss-file"; + } + else if (this.mArguments.localFile) { + sourceType = "local-file"; + } + else if (params.definition.name === "stdin") { + sourceType = "stdin"; + } + let response; // Response from Submit Job + let apiObj; // API Object to set in the command JSON response + let spoolFilesResponse; // Response from view all spool content option + let source; // The actual JCL source (i.e. data-set name, file name, etc.) + let directory = this.mArguments.directory; // Path where to download spool content + // Process depending on the source type + switch (sourceType) { + // Submit the JCL from a data set + case "dataset": + // If the data set is not in catalog and volume option is provided + if (parms.volume) { + options.volume = parms.volume; + // Get JCL from data set or member + const getJcl = yield zos_files_for_zowe_sdk_1.Get.dataSet(this.mSession, this.mArguments.dataset, options); + source = this.mArguments.dataset; + apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, getJcl.toString(), parms); + if (parms.viewAllSpoolContent) { + spoolFilesResponse = apiObj; + } + break; + } + else { + response = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJobCommon(this.mSession, { jobDataSet: this.mArguments.dataset, + jclSymbols: this.mArguments.jclSymbols }); + apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.checkSubmitOptions(this.mSession, parms, response); + source = this.mArguments.dataset; + if (parms.viewAllSpoolContent) { + spoolFilesResponse = apiObj; + } + } + break; + // Submit JCL from a USS file + case "uss-file": + response = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJobCommon(this.mSession, { jobUSSFile: this.mArguments.file, + jclSymbols: this.mArguments.jclSymbols }); + apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.checkSubmitOptions(this.mSession, parms, response); + source = this.mArguments.ussfile; + if (parms.viewAllSpoolContent) { + spoolFilesResponse = apiObj; + } + break; + // Submit the JCL from a local file + case "local-file": { + parms.jclSource = this.mArguments.localFile; + const JclString = fs.readFileSync(this.mArguments.localFile).toString(); + apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, JclString, parms); + source = this.mArguments.localFile; + if (parms.viewAllSpoolContent) { + spoolFilesResponse = apiObj; + } + break; + } + // Submit the JCL piped in on stdin + case "stdin": { + const Jcl = yield getStream(params.stdin); + apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, Jcl, parms); + source = "stdin"; + if (parms.viewAllSpoolContent) { + spoolFilesResponse = apiObj; + } + break; + } + default: + throw new imperative_1.ImperativeError({ + msg: `Internal submit error: Unable to determine the JCL source. ` + + `Please contact support.`, + additionalDetails: JSON.stringify(params) + }); + } + // Print the response to the command + if (spoolFilesResponse == null) { + params.response.format.output({ + fields: ["jobid", "retcode", "jobname", "status"], + output: apiObj, + format: "object" + }); + // Set the API object to the correct + this.data.setObj(apiObj); + // Print data from spool content + } + else { + for (const spoolFile of spoolFilesResponse) { + if (spoolFile.procName != null && spoolFile.procName.length > 0) { + this.console.log("Spool file: %s (ID #%d, Step: %s, ProcStep: %s)", spoolFile.ddName, spoolFile.id, spoolFile.stepName, spoolFile.procName); + } + else { + this.console.log("Spool file: %s (ID #%d, Step: %s)", spoolFile.ddName, spoolFile.id, spoolFile.stepName); + } + this.console.log(spoolFile.data); + } + // Set the API object to the correct + this.data.setObj(spoolFilesResponse); + } + // Print path where spool content was downloaded + if (directory != null && spoolFilesResponse == null) { + directory = directory.includes("./") ? directory : `./${directory}`; + params.response.console.log(`Successfully downloaded output to ${directory}/${apiObj.jobid}`); + } + params.response.progress.endBar(); + this.data.setMessage(`Submitted JCL contained in "${sourceType}": "${source}"`); + }); + } +} +exports.default = SharedSubmitHandler; +//# sourceMappingURL=Submit.shared.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.shared.handler.js.map b/lib/zosjobs/submit/Submit.shared.handler.js.map new file mode 100644 index 0000000000..ef963cc9f1 --- /dev/null +++ b/lib/zosjobs/submit/Submit.shared.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Submit.shared.handler.js","sourceRoot":"","sources":["../../../src/zosjobs/submit/Submit.shared.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiH;AACjH,yBAA0B;AAC1B,uEAAyF;AACzF,yEAAqE;AACrE,iEAA4D;AAC5D,wCAAyC;AAEzC;;;;;GAKG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAE7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,gBAAgB;gBAC/B,eAAe,EAAE,yBAAY,CAAC,WAAW;gBACzC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,6CAA6C;YAC7C,MAAM,KAAK,GAAiB;gBACxB,SAAS,EAAE,SAAS;gBACpB,mBAAmB,EAAE,IAAI,CAAC,UAAU,CAAC,mBAAmB;gBACxD,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS;gBACpC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS;gBACpC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM;gBAC9B,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;gBAC5C,aAA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AU,OAAO,MAAM,GAAG,CAAC,CAAC;QACpF,CAAC;KAAA;CACJ;AA3JD,sCA2JC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.d.ts b/lib/zosjobs/submit/data-set/DataSet.definition.d.ts new file mode 100644 index 0000000000..e3f908f4a8 --- /dev/null +++ b/lib/zosjobs/submit/data-set/DataSet.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const DataSetDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.js b/lib/zosjobs/submit/data-set/DataSet.definition.js new file mode 100644 index 0000000000..d89049d759 --- /dev/null +++ b/lib/zosjobs/submit/data-set/DataSet.definition.js @@ -0,0 +1,85 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataSetDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; +exports.DataSetDefinition = { + name: "data-set", + aliases: ["ds"], + type: "command", + summary: strings.DATA_SET.SUMMARY, + description: strings.DATA_SET.DESCRIPTION, + handler: __dirname + "/../Submit.shared.handler", + positionals: [ + { + name: "dataset", + description: strings.DATA_SET.POSITIONALS.DATASET, + type: "string", + required: true + } + ], + options: [ + { + name: "volume", aliases: ["vol"], + description: strings.DATA_SET.OPTIONS.VOLUME, + type: "string" + }, + { + name: "wait-for-active", aliases: ["wfa"], + description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, + type: "boolean", + conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] + }, + { + name: "wait-for-output", aliases: ["wfo"], + description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, + type: "boolean" + }, + { + name: "view-all-spool-content", aliases: ["vasc"], + description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, + type: "boolean" + }, + { + name: "directory", aliases: ["d"], + description: strings.COMMON_OPT.DIRECTORY, + type: "string" + }, + { + name: "extension", aliases: ["e"], + description: strings.COMMON_OPT.EXTENSION, + implies: ["directory"], + type: "string" + }, + { + name: "jcl-symbols", aliases: ["js"], + description: strings.COMMON_OPT.JCL_SYMBOLS, + type: "string" + } + ], + profile: { + optional: ["zosmf"] + }, + outputFormatOptions: true, + examples: [ + { + options: strings.DATA_SET.EXAMPLES.EX1.OPTIONS, + description: strings.DATA_SET.EXAMPLES.EX1.DESCRIPTION + }, + { + options: strings.DATA_SET.EXAMPLES.EX2.OPTIONS, + description: strings.DATA_SET.EXAMPLES.EX2.DESCRIPTION + } + ] +}; +//# sourceMappingURL=DataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.js.map b/lib/zosjobs/submit/data-set/DataSet.definition.js.map new file mode 100644 index 0000000000..0337cba735 --- /dev/null +++ b/lib/zosjobs/submit/data-set/DataSet.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/data-set/DataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACjC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;IACzC,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAA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,EAAE,QAAQ;SACjB;KAC2B;IAChC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC9C,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SACzD;QACD;YACI,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC9C,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SACzD;KACJ;CACR,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/local-file/localFile.definition.d.ts b/lib/zosjobs/submit/local-file/localFile.definition.d.ts new file mode 100644 index 0000000000..67b0e2376f --- /dev/null +++ b/lib/zosjobs/submit/local-file/localFile.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const LocalFileDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/local-file/localFile.definition.js b/lib/zosjobs/submit/local-file/localFile.definition.js new file mode 100644 index 0000000000..5980ddf0e0 --- /dev/null +++ b/lib/zosjobs/submit/local-file/localFile.definition.js @@ -0,0 +1,75 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LocalFileDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; +exports.LocalFileDefinition = { + name: "local-file", + aliases: ["lf"], + type: "command", + summary: strings.LOCAL_FILE.SUMMARY, + description: strings.LOCAL_FILE.DESCRIPTION, + handler: __dirname + "/../Submit.shared.handler", + positionals: [ + { + name: "localFile", + description: strings.LOCAL_FILE.POSITIONALS.NAME, + type: "string", + required: true + } + ], + options: [ + { + name: "wait-for-active", aliases: ["wfa"], + description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, + type: "boolean", + conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] + }, + { + name: "wait-for-output", aliases: ["wfo"], + description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, + type: "boolean" + }, + { + name: "view-all-spool-content", aliases: ["vasc"], + description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, + type: "boolean" + }, + { + name: "directory", aliases: ["d"], + description: strings.COMMON_OPT.DIRECTORY, + type: "string" + }, + { + name: "extension", aliases: ["e"], + description: strings.COMMON_OPT.EXTENSION, + type: "string" + }, + { + name: "jcl-symbols", aliases: ["js"], + description: strings.COMMON_OPT.JCL_SYMBOLS, + type: "string" + } + ], + profile: { + optional: ["zosmf"] + }, + outputFormatOptions: true, + examples: [ + { + options: strings.LOCAL_FILE.EXAMPLES.EX1.OPTIONS, + description: strings.LOCAL_FILE.EXAMPLES.EX1.DESCRIPTION + } + ] +}; +//# sourceMappingURL=localFile.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/local-file/localFile.definition.js.map b/lib/zosjobs/submit/local-file/localFile.definition.js.map new file mode 100644 index 0000000000..227acf5d69 --- /dev/null +++ b/lib/zosjobs/submit/local-file/localFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"localFile.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/local-file/localFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,YAAY;IAClB,OAAO,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AAE,OAAO,CAAC,UAAU,CAAC,WAAW;YAC3C,IAAI,EAAE,QAAQ;SACjB;KAC0B;IAC/B,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAChD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SAC3D;KACJ;CACR,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/stdin/stdin.definition.d.ts b/lib/zosjobs/submit/stdin/stdin.definition.d.ts new file mode 100644 index 0000000000..0c66ca5d72 --- /dev/null +++ b/lib/zosjobs/submit/stdin/stdin.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const StdinDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/stdin/stdin.definition.js b/lib/zosjobs/submit/stdin/stdin.definition.js new file mode 100644 index 0000000000..980383522f --- /dev/null +++ b/lib/zosjobs/submit/stdin/stdin.definition.js @@ -0,0 +1,72 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StdinDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; +exports.StdinDefinition = { + name: "stdin", + aliases: ["in"], + type: "command", + summary: strings.STDIN.SUMMARY, + description: strings.STDIN.DESCRIPTION, + handler: __dirname + "/../Submit.shared.handler", + options: [ + { + name: "wait-for-active", aliases: ["wfa"], + description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, + type: "boolean", + conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] + }, + { + name: "wait-for-output", aliases: ["wfo"], + description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, + type: "boolean" + }, + { + name: "view-all-spool-content", aliases: ["vasc"], + description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, + type: "boolean" + }, + { + name: "directory", aliases: ["d"], + description: strings.COMMON_OPT.DIRECTORY, + type: "string" + }, + { + name: "extension", aliases: ["e"], + description: strings.COMMON_OPT.EXTENSION, + type: "string" + }, + { + name: "jcl-symbols", aliases: ["js"], + description: strings.COMMON_OPT.JCL_SYMBOLS, + type: "string" + } + ], + profile: { + optional: ["zosmf"] + }, + outputFormatOptions: true, + examples: [ + { + description: strings.STDIN.EXAMPLES.EX1.DESCRIPTION, + options: strings.STDIN.EXAMPLES.EX1.OPTIONS + }, + { + description: strings.STDIN.EXAMPLES.EX2.DESCRIPTION, + options: strings.STDIN.EXAMPLES.EX2.OPTIONS, + prefix: strings.STDIN.EXAMPLES.EX2.PREFIX + } + ] +}; +//# sourceMappingURL=stdin.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/stdin/stdin.definition.js.map b/lib/zosjobs/submit/stdin/stdin.definition.js.map new file mode 100644 index 0000000000..63beb3ef1e --- /dev/null +++ b/lib/zosjobs/submit/stdin/stdin.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"stdin.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/stdin/stdin.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;IAC9B,WAAW,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,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SAC9C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACnD,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC3C,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM;SAC5C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts b/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts new file mode 100644 index 0000000000..8742d5c1f2 --- /dev/null +++ b/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.js b/lib/zosjobs/submit/uss-file/USSFile.definition.js new file mode 100644 index 0000000000..a3c04027c4 --- /dev/null +++ b/lib/zosjobs/submit/uss-file/USSFile.definition.js @@ -0,0 +1,80 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.USSFileDefinition = void 0; +// Does not use the import in anticipation of some internationalization work to be done later. +const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; +exports.USSFileDefinition = { + name: "uss-file", + aliases: ["uf", "uss"], + type: "command", + summary: strings.USS_FILE.SUMMARY, + description: strings.USS_FILE.DESCRIPTION, + handler: __dirname + "/../Submit.shared.handler", + positionals: [ + { + name: "file", + description: strings.USS_FILE.POSITIONALS.USSFILE, + type: "string", + required: true + } + ], + options: [ + { + name: "wait-for-active", aliases: ["wfa"], + description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, + type: "boolean", + conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] + }, + { + name: "wait-for-output", aliases: ["wfo"], + description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, + type: "boolean" + }, + { + name: "view-all-spool-content", aliases: ["vasc"], + description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, + type: "boolean" + }, + { + name: "directory", aliases: ["d"], + description: strings.COMMON_OPT.DIRECTORY, + type: "string" + }, + { + name: "extension", aliases: ["e"], + description: strings.COMMON_OPT.EXTENSION, + implies: ["directory"], + type: "string" + }, + { + name: "jcl-symbols", aliases: ["js"], + description: strings.COMMON_OPT.JCL_SYMBOLS, + type: "string" + } + ], + profile: { + optional: ["zosmf"] + }, + outputFormatOptions: true, + examples: [ + { + options: strings.USS_FILE.EXAMPLES.EX1.OPTIONS, + description: strings.USS_FILE.EXAMPLES.EX1.DESCRIPTION + }, + { + options: strings.USS_FILE.EXAMPLES.EX2.OPTIONS, + description: strings.USS_FILE.EXAMPLES.EX2.DESCRIPTION + } + ] +}; +//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.js.map b/lib/zosjobs/submit/uss-file/USSFile.definition.js.map new file mode 100644 index 0000000000..c2b18e568b --- /dev/null +++ b/lib/zosjobs/submit/uss-file/USSFile.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/uss-file/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,IAAI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AW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;YAC3C,IAAI,EAAE,QAAQ;SACjB;KAC2B;IAChC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC9C,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SACzD;QACD;YACI,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC9C,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SACzD;KACJ;CACR,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/View.definition.d.ts b/lib/zosjobs/view/View.definition.d.ts new file mode 100644 index 0000000000..5b1f78ee33 --- /dev/null +++ b/lib/zosjobs/view/View.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ViewDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/View.definition.js b/lib/zosjobs/view/View.definition.js new file mode 100644 index 0000000000..1f6b6df764 --- /dev/null +++ b/lib/zosjobs/view/View.definition.js @@ -0,0 +1,29 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ViewDefinition = void 0; +const AllSpoolContent_definition_1 = require("./all-spool-content/AllSpoolContent.definition"); +const JobStatusByJobid_definition_1 = require("./job-status-by-jobid/JobStatusByJobid.definition"); +const SpoolFileById_definition_1 = require("./spool-file-by-id/SpoolFileById.definition"); +exports.ViewDefinition = { + name: "view", + aliases: ["vw"], + type: "group", + summary: "View details of a z/OS job", + description: "View details of z/OS jobs on spool/JES queues.", + children: [ + AllSpoolContent_definition_1.AllSpoolContentDefinition, + JobStatusByJobid_definition_1.JobStatusByJobidDefinition, + SpoolFileById_definition_1.SpoolFileByIdDefinition + ] +}; +//# sourceMappingURL=View.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/View.definition.js.map b/lib/zosjobs/view/View.definition.js.map new file mode 100644 index 0000000000..c589ed8b03 --- /dev/null +++ b/lib/zosjobs/view/View.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"View.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/view/View.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+FAA2F;AAC3F,mGAA+F;AAC/F,0FAAsF;AAEzE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE;QACN,sDAAyB;QACzB,wDAA0B;QAC1B,kDAAuB;KAC1B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts new file mode 100644 index 0000000000..1a4084682b --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const AllSpoolContentDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js new file mode 100644 index 0000000000..0b86e9b382 --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js @@ -0,0 +1,42 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AllSpoolContentDefinition = void 0; +exports.AllSpoolContentDefinition = { + name: "all-spool-content", + aliases: ["asc"], + type: "command", + summary: "View all spool content for a specified job ID", + description: "View the contents of each spool file from a z/OS job on spool/JES queues. " + + "The command does not pre-validate the JOBID. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", + handler: __dirname + "/AllSpoolContent.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: "The z/OS JOBID of the job containing the spool files you want to view. " + + "No pre-validation of the JOBID is performed.", + type: "string", + required: true + }, + ], + examples: [ + { + description: "View all spool files for the job with job ID JOB00234", + options: "JOB00234" + } + ] +}; +//# sourceMappingURL=AllSpoolContent.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map new file mode 100644 index 0000000000..0d0aba3982 --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllSpoolContent.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,yBAAyB,GAAuB;IACzD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,+CAA+C;IACxD,WAAW,EAAE,4EAA4E;QACzF,+CAA+C;QAC/C,2EAA2E;IAC3E,OAAO,EAAE,SAAS,GAAG,0BAA0B;IAC/C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yEAAyE;gBACtF,8CAA8C;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts new file mode 100644 index 0000000000..36100ca944 --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +export default class AllSpoolContentHandler extends ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js new file mode 100644 index 0000000000..d928c42847 --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js @@ -0,0 +1,68 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +class AllSpoolContentHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); + // Get spool files + const spoolFiles = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolFilesForJob(this.mSession, job); + const responseArray = []; + for (const spoolFile of spoolFiles) { + const spoolContent = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContent(this.mSession, spoolFile); + if (spoolFile.procstep != null && spoolFile.procstep.length > 0) { + this.console.log("Spool file: %s (ID #%d, Step: %s, ProcStep: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname, spoolFile.procstep); + } + else { + this.console.log("Spool file: %s (ID #%d, Step: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname); + } + this.console.log(spoolContent); + responseArray.push({ + id: spoolFile.id, + ddName: spoolFile.ddname, + stepName: spoolFile.stepname, + procName: spoolFile.procstep, + data: spoolContent.toString(), + }); + } + // Return as an object when using --response-format-json + // This differs from the initial implementation, but we should probably return more then the last spool file. + this.data.setObj(responseArray); + }); + } +} +exports.default = AllSpoolContentHandler; +//# sourceMappingURL=AllSpoolContent.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map new file mode 100644 index 0000000000..bf4de92455 --- /dev/null +++ b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AllSpoolContent.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAkF;AAClF,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,sBAAuB,SAAQ,qCAAgB;IAEhE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC7E,kBAAkB;YAClB,MAAM,UAAU,GAAe,MAAM,+BAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YACrF,MAAM,aAAa,GAAiB,EAAE,CAAC;YAEvC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;gBAChC,MAAM,YAAY,GAAG,MAAM,+BAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;gBAC7E,IAAI,SAAS,CAAC,QAAQ,IAAI,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC7D,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iDAAiD,EAC9D,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;iBAC/E;qBAAM;oBACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAChD,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;iBAC3D;gBACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;gBAC/B,aAAa,CAAC,IAAI,CAAC;oBACf,EAAE,EAAE,SAAS,CAAC,EAAE;oBAChB,MAAM,EAAE,SAAS,CAAC,MAAM;oBACxB,QAAQ,EAAE,SAAS,CAAC,QAAQ;oBAC5B,QAAQ,EAAE,SAAS,CAAC,QAAQ;oBAC5B,IAAI,EAAE,YAAY,CAAC,QAAQ,EAAE;iBAChC,CAAC,CAAC;aACN;YAED,wDAAwD;YACxD,6GAA6G;YAC7G,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACpC,CAAC;KAAA;CACJ;AAvCD,yCAuCC"} \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts new file mode 100644 index 0000000000..a7ec471c8b --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const JobStatusByJobidDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js new file mode 100644 index 0000000000..9ebc827dc6 --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js @@ -0,0 +1,47 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.JobStatusByJobidDefinition = void 0; +exports.JobStatusByJobidDefinition = { + name: "job-status-by-jobid", + aliases: ["jsbj"], + type: "command", + summary: "View status details of a z/OS job", + description: "View status details of a single z/OS job on spool/JES queues. " + + "The command does not prevalidate the JOBID. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints (expect for \"no jobs found\").", + handler: __dirname + "/JobStatusByJobid.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: "The z/OS JOBID of the job you want to view." + + " No prevalidation of the JOBID is performed.", + type: "string", + required: true + } + ], + examples: [ + { + options: "j123", + description: "View status and other details of the job with the job ID JOB00123" + }, + { + options: "j123 --rff status --rft string", + description: "Print only the status (for example, \"OUTPUT\" or \"ACTIVE\") of the job with the job ID JOB00123" + } + ], + outputFormatOptions: true +}; +//# sourceMappingURL=JobStatusByJobid.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map new file mode 100644 index 0000000000..c6496f06e8 --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"JobStatusByJobid.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,gEAAgE;QACzE,8CAA8C;QAC9C,0GAA0G;IAC9G,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,6CAA6C;gBACtD,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,mEAAmE;SACnF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,mGAAmG;SACnH;KACJ;IACL,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts new file mode 100644 index 0000000000..0dd6f9b436 --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts @@ -0,0 +1,17 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs view job-status-by-jobid" command handler. Outputs details regarding a z/OS job. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +export default class JobStatusByJobidHandler extends ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view job-status-by-jobid" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js new file mode 100644 index 0000000000..19f946e46b --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js @@ -0,0 +1,54 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs view job-status-by-jobid" command handler. Outputs details regarding a z/OS job. + * @export + * @class SubmitJobHandler + * @implements {ICommandHandler} + */ +class JobStatusByJobidHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view job-status-by-jobid" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + // Get the job details + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); + // Set the object, message, and log the prettified object + this.data.setObj(job); + this.data.setMessage(`Details obtained for job ${this.mArguments.jobid}`); + // // Format the output with the default fields + params.response.format.output({ + fields: ["jobid", "retcode", "jobname", "status"], + output: job, + format: "object" + }); + }); + } +} +exports.default = JobStatusByJobidHandler; +//# sourceMappingURL=JobStatusByJobid.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map new file mode 100644 index 0000000000..fed58e1016 --- /dev/null +++ b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"JobStatusByJobid.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA4D;AAC5D,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,uBAAwB,SAAQ,qCAAgB;IAEjE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAE7E,yDAAyD;YACzD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,4BAA4B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YAE1E,+CAA+C;YAC/C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACjD,MAAM,EAAE,GAAG;gBACX,MAAM,EAAE,QAAQ;aACnB,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAxBD,0CAwBC"} \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts new file mode 100644 index 0000000000..1b75975c7a --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SpoolFileByIdDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js new file mode 100644 index 0000000000..4904c01869 --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js @@ -0,0 +1,51 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SpoolFileByIdDefinition = void 0; +const Constants_1 = require("../../../Constants"); +exports.SpoolFileByIdDefinition = { + name: "spool-file-by-id", + aliases: ["sfbi"], + type: "command", + summary: "View a spool file from a z/OS job", + description: "View the contents of a spool file from a z/OS job on spool/JES queues. " + + "The command does not pre-validate the JOBID or spool ID. " + + "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", + handler: __dirname + "/SpoolFileById.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "jobid", + description: "The z/OS JOBID of the job containing the spool file you want to view. " + + "No pre-validation of the JOBID is performed.", + type: "string", + required: true + }, + { + name: "spoolfileid", + description: "The spool file ID number for the spool file to view. " + + `Use the "${Constants_1.Constants.BINARY_NAME} zos-jobs list spool-files-by-jobid" command to obtain spool ID numbers.` + + "No pre-validation of the ID is performed.", + type: "number", + required: true + } + ], + examples: [ + { + description: "View the spool file with ID 4 for the job with job ID JOB00123", + options: "JOB00123 4" + } + ] +}; +//# sourceMappingURL=SpoolFileById.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map new file mode 100644 index 0000000000..7e23b5b24e --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SpoolFileById.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/spool-file-by-id/SpoolFileById.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,yEAAyE;QAClF,2DAA2D;QAC3D,2EAA2E;IAC/E,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wEAAwE;gBACjF,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,uDAAuD;gBAChE,YAAY,qBAAS,CAAC,WAAW,0EAA0E;gBAC3G,2CAA2C;YAC/C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts new file mode 100644 index 0000000000..661fded5fe --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts @@ -0,0 +1,16 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * "zos-jobs view spool-by-id" command handler. Outputs a single spool DD contents. + * @export + * @class SubmitJobHandler + */ +export default class SpoolFileByIdHandler extends ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js new file mode 100644 index 0000000000..c61d484f6e --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * "zos-jobs view spool-by-id" command handler. Outputs a single spool DD contents. + * @export + * @class SubmitJobHandler + */ +class SpoolFileByIdHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + /** + * Command handler process - invoked by the command processor to handle the "zos-jobs view job" + * @param {IHandlerParameters} params - Command handler parameters + * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error + * @memberof SubmitDataSetHandler + */ + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + // Get the job details and spool files + const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); + // Get the content, set the JSON response object, and print + const content = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(this.mSession, job.jobname, job.jobid, this.mArguments.spoolfileid); + this.data.setObj(content); + this.data.setMessage(`Spool file "${this.mArguments.spoolfileid}" content obtained for job "${job.jobname}(${job.jobid})"`); + this.console.log(Buffer.from(content)); + }); + } +} +exports.default = SpoolFileByIdHandler; +//# sourceMappingURL=SpoolFileById.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map new file mode 100644 index 0000000000..803e78e3ee --- /dev/null +++ b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SpoolFileById.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/spool-file-by-id/SpoolFileById.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA4D;AAC5D,iEAA4D;AAE5D;;;;GAIG;AACH,MAAqB,oBAAqB,SAAQ,qCAAgB;IAC9D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sCAAsC;YACtC,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAE7E,2DAA2D;YAC3D,MAAM,OAAO,GAAW,MAAM,+BAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC9H,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,WAAW,+BAA+B,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;YAC5H,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;CACJ;AAlBD,uCAkBC"} \ No newline at end of file diff --git a/lib/zoslogs/list/List.definition.d.ts b/lib/zoslogs/list/List.definition.d.ts new file mode 100644 index 0000000000..f80abb94cf --- /dev/null +++ b/lib/zoslogs/list/List.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zoslogs/list/List.definition.js b/lib/zoslogs/list/List.definition.js new file mode 100644 index 0000000000..5692beecf0 --- /dev/null +++ b/lib/zoslogs/list/List.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListDefinition = void 0; +const Logs_definition_1 = require("./logs/Logs.definition"); +exports.ListDefinition = { + name: "list", + aliases: ["ls"], + type: "group", + summary: "List z/OS logs", + description: "List z/OS logs by invoking z/OSMF REST API.", + children: [Logs_definition_1.LogsDefinition] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/List.definition.js.map b/lib/zoslogs/list/List.definition.js.map new file mode 100644 index 0000000000..b6e8616921 --- /dev/null +++ b/lib/zoslogs/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zoslogs/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4DAAwD;AAE3C,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,CAAC,gCAAc,CAAC;CAC7B,CAAC"} \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.definition.d.ts b/lib/zoslogs/list/logs/Logs.definition.d.ts new file mode 100644 index 0000000000..36ec39828e --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const LogsDefinition: ICommandDefinition; diff --git a/lib/zoslogs/list/logs/Logs.definition.js b/lib/zoslogs/list/logs/Logs.definition.js new file mode 100644 index 0000000000..e4f58bff0f --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.definition.js @@ -0,0 +1,71 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LogsDefinition = void 0; +const Constants_1 = require("../../../Constants"); +exports.LogsDefinition = { + name: "logs", + aliases: [], + summary: "List z/OS operlog or syslog within a time range", + description: `List z/OS operlog within a time range.` + + `\n\n` + + `Use this operation to get the z/OS operations logs. It invokes z/OSMF REST API to retrieve logs.` + + `\n\n` + + `Executing '${Constants_1.Constants.BINARY_NAME} zos-logs list logs' will by default return logs from current time and backwards to 10 minutes before.` + + `\n\n` + + `Note: OPERLOG needs to be configured on z/OS server.`, + type: "command", + handler: __dirname + "/Logs.handler", + profile: { + optional: ["zosmf"] + }, + options: [ + { + name: "start-time", + aliases: ["st"], + description: `Specify the time in ISO-8601 time format from when z/OSMF will start to retrieve the logs. For example, ` + + `'2021-01-26T03:33:18.065Z', '2021-01-26T11:33:18.065+08:00'. Default is the current time.`, + type: "string" + }, + { + name: "direction", + aliases: ["d"], + description: `Specify the direction when retrieving the message log. Either 'forward' or 'backward' is valid, case insensitive.`, + type: "string", + defaultValue: "backward", + allowableValues: { values: ["forward", "backward"] } + }, + { + name: "range", + aliases: ["r"], + description: `Specify a time range in which the logs will be retrieved. The format is like nnnu, nnn is 1-999, u is one ` + + `of 's', 'm', 'h', for example, '999s', '20m', '3h'.`, + type: "string", + defaultValue: "10m" + } + ], + examples: [ + { + description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later", + options: "--start-time 2021-07-26T03:38:37.098Z --range 5m --direction forward" + }, + { + description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later. Alias version of the above command", + options: "--st 2021-07-26T03:38:37.098Z -r 5m -d forward" + }, + { + description: "List logs starting from '2021-07-26T03:38:37.098Z' and backwards to 5 minutes before", + options: "--start-time 2021-07-26T03:38:37.098Z --range 5m" + } + ] +}; +//# sourceMappingURL=Logs.definition.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.definition.js.map b/lib/zoslogs/list/logs/Logs.definition.js.map new file mode 100644 index 0000000000..39a394cdfb --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Logs.definition.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,iDAAiD;IAC1D,WAAW,EACP,wCAAwC;QACxC,MAAM;QACN,kGAAkG;QAClG,MAAM;QACN,cAAc,qBAAS,CAAC,WAAW,wGAAwG;QAC3I,MAAM;QACN,sDAAsD;IAC1D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,0GAA0G;gBACvH,2FAA2F;YAC3F,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,mHAAmH;YAChI,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,UAAU;YACxB,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE;SACvD;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,4GAA4G;gBACzH,qDAAqD;YACrD,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,KAAK;SACtB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oFAAoF;YACjG,OAAO,EAAE,sEAAsE;SAClF;QACD;YACI,WAAW,EAAE,wHAAwH;YACrI,OAAO,EAAE,gDAAgD;SAC5D;QACD;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,kDAAkD;SAC9D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.handler.d.ts b/lib/zoslogs/list/logs/Logs.handler.d.ts new file mode 100644 index 0000000000..17063e3b46 --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handle to get logs from z/OSMF restful api + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class LogsHandler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zoslogs/list/logs/Logs.handler.js b/lib/zoslogs/list/logs/Logs.handler.js new file mode 100644 index 0000000000..d4390e8793 --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.handler.js @@ -0,0 +1,78 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const zos_logs_for_zowe_sdk_1 = require("@zowe/zos-logs-for-zowe-sdk"); +/** + * Handle to get logs from z/OSMF restful api + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class LogsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const outputHeader = "Retrieved %s messages from %s, starts from %s, ends at %s. "; + let startTime = new Date().toISOString(); + if (commandParameters.arguments.startTime !== undefined) { + startTime = commandParameters.arguments.startTime; + // in case the input is milliseconds format, which is a long number + if (!isNaN(commandParameters.arguments.startTime)) { + startTime = new Date(+startTime).toISOString(); + } + } + const zosLogParms = { + startTime, + direction: commandParameters.arguments.direction, + range: commandParameters.arguments.range + }; + try { + const resp = yield zos_logs_for_zowe_sdk_1.GetZosLog.getZosLog(this.mSession, zosLogParms); + const logItems = resp.items; + if (logItems === undefined || logItems.length === 0) { + commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, 0, "logs", startTime, new Date(resp.nextTimestamp).toISOString())); + return; + } + // remove control characters, except \u000A(\n) and \u000D(\r) + for (const logItem of logItems) { + logItem.message = logItem.message. + replace(/[\u0000-\u0009\u000B\u000C\u000E-\u001F\u007F-\u009F]/g, ""); // eslint-disable-line no-control-regex + } + // Return as an object in the response 'data' field when using --response-format-json + commandParameters.response.data.setObj(resp); + commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, resp.totalitems, resp.source, startTime, new Date(resp.nextTimestamp).toISOString())); + commandParameters.response.console.log(""); + const memberList = logItems.map((logItem) => new Date(logItem.timestamp).toISOString() + " " + logItem.message.replace(/\r/g, "\n")); + commandParameters.response.console.log(memberList.join("\n")); + } + catch (err) { + if (err.mMessage !== undefined && err.mMessage.includes('status 404')) { + commandParameters.response.console.log("Note: This feature dependents on z/OSMF version 2.4 or higher. Ensure that the z/OSMF" + + " Operations Log Support is available via APAR and associated PTFs: https://www.ibm.com/support/pages/apar/PH35930. \n"); + } + throw err; + } + }); + } +} +exports.default = LogsHandler; +//# sourceMappingURL=Logs.handler.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.handler.js.map b/lib/zoslogs/list/logs/Logs.handler.js.map new file mode 100644 index 0000000000..973eba38d5 --- /dev/null +++ b/lib/zoslogs/list/logs/Logs.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Logs.handler.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iEAA4D;AAC5D,uEAAoG;AACpG;;;;;GAKG;AACH,MAAqB,WAAY,SAAQ,qCAAgB;IACxC,UAAU,CAAC,iBAAqC;;YACzD,MAAM,YAAY,GAAG,6DAA6D,CAAC;YAEnF,IAAI,SAAS,GAAG,IAAI,IAAI,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AAC;gBAE7C,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAC,CAC7H,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAE3C,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAY,EAAE,EAAE,CAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC7F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aAEjE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAG,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAC;oBACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uFAAuF;wBAC9H,uHAAuH,CAAC,CAAC;iBAC5H;gBACD,MAAM,GAAG,CAAC;aACb;QACL,CAAC;KAAA;CACJ;AAxDD,8BAwDC"} \ No newline at end of file diff --git a/lib/zosmf/check/Check.definition.d.ts b/lib/zosmf/check/Check.definition.d.ts new file mode 100644 index 0000000000..cb90274553 --- /dev/null +++ b/lib/zosmf/check/Check.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const CheckCommand: ICommandDefinition; diff --git a/lib/zosmf/check/Check.definition.js b/lib/zosmf/check/Check.definition.js new file mode 100644 index 0000000000..16dde57259 --- /dev/null +++ b/lib/zosmf/check/Check.definition.js @@ -0,0 +1,24 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CheckCommand = void 0; +const Status_definition_1 = require("./status/Status.definition"); +exports.CheckCommand = { + name: "check", + type: "group", + description: "Confirm that z/OSMF is running on a specified system " + + "and gather information about the z/OSMF server for diagnostic purposes. ", + children: [ + Status_definition_1.StatusDefinition + ] +}; +//# sourceMappingURL=Check.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/check/Check.definition.js.map b/lib/zosmf/check/Check.definition.js.map new file mode 100644 index 0000000000..b2445442da --- /dev/null +++ b/lib/zosmf/check/Check.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Check.definition.js","sourceRoot":"","sources":["../../../src/zosmf/check/Check.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kEAA8D;AAEjD,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,uDAAuD;QAChE,0EAA0E;IAC9E,QAAQ,EAAE;QACN,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.definition.d.ts b/lib/zosmf/check/status/Status.definition.d.ts new file mode 100644 index 0000000000..f032b128b9 --- /dev/null +++ b/lib/zosmf/check/status/Status.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const StatusDefinition: ICommandDefinition; diff --git a/lib/zosmf/check/status/Status.definition.js b/lib/zosmf/check/status/Status.definition.js new file mode 100644 index 0000000000..af4717d03a --- /dev/null +++ b/lib/zosmf/check/status/Status.definition.js @@ -0,0 +1,43 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StatusDefinition = void 0; +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +exports.StatusDefinition = { + name: "status", + description: "Confirm that z/OSMF is running on a system specified in your profile and gather " + + "information about the z/OSMF server for diagnostic purposes. The command outputs properties " + + "of the z/OSMF server such as version, hostname, and installed plug-ins.", + type: "command", + handler: __dirname + "/Status.handler", + profile: { + optional: ["zosmf"] + }, + options: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS, + examples: [ + { + description: "Report the status of the z/OSMF server that you specified " + + "in your default z/OSMF profile", + options: "" + }, + { + description: "Report the status of the z/OSMF server that you specified " + + "in a supplied z/OSMF profile", + options: "--zosmf-profile SomeZosmfProfileName" + }, + { + description: "Report the status of the z/OSMF server that you specified manually via command line", + options: "--host myhost --port 443 --user myuser --password mypass" + } + ] +}; +//# sourceMappingURL=Status.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.definition.js.map b/lib/zosmf/check/status/Status.definition.js.map new file mode 100644 index 0000000000..44247c924b --- /dev/null +++ b/lib/zosmf/check/status/Status.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Status.definition.js","sourceRoot":"","sources":["../../../../src/zosmf/check/status/Status.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iEAAwD;AAE3C,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kFAAkF;QAC3F,8FAA8F;QAC9F,yEAAyE;IAC7E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,iCAAY,CAAC,wBAAwB;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,4DAA4D;gBACrE,gCAAgC;YACpC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,4DAA4D;gBACrE,8BAA8B;YAClC,OAAO,EAAE,sCAAsC;SAClD;QACD;YACI,WAAW,EAAE,qFAAqF;YAClG,OAAO,EAAE,0DAA0D;SACtE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.handler.d.ts b/lib/zosmf/check/status/Status.handler.d.ts new file mode 100644 index 0000000000..03b3a0cfbf --- /dev/null +++ b/lib/zosmf/check/status/Status.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to show zosmf information + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zosmf/check/status/Status.handler.js b/lib/zosmf/check/status/Status.handler.js new file mode 100644 index 0000000000..8f061fa03b --- /dev/null +++ b/lib/zosmf/check/status/Status.handler.js @@ -0,0 +1,68 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +const CheckStatus_messages_1 = require("../../constants/CheckStatus.messages"); +/** + * Handler to show zosmf information + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + // our getZosmfInfo API does all of the work + const zosResponse = yield zosmf_for_zowe_sdk_1.CheckStatus.getZosmfInfo(this.mSession); + /* After a successful retrieval, collect the zosmf response object + * into an object that provides a better display. + */ + const mainZosmfProps = { + zosmf_port: zosResponse.zosmf_port, + zosmf_saf_realm: zosResponse.zosmf_saf_realm, + zos_version: zosResponse.zos_version, + zosmf_full_version: zosResponse.zosmf_full_version, + api_version: zosResponse.api_version + }; + // display the information that we got + let userToDisplay; + if (this.mSession.ISession.user === undefined || + this.mSession.ISession.user === null || + this.mSession.ISession.user.length === 0) { + userToDisplay = "with a token"; + } + else { + userToDisplay = this.mSession.ISession.user; + } + commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(CheckStatus_messages_1.CheckStatusMessages.cmdSucceeded.message, { + userName: userToDisplay, + hostName: zosResponse.zosmf_hostname, + mainZosmfProps: imperative_1.TextUtils.prettyJson(mainZosmfProps), + pluginStatus: imperative_1.TextUtils.prettyJson(zosResponse.plugins) + })); + // Return the original zosResponse when using --response-format-json + commandParameters.response.data.setObj(zosResponse); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Status.handler.js.map \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.handler.js.map b/lib/zosmf/check/status/Status.handler.js.map new file mode 100644 index 0000000000..47f7f6181c --- /dev/null +++ b/lib/zosmf/check/status/Status.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Status.handler.js","sourceRoot":"","sources":["../../../../src/zosmf/check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C,CACL,CAAC;YAEF,oEAAoE;YACpE,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxD,CAAC;KAAA;CACJ;AAzCD,0BAyCC"} \ No newline at end of file diff --git a/lib/zosmf/constants/CheckStatus.messages.d.ts b/lib/zosmf/constants/CheckStatus.messages.d.ts new file mode 100644 index 0000000000..bdcd437e4c --- /dev/null +++ b/lib/zosmf/constants/CheckStatus.messages.d.ts @@ -0,0 +1,8 @@ +import { IMessageDefinition } from "@zowe/imperative"; +/** + * Messages displayed by the zosmf check status command + * @type {object.} + */ +export declare const CheckStatusMessages: { + [key: string]: IMessageDefinition; +}; diff --git a/lib/zosmf/constants/CheckStatus.messages.js b/lib/zosmf/constants/CheckStatus.messages.js new file mode 100644 index 0000000000..c2ff4d2089 --- /dev/null +++ b/lib/zosmf/constants/CheckStatus.messages.js @@ -0,0 +1,29 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CheckStatusMessages = void 0; +/** + * Messages displayed by the zosmf check status command + * @type {object.} + */ +exports.CheckStatusMessages = { + /** + * Displayed when checkStatus succeeds and returns status information. + * @type {IMessageDefinition} + */ + cmdSucceeded: { + message: "The user {{userName}} successfully connected to z/OSMF on " + + "'{{hostName}}'.\n{{mainZosmfProps}}" + + "z/OSMF Plug-ins that are installed on '{{hostName}}':\n{{pluginStatus}}" + } +}; +//# sourceMappingURL=CheckStatus.messages.js.map \ No newline at end of file diff --git a/lib/zosmf/constants/CheckStatus.messages.js.map b/lib/zosmf/constants/CheckStatus.messages.js.map new file mode 100644 index 0000000000..189447dfa4 --- /dev/null +++ b/lib/zosmf/constants/CheckStatus.messages.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CheckStatus.messages.js","sourceRoot":"","sources":["../../../src/zosmf/constants/CheckStatus.messages.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;;GAGG;AACU,QAAA,mBAAmB,GAA0C;IACtE;;;OAGG;IACH,YAAY,EAAE;QACV,OAAO,EACH,4DAA4D;YAC5D,qCAAqC;YACrC,yEAAyE;KAChF;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/List.definition.d.ts b/lib/zosmf/list/List.definition.d.ts new file mode 100644 index 0000000000..b6eca2222f --- /dev/null +++ b/lib/zosmf/list/List.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const ListCommand: ICommandDefinition; diff --git a/lib/zosmf/list/List.definition.js b/lib/zosmf/list/List.definition.js new file mode 100644 index 0000000000..2c29630a88 --- /dev/null +++ b/lib/zosmf/list/List.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListCommand = void 0; +const Systems_definition_1 = require("./systems/Systems.definition"); +exports.ListCommand = { + name: "list", + type: "group", + description: "Obtain a list of systems that are defined to a z/OSMF instance.", + children: [ + Systems_definition_1.SystemsDefinition + ] +}; +//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/list/List.definition.js.map b/lib/zosmf/list/List.definition.js.map new file mode 100644 index 0000000000..edfbd47c37 --- /dev/null +++ b/lib/zosmf/list/List.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosmf/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iEAAiE;IAC9E,QAAQ,EAAE;QACN,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.definition.d.ts b/lib/zosmf/list/systems/Systems.definition.d.ts new file mode 100644 index 0000000000..253b8da966 --- /dev/null +++ b/lib/zosmf/list/systems/Systems.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SystemsDefinition: ICommandDefinition; diff --git a/lib/zosmf/list/systems/Systems.definition.js b/lib/zosmf/list/systems/Systems.definition.js new file mode 100644 index 0000000000..fa3c136807 --- /dev/null +++ b/lib/zosmf/list/systems/Systems.definition.js @@ -0,0 +1,41 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SystemsDefinition = void 0; +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +exports.SystemsDefinition = { + name: "systems", + description: "Obtain a list of systems that are defined to a z/OSMF instance.", + type: "command", + handler: __dirname + "/Systems.handler", + profile: { + optional: ["zosmf"] + }, + options: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS, + examples: [ + { + description: "Obtain a list of systems defined to a z/OSMF instance " + + "with your default z/OSMF profile", + options: "" + }, + { + description: "Obtain a list of systems defined to a z/OSMF instance " + + "for the specified z/OSMF profile", + options: "--zosmf-profile SomeZosmfProfileName" + }, + { + description: "Obtain a list of the systems defined to a z/OSMF instance that you specified in the command line", + options: "--host myhost --port 443 --user myuser --password mypass" + } + ] +}; +//# sourceMappingURL=Systems.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.definition.js.map b/lib/zosmf/list/systems/Systems.definition.js.map new file mode 100644 index 0000000000..4cce1cca0c --- /dev/null +++ b/lib/zosmf/list/systems/Systems.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Systems.definition.js","sourceRoot":"","sources":["../../../../src/zosmf/list/systems/Systems.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iEAAwD;AAE3C,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iEAAiE;IAC9E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,iCAAY,CAAC,wBAAwB;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,wDAAwD;gBACjE,kCAAkC;YACtC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,wDAAwD;gBACjE,kCAAkC;YACtC,OAAO,EAAE,sCAAsC;SAClD;QACD;YACI,WAAW,EAAE,kGAAkG;YAC/G,OAAO,EAAE,0DAA0D;SACtE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.handler.d.ts b/lib/zosmf/list/systems/Systems.handler.d.ts new file mode 100644 index 0000000000..03b3a0cfbf --- /dev/null +++ b/lib/zosmf/list/systems/Systems.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; +/** + * Handler to show zosmf information + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosmfBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zosmf/list/systems/Systems.handler.js b/lib/zosmf/list/systems/Systems.handler.js new file mode 100644 index 0000000000..2384586bfa --- /dev/null +++ b/lib/zosmf/list/systems/Systems.handler.js @@ -0,0 +1,45 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); +/** + * Handler to show zosmf information + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const zosResponse = yield zosmf_for_zowe_sdk_1.ListDefinedSystems.listDefinedSystems(this.mSession); + commandParameters.response.format.output({ + fields: ["systemNickName", "systemName", "url", "jesMemberName"], + output: zosResponse.items, + format: "table", + header: true + }); + // Return the original zosResponse when using --response-format-json + commandParameters.response.data.setObj(zosResponse); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Systems.handler.js.map \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.handler.js.map b/lib/zosmf/list/systems/Systems.handler.js.map new file mode 100644 index 0000000000..a00723cf2c --- /dev/null +++ b/lib/zosmf/list/systems/Systems.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Systems.handler.js","sourceRoot":"","sources":["../../../../src/zosmf/list/systems/Systems.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,iEAAkH;AAElH;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,WAAW,GAAqC,MAAM,uCAAkB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEjH,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,CAAE;gBACjE,MAAM,EAAE,WAAW,CAAC,KAAK;gBACzB,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,IAAI;aACf,CAAC,CAAC;YAEH,oEAAoE;YACpE,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxD,CAAC;KAAA;CACJ;AAhBD,0BAgBC"} \ No newline at end of file diff --git a/lib/zostso/constants/ZosTso.constants.d.ts b/lib/zostso/constants/ZosTso.constants.d.ts new file mode 100644 index 0000000000..b2d4d7dff8 --- /dev/null +++ b/lib/zostso/constants/ZosTso.constants.d.ts @@ -0,0 +1,40 @@ +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_GROUP: string; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_ACCOUNT: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_ACCOUNT_PROFILE: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_CHAR_SET: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_CODE_PAGE: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_COLUMNS: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_LOGON_PROCEDURE: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_REGION_SIZE: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_OPTION_ROWS: import("@zowe/imperative").ICommandOptionDefinition; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +export declare const TSO_PROFILE_OPTIONS: import("@zowe/imperative").ICommandOptionDefinition[]; diff --git a/lib/zostso/constants/ZosTso.constants.js b/lib/zostso/constants/ZosTso.constants.js new file mode 100644 index 0000000000..6fcdf8e6df --- /dev/null +++ b/lib/zostso/constants/ZosTso.constants.js @@ -0,0 +1,55 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TSO_PROFILE_OPTIONS = exports.TSO_OPTION_ROWS = exports.TSO_OPTION_REGION_SIZE = exports.TSO_OPTION_LOGON_PROCEDURE = exports.TSO_OPTION_COLUMNS = exports.TSO_OPTION_CODE_PAGE = exports.TSO_OPTION_CHAR_SET = exports.TSO_OPTION_ACCOUNT_PROFILE = exports.TSO_OPTION_ACCOUNT = exports.TSO_OPTION_GROUP = void 0; +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_GROUP = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_GROUP; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_ACCOUNT = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ACCOUNT; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_ACCOUNT_PROFILE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ACCOUNT_PROFILE; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_CHAR_SET = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_CHAR_SET; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_CODE_PAGE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_CODE_PAGE; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_COLUMNS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_COLUMNS; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_LOGON_PROCEDURE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_LOGON_PROCEDURE; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_REGION_SIZE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_REGION_SIZE; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_OPTION_ROWS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ROWS; +/** + * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk + */ +exports.TSO_PROFILE_OPTIONS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS; +//# sourceMappingURL=ZosTso.constants.js.map \ No newline at end of file diff --git a/lib/zostso/constants/ZosTso.constants.js.map b/lib/zostso/constants/ZosTso.constants.js.map new file mode 100644 index 0000000000..bd641303de --- /dev/null +++ b/lib/zostso/constants/ZosTso.constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ZosTso.constants.js","sourceRoot":"","sources":["../../../src/zostso/constants/ZosTso.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,qEAAiE;AAEjE;;GAEG;AACU,QAAA,gBAAgB,GAAG,0CAAmB,CAAC,gBAAgB,CAAC;AAErE;;GAEG;AACU,QAAA,kBAAkB,GAAG,0CAAmB,CAAC,kBAAkB,CAAC;AAEzE;;GAEG;AACU,QAAA,0BAA0B,GAAG,0CAAmB,CAAC,0BAA0B,CAAC;AAEzF;;GAEG;AACU,QAAA,mBAAmB,GAAG,0CAAmB,CAAC,mBAAmB,CAAC;AAE3E;;GAEG;AACU,QAAA,oBAAoB,GAAG,0CAAmB,CAAC,oBAAoB,CAAC;AAE7E;;GAEG;AACU,QAAA,kBAAkB,GAAG,0CAAmB,CAAC,kBAAkB,CAAC;AAEzE;;GAEG;AACU,QAAA,0BAA0B,GAAG,0CAAmB,CAAC,0BAA0B,CAAC;AAEzF;;GAEG;AACU,QAAA,sBAAsB,GAAG,0CAAmB,CAAC,sBAAsB,CAAC;AAEjF;;GAEG;AACU,QAAA,eAAe,GAAG,0CAAmB,CAAC,eAAe,CAAC;AAEnE;;GAEG;AACU,QAAA,mBAAmB,GAAG,0CAAmB,CAAC,mBAAmB,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/Issue.definition.d.ts b/lib/zostso/issue/Issue.definition.d.ts new file mode 100644 index 0000000000..ce4e61d6de --- /dev/null +++ b/lib/zostso/issue/Issue.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zostso/issue/Issue.definition.js b/lib/zostso/issue/Issue.definition.js new file mode 100644 index 0000000000..010e9c838c --- /dev/null +++ b/lib/zostso/issue/Issue.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IssueCommand = void 0; +const Command_definition_1 = require("./command/Command.definition"); +exports.IssueCommand = { + name: "issue", + aliases: [], + type: "group", + summary: "Issue TSO commands", + description: "Issue TSO commands.", + children: [ + Command_definition_1.CommandDefinition + ] +}; +//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zostso/issue/Issue.definition.js.map b/lib/zostso/issue/Issue.definition.js.map new file mode 100644 index 0000000000..57626b8100 --- /dev/null +++ b/lib/zostso/issue/Issue.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zostso/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAEsC;AAEzB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE;QACN,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.definition.d.ts b/lib/zostso/issue/command/Command.definition.d.ts new file mode 100644 index 0000000000..d1dd1c998c --- /dev/null +++ b/lib/zostso/issue/command/Command.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const CommandDefinition: ICommandDefinition; diff --git a/lib/zostso/issue/command/Command.definition.js b/lib/zostso/issue/command/Command.definition.js new file mode 100644 index 0000000000..2a800e55f9 --- /dev/null +++ b/lib/zostso/issue/command/Command.definition.js @@ -0,0 +1,50 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CommandDefinition = void 0; +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +exports.CommandDefinition = { + name: "command", + aliases: ["cmd"], + summary: "Issue a TSO command", + description: "Creates a TSO address space, issues a TSO command through the newly created address space, " + + "waits for the READY prompt to print the response, and terminates the TSO address space. All response data" + + " are returned to the user up to (but not including) the TSO 'READY' prompt.", + type: "command", + handler: __dirname + "/Command.handler", + profile: { + optional: ["zosmf", "tso"] + }, + positionals: [ + { + name: "commandText", + type: "string", + description: "The TSO command to issue.", + required: true + } + ], + options: [ + { + name: "suppress-startup-messages", + aliases: ["ssm"], + type: "boolean", + description: "Suppress console messages from start of address space." + } + ].concat(zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS), + examples: [ + { + description: 'Issue the TSO command "status" to display information about jobs for your user ID.', + options: "\"status\"" + } + ] +}; +//# sourceMappingURL=Command.definition.js.map \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.definition.js.map b/lib/zostso/issue/command/Command.definition.js.map new file mode 100644 index 0000000000..7d8922b6d0 --- /dev/null +++ b/lib/zostso/issue/command/Command.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/zostso/issue/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,qBAAqB;IAC9B,WAAW,EAAE,6FAA6F;QAC1G,2GAA2G;QAC3G,6EAA6E;IAC7E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;KAC7B;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wDAAwD;SACxE;KAC2B,CAAC,MAAM,CAAC,0CAAmB,CAAC,mBAAmB,CAAC;IAChF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oFAAoF;YACjG,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.handler.d.ts b/lib/zostso/issue/command/Command.handler.d.ts new file mode 100644 index 0000000000..c1d1a155f4 --- /dev/null +++ b/lib/zostso/issue/command/Command.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; +/** + * Handler to issue command to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosTsoBaseHandler { + processCmd(params: IHandlerParameters): Promise; +} diff --git a/lib/zostso/issue/command/Command.handler.js b/lib/zostso/issue/command/Command.handler.js new file mode 100644 index 0000000000..39e239648c --- /dev/null +++ b/lib/zostso/issue/command/Command.handler.js @@ -0,0 +1,46 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +/** + * Handler to issue command to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { + // Process the command and produce the TSO response + processCmd(params) { + return __awaiter(this, void 0, void 0, function* () { + // Issue the TSO command + const response = yield zos_tso_for_zowe_sdk_1.IssueTso.issueTsoCommand(this.mSession, params.arguments.account, params.arguments.commandText, this.mTsoStart); + // If requested, suppress the startup + if (!params.arguments.suppressStartupMessages) { + this.console.log(response.startResponse.messages); + } + this.console.log(response.commandResponse); + // Return as an object when using --response-format-json + this.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=Command.handler.js.map \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.handler.js.map b/lib/zostso/issue/command/Command.handler.js.map new file mode 100644 index 0000000000..fd22f22db9 --- /dev/null +++ b/lib/zostso/issue/command/Command.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/zostso/issue/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAyF;AAEzF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,mDAAmD;IACtC,UAAU,CAAC,MAA0B;;YAE9C,wBAAwB;YACxB,MAAM,QAAQ,GAAmB,MAAM,+BAAQ,CAAC,eAAe,CAC3D,IAAI,CAAC,QAAQ,EACb,MAAM,CAAC,SAAS,CAAC,OAAO,EACxB,MAAM,CAAC,SAAS,CAAC,WAAW,EAC5B,IAAI,CAAC,SAAS,CAAC,CAAC;YAEpB,qCAAqC;YACrC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,uBAAuB,EAAE;gBAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;aACrD;YACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAC3C,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;KAAA;CACJ;AApBD,0BAoBC"} \ No newline at end of file diff --git a/lib/zostso/ping/Ping.definition.d.ts b/lib/zostso/ping/Ping.definition.d.ts new file mode 100644 index 0000000000..b4919411cf --- /dev/null +++ b/lib/zostso/ping/Ping.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const PingCommand: ICommandDefinition; diff --git a/lib/zostso/ping/Ping.definition.js b/lib/zostso/ping/Ping.definition.js new file mode 100644 index 0000000000..c76de983c8 --- /dev/null +++ b/lib/zostso/ping/Ping.definition.js @@ -0,0 +1,26 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PingCommand = void 0; +const PingAddressSpace_definition_1 = require("./address_space/PingAddressSpace.definition"); +exports.PingCommand = { + name: "ping", + aliases: [], + type: "group", + summary: "Ping a TSO address space", + description: "Ping a TSO address space, from which " + + "you previously started and received a token (a.k.a 'servelet-key').", + children: [ + PingAddressSpace_definition_1.PingAddressSpaceCommandDefinition + ] +}; +//# sourceMappingURL=Ping.definition.js.map \ No newline at end of file diff --git a/lib/zostso/ping/Ping.definition.js.map b/lib/zostso/ping/Ping.definition.js.map new file mode 100644 index 0000000000..97d853b212 --- /dev/null +++ b/lib/zostso/ping/Ping.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ping.definition.js","sourceRoot":"","sources":["../../../src/zostso/ping/Ping.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAAgG;AAEnF,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,uCAAuC;QACpD,qEAAqE;IACrE,QAAQ,EAAE;QACN,+DAAiC;KACpC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts b/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts new file mode 100644 index 0000000000..9c2a2072b8 --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const PingAddressSpaceCommandDefinition: ICommandDefinition; diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.js b/lib/zostso/ping/address_space/PingAddressSpace.definition.js new file mode 100644 index 0000000000..2a26bd8ed3 --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.definition.js @@ -0,0 +1,40 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PingAddressSpaceCommandDefinition = void 0; +exports.PingAddressSpaceCommandDefinition = { + name: "address-space", + aliases: ["as"], + summary: "Ping TSO address space", + description: "Ping a TSO address space, from which " + + "you previously started and received a token (a.k.a 'servlet-key').", + type: "command", + handler: __dirname + "/PingAddressSpace.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "servletKey", + type: "string", + description: "The servlet key from a previously started TSO address space.", + required: true + } + ], + examples: [ + { + description: "Ping the TSO address space identified by IBMUSER-329-aafkaaoc", + options: "IBMUSER-329-aafkaaoc" + } + ] +}; +//# sourceMappingURL=PingAddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map b/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map new file mode 100644 index 0000000000..597405c77e --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PingAddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/ping/address_space/PingAddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,iCAAiC,GAAuB;IACjE,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,uCAAuC;QACpD,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts b/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts new file mode 100644 index 0000000000..a234d8a848 --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; +/** + * Handler to Send data to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosTsoBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.js b/lib/zostso/ping/address_space/PingAddressSpace.handler.js new file mode 100644 index 0000000000..c96b49eadc --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.handler.js @@ -0,0 +1,43 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +/** + * Handler to Send data to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { + // Process the command and produce the ping response + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + // Ping the address space + const response = yield zos_tso_for_zowe_sdk_1.PingTso.ping(this.mSession, commandParameters.arguments.servletKey); + // Print out the response + commandParameters.response.console.log("TSO address space pinged successfully, key was: " + response.servletKey); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=PingAddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map b/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map new file mode 100644 index 0000000000..6947f47e9f --- /dev/null +++ b/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PingAddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/ping/address_space/PingAddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAuF;AAEvF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,oDAAoD;IACvC,UAAU,CAAC,iBAAqC;;YACzD,yBAAyB;YACzB,MAAM,QAAQ,GAAkB,MAAM,8BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAE1G,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kDAAkD,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;YAEjH,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,0BAaC"} \ No newline at end of file diff --git a/lib/zostso/send/Send.definition.d.ts b/lib/zostso/send/Send.definition.d.ts new file mode 100644 index 0000000000..3c7f9d8271 --- /dev/null +++ b/lib/zostso/send/Send.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SendCommand: ICommandDefinition; diff --git a/lib/zostso/send/Send.definition.js b/lib/zostso/send/Send.definition.js new file mode 100644 index 0000000000..804c89f74b --- /dev/null +++ b/lib/zostso/send/Send.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SendCommand = void 0; +const SendToAddressSpace_definition_1 = require("./address_space/SendToAddressSpace.definition"); +exports.SendCommand = { + name: "send", + aliases: [], + type: "group", + summary: "Send data to TSO", + description: "Send data to TSO and collect responses until the prompt is reached.", + children: [ + SendToAddressSpace_definition_1.SendToAddressSpaceCommandDefinition + ] +}; +//# sourceMappingURL=Send.definition.js.map \ No newline at end of file diff --git a/lib/zostso/send/Send.definition.js.map b/lib/zostso/send/Send.definition.js.map new file mode 100644 index 0000000000..edc482afd1 --- /dev/null +++ b/lib/zostso/send/Send.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Send.definition.js","sourceRoot":"","sources":["../../../src/zostso/send/Send.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iGAEuD;AAE1C,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE;QACN,mEAAmC;KACtC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts b/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts new file mode 100644 index 0000000000..226abc15a4 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SendToAddressSpaceCommandDefinition: ICommandDefinition; diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.js b/lib/zostso/send/address_space/SendToAddressSpace.definition.js new file mode 100644 index 0000000000..b8e0ffa625 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.definition.js @@ -0,0 +1,49 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SendToAddressSpaceCommandDefinition = void 0; +exports.SendToAddressSpaceCommandDefinition = { + name: "address-space", + aliases: ["as"], + summary: "Send data to a TSO address space", + description: "Send data to the TSO address space, from which " + + "you previously started and received a token (a.k.a 'servlet-key').", + type: "command", + handler: __dirname + "/SendToAddressSpace.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "servletKey", + type: "string", + description: "The servlet key from a previously started TSO address space.", + required: true + } + ], + options: [ + { + name: "data", + required: true, + description: "The data to which we want to send to the TSO address space represented " + + "by the servlet key.", + type: "string" + } + ], + examples: [ + { + description: `"Send the TIME TSO command to the TSO address space identified by IBMUSER-329-aafkaaoc"`, + options: "IBMUSER-329-aafkaaoc --data \"TIME\"" + } + ] +}; +//# sourceMappingURL=SendToAddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map b/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map new file mode 100644 index 0000000000..a0b5328ba2 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SendToAddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/send/address_space/SendToAddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,mCAAmC,GAAuB;IACnE,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,iDAAiD;QAC9D,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,6BAA6B;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,yEAAyE;gBACtF,qBAAqB;YACrB,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,yFAAyF;YACtG,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts b/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts new file mode 100644 index 0000000000..a234d8a848 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; +/** + * Handler to Send data to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosTsoBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.js b/lib/zostso/send/address_space/SendToAddressSpace.handler.js new file mode 100644 index 0000000000..dd655ac929 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.handler.js @@ -0,0 +1,42 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +/** + * Handler to Send data to TSO address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { + // Process the command - send data to the address space and produce the response + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + const response = yield zos_tso_for_zowe_sdk_1.SendTso.sendDataToTSOCollect(this.mSession, commandParameters.arguments.servletKey, commandParameters.arguments.data); + // Print out the response + commandParameters.response.console.log(response.commandResponse); + // Return as an object when using --response-format-json + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=SendToAddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map b/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map new file mode 100644 index 0000000000..ccdf93cd79 --- /dev/null +++ b/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SendToAddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/send/address_space/SendToAddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAuF;AAEvF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,gFAAgF;IACnE,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAkB,MAAM,8BAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAC5E,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAEtC,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAEjE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAdD,0BAcC"} \ No newline at end of file diff --git a/lib/zostso/start/Start.definition.d.ts b/lib/zostso/start/Start.definition.d.ts new file mode 100644 index 0000000000..e1c9190f51 --- /dev/null +++ b/lib/zostso/start/Start.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const StartCommand: ICommandDefinition; diff --git a/lib/zostso/start/Start.definition.js b/lib/zostso/start/Start.definition.js new file mode 100644 index 0000000000..a2db972100 --- /dev/null +++ b/lib/zostso/start/Start.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StartCommand = void 0; +const AddressSpace_definition_1 = require("./address-space/AddressSpace.definition"); +exports.StartCommand = { + name: "start", + aliases: ["st"], + type: "group", + summary: "Start TSO/E address space", + description: "Start TSO/E address space.", + children: [ + AddressSpace_definition_1.AddressSpaceDefinition + ] +}; +//# sourceMappingURL=Start.definition.js.map \ No newline at end of file diff --git a/lib/zostso/start/Start.definition.js.map b/lib/zostso/start/Start.definition.js.map new file mode 100644 index 0000000000..6fbd25888c --- /dev/null +++ b/lib/zostso/start/Start.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/zostso/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qFAAiF;AAEpE,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE;QACN,gDAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.definition.d.ts b/lib/zostso/start/address-space/AddressSpace.definition.d.ts new file mode 100644 index 0000000000..8d56d30721 --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const AddressSpaceDefinition: ICommandDefinition; diff --git a/lib/zostso/start/address-space/AddressSpace.definition.js b/lib/zostso/start/address-space/AddressSpace.definition.js new file mode 100644 index 0000000000..f6cb62e999 --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.definition.js @@ -0,0 +1,48 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressSpaceDefinition = void 0; +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +exports.AddressSpaceDefinition = { + name: "address-space", + aliases: ["as"], + description: "Start a TSO address space, from which " + + "you will receive a token (a.k.a 'servlet-key') for further address space interaction " + + "(e.g. termination).", + type: "command", + handler: __dirname + "/AddressSpace.handler", + profile: { + optional: ["zosmf", "tso"] + }, + options: zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS.concat([ + { + name: "servlet-key-only", aliases: ["sko"], + description: "Specify this option to print only the servlet key", + type: "boolean" + } + ]), + examples: [ + { + description: "Start TSO/E address space", + options: "" + }, + { + description: "Start TSO/E address space, and receive response in JSON format", + options: "--rfj" + }, + { + description: "Start TSO/E address space, and print only the servlet key", + options: "--sko" + } + ] +}; +//# sourceMappingURL=AddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.definition.js.map b/lib/zostso/start/address-space/AddressSpace.definition.js.map new file mode 100644 index 0000000000..4b74cbc66c --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/start/address-space/AddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,wCAAwC;QACjD,uFAAuF;QACvF,qBAAqB;IACzB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,uBAAuB;IAC5C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;KAC7B;IACD,OAAO,EAAE,0CAAmB,CAAC,mBAAmB,CAAC,MAAM,CAAC;QACpD;YACI,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YAC1C,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,SAAS;SAClB;KACJ,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,OAAO;SACnB;QACD;YACI,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,OAAO;SACnB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.handler.d.ts b/lib/zostso/start/address-space/AddressSpace.handler.d.ts new file mode 100644 index 0000000000..a2d0c7c788 --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.handler.d.ts @@ -0,0 +1,11 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; +/** + * Handler to start an address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends ZosTsoBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zostso/start/address-space/AddressSpace.handler.js b/lib/zostso/start/address-space/AddressSpace.handler.js new file mode 100644 index 0000000000..26a8f9f3fc --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.handler.js @@ -0,0 +1,56 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const imperative_1 = require("@zowe/imperative"); +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +/** + * Handler to start an address space + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { + // Process the command and produce the start response (returns servlet) + processCmd(commandParameters) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const response = yield zos_tso_for_zowe_sdk_1.StartTso.start(this.mSession, this.mArguments.account, this.mTsoStart); + commandParameters.response.data.setObj(response); + if (response.success) { + if (commandParameters.arguments.servletKeyOnly) { + commandParameters.response.console.log(response.servletKey); + } + else { + commandParameters.response.console.log(`TSO address space began successfully, key is: ${response.servletKey}\n`); + commandParameters.response.console.log(response.messages); + } + } + else { + throw new imperative_1.ImperativeError({ + msg: `TSO address space failed to start.`, + additionalDetails: (_a = response.failureResponse) === null || _a === void 0 ? void 0 : _a.message + }); + } + }); + } +} +exports.default = Handler; +//# sourceMappingURL=AddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.handler.js.map b/lib/zostso/start/address-space/AddressSpace.handler.js.map new file mode 100644 index 0000000000..3164ca7ad8 --- /dev/null +++ b/lib/zostso/start/address-space/AddressSpace.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/start/address-space/AddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,qEAAyE;AAEzE;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,uEAAuE;IAC1D,UAAU,CAAC,iBAAqC;;;YACzD,MAAM,QAAQ,GAAG,MAAM,+BAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9F,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEjD,IAAI,QAAQ,CAAC,OAAO,EAAE;gBAClB,IAAI,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;oBAC5C,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;iBAC/D;qBAAM;oBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iDAAiD,QAAQ,CAAC,UAAU,IAAI,CAAC,CAAC;oBACjH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iBAC7D;aAEJ;iBAAM;gBACH,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,oCAAoC;oBACzC,iBAAiB,EAAE,MAAA,QAAQ,CAAC,eAAe,0CAAE,OAAO;iBACvD,CAAC,CAAC;aACN;;KACJ;CACJ;AAtBD,0BAsBC"} \ No newline at end of file diff --git a/lib/zostso/stop/Stop.definition.d.ts b/lib/zostso/stop/Stop.definition.d.ts new file mode 100644 index 0000000000..6f3fa61638 --- /dev/null +++ b/lib/zostso/stop/Stop.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const StopCommand: ICommandDefinition; diff --git a/lib/zostso/stop/Stop.definition.js b/lib/zostso/stop/Stop.definition.js new file mode 100644 index 0000000000..dddd183871 --- /dev/null +++ b/lib/zostso/stop/Stop.definition.js @@ -0,0 +1,23 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StopCommand = void 0; +const AddressSpace_definition_1 = require("./address-space/AddressSpace.definition"); +exports.StopCommand = { + name: "stop", + aliases: ["sp"], + type: "group", + summary: "Stop TSO/E address space", + description: "Stop TSO/E address space.", + children: [AddressSpace_definition_1.AddressSpaceDefinition] +}; +//# sourceMappingURL=Stop.definition.js.map \ No newline at end of file diff --git a/lib/zostso/stop/Stop.definition.js.map b/lib/zostso/stop/Stop.definition.js.map new file mode 100644 index 0000000000..13715d7e98 --- /dev/null +++ b/lib/zostso/stop/Stop.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/zostso/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qFAAiF;AAEpE,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,CAAC,gDAAsB,CAAC;CACrC,CAAC"} \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.d.ts b/lib/zostso/stop/address-space/AddressSpace.definition.d.ts new file mode 100644 index 0000000000..8d56d30721 --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const AddressSpaceDefinition: ICommandDefinition; diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.js b/lib/zostso/stop/address-space/AddressSpace.definition.js new file mode 100644 index 0000000000..5fea3cb08e --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.definition.js @@ -0,0 +1,39 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressSpaceDefinition = void 0; +exports.AddressSpaceDefinition = { + name: "address-space", + aliases: ["as"], + description: "Stop a TSO address space, from which " + + "you previously started and received a token (a.k.a 'servlet-key').", + type: "command", + handler: __dirname + "/AddressSpace.handler", + profile: { + optional: ["zosmf"] + }, + positionals: [ + { + name: "servletkey", + required: true, + type: "string", + description: "The servlet key from a previously started TSO address space." + } + ], + examples: [ + { + description: "Stop the TSO address space identified by IBMUSER-329-aafkaaoc", + options: "IBMUSER-329-aafkaaoc" + } + ] +}; +//# sourceMappingURL=AddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.js.map b/lib/zostso/stop/address-space/AddressSpace.definition.js.map new file mode 100644 index 0000000000..8617963364 --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/stop/address-space/AddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,uCAAuC;QACpD,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,uBAAuB;IAC5C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;SAC9E;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.d.ts b/lib/zostso/stop/address-space/AddressSpace.handler.d.ts new file mode 100644 index 0000000000..5749447b16 --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.handler.d.ts @@ -0,0 +1,5 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; +export default class Handler extends ZosTsoBaseHandler { + processCmd(commandParameters: IHandlerParameters): Promise; +} diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.js b/lib/zostso/stop/address-space/AddressSpace.handler.js new file mode 100644 index 0000000000..f4e1827111 --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.handler.js @@ -0,0 +1,37 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); +class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { + // Stop the tso address space associated with the servlet key + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + // Stop the address space + const servletKey = commandParameters.arguments.servletkey; + const response = yield zos_tso_for_zowe_sdk_1.StopTso.stop(this.mSession, servletKey); + // Print response and return as an object when using --response-format-json + commandParameters.response.console.log(`TSO address space ended successfully, key was: ${response.servletKey}`); + commandParameters.response.data.setObj(response); + }); + } +} +exports.default = Handler; +//# sourceMappingURL=AddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.js.map b/lib/zostso/stop/address-space/AddressSpace.handler.js.map new file mode 100644 index 0000000000..1e7b5702ac --- /dev/null +++ b/lib/zostso/stop/address-space/AddressSpace.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/stop/address-space/AddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAwE;AAExE,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,6DAA6D;IAChD,UAAU,CAAC,iBAAqC;;YAEzD,yBAAyB;YACzB,MAAM,UAAU,GAAG,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC;YAC1D,MAAM,QAAQ,GAAG,MAAM,8BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAE/D,2EAA2E;YAC3E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kDAAkD,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;YAChH,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,0BAaC"} \ No newline at end of file diff --git a/lib/zosuss/issue/Issue.definition.d.ts b/lib/zosuss/issue/Issue.definition.d.ts new file mode 100644 index 0000000000..9053752a84 --- /dev/null +++ b/lib/zosuss/issue/Issue.definition.d.ts @@ -0,0 +1,5 @@ +import { ICommandDefinition } from "@zowe/imperative"; +/** + * Definition for the "issue" group of commands under the Shell plugin + */ +export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zosuss/issue/Issue.definition.js b/lib/zosuss/issue/Issue.definition.js new file mode 100644 index 0000000000..4231996f00 --- /dev/null +++ b/lib/zosuss/issue/Issue.definition.js @@ -0,0 +1,25 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IssueCommand = void 0; +const Ssh_definition_1 = require("./ssh/Ssh.definition"); +/** + * Definition for the "issue" group of commands under the Shell plugin + */ +exports.IssueCommand = { + name: "issue", aliases: ["iss"], + summary: "Issue a command", + description: "Issue a z/OS USS command.", + type: "group", + children: [Ssh_definition_1.SshDefinition] +}; +//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/Issue.definition.js.map b/lib/zosuss/issue/Issue.definition.js.map new file mode 100644 index 0000000000..3d836fadba --- /dev/null +++ b/lib/zosuss/issue/Issue.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zosuss/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAErD;;GAEG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;IAC/B,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,2BAA2B;IACxC,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,8BAAa,CAAC;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.definition.d.ts b/lib/zosuss/issue/ssh/Ssh.definition.d.ts new file mode 100644 index 0000000000..3eafd495bb --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.definition.d.ts @@ -0,0 +1,2 @@ +import { ICommandDefinition } from "@zowe/imperative"; +export declare const SshDefinition: ICommandDefinition; diff --git a/lib/zosuss/issue/ssh/Ssh.definition.js b/lib/zosuss/issue/ssh/Ssh.definition.js new file mode 100644 index 0000000000..0bb87cc9af --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.definition.js @@ -0,0 +1,43 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SshDefinition = void 0; +exports.SshDefinition = { + name: "command", + aliases: ["cmd", "ssh"], + description: "Issue a z/OS USS command\n\n" + + "Note: The common CLI 'Base Connection Options' of token-type and token-value are not applicable to " + + "the ssh command, since the ssh service is not accessible through APIML.", + handler: __dirname + "/Ssh.handler", + type: "command", + positionals: [{ + name: "command", + description: "z/OS USS command to issue", + type: "string", + required: true + }], + options: [ + { + name: "cwd", + description: "Working directory in which to execute the command", + type: "string" + } + ], + profile: { + optional: ["ssh"] + }, + examples: [{ + description: "Issue a simple command, giving the working directory", + options: "\"npm install express\" --cwd /u/cicprov/mnt/CICPY01I/bundles/myapp " + }] +}; +//# sourceMappingURL=Ssh.definition.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.definition.js.map b/lib/zosuss/issue/ssh/Ssh.definition.js.map new file mode 100644 index 0000000000..687f99dcab --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.definition.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ssh.definition.js","sourceRoot":"","sources":["../../../../src/zosuss/issue/ssh/Ssh.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvB,WAAW,EAAE,8BAA8B;QAC9B,qGAAqG;QACrG,yEAAyE;IACtF,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB,CAAC;IACF,OAAO,EAAE;QACL;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,QAAQ;SACjB;KAAC;IACN,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,QAAQ,EAAE,CAAC;YACP,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,sEAAsE;SAClF,CAAC;CACL,CAAC"} \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.handler.d.ts b/lib/zosuss/issue/ssh/Ssh.handler.d.ts new file mode 100644 index 0000000000..22cb665a0d --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.handler.d.ts @@ -0,0 +1,13 @@ +import { IHandlerParameters } from "@zowe/imperative"; +import { SshBaseHandler } from "@zowe/zos-uss-for-zowe-sdk"; +/** + * Handle to issue an USS ssh command + * @export + * @class Handler + * @implements {ICommandHandler} + */ +export default class Handler extends SshBaseHandler { + private parameters; + processCmd(commandParameters: IHandlerParameters): Promise; + handleStdout(data: string): void; +} diff --git a/lib/zosuss/issue/ssh/Ssh.handler.js b/lib/zosuss/issue/ssh/Ssh.handler.js new file mode 100644 index 0000000000..60c9a397e4 --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.handler.js @@ -0,0 +1,48 @@ +"use strict"; +/* +* This program and the accompanying materials are made available under the terms of the +* Eclipse Public License v2.0 which accompanies this distribution, and is available at +* https://www.eclipse.org/legal/epl-v20.html +* +* SPDX-License-Identifier: EPL-2.0 +* +* Copyright Contributors to the Zowe Project. +* +*/ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const zos_uss_for_zowe_sdk_1 = require("@zowe/zos-uss-for-zowe-sdk"); +/** + * Handle to issue an USS ssh command + * @export + * @class Handler + * @implements {ICommandHandler} + */ +class Handler extends zos_uss_for_zowe_sdk_1.SshBaseHandler { + processCmd(commandParameters) { + return __awaiter(this, void 0, void 0, function* () { + let rc; + this.parameters = commandParameters; + if (commandParameters.arguments.cwd) { + rc = yield zos_uss_for_zowe_sdk_1.Shell.executeSshCwd(this.mSession, commandParameters.arguments.command, commandParameters.arguments.cwd, this.handleStdout.bind(this)); + } + else { + rc = yield zos_uss_for_zowe_sdk_1.Shell.executeSsh(this.mSession, commandParameters.arguments.command, this.handleStdout.bind(this)); + } + commandParameters.response.data.setExitCode(rc); + }); + } + handleStdout(data) { + this.parameters.response.console.log(Buffer.from(data)); + } +} +exports.default = Handler; +//# sourceMappingURL=Ssh.handler.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.handler.js.map b/lib/zosuss/issue/ssh/Ssh.handler.js.map new file mode 100644 index 0000000000..9d37bdc6b4 --- /dev/null +++ b/lib/zosuss/issue/ssh/Ssh.handler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ssh.handler.js","sourceRoot":"","sources":["../../../../src/zosuss/issue/ssh/Ssh.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAmE;AAEnE;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAc;IAIlC,UAAU,CAAC,iBAAqC;;YACzD,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;YACpC,IAAI,iBAAiB,CAAC,SAAS,CAAC,GAAG,EAAE;gBACjC,EAAE,GAAG,MAAM,4BAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,EAC9G,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACrC;iBAAM;gBACH,EAAE,GAAG,MAAM,4BAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjH;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;KAAA;IAEM,YAAY,CAAC,IAAY;QAC5B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC;CACJ;AAnBD,0BAmBC"} \ No newline at end of file From 23629b8b3a524e0e8e041040e01f6f638323a91f Mon Sep 17 00:00:00 2001 From: zFernand0 <37381190+zFernand0@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:56:35 +0000 Subject: [PATCH 7/7] remove root lib folder Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com> --- .../auto-init/ApimlAutoInitHandler.d.ts | 90 -- lib/config/auto-init/ApimlAutoInitHandler.js | 474 --------- .../auto-init/ApimlAutoInitHandler.js.map | 1 - lib/daemon/disable/Disable.definition.d.ts | 2 - lib/daemon/disable/Disable.definition.js | 26 - lib/daemon/disable/Disable.definition.js.map | 1 - lib/daemon/disable/Disable.handler.d.ts | 38 - lib/daemon/disable/Disable.handler.js | 181 ---- lib/daemon/disable/Disable.handler.js.map | 1 - lib/daemon/doc/IDaemonEnableQuestions.d.ts | 8 - lib/daemon/doc/IDaemonEnableQuestions.js | 13 - lib/daemon/doc/IDaemonEnableQuestions.js.map | 1 - lib/daemon/doc/IDaemonPidForUser.d.ts | 8 - lib/daemon/doc/IDaemonPidForUser.js | 13 - lib/daemon/doc/IDaemonPidForUser.js.map | 1 - lib/daemon/enable/Enable.definition.d.ts | 2 - lib/daemon/enable/Enable.definition.js | 29 - lib/daemon/enable/Enable.definition.js.map | 1 - lib/daemon/enable/Enable.handler.d.ts | 76 -- lib/daemon/enable/Enable.handler.js | 340 ------- lib/daemon/enable/Enable.handler.js.map | 1 - lib/daemon/restart/Restart.definition.d.ts | 2 - lib/daemon/restart/Restart.definition.js | 26 - lib/daemon/restart/Restart.definition.js.map | 1 - lib/daemon/restart/Restart.handler.d.ts | 26 - lib/daemon/restart/Restart.handler.js | 58 -- lib/daemon/restart/Restart.handler.js.map | 1 - .../delete/Delete.definition.d.ts | 2 - lib/provisioning/delete/Delete.definition.js | 23 - .../delete/Delete.definition.js.map | 1 - .../instance/DeleteInstance.definition.d.ts | 2 - .../instance/DeleteInstance.definition.js | 39 - .../instance/DeleteInstance.definition.js.map | 1 - .../instance/DeleteInstance.handler.d.ts | 5 - .../delete/instance/DeleteInstance.handler.js | 50 - .../instance/DeleteInstance.handler.js.map | 1 - lib/provisioning/list/List.definition.d.ts | 2 - lib/provisioning/list/List.definition.js | 28 - lib/provisioning/list/List.definition.js.map | 1 - .../CatalogTemplates.definition.d.ts | 2 - .../CatalogTemplates.definition.js | 41 - .../CatalogTemplates.definition.js.map | 1 - .../CatalogTemplates.handler.d.ts | 11 - .../CatalogTemplates.handler.js | 52 - .../CatalogTemplates.handler.js.map | 1 - .../instanceInfo/InstanceInfo.definition.d.ts | 2 - .../instanceInfo/InstanceInfo.definition.js | 60 -- .../InstanceInfo.definition.js.map | 1 - .../instanceInfo/InstanceInfo.handler.d.ts | 17 - .../list/instanceInfo/InstanceInfo.handler.js | 90 -- .../instanceInfo/InstanceInfo.handler.js.map | 1 - .../InstanceVariables.definition.d.ts | 2 - .../InstanceVariables.definition.js | 41 - .../InstanceVariables.definition.js.map | 1 - .../InstanceVariables.handler.d.ts | 11 - .../InstanceVariables.handler.js | 61 -- .../InstanceVariables.handler.js.map | 1 - .../RegistryInstances.definition.d.ts | 2 - .../registry/RegistryInstances.definition.js | 58 -- .../RegistryInstances.definition.js.map | 1 - .../registry/RegistryInstances.handler.d.ts | 17 - .../registry/RegistryInstances.handler.js | 75 -- .../registry/RegistryInstances.handler.js.map | 1 - .../templateInfo/TemplateInfo.definition.d.ts | 2 - .../templateInfo/TemplateInfo.definition.js | 49 - .../TemplateInfo.definition.js.map | 1 - .../templateInfo/TemplateInfo.handler.d.ts | 11 - .../list/templateInfo/TemplateInfo.handler.js | 50 - .../templateInfo/TemplateInfo.handler.js.map | 1 - .../perform/Perform.definition.d.ts | 2 - .../perform/Perform.definition.js | 23 - .../perform/Perform.definition.js.map | 1 - .../perform/action/Action.definition.d.ts | 2 - .../perform/action/Action.definition.js | 50 - .../perform/action/Action.definition.js.map | 1 - .../perform/action/Action.handler.d.ts | 11 - .../perform/action/Action.handler.js | 58 -- .../perform/action/Action.handler.js.map | 1 - .../provision/Provision.definition.d.ts | 2 - .../provision/Provision.definition.js | 23 - .../provision/Provision.definition.js.map | 1 - .../template/Template.definition.d.ts | 2 - .../provision/template/Template.definition.js | 107 -- .../template/Template.definition.js.map | 1 - .../provision/template/Template.handler.d.ts | 5 - .../provision/template/Template.handler.js | 60 -- .../template/Template.handler.js.map | 1 - lib/workflows/archive/Archive.definition.d.ts | 8 - lib/workflows/archive/Archive.definition.js | 29 - .../archive/Archive.definition.js.map | 1 - lib/workflows/archive/Archive.handler.d.ts | 22 - lib/workflows/archive/Archive.handler.js | 114 --- lib/workflows/archive/Archive.handler.js.map | 1 - lib/workflows/archive/Archive.options.d.ts | 7 - lib/workflows/archive/Archive.options.js | 54 - lib/workflows/archive/Archive.options.js.map | 1 - .../workflow/Archive.workflow.definition.d.ts | 8 - .../workflow/Archive.workflow.definition.js | 51 - .../Archive.workflow.definition.js.map | 1 - .../create/Create.common.handler.d.ts | 22 - lib/workflows/create/Create.common.handler.js | 144 --- .../create/Create.common.handler.js.map | 1 - .../create/Create.common.options.d.ts | 7 - lib/workflows/create/Create.common.options.js | 181 ---- .../create/Create.common.options.js.map | 1 - lib/workflows/create/Create.definition.d.ts | 8 - lib/workflows/create/Create.definition.js | 34 - lib/workflows/create/Create.definition.js.map | 1 - .../create/dataset/Dataset.definition.d.ts | 8 - .../create/dataset/Dataset.definition.js | 77 -- .../create/dataset/Dataset.definition.js.map | 1 - .../localfile/LocalFile.definition.d.ts | 8 - .../create/localfile/LocalFile.definition.js | 61 -- .../localfile/LocalFile.definition.js.map | 1 - .../create/ussfile/UssFile.definition.d.ts | 8 - .../create/ussfile/UssFile.definition.js | 79 -- .../create/ussfile/UssFile.definition.js.map | 1 - .../Delete.archived.common.handler.d.ts | 22 - .../delete/Delete.archived.common.handler.js | 134 --- .../Delete.archived.common.handler.js.map | 1 - .../delete/Delete.common.handler.d.ts | 22 - lib/workflows/delete/Delete.common.handler.js | 114 --- .../delete/Delete.common.handler.js.map | 1 - lib/workflows/delete/Delete.definition.d.ts | 8 - lib/workflows/delete/Delete.definition.js | 32 - lib/workflows/delete/Delete.definition.js.map | 1 - .../DeleteActiveWorkflow.definition.d.ts | 8 - .../DeleteActiveWorkflow.definition.js | 50 - .../DeleteActiveWorkflow.definition.js.map | 1 - .../DeleteActiveWorkflow.options.d.ts | 7 - .../DeleteActiveWorkflow.options.js | 45 - .../DeleteActiveWorkflow.options.js.map | 1 - .../DeleteArchivedWorkflow.definition.d.ts | 8 - .../DeleteArchivedWorkflow.definition.js | 50 - .../DeleteArchivedWorkflow.definition.js.map | 1 - .../DeleteArchivedWorkflow.options.d.ts | 7 - .../DeleteArchivedWorkflow.options.js | 45 - .../DeleteArchivedWorkflow.options.js.map | 1 - lib/workflows/list/List.definition.d.ts | 8 - lib/workflows/list/List.definition.js | 36 - lib/workflows/list/List.definition.js.map | 1 - .../ActiveWorkflowDetails.common.options.d.ts | 7 - .../ActiveWorkflowDetails.common.options.js | 91 -- ...ctiveWorkflowDetails.common.options.js.map | 1 - .../ActiveWorkflowDetails.definition.d.ts | 8 - .../ActiveWorkflowDetails.definition.js | 50 - .../ActiveWorkflowDetails.definition.js.map | 1 - .../ActiveWorkflowDetails.handler.d.ts | 22 - .../ActiveWorkflowDetails.handler.js | 103 -- .../ActiveWorkflowDetails.handler.js.map | 1 - .../ActiveWorkflows.definition.d.ts | 8 - .../ActiveWorkflows.definition.js | 58 -- .../ActiveWorkflows.definition.js.map | 1 - .../ActiveWorkflows.handler.d.ts | 21 - .../ActiveWorkflows.handler.js | 77 -- .../ActiveWorkflows.handler.js.map | 1 - .../ActiveWorkflows.options.d.ts | 7 - .../ActiveWorkflows.options.js | 100 -- .../ActiveWorkflows.options.js.map | 1 - .../ArchivedWorkflows.definition.d.ts | 8 - .../ArchivedWorkflows.definition.js | 33 - .../ArchivedWorkflows.definition.js.map | 1 - .../ArchivedWorkflows.handler.d.ts | 20 - .../ArchivedWorkflows.handler.js | 69 -- .../ArchivedWorkflows.handler.js.map | 1 - ...RetrieveWorkflowDefinition.definition.d.ts | 8 - .../RetrieveWorkflowDefinition.definition.js | 56 - ...trieveWorkflowDefinition.definition.js.map | 1 - .../RetrieveWorkflowDefinition.handler.d.ts | 21 - .../RetrieveWorkflowDefinition.handler.js | 75 -- .../RetrieveWorkflowDefinition.handler.js.map | 1 - .../RetrieveWorkflowDefinition.options.d.ts | 7 - .../RetrieveWorkflowDefinition.options.js | 54 - .../RetrieveWorkflowDefinition.options.js.map | 1 - lib/workflows/start/Start.common.options.d.ts | 7 - lib/workflows/start/Start.common.options.js | 99 -- .../start/Start.common.options.js.map | 1 - lib/workflows/start/Start.definition.d.ts | 8 - lib/workflows/start/Start.definition.js | 32 - lib/workflows/start/Start.definition.js.map | 1 - .../workflowFull/WorkflowFull.definition.d.ts | 8 - .../workflowFull/WorkflowFull.definition.js | 59 -- .../WorkflowFull.definition.js.map | 1 - .../workflowFull/WorkflowFull.handler.d.ts | 22 - .../workflowFull/WorkflowFull.handler.js | 87 -- .../workflowFull/WorkflowFull.handler.js.map | 1 - .../workflowStep/WorkflowStep.definition.d.ts | 8 - .../workflowStep/WorkflowStep.definition.js | 66 -- .../WorkflowStep.definition.js.map | 1 - .../workflowStep/WorkflowStep.handler.d.ts | 22 - .../workflowStep/WorkflowStep.handler.js | 89 -- .../workflowStep/WorkflowStep.handler.js.map | 1 - .../collect/Collect.definition.d.ts | 2 - lib/zosconsole/collect/Collect.definition.js | 25 - .../collect/Collect.definition.js.map | 1 - .../collect/response/Response.definition.d.ts | 2 - .../collect/response/Response.definition.js | 68 -- .../response/Response.definition.js.map | 1 - .../collect/response/Response.handler.d.ts | 11 - .../collect/response/Response.handler.js | 46 - .../collect/response/Response.handler.js.map | 1 - lib/zosconsole/issue/Issue.definition.d.ts | 2 - lib/zosconsole/issue/Issue.definition.js | 24 - lib/zosconsole/issue/Issue.definition.js.map | 1 - .../issue/command/Command.definition.d.ts | 2 - .../issue/command/Command.definition.js | 142 --- .../issue/command/Command.definition.js.map | 1 - .../issue/command/Command.handler.d.ts | 11 - .../issue/command/Command.handler.js | 81 -- .../issue/command/Command.handler.js.map | 1 - lib/zosfiles/-strings-/en.d.ts | 791 --------------- lib/zosfiles/-strings-/en.js | 960 ------------------ lib/zosfiles/-strings-/en.js.map | 1 - lib/zosfiles/compare/Compare.definition.d.ts | 6 - lib/zosfiles/compare/Compare.definition.js | 41 - .../compare/Compare.definition.js.map | 1 - lib/zosfiles/compare/Compare.options.d.ts | 7 - lib/zosfiles/compare/Compare.options.js | 133 --- lib/zosfiles/compare/Compare.options.js.map | 1 - lib/zosfiles/compare/CompareBase.handler.d.ts | 38 - lib/zosfiles/compare/CompareBase.handler.js | 62 -- .../compare/CompareBase.handler.js.map | 1 - lib/zosfiles/compare/CompareBaseHelper.d.ts | 93 -- lib/zosfiles/compare/CompareBaseHelper.js | 176 ---- lib/zosfiles/compare/CompareBaseHelper.js.map | 1 - .../compare/doc/ICompareFileOptions.d.ts | 14 - .../compare/doc/ICompareFileOptions.js | 13 - .../compare/doc/ICompareFileOptions.js.map | 1 - .../compare/ds/Dataset.definition.d.ts | 6 - lib/zosfiles/compare/ds/Dataset.definition.js | 69 -- .../compare/ds/Dataset.definition.js.map | 1 - lib/zosfiles/compare/ds/Dataset.handler.d.ts | 12 - lib/zosfiles/compare/ds/Dataset.handler.js | 41 - .../compare/ds/Dataset.handler.js.map | 1 - .../lf-ds/LocalfileDataset.definition.d.ts | 6 - .../lf-ds/LocalfileDataset.definition.js | 65 -- .../lf-ds/LocalfileDataset.definition.js.map | 1 - .../lf-ds/LocalfileDataset.handler.d.ts | 12 - .../compare/lf-ds/LocalfileDataset.handler.js | 41 - .../lf-ds/LocalfileDataset.handler.js.map | 1 - .../lf-sdd/LocalfileSpooldd.definition.d.ts | 6 - .../lf-sdd/LocalfileSpooldd.definition.js | 61 -- .../lf-sdd/LocalfileSpooldd.definition.js.map | 1 - .../lf-sdd/LocalfileSpooldd.handler.d.ts | 12 - .../lf-sdd/LocalfileSpooldd.handler.js | 42 - .../lf-sdd/LocalfileSpooldd.handler.js.map | 1 - .../lf-uss/LocalfileUss.definition.d.ts | 6 - .../compare/lf-uss/LocalfileUss.definition.js | 63 -- .../lf-uss/LocalfileUss.definition.js.map | 1 - .../compare/lf-uss/LocalfileUss.handler.d.ts | 12 - .../compare/lf-uss/LocalfileUss.handler.js | 41 - .../lf-uss/LocalfileUss.handler.js.map | 1 - .../compare/sdd/Spooldd.definition.d.ts | 6 - .../compare/sdd/Spooldd.definition.js | 60 -- .../compare/sdd/Spooldd.definition.js.map | 1 - lib/zosfiles/compare/sdd/Spooldd.handler.d.ts | 12 - lib/zosfiles/compare/sdd/Spooldd.handler.js | 43 - .../compare/sdd/Spooldd.handler.js.map | 1 - .../compare/uss/UssFile.definition.d.ts | 6 - .../compare/uss/UssFile.definition.js | 65 -- .../compare/uss/UssFile.definition.js.map | 1 - lib/zosfiles/compare/uss/UssFile.handler.d.ts | 12 - lib/zosfiles/compare/uss/UssFile.handler.js | 41 - .../compare/uss/UssFile.handler.js.map | 1 - lib/zosfiles/copy/Copy.definition.d.ts | 8 - lib/zosfiles/copy/Copy.definition.js | 34 - lib/zosfiles/copy/Copy.definition.js.map | 1 - lib/zosfiles/copy/ds/Ds.definition.d.ts | 8 - lib/zosfiles/copy/ds/Ds.definition.js | 77 -- lib/zosfiles/copy/ds/Ds.definition.js.map | 1 - lib/zosfiles/copy/ds/Ds.handler.d.ts | 9 - lib/zosfiles/copy/ds/Ds.handler.js | 44 - lib/zosfiles/copy/ds/Ds.handler.js.map | 1 - lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts | 8 - lib/zosfiles/copy/dsclp/Dsclp.definition.js | 185 ---- .../copy/dsclp/Dsclp.definition.js.map | 1 - lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts | 13 - lib/zosfiles/copy/dsclp/Dsclp.handler.js | 66 -- lib/zosfiles/copy/dsclp/Dsclp.handler.js.map | 1 - .../copy/dsclp/TargetProfile.handler.d.ts | 18 - .../copy/dsclp/TargetProfile.handler.js | 81 -- .../copy/dsclp/TargetProfile.handler.js.map | 1 - lib/zosfiles/create/Create.definition.d.ts | 6 - lib/zosfiles/create/Create.definition.js | 47 - lib/zosfiles/create/Create.definition.js.map | 1 - lib/zosfiles/create/Create.options.d.ts | 13 - lib/zosfiles/create/Create.options.js | 228 ----- lib/zosfiles/create/Create.options.js.map | 1 - lib/zosfiles/create/Create.utils.d.ts | 8 - lib/zosfiles/create/Create.utils.js | 39 - lib/zosfiles/create/Create.utils.js.map | 1 - .../binaryPds/BinaryPDS.definition.d.ts | 6 - .../create/binaryPds/BinaryPDS.definition.js | 67 -- .../binaryPds/BinaryPDS.definition.js.map | 1 - .../create/binaryPds/BinaryPDS.handler.d.ts | 9 - .../create/binaryPds/BinaryPDS.handler.js | 36 - .../create/binaryPds/BinaryPDS.handler.js.map | 1 - lib/zosfiles/create/cPds/CPDS.definition.d.ts | 6 - lib/zosfiles/create/cPds/CPDS.definition.js | 67 -- .../create/cPds/CPDS.definition.js.map | 1 - lib/zosfiles/create/cPds/CPDS.handler.d.ts | 9 - lib/zosfiles/create/cPds/CPDS.handler.js | 36 - lib/zosfiles/create/cPds/CPDS.handler.js.map | 1 - .../classicPds/ClassicPDS.definition.d.ts | 6 - .../classicPds/ClassicPDS.definition.js | 67 -- .../classicPds/ClassicPDS.definition.js.map | 1 - .../create/classicPds/ClassicPDS.handler.d.ts | 9 - .../create/classicPds/ClassicPDS.handler.js | 36 - .../classicPds/ClassicPDS.handler.js.map | 1 - lib/zosfiles/create/ds/ds.definition.d.ts | 6 - lib/zosfiles/create/ds/ds.definition.js | 71 -- lib/zosfiles/create/ds/ds.definition.js.map | 1 - lib/zosfiles/create/ds/ds.handler.d.ts | 9 - lib/zosfiles/create/ds/ds.handler.js | 41 - lib/zosfiles/create/ds/ds.handler.js.map | 1 - lib/zosfiles/create/pds/Pds.definition.d.ts | 6 - lib/zosfiles/create/pds/Pds.definition.js | 68 -- lib/zosfiles/create/pds/Pds.definition.js.map | 1 - lib/zosfiles/create/pds/Pds.handler.d.ts | 9 - lib/zosfiles/create/pds/Pds.handler.js | 36 - lib/zosfiles/create/pds/Pds.handler.js.map | 1 - lib/zosfiles/create/ps/Ps.definition.d.ts | 6 - lib/zosfiles/create/ps/Ps.definition.js | 62 -- lib/zosfiles/create/ps/Ps.definition.js.map | 1 - lib/zosfiles/create/ps/Ps.handler.d.ts | 9 - lib/zosfiles/create/ps/Ps.handler.js | 36 - lib/zosfiles/create/ps/Ps.handler.js.map | 1 - lib/zosfiles/create/ussDir/uss.options.d.ts | 7 - lib/zosfiles/create/ussDir/uss.options.js | 33 - lib/zosfiles/create/ussDir/uss.options.js.map | 1 - .../create/ussDir/ussDir.definition.d.ts | 2 - .../create/ussDir/ussDir.definition.js | 50 - .../create/ussDir/ussDir.definition.js.map | 1 - .../create/ussDir/ussDir.handler.d.ts | 9 - lib/zosfiles/create/ussDir/ussDir.handler.js | 37 - .../create/ussDir/ussDir.handler.js.map | 1 - lib/zosfiles/create/ussFile/uss.options.d.ts | 7 - lib/zosfiles/create/ussFile/uss.options.js | 33 - .../create/ussFile/uss.options.js.map | 1 - .../create/ussFile/ussFile.definition.d.ts | 2 - .../create/ussFile/ussFile.definition.js | 50 - .../create/ussFile/ussFile.definition.js.map | 1 - .../create/ussFile/ussFile.handler.d.ts | 9 - .../create/ussFile/ussFile.handler.js | 37 - .../create/ussFile/ussFile.handler.js.map | 1 - lib/zosfiles/create/vsam/vsam.definition.d.ts | 2 - lib/zosfiles/create/vsam/vsam.definition.js | 84 -- .../create/vsam/vsam.definition.js.map | 1 - lib/zosfiles/create/vsam/vsam.handler.d.ts | 9 - lib/zosfiles/create/vsam/vsam.handler.js | 49 - lib/zosfiles/create/vsam/vsam.handler.js.map | 1 - lib/zosfiles/create/vsam/vsam.options.d.ts | 7 - lib/zosfiles/create/vsam/vsam.options.js | 53 - lib/zosfiles/create/vsam/vsam.options.js.map | 1 - lib/zosfiles/create/zfs/zfs.definition.d.ts | 2 - lib/zosfiles/create/zfs/zfs.definition.js | 64 -- lib/zosfiles/create/zfs/zfs.definition.js.map | 1 - lib/zosfiles/create/zfs/zfs.handler.d.ts | 9 - lib/zosfiles/create/zfs/zfs.handler.js | 49 - lib/zosfiles/create/zfs/zfs.handler.js.map | 1 - lib/zosfiles/create/zfs/zfs.options.d.ts | 7 - lib/zosfiles/create/zfs/zfs.options.js | 95 -- lib/zosfiles/create/zfs/zfs.options.js.map | 1 - lib/zosfiles/delete/Delete.definition.d.ts | 8 - lib/zosfiles/delete/Delete.definition.js | 40 - lib/zosfiles/delete/Delete.definition.js.map | 1 - lib/zosfiles/delete/ds/Ds.definition.d.ts | 8 - lib/zosfiles/delete/ds/Ds.definition.js | 66 -- lib/zosfiles/delete/ds/Ds.definition.js.map | 1 - lib/zosfiles/delete/ds/Ds.handler.d.ts | 9 - lib/zosfiles/delete/ds/Ds.handler.js | 40 - lib/zosfiles/delete/ds/Ds.handler.js.map | 1 - lib/zosfiles/delete/mds/Mds.definition.d.ts | 2 - lib/zosfiles/delete/mds/Mds.definition.js | 58 -- lib/zosfiles/delete/mds/Mds.definition.js.map | 1 - lib/zosfiles/delete/mds/Mds.handler.d.ts | 9 - lib/zosfiles/delete/mds/Mds.handler.js | 36 - lib/zosfiles/delete/mds/Mds.handler.js.map | 1 - lib/zosfiles/delete/uss/Uss.definition.d.ts | 8 - lib/zosfiles/delete/uss/Uss.definition.js | 71 -- lib/zosfiles/delete/uss/Uss.definition.js.map | 1 - lib/zosfiles/delete/uss/Uss.handler.d.ts | 9 - lib/zosfiles/delete/uss/Uss.handler.js | 36 - lib/zosfiles/delete/uss/Uss.handler.js.map | 1 - lib/zosfiles/delete/vsam/Vsam.definition.d.ts | 8 - lib/zosfiles/delete/vsam/Vsam.definition.js | 82 -- .../delete/vsam/Vsam.definition.js.map | 1 - lib/zosfiles/delete/vsam/Vsam.handler.d.ts | 9 - lib/zosfiles/delete/vsam/Vsam.handler.js | 39 - lib/zosfiles/delete/vsam/Vsam.handler.js.map | 1 - lib/zosfiles/delete/zfs/zfs.definition.d.ts | 8 - lib/zosfiles/delete/zfs/zfs.definition.js | 57 -- lib/zosfiles/delete/zfs/zfs.definition.js.map | 1 - lib/zosfiles/delete/zfs/zfs.handler.d.ts | 9 - lib/zosfiles/delete/zfs/zfs.handler.js | 36 - lib/zosfiles/delete/zfs/zfs.handler.js.map | 1 - .../download/Download.definition.d.ts | 6 - lib/zosfiles/download/Download.definition.js | 39 - .../download/Download.definition.js.map | 1 - lib/zosfiles/download/Download.options.d.ts | 7 - lib/zosfiles/download/Download.options.js | 189 ---- lib/zosfiles/download/Download.options.js.map | 1 - .../download/am/AllMembers.definition.d.ts | 6 - .../download/am/AllMembers.definition.js | 61 -- .../download/am/AllMembers.definition.js.map | 1 - .../download/am/AllMembers.handler.d.ts | 10 - .../download/am/AllMembers.handler.js | 55 - .../download/am/AllMembers.handler.js.map | 1 - .../download/ds/Dataset.definition.d.ts | 6 - .../download/ds/Dataset.definition.js | 55 - .../download/ds/Dataset.definition.js.map | 1 - lib/zosfiles/download/ds/Dataset.handler.d.ts | 10 - lib/zosfiles/download/ds/Dataset.handler.js | 54 - .../download/ds/Dataset.handler.js.map | 1 - .../dsm/DataSetMatching.definition.d.ts | 6 - .../dsm/DataSetMatching.definition.js | 64 -- .../dsm/DataSetMatching.definition.js.map | 1 - .../download/dsm/DataSetMatching.handler.d.ts | 10 - .../download/dsm/DataSetMatching.handler.js | 93 -- .../dsm/DataSetMatching.handler.js.map | 1 - .../download/uss/UssFile.definition.d.ts | 6 - .../download/uss/UssFile.definition.js | 55 - .../download/uss/UssFile.definition.js.map | 1 - .../download/uss/UssFile.handler.d.ts | 10 - lib/zosfiles/download/uss/UssFile.handler.js | 50 - .../download/uss/UssFile.handler.js.map | 1 - .../download/ussdir/UssDir.definition.d.ts | 6 - .../download/ussdir/UssDir.definition.js | 76 -- .../download/ussdir/UssDir.definition.js.map | 1 - .../download/ussdir/UssDir.handler.d.ts | 10 - .../download/ussdir/UssDir.handler.js | 70 -- .../download/ussdir/UssDir.handler.js.map | 1 - lib/zosfiles/edit/Edit.definition.d.ts | 6 - lib/zosfiles/edit/Edit.definition.js | 33 - lib/zosfiles/edit/Edit.definition.js.map | 1 - lib/zosfiles/edit/Edit.handler.d.ts | 10 - lib/zosfiles/edit/Edit.handler.js | 111 -- lib/zosfiles/edit/Edit.handler.js.map | 1 - lib/zosfiles/edit/Edit.options.d.ts | 7 - lib/zosfiles/edit/Edit.options.js | 39 - lib/zosfiles/edit/Edit.options.js.map | 1 - lib/zosfiles/edit/Edit.utils.d.ts | 118 --- lib/zosfiles/edit/Edit.utils.js | 365 ------- lib/zosfiles/edit/Edit.utils.js.map | 1 - lib/zosfiles/edit/ds/Dataset.definition.d.ts | 6 - lib/zosfiles/edit/ds/Dataset.definition.js | 58 -- .../edit/ds/Dataset.definition.js.map | 1 - lib/zosfiles/edit/uss/USSFile.definition.d.ts | 6 - lib/zosfiles/edit/uss/USSFile.definition.js | 53 - .../edit/uss/USSFile.definition.js.map | 1 - .../hMigrate/HMigrate.definition.d.ts | 6 - lib/zosfiles/hMigrate/HMigrate.definition.js | 30 - .../hMigrate/HMigrate.definition.js.map | 1 - lib/zosfiles/hMigrate/ds/Ds.definition.d.ts | 2 - lib/zosfiles/hMigrate/ds/Ds.definition.js | 51 - lib/zosfiles/hMigrate/ds/Ds.definition.js.map | 1 - lib/zosfiles/hMigrate/ds/Ds.handler.d.ts | 9 - lib/zosfiles/hMigrate/ds/Ds.handler.js | 36 - lib/zosfiles/hMigrate/ds/Ds.handler.js.map | 1 - lib/zosfiles/hRecall/HRecall.definition.d.ts | 6 - lib/zosfiles/hRecall/HRecall.definition.js | 30 - .../hRecall/HRecall.definition.js.map | 1 - lib/zosfiles/hRecall/ds/Ds.definition.d.ts | 2 - lib/zosfiles/hRecall/ds/Ds.definition.js | 51 - lib/zosfiles/hRecall/ds/Ds.definition.js.map | 1 - lib/zosfiles/hRecall/ds/Ds.handler.d.ts | 9 - lib/zosfiles/hRecall/ds/Ds.handler.js | 36 - lib/zosfiles/hRecall/ds/Ds.handler.js.map | 1 - lib/zosfiles/invoke/Invoke.definition.d.ts | 6 - lib/zosfiles/invoke/Invoke.definition.js | 33 - lib/zosfiles/invoke/Invoke.definition.js.map | 1 - .../invoke/amsFile/AmsFile.definition.d.ts | 6 - .../invoke/amsFile/AmsFile.definition.js | 46 - .../invoke/amsFile/AmsFile.definition.js.map | 1 - .../invoke/amsFile/AmsFile.handler.d.ts | 10 - .../invoke/amsFile/AmsFile.handler.js | 40 - .../invoke/amsFile/AmsFile.handler.js.map | 1 - .../AmsStatements.definition.d.ts | 6 - .../amsStatements/AmsStatements.definition.js | 50 - .../AmsStatements.definition.js.map | 1 - .../amsStatements/AmsStatements.handler.d.ts | 10 - .../amsStatements/AmsStatements.handler.js | 46 - .../AmsStatements.handler.js.map | 1 - lib/zosfiles/list/List.definition.d.ts | 6 - lib/zosfiles/list/List.definition.js | 37 - lib/zosfiles/list/List.definition.js.map | 1 - lib/zosfiles/list/List.options.d.ts | 7 - lib/zosfiles/list/List.options.js | 172 ---- lib/zosfiles/list/List.options.js.map | 1 - .../list/am/AllMembers.definition.d.ts | 6 - lib/zosfiles/list/am/AllMembers.definition.js | 63 -- .../list/am/AllMembers.definition.js.map | 1 - lib/zosfiles/list/am/AllMembers.handler.d.ts | 10 - lib/zosfiles/list/am/AllMembers.handler.js | 51 - .../list/am/AllMembers.handler.js.map | 1 - lib/zosfiles/list/ds/DataSet.definition.d.ts | 6 - lib/zosfiles/list/ds/DataSet.definition.js | 69 -- .../list/ds/DataSet.definition.js.map | 1 - lib/zosfiles/list/ds/DataSet.handler.d.ts | 10 - lib/zosfiles/list/ds/DataSet.handler.js | 51 - lib/zosfiles/list/ds/DataSet.handler.js.map | 1 - lib/zosfiles/list/fs/Fs.definition.d.ts | 6 - lib/zosfiles/list/fs/Fs.definition.js | 53 - lib/zosfiles/list/fs/Fs.definition.js.map | 1 - lib/zosfiles/list/fs/Fs.handler.d.ts | 10 - lib/zosfiles/list/fs/Fs.handler.js | 59 -- lib/zosfiles/list/fs/Fs.handler.js.map | 1 - lib/zosfiles/list/uss/UssFile.definition.d.ts | 6 - lib/zosfiles/list/uss/UssFile.definition.js | 58 -- .../list/uss/UssFile.definition.js.map | 1 - lib/zosfiles/list/uss/UssFile.handler.d.ts | 10 - lib/zosfiles/list/uss/UssFile.handler.js | 49 - lib/zosfiles/list/uss/UssFile.handler.js.map | 1 - lib/zosfiles/mount/Mount.definition.d.ts | 6 - lib/zosfiles/mount/Mount.definition.js | 31 - lib/zosfiles/mount/Mount.definition.js.map | 1 - lib/zosfiles/mount/fs/fs.definition.d.ts | 2 - lib/zosfiles/mount/fs/fs.definition.js | 57 -- lib/zosfiles/mount/fs/fs.definition.js.map | 1 - lib/zosfiles/mount/fs/fs.handler.d.ts | 9 - lib/zosfiles/mount/fs/fs.handler.js | 41 - lib/zosfiles/mount/fs/fs.handler.js.map | 1 - lib/zosfiles/mount/fs/fs.options.d.ts | 7 - lib/zosfiles/mount/fs/fs.options.js | 47 - lib/zosfiles/mount/fs/fs.options.js.map | 1 - lib/zosfiles/rename/Rename.definition.d.ts | 6 - lib/zosfiles/rename/Rename.definition.js | 32 - lib/zosfiles/rename/Rename.definition.js.map | 1 - lib/zosfiles/rename/ds/Ds.definition.d.ts | 2 - lib/zosfiles/rename/ds/Ds.definition.js | 47 - lib/zosfiles/rename/ds/Ds.definition.js.map | 1 - lib/zosfiles/rename/ds/Ds.handler.d.ts | 9 - lib/zosfiles/rename/ds/Ds.handler.js | 36 - lib/zosfiles/rename/ds/Ds.handler.js.map | 1 - lib/zosfiles/rename/dsm/Dsm.definition.d.ts | 2 - lib/zosfiles/rename/dsm/Dsm.definition.js | 53 - lib/zosfiles/rename/dsm/Dsm.definition.js.map | 1 - lib/zosfiles/rename/dsm/Dsm.handler.d.ts | 9 - lib/zosfiles/rename/dsm/Dsm.handler.js | 36 - lib/zosfiles/rename/dsm/Dsm.handler.js.map | 1 - lib/zosfiles/unmount/Unmount.definition.d.ts | 6 - lib/zosfiles/unmount/Unmount.definition.js | 31 - .../unmount/Unmount.definition.js.map | 1 - lib/zosfiles/unmount/fs/fs.definition.d.ts | 2 - lib/zosfiles/unmount/fs/fs.definition.js | 42 - lib/zosfiles/unmount/fs/fs.definition.js.map | 1 - lib/zosfiles/unmount/fs/fs.handler.d.ts | 9 - lib/zosfiles/unmount/fs/fs.handler.js | 36 - lib/zosfiles/unmount/fs/fs.handler.js.map | 1 - lib/zosfiles/upload/Upload.definition.d.ts | 6 - lib/zosfiles/upload/Upload.definition.js | 38 - lib/zosfiles/upload/Upload.definition.js.map | 1 - lib/zosfiles/upload/Upload.options.d.ts | 7 - lib/zosfiles/upload/Upload.options.js | 138 --- lib/zosfiles/upload/Upload.options.js.map | 1 - .../upload/dtp/DirToPds.definition.d.ts | 6 - .../upload/dtp/DirToPds.definition.js | 63 -- .../upload/dtp/DirToPds.definition.js.map | 1 - lib/zosfiles/upload/dtp/DirToPds.handler.d.ts | 10 - lib/zosfiles/upload/dtp/DirToPds.handler.js | 77 -- .../upload/dtp/DirToPds.handler.js.map | 1 - .../upload/dtu/DirToUSSDir.definition.d.ts | 6 - .../upload/dtu/DirToUSSDir.definition.js | 78 -- .../upload/dtu/DirToUSSDir.definition.js.map | 1 - .../upload/dtu/DirToUSSDir.handler.d.ts | 11 - .../upload/dtu/DirToUSSDir.handler.js | 86 -- .../upload/dtu/DirToUSSDir.handler.js.map | 1 - .../upload/ftds/FileToDataSet.definition.d.ts | 6 - .../upload/ftds/FileToDataSet.definition.js | 67 -- .../ftds/FileToDataSet.definition.js.map | 1 - .../upload/ftds/FileToDataSet.handler.d.ts | 10 - .../upload/ftds/FileToDataSet.handler.js | 77 -- .../upload/ftds/FileToDataSet.handler.js.map | 1 - .../upload/ftu/FileToUSS.definition.d.ts | 6 - .../upload/ftu/FileToUSS.definition.js | 56 - .../upload/ftu/FileToUSS.definition.js.map | 1 - .../upload/ftu/FileToUSS.handler.d.ts | 10 - lib/zosfiles/upload/ftu/FileToUSS.handler.js | 51 - .../upload/ftu/FileToUSS.handler.js.map | 1 - .../stds/StdinToDataSet.definition.d.ts | 6 - .../upload/stds/StdinToDataSet.definition.js | 63 -- .../stds/StdinToDataSet.definition.js.map | 1 - .../upload/stds/StdinToDataSet.handler.d.ts | 10 - .../upload/stds/StdinToDataSet.handler.js | 58 -- .../upload/stds/StdinToDataSet.handler.js.map | 1 - lib/zosfiles/view/View.definition.d.ts | 6 - lib/zosfiles/view/View.definition.js | 33 - lib/zosfiles/view/View.definition.js.map | 1 - lib/zosfiles/view/View.options.d.ts | 7 - lib/zosfiles/view/View.options.js | 73 -- lib/zosfiles/view/View.options.js.map | 1 - lib/zosfiles/view/ds/Dataset.definition.d.ts | 6 - lib/zosfiles/view/ds/Dataset.definition.js | 65 -- .../view/ds/Dataset.definition.js.map | 1 - lib/zosfiles/view/ds/Dataset.handler.d.ts | 10 - lib/zosfiles/view/ds/Dataset.handler.js | 55 - lib/zosfiles/view/ds/Dataset.handler.js.map | 1 - lib/zosfiles/view/uss/USSFile.definition.d.ts | 6 - lib/zosfiles/view/uss/USSFile.definition.js | 55 - .../view/uss/USSFile.definition.js.map | 1 - lib/zosfiles/view/uss/USSFile.handler.d.ts | 10 - lib/zosfiles/view/uss/USSFile.handler.js | 55 - lib/zosfiles/view/uss/USSFile.handler.js.map | 1 - lib/zosjobs/-strings-/en.d.ts | 182 ---- lib/zosjobs/-strings-/en.js | 229 ----- lib/zosjobs/-strings-/en.js.map | 1 - lib/zosjobs/cancel/Cancel.definition.d.ts | 2 - lib/zosjobs/cancel/Cancel.definition.js | 26 - lib/zosjobs/cancel/Cancel.definition.js.map | 1 - lib/zosjobs/cancel/job/Job.definition.d.ts | 2 - lib/zosjobs/cancel/job/Job.definition.js | 45 - lib/zosjobs/cancel/job/Job.definition.js.map | 1 - lib/zosjobs/cancel/job/Job.handler.d.ts | 24 - lib/zosjobs/cancel/job/Job.handler.js | 70 -- lib/zosjobs/cancel/job/Job.handler.js.map | 1 - lib/zosjobs/delete/Delete.definition.d.ts | 2 - lib/zosjobs/delete/Delete.definition.js | 28 - lib/zosjobs/delete/Delete.definition.js.map | 1 - lib/zosjobs/delete/job/Job.definition.d.ts | 2 - lib/zosjobs/delete/job/Job.definition.js | 45 - lib/zosjobs/delete/job/Job.definition.js.map | 1 - lib/zosjobs/delete/job/Job.handler.d.ts | 24 - lib/zosjobs/delete/job/Job.handler.js | 70 -- lib/zosjobs/delete/job/Job.handler.js.map | 1 - .../delete/old-jobs/OldJobs.definition.d.ts | 2 - .../delete/old-jobs/OldJobs.definition.js | 49 - .../delete/old-jobs/OldJobs.definition.js.map | 1 - .../delete/old-jobs/OldJobs.handler.d.ts | 24 - .../delete/old-jobs/OldJobs.handler.js | 92 -- .../delete/old-jobs/OldJobs.handler.js.map | 1 - lib/zosjobs/download/Download.definition.d.ts | 2 - lib/zosjobs/download/Download.definition.js | 25 - .../download/Download.definition.js.map | 1 - .../download-output/Output.definition.d.ts | 2 - .../download-output/Output.definition.js | 77 -- .../download-output/Output.definition.js.map | 1 - .../download-output/Output.handler.d.ts | 17 - .../download-output/Output.handler.js | 69 -- .../download-output/Output.handler.js.map | 1 - lib/zosjobs/list/List.definition.d.ts | 2 - lib/zosjobs/list/List.definition.js | 25 - lib/zosjobs/list/List.definition.js.map | 1 - lib/zosjobs/list/jobs/Jobs.definition.d.ts | 2 - lib/zosjobs/list/jobs/Jobs.definition.js | 83 -- lib/zosjobs/list/jobs/Jobs.definition.js.map | 1 - lib/zosjobs/list/jobs/Jobs.handler.d.ts | 18 - lib/zosjobs/list/jobs/Jobs.handler.js | 69 -- lib/zosjobs/list/jobs/Jobs.handler.js.map | 1 - .../SpoolFilesByJobid.definition.d.ts | 2 - .../SpoolFilesByJobid.definition.js | 43 - .../SpoolFilesByJobid.definition.js.map | 1 - .../SpoolFilesByJobid.handler.d.ts | 31 - .../SpoolFilesByJobid.handler.js | 56 - .../SpoolFilesByJobid.handler.js.map | 1 - lib/zosjobs/modify/Modify.definition.d.ts | 2 - lib/zosjobs/modify/Modify.definition.js | 26 - lib/zosjobs/modify/Modify.definition.js.map | 1 - lib/zosjobs/modify/job/Job.definition.d.ts | 2 - lib/zosjobs/modify/job/Job.definition.js | 61 -- lib/zosjobs/modify/job/Job.definition.js.map | 1 - lib/zosjobs/modify/job/Job.handler.d.ts | 24 - lib/zosjobs/modify/job/Job.handler.js | 73 -- lib/zosjobs/modify/job/Job.handler.js.map | 1 - lib/zosjobs/submit/Submit.definition.d.ts | 2 - lib/zosjobs/submit/Submit.definition.js | 33 - lib/zosjobs/submit/Submit.definition.js.map | 1 - lib/zosjobs/submit/Submit.shared.handler.d.ts | 17 - lib/zosjobs/submit/Submit.shared.handler.js | 181 ---- .../submit/Submit.shared.handler.js.map | 1 - .../submit/data-set/DataSet.definition.d.ts | 2 - .../submit/data-set/DataSet.definition.js | 85 -- .../submit/data-set/DataSet.definition.js.map | 1 - .../local-file/localFile.definition.d.ts | 2 - .../submit/local-file/localFile.definition.js | 75 -- .../local-file/localFile.definition.js.map | 1 - .../submit/stdin/stdin.definition.d.ts | 2 - lib/zosjobs/submit/stdin/stdin.definition.js | 72 -- .../submit/stdin/stdin.definition.js.map | 1 - .../submit/uss-file/USSFile.definition.d.ts | 2 - .../submit/uss-file/USSFile.definition.js | 80 -- .../submit/uss-file/USSFile.definition.js.map | 1 - lib/zosjobs/view/View.definition.d.ts | 2 - lib/zosjobs/view/View.definition.js | 29 - lib/zosjobs/view/View.definition.js.map | 1 - .../AllSpoolContent.definition.d.ts | 2 - .../AllSpoolContent.definition.js | 42 - .../AllSpoolContent.definition.js.map | 1 - .../AllSpoolContent.handler.d.ts | 17 - .../AllSpoolContent.handler.js | 68 -- .../AllSpoolContent.handler.js.map | 1 - .../JobStatusByJobid.definition.d.ts | 2 - .../JobStatusByJobid.definition.js | 47 - .../JobStatusByJobid.definition.js.map | 1 - .../JobStatusByJobid.handler.d.ts | 17 - .../JobStatusByJobid.handler.js | 54 - .../JobStatusByJobid.handler.js.map | 1 - .../SpoolFileById.definition.d.ts | 2 - .../SpoolFileById.definition.js | 51 - .../SpoolFileById.definition.js.map | 1 - .../SpoolFileById.handler.d.ts | 16 - .../spool-file-by-id/SpoolFileById.handler.js | 49 - .../SpoolFileById.handler.js.map | 1 - lib/zoslogs/list/List.definition.d.ts | 2 - lib/zoslogs/list/List.definition.js | 23 - lib/zoslogs/list/List.definition.js.map | 1 - lib/zoslogs/list/logs/Logs.definition.d.ts | 2 - lib/zoslogs/list/logs/Logs.definition.js | 71 -- lib/zoslogs/list/logs/Logs.definition.js.map | 1 - lib/zoslogs/list/logs/Logs.handler.d.ts | 11 - lib/zoslogs/list/logs/Logs.handler.js | 78 -- lib/zoslogs/list/logs/Logs.handler.js.map | 1 - lib/zosmf/check/Check.definition.d.ts | 2 - lib/zosmf/check/Check.definition.js | 24 - lib/zosmf/check/Check.definition.js.map | 1 - lib/zosmf/check/status/Status.definition.d.ts | 2 - lib/zosmf/check/status/Status.definition.js | 43 - .../check/status/Status.definition.js.map | 1 - lib/zosmf/check/status/Status.handler.d.ts | 11 - lib/zosmf/check/status/Status.handler.js | 68 -- lib/zosmf/check/status/Status.handler.js.map | 1 - lib/zosmf/constants/CheckStatus.messages.d.ts | 8 - lib/zosmf/constants/CheckStatus.messages.js | 29 - .../constants/CheckStatus.messages.js.map | 1 - lib/zosmf/list/List.definition.d.ts | 2 - lib/zosmf/list/List.definition.js | 23 - lib/zosmf/list/List.definition.js.map | 1 - .../list/systems/Systems.definition.d.ts | 2 - lib/zosmf/list/systems/Systems.definition.js | 41 - .../list/systems/Systems.definition.js.map | 1 - lib/zosmf/list/systems/Systems.handler.d.ts | 11 - lib/zosmf/list/systems/Systems.handler.js | 45 - lib/zosmf/list/systems/Systems.handler.js.map | 1 - lib/zostso/constants/ZosTso.constants.d.ts | 40 - lib/zostso/constants/ZosTso.constants.js | 55 - lib/zostso/constants/ZosTso.constants.js.map | 1 - lib/zostso/issue/Issue.definition.d.ts | 2 - lib/zostso/issue/Issue.definition.js | 25 - lib/zostso/issue/Issue.definition.js.map | 1 - .../issue/command/Command.definition.d.ts | 2 - .../issue/command/Command.definition.js | 50 - .../issue/command/Command.definition.js.map | 1 - lib/zostso/issue/command/Command.handler.d.ts | 11 - lib/zostso/issue/command/Command.handler.js | 46 - .../issue/command/Command.handler.js.map | 1 - lib/zostso/ping/Ping.definition.d.ts | 2 - lib/zostso/ping/Ping.definition.js | 26 - lib/zostso/ping/Ping.definition.js.map | 1 - .../PingAddressSpace.definition.d.ts | 2 - .../PingAddressSpace.definition.js | 40 - .../PingAddressSpace.definition.js.map | 1 - .../PingAddressSpace.handler.d.ts | 11 - .../address_space/PingAddressSpace.handler.js | 43 - .../PingAddressSpace.handler.js.map | 1 - lib/zostso/send/Send.definition.d.ts | 2 - lib/zostso/send/Send.definition.js | 25 - lib/zostso/send/Send.definition.js.map | 1 - .../SendToAddressSpace.definition.d.ts | 2 - .../SendToAddressSpace.definition.js | 49 - .../SendToAddressSpace.definition.js.map | 1 - .../SendToAddressSpace.handler.d.ts | 11 - .../SendToAddressSpace.handler.js | 42 - .../SendToAddressSpace.handler.js.map | 1 - lib/zostso/start/Start.definition.d.ts | 2 - lib/zostso/start/Start.definition.js | 25 - lib/zostso/start/Start.definition.js.map | 1 - .../AddressSpace.definition.d.ts | 2 - .../address-space/AddressSpace.definition.js | 48 - .../AddressSpace.definition.js.map | 1 - .../address-space/AddressSpace.handler.d.ts | 11 - .../address-space/AddressSpace.handler.js | 56 - .../address-space/AddressSpace.handler.js.map | 1 - lib/zostso/stop/Stop.definition.d.ts | 2 - lib/zostso/stop/Stop.definition.js | 23 - lib/zostso/stop/Stop.definition.js.map | 1 - .../AddressSpace.definition.d.ts | 2 - .../address-space/AddressSpace.definition.js | 39 - .../AddressSpace.definition.js.map | 1 - .../address-space/AddressSpace.handler.d.ts | 5 - .../address-space/AddressSpace.handler.js | 37 - .../address-space/AddressSpace.handler.js.map | 1 - lib/zosuss/issue/Issue.definition.d.ts | 5 - lib/zosuss/issue/Issue.definition.js | 25 - lib/zosuss/issue/Issue.definition.js.map | 1 - lib/zosuss/issue/ssh/Ssh.definition.d.ts | 2 - lib/zosuss/issue/ssh/Ssh.definition.js | 43 - lib/zosuss/issue/ssh/Ssh.definition.js.map | 1 - lib/zosuss/issue/ssh/Ssh.handler.d.ts | 13 - lib/zosuss/issue/ssh/Ssh.handler.js | 48 - lib/zosuss/issue/ssh/Ssh.handler.js.map | 1 - 789 files changed, 21073 deletions(-) delete mode 100644 lib/config/auto-init/ApimlAutoInitHandler.d.ts delete mode 100644 lib/config/auto-init/ApimlAutoInitHandler.js delete mode 100644 lib/config/auto-init/ApimlAutoInitHandler.js.map delete mode 100644 lib/daemon/disable/Disable.definition.d.ts delete mode 100644 lib/daemon/disable/Disable.definition.js delete mode 100644 lib/daemon/disable/Disable.definition.js.map delete mode 100644 lib/daemon/disable/Disable.handler.d.ts delete mode 100644 lib/daemon/disable/Disable.handler.js delete mode 100644 lib/daemon/disable/Disable.handler.js.map delete mode 100644 lib/daemon/doc/IDaemonEnableQuestions.d.ts delete mode 100644 lib/daemon/doc/IDaemonEnableQuestions.js delete mode 100644 lib/daemon/doc/IDaemonEnableQuestions.js.map delete mode 100644 lib/daemon/doc/IDaemonPidForUser.d.ts delete mode 100644 lib/daemon/doc/IDaemonPidForUser.js delete mode 100644 lib/daemon/doc/IDaemonPidForUser.js.map delete mode 100644 lib/daemon/enable/Enable.definition.d.ts delete mode 100644 lib/daemon/enable/Enable.definition.js delete mode 100644 lib/daemon/enable/Enable.definition.js.map delete mode 100644 lib/daemon/enable/Enable.handler.d.ts delete mode 100644 lib/daemon/enable/Enable.handler.js delete mode 100644 lib/daemon/enable/Enable.handler.js.map delete mode 100644 lib/daemon/restart/Restart.definition.d.ts delete mode 100644 lib/daemon/restart/Restart.definition.js delete mode 100644 lib/daemon/restart/Restart.definition.js.map delete mode 100644 lib/daemon/restart/Restart.handler.d.ts delete mode 100644 lib/daemon/restart/Restart.handler.js delete mode 100644 lib/daemon/restart/Restart.handler.js.map delete mode 100644 lib/provisioning/delete/Delete.definition.d.ts delete mode 100644 lib/provisioning/delete/Delete.definition.js delete mode 100644 lib/provisioning/delete/Delete.definition.js.map delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.d.ts delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.js delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.definition.js.map delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.d.ts delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.js delete mode 100644 lib/provisioning/delete/instance/DeleteInstance.handler.js.map delete mode 100644 lib/provisioning/list/List.definition.d.ts delete mode 100644 lib/provisioning/list/List.definition.js delete mode 100644 lib/provisioning/list/List.definition.js.map delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js delete mode 100644 lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.js delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.js delete mode 100644 lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.js delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.js delete mode 100644 lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map delete mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.d.ts delete mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.js delete mode 100644 lib/provisioning/list/registry/RegistryInstances.definition.js.map delete mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.d.ts delete mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.js delete mode 100644 lib/provisioning/list/registry/RegistryInstances.handler.js.map delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.js delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.js delete mode 100644 lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map delete mode 100644 lib/provisioning/perform/Perform.definition.d.ts delete mode 100644 lib/provisioning/perform/Perform.definition.js delete mode 100644 lib/provisioning/perform/Perform.definition.js.map delete mode 100644 lib/provisioning/perform/action/Action.definition.d.ts delete mode 100644 lib/provisioning/perform/action/Action.definition.js delete mode 100644 lib/provisioning/perform/action/Action.definition.js.map delete mode 100644 lib/provisioning/perform/action/Action.handler.d.ts delete mode 100644 lib/provisioning/perform/action/Action.handler.js delete mode 100644 lib/provisioning/perform/action/Action.handler.js.map delete mode 100644 lib/provisioning/provision/Provision.definition.d.ts delete mode 100644 lib/provisioning/provision/Provision.definition.js delete mode 100644 lib/provisioning/provision/Provision.definition.js.map delete mode 100644 lib/provisioning/provision/template/Template.definition.d.ts delete mode 100644 lib/provisioning/provision/template/Template.definition.js delete mode 100644 lib/provisioning/provision/template/Template.definition.js.map delete mode 100644 lib/provisioning/provision/template/Template.handler.d.ts delete mode 100644 lib/provisioning/provision/template/Template.handler.js delete mode 100644 lib/provisioning/provision/template/Template.handler.js.map delete mode 100644 lib/workflows/archive/Archive.definition.d.ts delete mode 100644 lib/workflows/archive/Archive.definition.js delete mode 100644 lib/workflows/archive/Archive.definition.js.map delete mode 100644 lib/workflows/archive/Archive.handler.d.ts delete mode 100644 lib/workflows/archive/Archive.handler.js delete mode 100644 lib/workflows/archive/Archive.handler.js.map delete mode 100644 lib/workflows/archive/Archive.options.d.ts delete mode 100644 lib/workflows/archive/Archive.options.js delete mode 100644 lib/workflows/archive/Archive.options.js.map delete mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.d.ts delete mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.js delete mode 100644 lib/workflows/archive/workflow/Archive.workflow.definition.js.map delete mode 100644 lib/workflows/create/Create.common.handler.d.ts delete mode 100644 lib/workflows/create/Create.common.handler.js delete mode 100644 lib/workflows/create/Create.common.handler.js.map delete mode 100644 lib/workflows/create/Create.common.options.d.ts delete mode 100644 lib/workflows/create/Create.common.options.js delete mode 100644 lib/workflows/create/Create.common.options.js.map delete mode 100644 lib/workflows/create/Create.definition.d.ts delete mode 100644 lib/workflows/create/Create.definition.js delete mode 100644 lib/workflows/create/Create.definition.js.map delete mode 100644 lib/workflows/create/dataset/Dataset.definition.d.ts delete mode 100644 lib/workflows/create/dataset/Dataset.definition.js delete mode 100644 lib/workflows/create/dataset/Dataset.definition.js.map delete mode 100644 lib/workflows/create/localfile/LocalFile.definition.d.ts delete mode 100644 lib/workflows/create/localfile/LocalFile.definition.js delete mode 100644 lib/workflows/create/localfile/LocalFile.definition.js.map delete mode 100644 lib/workflows/create/ussfile/UssFile.definition.d.ts delete mode 100644 lib/workflows/create/ussfile/UssFile.definition.js delete mode 100644 lib/workflows/create/ussfile/UssFile.definition.js.map delete mode 100644 lib/workflows/delete/Delete.archived.common.handler.d.ts delete mode 100644 lib/workflows/delete/Delete.archived.common.handler.js delete mode 100644 lib/workflows/delete/Delete.archived.common.handler.js.map delete mode 100644 lib/workflows/delete/Delete.common.handler.d.ts delete mode 100644 lib/workflows/delete/Delete.common.handler.js delete mode 100644 lib/workflows/delete/Delete.common.handler.js.map delete mode 100644 lib/workflows/delete/Delete.definition.d.ts delete mode 100644 lib/workflows/delete/Delete.definition.js delete mode 100644 lib/workflows/delete/Delete.definition.js.map delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js delete mode 100644 lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js delete mode 100644 lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map delete mode 100644 lib/workflows/list/List.definition.d.ts delete mode 100644 lib/workflows/list/List.definition.js delete mode 100644 lib/workflows/list/List.definition.js.map delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js delete mode 100644 lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js delete mode 100644 lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js delete mode 100644 lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js delete mode 100644 lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map delete mode 100644 lib/workflows/start/Start.common.options.d.ts delete mode 100644 lib/workflows/start/Start.common.options.js delete mode 100644 lib/workflows/start/Start.common.options.js.map delete mode 100644 lib/workflows/start/Start.definition.d.ts delete mode 100644 lib/workflows/start/Start.definition.js delete mode 100644 lib/workflows/start/Start.definition.js.map delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.js delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.definition.js.map delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.js delete mode 100644 lib/workflows/start/workflowFull/WorkflowFull.handler.js.map delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.js delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.definition.js.map delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.js delete mode 100644 lib/workflows/start/workflowStep/WorkflowStep.handler.js.map delete mode 100644 lib/zosconsole/collect/Collect.definition.d.ts delete mode 100644 lib/zosconsole/collect/Collect.definition.js delete mode 100644 lib/zosconsole/collect/Collect.definition.js.map delete mode 100644 lib/zosconsole/collect/response/Response.definition.d.ts delete mode 100644 lib/zosconsole/collect/response/Response.definition.js delete mode 100644 lib/zosconsole/collect/response/Response.definition.js.map delete mode 100644 lib/zosconsole/collect/response/Response.handler.d.ts delete mode 100644 lib/zosconsole/collect/response/Response.handler.js delete mode 100644 lib/zosconsole/collect/response/Response.handler.js.map delete mode 100644 lib/zosconsole/issue/Issue.definition.d.ts delete mode 100644 lib/zosconsole/issue/Issue.definition.js delete mode 100644 lib/zosconsole/issue/Issue.definition.js.map delete mode 100644 lib/zosconsole/issue/command/Command.definition.d.ts delete mode 100644 lib/zosconsole/issue/command/Command.definition.js delete mode 100644 lib/zosconsole/issue/command/Command.definition.js.map delete mode 100644 lib/zosconsole/issue/command/Command.handler.d.ts delete mode 100644 lib/zosconsole/issue/command/Command.handler.js delete mode 100644 lib/zosconsole/issue/command/Command.handler.js.map delete mode 100644 lib/zosfiles/-strings-/en.d.ts delete mode 100644 lib/zosfiles/-strings-/en.js delete mode 100644 lib/zosfiles/-strings-/en.js.map delete mode 100644 lib/zosfiles/compare/Compare.definition.d.ts delete mode 100644 lib/zosfiles/compare/Compare.definition.js delete mode 100644 lib/zosfiles/compare/Compare.definition.js.map delete mode 100644 lib/zosfiles/compare/Compare.options.d.ts delete mode 100644 lib/zosfiles/compare/Compare.options.js delete mode 100644 lib/zosfiles/compare/Compare.options.js.map delete mode 100644 lib/zosfiles/compare/CompareBase.handler.d.ts delete mode 100644 lib/zosfiles/compare/CompareBase.handler.js delete mode 100644 lib/zosfiles/compare/CompareBase.handler.js.map delete mode 100644 lib/zosfiles/compare/CompareBaseHelper.d.ts delete mode 100644 lib/zosfiles/compare/CompareBaseHelper.js delete mode 100644 lib/zosfiles/compare/CompareBaseHelper.js.map delete mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.d.ts delete mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.js delete mode 100644 lib/zosfiles/compare/doc/ICompareFileOptions.js.map delete mode 100644 lib/zosfiles/compare/ds/Dataset.definition.d.ts delete mode 100644 lib/zosfiles/compare/ds/Dataset.definition.js delete mode 100644 lib/zosfiles/compare/ds/Dataset.definition.js.map delete mode 100644 lib/zosfiles/compare/ds/Dataset.handler.d.ts delete mode 100644 lib/zosfiles/compare/ds/Dataset.handler.js delete mode 100644 lib/zosfiles/compare/ds/Dataset.handler.js.map delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js delete mode 100644 lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js delete mode 100644 lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js delete mode 100644 lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.d.ts delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.js delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.definition.js.map delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.d.ts delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.js delete mode 100644 lib/zosfiles/compare/sdd/Spooldd.handler.js.map delete mode 100644 lib/zosfiles/compare/uss/UssFile.definition.d.ts delete mode 100644 lib/zosfiles/compare/uss/UssFile.definition.js delete mode 100644 lib/zosfiles/compare/uss/UssFile.definition.js.map delete mode 100644 lib/zosfiles/compare/uss/UssFile.handler.d.ts delete mode 100644 lib/zosfiles/compare/uss/UssFile.handler.js delete mode 100644 lib/zosfiles/compare/uss/UssFile.handler.js.map delete mode 100644 lib/zosfiles/copy/Copy.definition.d.ts delete mode 100644 lib/zosfiles/copy/Copy.definition.js delete mode 100644 lib/zosfiles/copy/Copy.definition.js.map delete mode 100644 lib/zosfiles/copy/ds/Ds.definition.d.ts delete mode 100644 lib/zosfiles/copy/ds/Ds.definition.js delete mode 100644 lib/zosfiles/copy/ds/Ds.definition.js.map delete mode 100644 lib/zosfiles/copy/ds/Ds.handler.d.ts delete mode 100644 lib/zosfiles/copy/ds/Ds.handler.js delete mode 100644 lib/zosfiles/copy/ds/Ds.handler.js.map delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.js delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.definition.js.map delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.js delete mode 100644 lib/zosfiles/copy/dsclp/Dsclp.handler.js.map delete mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts delete mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.js delete mode 100644 lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map delete mode 100644 lib/zosfiles/create/Create.definition.d.ts delete mode 100644 lib/zosfiles/create/Create.definition.js delete mode 100644 lib/zosfiles/create/Create.definition.js.map delete mode 100644 lib/zosfiles/create/Create.options.d.ts delete mode 100644 lib/zosfiles/create/Create.options.js delete mode 100644 lib/zosfiles/create/Create.options.js.map delete mode 100644 lib/zosfiles/create/Create.utils.d.ts delete mode 100644 lib/zosfiles/create/Create.utils.js delete mode 100644 lib/zosfiles/create/Create.utils.js.map delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.js delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.js delete mode 100644 lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map delete mode 100644 lib/zosfiles/create/cPds/CPDS.definition.d.ts delete mode 100644 lib/zosfiles/create/cPds/CPDS.definition.js delete mode 100644 lib/zosfiles/create/cPds/CPDS.definition.js.map delete mode 100644 lib/zosfiles/create/cPds/CPDS.handler.d.ts delete mode 100644 lib/zosfiles/create/cPds/CPDS.handler.js delete mode 100644 lib/zosfiles/create/cPds/CPDS.handler.js.map delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.js delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.js delete mode 100644 lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map delete mode 100644 lib/zosfiles/create/ds/ds.definition.d.ts delete mode 100644 lib/zosfiles/create/ds/ds.definition.js delete mode 100644 lib/zosfiles/create/ds/ds.definition.js.map delete mode 100644 lib/zosfiles/create/ds/ds.handler.d.ts delete mode 100644 lib/zosfiles/create/ds/ds.handler.js delete mode 100644 lib/zosfiles/create/ds/ds.handler.js.map delete mode 100644 lib/zosfiles/create/pds/Pds.definition.d.ts delete mode 100644 lib/zosfiles/create/pds/Pds.definition.js delete mode 100644 lib/zosfiles/create/pds/Pds.definition.js.map delete mode 100644 lib/zosfiles/create/pds/Pds.handler.d.ts delete mode 100644 lib/zosfiles/create/pds/Pds.handler.js delete mode 100644 lib/zosfiles/create/pds/Pds.handler.js.map delete mode 100644 lib/zosfiles/create/ps/Ps.definition.d.ts delete mode 100644 lib/zosfiles/create/ps/Ps.definition.js delete mode 100644 lib/zosfiles/create/ps/Ps.definition.js.map delete mode 100644 lib/zosfiles/create/ps/Ps.handler.d.ts delete mode 100644 lib/zosfiles/create/ps/Ps.handler.js delete mode 100644 lib/zosfiles/create/ps/Ps.handler.js.map delete mode 100644 lib/zosfiles/create/ussDir/uss.options.d.ts delete mode 100644 lib/zosfiles/create/ussDir/uss.options.js delete mode 100644 lib/zosfiles/create/ussDir/uss.options.js.map delete mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.d.ts delete mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.js delete mode 100644 lib/zosfiles/create/ussDir/ussDir.definition.js.map delete mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.d.ts delete mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.js delete mode 100644 lib/zosfiles/create/ussDir/ussDir.handler.js.map delete mode 100644 lib/zosfiles/create/ussFile/uss.options.d.ts delete mode 100644 lib/zosfiles/create/ussFile/uss.options.js delete mode 100644 lib/zosfiles/create/ussFile/uss.options.js.map delete mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.d.ts delete mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.js delete mode 100644 lib/zosfiles/create/ussFile/ussFile.definition.js.map delete mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.d.ts delete mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.js delete mode 100644 lib/zosfiles/create/ussFile/ussFile.handler.js.map delete mode 100644 lib/zosfiles/create/vsam/vsam.definition.d.ts delete mode 100644 lib/zosfiles/create/vsam/vsam.definition.js delete mode 100644 lib/zosfiles/create/vsam/vsam.definition.js.map delete mode 100644 lib/zosfiles/create/vsam/vsam.handler.d.ts delete mode 100644 lib/zosfiles/create/vsam/vsam.handler.js delete mode 100644 lib/zosfiles/create/vsam/vsam.handler.js.map delete mode 100644 lib/zosfiles/create/vsam/vsam.options.d.ts delete mode 100644 lib/zosfiles/create/vsam/vsam.options.js delete mode 100644 lib/zosfiles/create/vsam/vsam.options.js.map delete mode 100644 lib/zosfiles/create/zfs/zfs.definition.d.ts delete mode 100644 lib/zosfiles/create/zfs/zfs.definition.js delete mode 100644 lib/zosfiles/create/zfs/zfs.definition.js.map delete mode 100644 lib/zosfiles/create/zfs/zfs.handler.d.ts delete mode 100644 lib/zosfiles/create/zfs/zfs.handler.js delete mode 100644 lib/zosfiles/create/zfs/zfs.handler.js.map delete mode 100644 lib/zosfiles/create/zfs/zfs.options.d.ts delete mode 100644 lib/zosfiles/create/zfs/zfs.options.js delete mode 100644 lib/zosfiles/create/zfs/zfs.options.js.map delete mode 100644 lib/zosfiles/delete/Delete.definition.d.ts delete mode 100644 lib/zosfiles/delete/Delete.definition.js delete mode 100644 lib/zosfiles/delete/Delete.definition.js.map delete mode 100644 lib/zosfiles/delete/ds/Ds.definition.d.ts delete mode 100644 lib/zosfiles/delete/ds/Ds.definition.js delete mode 100644 lib/zosfiles/delete/ds/Ds.definition.js.map delete mode 100644 lib/zosfiles/delete/ds/Ds.handler.d.ts delete mode 100644 lib/zosfiles/delete/ds/Ds.handler.js delete mode 100644 lib/zosfiles/delete/ds/Ds.handler.js.map delete mode 100644 lib/zosfiles/delete/mds/Mds.definition.d.ts delete mode 100644 lib/zosfiles/delete/mds/Mds.definition.js delete mode 100644 lib/zosfiles/delete/mds/Mds.definition.js.map delete mode 100644 lib/zosfiles/delete/mds/Mds.handler.d.ts delete mode 100644 lib/zosfiles/delete/mds/Mds.handler.js delete mode 100644 lib/zosfiles/delete/mds/Mds.handler.js.map delete mode 100644 lib/zosfiles/delete/uss/Uss.definition.d.ts delete mode 100644 lib/zosfiles/delete/uss/Uss.definition.js delete mode 100644 lib/zosfiles/delete/uss/Uss.definition.js.map delete mode 100644 lib/zosfiles/delete/uss/Uss.handler.d.ts delete mode 100644 lib/zosfiles/delete/uss/Uss.handler.js delete mode 100644 lib/zosfiles/delete/uss/Uss.handler.js.map delete mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.d.ts delete mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.js delete mode 100644 lib/zosfiles/delete/vsam/Vsam.definition.js.map delete mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.d.ts delete mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.js delete mode 100644 lib/zosfiles/delete/vsam/Vsam.handler.js.map delete mode 100644 lib/zosfiles/delete/zfs/zfs.definition.d.ts delete mode 100644 lib/zosfiles/delete/zfs/zfs.definition.js delete mode 100644 lib/zosfiles/delete/zfs/zfs.definition.js.map delete mode 100644 lib/zosfiles/delete/zfs/zfs.handler.d.ts delete mode 100644 lib/zosfiles/delete/zfs/zfs.handler.js delete mode 100644 lib/zosfiles/delete/zfs/zfs.handler.js.map delete mode 100644 lib/zosfiles/download/Download.definition.d.ts delete mode 100644 lib/zosfiles/download/Download.definition.js delete mode 100644 lib/zosfiles/download/Download.definition.js.map delete mode 100644 lib/zosfiles/download/Download.options.d.ts delete mode 100644 lib/zosfiles/download/Download.options.js delete mode 100644 lib/zosfiles/download/Download.options.js.map delete mode 100644 lib/zosfiles/download/am/AllMembers.definition.d.ts delete mode 100644 lib/zosfiles/download/am/AllMembers.definition.js delete mode 100644 lib/zosfiles/download/am/AllMembers.definition.js.map delete mode 100644 lib/zosfiles/download/am/AllMembers.handler.d.ts delete mode 100644 lib/zosfiles/download/am/AllMembers.handler.js delete mode 100644 lib/zosfiles/download/am/AllMembers.handler.js.map delete mode 100644 lib/zosfiles/download/ds/Dataset.definition.d.ts delete mode 100644 lib/zosfiles/download/ds/Dataset.definition.js delete mode 100644 lib/zosfiles/download/ds/Dataset.definition.js.map delete mode 100644 lib/zosfiles/download/ds/Dataset.handler.d.ts delete mode 100644 lib/zosfiles/download/ds/Dataset.handler.js delete mode 100644 lib/zosfiles/download/ds/Dataset.handler.js.map delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.js delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.definition.js.map delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.js delete mode 100644 lib/zosfiles/download/dsm/DataSetMatching.handler.js.map delete mode 100644 lib/zosfiles/download/uss/UssFile.definition.d.ts delete mode 100644 lib/zosfiles/download/uss/UssFile.definition.js delete mode 100644 lib/zosfiles/download/uss/UssFile.definition.js.map delete mode 100644 lib/zosfiles/download/uss/UssFile.handler.d.ts delete mode 100644 lib/zosfiles/download/uss/UssFile.handler.js delete mode 100644 lib/zosfiles/download/uss/UssFile.handler.js.map delete mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.d.ts delete mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.js delete mode 100644 lib/zosfiles/download/ussdir/UssDir.definition.js.map delete mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.d.ts delete mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.js delete mode 100644 lib/zosfiles/download/ussdir/UssDir.handler.js.map delete mode 100644 lib/zosfiles/edit/Edit.definition.d.ts delete mode 100644 lib/zosfiles/edit/Edit.definition.js delete mode 100644 lib/zosfiles/edit/Edit.definition.js.map delete mode 100644 lib/zosfiles/edit/Edit.handler.d.ts delete mode 100644 lib/zosfiles/edit/Edit.handler.js delete mode 100644 lib/zosfiles/edit/Edit.handler.js.map delete mode 100644 lib/zosfiles/edit/Edit.options.d.ts delete mode 100644 lib/zosfiles/edit/Edit.options.js delete mode 100644 lib/zosfiles/edit/Edit.options.js.map delete mode 100644 lib/zosfiles/edit/Edit.utils.d.ts delete mode 100644 lib/zosfiles/edit/Edit.utils.js delete mode 100644 lib/zosfiles/edit/Edit.utils.js.map delete mode 100644 lib/zosfiles/edit/ds/Dataset.definition.d.ts delete mode 100644 lib/zosfiles/edit/ds/Dataset.definition.js delete mode 100644 lib/zosfiles/edit/ds/Dataset.definition.js.map delete mode 100644 lib/zosfiles/edit/uss/USSFile.definition.d.ts delete mode 100644 lib/zosfiles/edit/uss/USSFile.definition.js delete mode 100644 lib/zosfiles/edit/uss/USSFile.definition.js.map delete mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.d.ts delete mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.js delete mode 100644 lib/zosfiles/hMigrate/HMigrate.definition.js.map delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.d.ts delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.js delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.definition.js.map delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.d.ts delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.js delete mode 100644 lib/zosfiles/hMigrate/ds/Ds.handler.js.map delete mode 100644 lib/zosfiles/hRecall/HRecall.definition.d.ts delete mode 100644 lib/zosfiles/hRecall/HRecall.definition.js delete mode 100644 lib/zosfiles/hRecall/HRecall.definition.js.map delete mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.d.ts delete mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.js delete mode 100644 lib/zosfiles/hRecall/ds/Ds.definition.js.map delete mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.d.ts delete mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.js delete mode 100644 lib/zosfiles/hRecall/ds/Ds.handler.js.map delete mode 100644 lib/zosfiles/invoke/Invoke.definition.d.ts delete mode 100644 lib/zosfiles/invoke/Invoke.definition.js delete mode 100644 lib/zosfiles/invoke/Invoke.definition.js.map delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.js delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.js delete mode 100644 lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js delete mode 100644 lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map delete mode 100644 lib/zosfiles/list/List.definition.d.ts delete mode 100644 lib/zosfiles/list/List.definition.js delete mode 100644 lib/zosfiles/list/List.definition.js.map delete mode 100644 lib/zosfiles/list/List.options.d.ts delete mode 100644 lib/zosfiles/list/List.options.js delete mode 100644 lib/zosfiles/list/List.options.js.map delete mode 100644 lib/zosfiles/list/am/AllMembers.definition.d.ts delete mode 100644 lib/zosfiles/list/am/AllMembers.definition.js delete mode 100644 lib/zosfiles/list/am/AllMembers.definition.js.map delete mode 100644 lib/zosfiles/list/am/AllMembers.handler.d.ts delete mode 100644 lib/zosfiles/list/am/AllMembers.handler.js delete mode 100644 lib/zosfiles/list/am/AllMembers.handler.js.map delete mode 100644 lib/zosfiles/list/ds/DataSet.definition.d.ts delete mode 100644 lib/zosfiles/list/ds/DataSet.definition.js delete mode 100644 lib/zosfiles/list/ds/DataSet.definition.js.map delete mode 100644 lib/zosfiles/list/ds/DataSet.handler.d.ts delete mode 100644 lib/zosfiles/list/ds/DataSet.handler.js delete mode 100644 lib/zosfiles/list/ds/DataSet.handler.js.map delete mode 100644 lib/zosfiles/list/fs/Fs.definition.d.ts delete mode 100644 lib/zosfiles/list/fs/Fs.definition.js delete mode 100644 lib/zosfiles/list/fs/Fs.definition.js.map delete mode 100644 lib/zosfiles/list/fs/Fs.handler.d.ts delete mode 100644 lib/zosfiles/list/fs/Fs.handler.js delete mode 100644 lib/zosfiles/list/fs/Fs.handler.js.map delete mode 100644 lib/zosfiles/list/uss/UssFile.definition.d.ts delete mode 100644 lib/zosfiles/list/uss/UssFile.definition.js delete mode 100644 lib/zosfiles/list/uss/UssFile.definition.js.map delete mode 100644 lib/zosfiles/list/uss/UssFile.handler.d.ts delete mode 100644 lib/zosfiles/list/uss/UssFile.handler.js delete mode 100644 lib/zosfiles/list/uss/UssFile.handler.js.map delete mode 100644 lib/zosfiles/mount/Mount.definition.d.ts delete mode 100644 lib/zosfiles/mount/Mount.definition.js delete mode 100644 lib/zosfiles/mount/Mount.definition.js.map delete mode 100644 lib/zosfiles/mount/fs/fs.definition.d.ts delete mode 100644 lib/zosfiles/mount/fs/fs.definition.js delete mode 100644 lib/zosfiles/mount/fs/fs.definition.js.map delete mode 100644 lib/zosfiles/mount/fs/fs.handler.d.ts delete mode 100644 lib/zosfiles/mount/fs/fs.handler.js delete mode 100644 lib/zosfiles/mount/fs/fs.handler.js.map delete mode 100644 lib/zosfiles/mount/fs/fs.options.d.ts delete mode 100644 lib/zosfiles/mount/fs/fs.options.js delete mode 100644 lib/zosfiles/mount/fs/fs.options.js.map delete mode 100644 lib/zosfiles/rename/Rename.definition.d.ts delete mode 100644 lib/zosfiles/rename/Rename.definition.js delete mode 100644 lib/zosfiles/rename/Rename.definition.js.map delete mode 100644 lib/zosfiles/rename/ds/Ds.definition.d.ts delete mode 100644 lib/zosfiles/rename/ds/Ds.definition.js delete mode 100644 lib/zosfiles/rename/ds/Ds.definition.js.map delete mode 100644 lib/zosfiles/rename/ds/Ds.handler.d.ts delete mode 100644 lib/zosfiles/rename/ds/Ds.handler.js delete mode 100644 lib/zosfiles/rename/ds/Ds.handler.js.map delete mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.d.ts delete mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.js delete mode 100644 lib/zosfiles/rename/dsm/Dsm.definition.js.map delete mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.d.ts delete mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.js delete mode 100644 lib/zosfiles/rename/dsm/Dsm.handler.js.map delete mode 100644 lib/zosfiles/unmount/Unmount.definition.d.ts delete mode 100644 lib/zosfiles/unmount/Unmount.definition.js delete mode 100644 lib/zosfiles/unmount/Unmount.definition.js.map delete mode 100644 lib/zosfiles/unmount/fs/fs.definition.d.ts delete mode 100644 lib/zosfiles/unmount/fs/fs.definition.js delete mode 100644 lib/zosfiles/unmount/fs/fs.definition.js.map delete mode 100644 lib/zosfiles/unmount/fs/fs.handler.d.ts delete mode 100644 lib/zosfiles/unmount/fs/fs.handler.js delete mode 100644 lib/zosfiles/unmount/fs/fs.handler.js.map delete mode 100644 lib/zosfiles/upload/Upload.definition.d.ts delete mode 100644 lib/zosfiles/upload/Upload.definition.js delete mode 100644 lib/zosfiles/upload/Upload.definition.js.map delete mode 100644 lib/zosfiles/upload/Upload.options.d.ts delete mode 100644 lib/zosfiles/upload/Upload.options.js delete mode 100644 lib/zosfiles/upload/Upload.options.js.map delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.d.ts delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.js delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.definition.js.map delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.d.ts delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.js delete mode 100644 lib/zosfiles/upload/dtp/DirToPds.handler.js.map delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.js delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.js delete mode 100644 lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.js delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.js delete mode 100644 lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.js delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.definition.js.map delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.js delete mode 100644 lib/zosfiles/upload/ftu/FileToUSS.handler.js.map delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.js delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.js delete mode 100644 lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map delete mode 100644 lib/zosfiles/view/View.definition.d.ts delete mode 100644 lib/zosfiles/view/View.definition.js delete mode 100644 lib/zosfiles/view/View.definition.js.map delete mode 100644 lib/zosfiles/view/View.options.d.ts delete mode 100644 lib/zosfiles/view/View.options.js delete mode 100644 lib/zosfiles/view/View.options.js.map delete mode 100644 lib/zosfiles/view/ds/Dataset.definition.d.ts delete mode 100644 lib/zosfiles/view/ds/Dataset.definition.js delete mode 100644 lib/zosfiles/view/ds/Dataset.definition.js.map delete mode 100644 lib/zosfiles/view/ds/Dataset.handler.d.ts delete mode 100644 lib/zosfiles/view/ds/Dataset.handler.js delete mode 100644 lib/zosfiles/view/ds/Dataset.handler.js.map delete mode 100644 lib/zosfiles/view/uss/USSFile.definition.d.ts delete mode 100644 lib/zosfiles/view/uss/USSFile.definition.js delete mode 100644 lib/zosfiles/view/uss/USSFile.definition.js.map delete mode 100644 lib/zosfiles/view/uss/USSFile.handler.d.ts delete mode 100644 lib/zosfiles/view/uss/USSFile.handler.js delete mode 100644 lib/zosfiles/view/uss/USSFile.handler.js.map delete mode 100644 lib/zosjobs/-strings-/en.d.ts delete mode 100644 lib/zosjobs/-strings-/en.js delete mode 100644 lib/zosjobs/-strings-/en.js.map delete mode 100644 lib/zosjobs/cancel/Cancel.definition.d.ts delete mode 100644 lib/zosjobs/cancel/Cancel.definition.js delete mode 100644 lib/zosjobs/cancel/Cancel.definition.js.map delete mode 100644 lib/zosjobs/cancel/job/Job.definition.d.ts delete mode 100644 lib/zosjobs/cancel/job/Job.definition.js delete mode 100644 lib/zosjobs/cancel/job/Job.definition.js.map delete mode 100644 lib/zosjobs/cancel/job/Job.handler.d.ts delete mode 100644 lib/zosjobs/cancel/job/Job.handler.js delete mode 100644 lib/zosjobs/cancel/job/Job.handler.js.map delete mode 100644 lib/zosjobs/delete/Delete.definition.d.ts delete mode 100644 lib/zosjobs/delete/Delete.definition.js delete mode 100644 lib/zosjobs/delete/Delete.definition.js.map delete mode 100644 lib/zosjobs/delete/job/Job.definition.d.ts delete mode 100644 lib/zosjobs/delete/job/Job.definition.js delete mode 100644 lib/zosjobs/delete/job/Job.definition.js.map delete mode 100644 lib/zosjobs/delete/job/Job.handler.d.ts delete mode 100644 lib/zosjobs/delete/job/Job.handler.js delete mode 100644 lib/zosjobs/delete/job/Job.handler.js.map delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.js delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.js delete mode 100644 lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map delete mode 100644 lib/zosjobs/download/Download.definition.d.ts delete mode 100644 lib/zosjobs/download/Download.definition.js delete mode 100644 lib/zosjobs/download/Download.definition.js.map delete mode 100644 lib/zosjobs/download/download-output/Output.definition.d.ts delete mode 100644 lib/zosjobs/download/download-output/Output.definition.js delete mode 100644 lib/zosjobs/download/download-output/Output.definition.js.map delete mode 100644 lib/zosjobs/download/download-output/Output.handler.d.ts delete mode 100644 lib/zosjobs/download/download-output/Output.handler.js delete mode 100644 lib/zosjobs/download/download-output/Output.handler.js.map delete mode 100644 lib/zosjobs/list/List.definition.d.ts delete mode 100644 lib/zosjobs/list/List.definition.js delete mode 100644 lib/zosjobs/list/List.definition.js.map delete mode 100644 lib/zosjobs/list/jobs/Jobs.definition.d.ts delete mode 100644 lib/zosjobs/list/jobs/Jobs.definition.js delete mode 100644 lib/zosjobs/list/jobs/Jobs.definition.js.map delete mode 100644 lib/zosjobs/list/jobs/Jobs.handler.d.ts delete mode 100644 lib/zosjobs/list/jobs/Jobs.handler.js delete mode 100644 lib/zosjobs/list/jobs/Jobs.handler.js.map delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js delete mode 100644 lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map delete mode 100644 lib/zosjobs/modify/Modify.definition.d.ts delete mode 100644 lib/zosjobs/modify/Modify.definition.js delete mode 100644 lib/zosjobs/modify/Modify.definition.js.map delete mode 100644 lib/zosjobs/modify/job/Job.definition.d.ts delete mode 100644 lib/zosjobs/modify/job/Job.definition.js delete mode 100644 lib/zosjobs/modify/job/Job.definition.js.map delete mode 100644 lib/zosjobs/modify/job/Job.handler.d.ts delete mode 100644 lib/zosjobs/modify/job/Job.handler.js delete mode 100644 lib/zosjobs/modify/job/Job.handler.js.map delete mode 100644 lib/zosjobs/submit/Submit.definition.d.ts delete mode 100644 lib/zosjobs/submit/Submit.definition.js delete mode 100644 lib/zosjobs/submit/Submit.definition.js.map delete mode 100644 lib/zosjobs/submit/Submit.shared.handler.d.ts delete mode 100644 lib/zosjobs/submit/Submit.shared.handler.js delete mode 100644 lib/zosjobs/submit/Submit.shared.handler.js.map delete mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.d.ts delete mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.js delete mode 100644 lib/zosjobs/submit/data-set/DataSet.definition.js.map delete mode 100644 lib/zosjobs/submit/local-file/localFile.definition.d.ts delete mode 100644 lib/zosjobs/submit/local-file/localFile.definition.js delete mode 100644 lib/zosjobs/submit/local-file/localFile.definition.js.map delete mode 100644 lib/zosjobs/submit/stdin/stdin.definition.d.ts delete mode 100644 lib/zosjobs/submit/stdin/stdin.definition.js delete mode 100644 lib/zosjobs/submit/stdin/stdin.definition.js.map delete mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.d.ts delete mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.js delete mode 100644 lib/zosjobs/submit/uss-file/USSFile.definition.js.map delete mode 100644 lib/zosjobs/view/View.definition.d.ts delete mode 100644 lib/zosjobs/view/View.definition.js delete mode 100644 lib/zosjobs/view/View.definition.js.map delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js delete mode 100644 lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js delete mode 100644 lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js delete mode 100644 lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map delete mode 100644 lib/zoslogs/list/List.definition.d.ts delete mode 100644 lib/zoslogs/list/List.definition.js delete mode 100644 lib/zoslogs/list/List.definition.js.map delete mode 100644 lib/zoslogs/list/logs/Logs.definition.d.ts delete mode 100644 lib/zoslogs/list/logs/Logs.definition.js delete mode 100644 lib/zoslogs/list/logs/Logs.definition.js.map delete mode 100644 lib/zoslogs/list/logs/Logs.handler.d.ts delete mode 100644 lib/zoslogs/list/logs/Logs.handler.js delete mode 100644 lib/zoslogs/list/logs/Logs.handler.js.map delete mode 100644 lib/zosmf/check/Check.definition.d.ts delete mode 100644 lib/zosmf/check/Check.definition.js delete mode 100644 lib/zosmf/check/Check.definition.js.map delete mode 100644 lib/zosmf/check/status/Status.definition.d.ts delete mode 100644 lib/zosmf/check/status/Status.definition.js delete mode 100644 lib/zosmf/check/status/Status.definition.js.map delete mode 100644 lib/zosmf/check/status/Status.handler.d.ts delete mode 100644 lib/zosmf/check/status/Status.handler.js delete mode 100644 lib/zosmf/check/status/Status.handler.js.map delete mode 100644 lib/zosmf/constants/CheckStatus.messages.d.ts delete mode 100644 lib/zosmf/constants/CheckStatus.messages.js delete mode 100644 lib/zosmf/constants/CheckStatus.messages.js.map delete mode 100644 lib/zosmf/list/List.definition.d.ts delete mode 100644 lib/zosmf/list/List.definition.js delete mode 100644 lib/zosmf/list/List.definition.js.map delete mode 100644 lib/zosmf/list/systems/Systems.definition.d.ts delete mode 100644 lib/zosmf/list/systems/Systems.definition.js delete mode 100644 lib/zosmf/list/systems/Systems.definition.js.map delete mode 100644 lib/zosmf/list/systems/Systems.handler.d.ts delete mode 100644 lib/zosmf/list/systems/Systems.handler.js delete mode 100644 lib/zosmf/list/systems/Systems.handler.js.map delete mode 100644 lib/zostso/constants/ZosTso.constants.d.ts delete mode 100644 lib/zostso/constants/ZosTso.constants.js delete mode 100644 lib/zostso/constants/ZosTso.constants.js.map delete mode 100644 lib/zostso/issue/Issue.definition.d.ts delete mode 100644 lib/zostso/issue/Issue.definition.js delete mode 100644 lib/zostso/issue/Issue.definition.js.map delete mode 100644 lib/zostso/issue/command/Command.definition.d.ts delete mode 100644 lib/zostso/issue/command/Command.definition.js delete mode 100644 lib/zostso/issue/command/Command.definition.js.map delete mode 100644 lib/zostso/issue/command/Command.handler.d.ts delete mode 100644 lib/zostso/issue/command/Command.handler.js delete mode 100644 lib/zostso/issue/command/Command.handler.js.map delete mode 100644 lib/zostso/ping/Ping.definition.d.ts delete mode 100644 lib/zostso/ping/Ping.definition.js delete mode 100644 lib/zostso/ping/Ping.definition.js.map delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.js delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.definition.js.map delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.js delete mode 100644 lib/zostso/ping/address_space/PingAddressSpace.handler.js.map delete mode 100644 lib/zostso/send/Send.definition.d.ts delete mode 100644 lib/zostso/send/Send.definition.js delete mode 100644 lib/zostso/send/Send.definition.js.map delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.js delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.definition.js.map delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.js delete mode 100644 lib/zostso/send/address_space/SendToAddressSpace.handler.js.map delete mode 100644 lib/zostso/start/Start.definition.d.ts delete mode 100644 lib/zostso/start/Start.definition.js delete mode 100644 lib/zostso/start/Start.definition.js.map delete mode 100644 lib/zostso/start/address-space/AddressSpace.definition.d.ts delete mode 100644 lib/zostso/start/address-space/AddressSpace.definition.js delete mode 100644 lib/zostso/start/address-space/AddressSpace.definition.js.map delete mode 100644 lib/zostso/start/address-space/AddressSpace.handler.d.ts delete mode 100644 lib/zostso/start/address-space/AddressSpace.handler.js delete mode 100644 lib/zostso/start/address-space/AddressSpace.handler.js.map delete mode 100644 lib/zostso/stop/Stop.definition.d.ts delete mode 100644 lib/zostso/stop/Stop.definition.js delete mode 100644 lib/zostso/stop/Stop.definition.js.map delete mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.d.ts delete mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.js delete mode 100644 lib/zostso/stop/address-space/AddressSpace.definition.js.map delete mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.d.ts delete mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.js delete mode 100644 lib/zostso/stop/address-space/AddressSpace.handler.js.map delete mode 100644 lib/zosuss/issue/Issue.definition.d.ts delete mode 100644 lib/zosuss/issue/Issue.definition.js delete mode 100644 lib/zosuss/issue/Issue.definition.js.map delete mode 100644 lib/zosuss/issue/ssh/Ssh.definition.d.ts delete mode 100644 lib/zosuss/issue/ssh/Ssh.definition.js delete mode 100644 lib/zosuss/issue/ssh/Ssh.definition.js.map delete mode 100644 lib/zosuss/issue/ssh/Ssh.handler.d.ts delete mode 100644 lib/zosuss/issue/ssh/Ssh.handler.js delete mode 100644 lib/zosuss/issue/ssh/Ssh.handler.js.map diff --git a/lib/config/auto-init/ApimlAutoInitHandler.d.ts b/lib/config/auto-init/ApimlAutoInitHandler.d.ts deleted file mode 100644 index f3b371ae87..0000000000 --- a/lib/config/auto-init/ApimlAutoInitHandler.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { BaseAutoInitHandler, AbstractSession, ICommandArguments, IConfig, ISession, IHandlerResponseApi, IHandlerParameters } from "@zowe/imperative"; -/** - * This class is used by the auth command handlers as the base class for their implementation. - */ -export default class ApimlAutoInitHandler extends BaseAutoInitHandler { - /** - * The profile type where token type and value should be stored - */ - protected mProfileType: string; - /** - * The description of your service to be used in CLI prompt messages - */ - protected mServiceDescription: string; - private readonly NO_CHANGES_MSG; - private readonly CREATED_MSG; - private readonly MODIFIED_MSG; - private readonly REMOVED_MSG; - private readonly WARNING_MSG; - /** - * This structure is populated during convertApimlProfileInfoToProfileConfig - * and retrieved by the auto-init command handler to provide the data for the - * output of the auto-init command. - * @private - */ - private mAutoInitReport; - /** - * This is called by the {@link BaseAuthHandler#process} when it needs a - * session. Should be used to create a session to connect to the auto-init - * service. - * @param {ICommandArguments} args The command line arguments to use for building the session - * @returns {ISession} The session object built from the command line arguments. - */ - protected createSessCfgFromArgs: (args: ICommandArguments) => ISession; - /** - * This is called by the "auto-init" command after it creates a session, to generate a configuration - * @param {AbstractSession} session The session object to use to connect to the configuration service - * @returns {Promise} The response from the auth service containing a token - * @throws {ImperativeError} - */ - protected doAutoInit(session: AbstractSession, params: IHandlerParameters): Promise; - /** - * This is called by our processAutoInit() base class function to display the set of actions - * taken by the auto-init command. - */ - protected displayAutoInitChanges(response: IHandlerResponseApi): void; - /** - * Colorize a change keyword for a message to be displayed. - * - * @param {string} changeKeyWd - * The keyword that we want to colorize. - * - * @returns {string} A string with the keyword in the appropriate color. - */ - private colorizeKeyword; - /** - * Record the set of profiles found by our interrogation of plugins and APIML. - * The information is re-arranged to enable easy reporting of the desired information. - * This function assumes that the 'services' module continues to use its algorithm - * in which the first profile of a given type is the profile that we select.. - * If that changes, this function must also change. - * - * @param {IApimlProfileInfo} apimlProfInfos - * The profileInfo array returned by services.getServicesByConfig(). - */ - private recordProfilesFound; - /** - * Record how the profiles have been updated by auto-init. - */ - private recordProfileUpdates; - /** - * Record the change message for one profile with the - * this.mAutoInitReport.profileRpts array. - * - * @param {string} profNmToRecord - * The name of the profile for which we want to record a change. - * - * @param {IConfigProfile} profObj - * An IConfigProfile object which is used when a new entry must be - * created in the profileRpts array. - * - * @param {string} msgToRecord - * The message to record for the type of change to this profile. - */ - private recordOneProfChange; - /** - * Record info about profile properties that override properties defined in - * the base profile. These properties may prevent connecting to the APIML. - */ - private recordProfileConflictsWithBase; -} diff --git a/lib/config/auto-init/ApimlAutoInitHandler.js b/lib/config/auto-init/ApimlAutoInitHandler.js deleted file mode 100644 index ab41c0ea0e..0000000000 --- a/lib/config/auto-init/ApimlAutoInitHandler.js +++ /dev/null @@ -1,474 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const path = require("path"); -const lodash = require("lodash"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const imperative_1 = require("@zowe/imperative"); -const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk"); -/** - * This class is used by the auth command handlers as the base class for their implementation. - */ -class ApimlAutoInitHandler extends imperative_1.BaseAutoInitHandler { - constructor() { - super(...arguments); - /** - * The profile type where token type and value should be stored - */ - this.mProfileType = "base"; - /** - * The description of your service to be used in CLI prompt messages - */ - this.mServiceDescription = "your API Mediation Layer"; - this.NO_CHANGES_MSG = "No changes to"; - this.CREATED_MSG = "Created"; - this.MODIFIED_MSG = "Modified"; - this.REMOVED_MSG = "Removed"; - this.WARNING_MSG = "Warning:"; - /** - * This structure is populated during convertApimlProfileInfoToProfileConfig - * and retrieved by the auto-init command handler to provide the data for the - * output of the auto-init command. - * @private - */ - this.mAutoInitReport = { - configFileNm: "", - changeForConfig: this.NO_CHANGES_MSG, - startingConfig: null, - endingConfig: null, - profileRpts: [] - }; - /** - * This is called by the {@link BaseAuthHandler#process} when it needs a - * session. Should be used to create a session to connect to the auto-init - * service. - * @param {ICommandArguments} args The command line arguments to use for building the session - * @returns {ISession} The session object built from the command line arguments. - */ - this.createSessCfgFromArgs = zosmf_for_zowe_sdk_1.ZosmfSession.createSessCfgFromArgs; - } - /** - * This is called by the "auto-init" command after it creates a session, to generate a configuration - * @param {AbstractSession} session The session object to use to connect to the configuration service - * @returns {Promise} The response from the auth service containing a token - * @throws {ImperativeError} - */ - doAutoInit(session, params) { - return __awaiter(this, void 0, void 0, function* () { - // Login with token authentication first, so we can support certificates - if ((session.ISession.user && session.ISession.password) || (session.ISession.cert && session.ISession.certKey)) { - // If it is basic authentication, we need to set the auth type. - if (session.ISession.tokenType == null) { - session.ISession.tokenType = imperative_1.SessConstants.TOKEN_TYPE_APIML; - } - session.ISession.storeCookie = true; - session.ISession.tokenValue = yield core_for_zowe_sdk_1.Login.apimlLogin(session); - session.ISession.storeCookie = false; - session.ISession.type = imperative_1.SessConstants.AUTH_TYPE_TOKEN; - session.ISession.base64EncodedAuth = - session.ISession.user = session.ISession.password = - session.ISession.cert = session.ISession.certKey = undefined; - } - const restErrUnauthorized = 403; - const configs = core_for_zowe_sdk_1.Services.getPluginApimlConfigs(); - let profileInfos; - try { - profileInfos = yield core_for_zowe_sdk_1.Services.getServicesByConfig(session, configs); - } - catch (err) { - if (err instanceof imperative_1.RestClientError && err.mDetails && err.mDetails.httpStatus && err.mDetails.httpStatus === restErrUnauthorized) { - throw new imperative_1.ImperativeError({ - msg: "HTTP(S) error status 403 received. Verify the user has access to the APIML API Services SAF resource.", - additionalDetails: err.mDetails.additionalDetails, - causeErrors: err - }); - } - else { - throw err; - } - } - const profileConfig = core_for_zowe_sdk_1.Services.convertApimlProfileInfoToProfileConfig(profileInfos); - const config = imperative_1.ImperativeConfig.instance.config; - // Check to see if there is an active base profile to avoid creating a new one named "base" - let activeBaseProfile = params.arguments[`${this.mProfileType}-profile`] || config.properties.defaults[this.mProfileType]; - let baseProfileCreated = false; - // Populate the config with base profile information - if (activeBaseProfile == null) { - profileConfig.profiles[this.mProfileType] = { - type: this.mProfileType, - properties: { - host: session.ISession.hostname, - port: session.ISession.port, - rejectUnauthorized: session.ISession.rejectUnauthorized - }, - secure: [] - }; - profileConfig.defaults[this.mProfileType] = this.mProfileType; - activeBaseProfile = this.mProfileType; - baseProfileCreated = true; - } - else { - lodash.set(profileConfig, config.api.profiles.getProfilePathFromName(activeBaseProfile), { - type: this.mProfileType, - properties: Object.assign(Object.assign({}, config.api.profiles.get(activeBaseProfile)), { host: session.ISession.hostname, port: session.ISession.port, rejectUnauthorized: session.ISession.rejectUnauthorized }), - secure: [] - }); - } - if (session.ISession.tokenType != null && session.ISession.tokenValue != null) { - const expandedBaseProfilePath = config.api.profiles.getProfilePathFromName(activeBaseProfile); - lodash.get(profileConfig, expandedBaseProfilePath).properties.tokenType = session.ISession.tokenType; - lodash.get(profileConfig, expandedBaseProfilePath).properties.tokenValue = session.ISession.tokenValue; - lodash.get(profileConfig, expandedBaseProfilePath).secure.push("tokenValue"); - } - this.recordProfilesFound(profileInfos); - // Report whether or not we created a base profile in this auto-init execution - this.mAutoInitReport.profileRpts.push({ - profName: this.mProfileType, - profType: this.mProfileType, - changeForProf: baseProfileCreated ? "created" : "modified", - basePath: null, - pluginNms: [], - altProfiles: [], - baseOverrides: [] - }); - return profileConfig; - }); - } - /** - * This is called by our processAutoInit() base class function to display the set of actions - * taken by the auto-init command. - */ - displayAutoInitChanges(response) { - // all profile updates have been made. Now we can record those updates. - this.recordProfileUpdates(); - if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) { - response.console.log("No changes were needed in the existing Zowe configuration file '" + - path.basename(this.mAutoInitReport.configFileNm) + "'."); - return; - } - // Report the type of config file changes - response.console.log(this.colorizeKeyword(this.mAutoInitReport.changeForConfig) + - " the Zowe configuration file '" + - path.basename(this.mAutoInitReport.configFileNm) + "'."); - // display information about each profile - for (const nextProfRpt of this.mAutoInitReport.profileRpts) { - let defOrAlt; - const isDefaultProf = this.mAutoInitReport.endingConfig.properties.defaults[nextProfRpt.profType] === - nextProfRpt.profName; - if (isDefaultProf) { - defOrAlt = "default"; - } - else { - defOrAlt = "alternate"; - } - let msg; - msg = "\n" + this.colorizeKeyword(nextProfRpt.changeForProf) + " " + defOrAlt + - " profile '" + nextProfRpt.profName + "' of type '" + nextProfRpt.profType + "'"; - if (nextProfRpt.profType !== "base") { - msg += " with basePath '" + nextProfRpt.basePath + "'"; - } - response.console.log(msg); - // only report plugins and alternates for the default profile of each type - if (!isDefaultProf) { - continue; - } - // report plugins using this profile (except for base profiles) - let loopCount; - if (nextProfRpt.pluginNms.length > 0) { - if (nextProfRpt.profType !== this.mProfileType) { - loopCount = 1; - for (const pluginNm of nextProfRpt.pluginNms) { - if (loopCount == 1) { - msg = " Packages that use profile type '" + nextProfRpt.profType + "': "; - } - else { - msg += ", "; - } - msg += pluginNm; - loopCount++; - } - response.console.log(msg); - } - } - // display the alternate profiles - if (nextProfRpt.altProfiles.length > 0) { - loopCount = 1; - for (const altProf of nextProfRpt.altProfiles) { - if (loopCount == 1) { - msg = " Alternate profiles of type '" + nextProfRpt.profType + "': "; - } - else { - msg += ", "; - } - msg += altProf.altProfName; - loopCount++; - } - response.console.log(msg); - } - if (nextProfRpt.baseOverrides.length > 0) { - const baseProfileName = this.mAutoInitReport.endingConfig.properties.defaults.base; - msg = ` ${this.colorizeKeyword(this.WARNING_MSG)} This profile may require manual edits to work with APIML:`; - for (const baseOverride of nextProfRpt.baseOverrides) { - msg += `\n ${baseOverride.propName}: `; - if (!baseOverride.secure) { - msg += `'${baseOverride.priorityValue}' overrides '${baseOverride.baseValue}' in`; - } - else { - msg += "secure value " + ((baseOverride.priorityValue != null) ? "overrides" : "may override"); - } - msg += ` profile '${baseProfileName}'`; - } - response.console.log(msg); - } - } - response.console.log("\nYou can edit this configuration file to change your Zowe configuration:\n " + - this.mAutoInitReport.configFileNm); - } - /** - * Colorize a change keyword for a message to be displayed. - * - * @param {string} changeKeyWd - * The keyword that we want to colorize. - * - * @returns {string} A string with the keyword in the appropriate color. - */ - colorizeKeyword(changeKeyword) { - let keywordInColor; - switch (changeKeyword) { - case this.CREATED_MSG: - case this.MODIFIED_MSG: - keywordInColor = imperative_1.TextUtils.chalk.greenBright(changeKeyword); - break; - case this.REMOVED_MSG: - keywordInColor = imperative_1.TextUtils.chalk.redBright(changeKeyword); - break; - case this.WARNING_MSG: - keywordInColor = imperative_1.TextUtils.chalk.yellowBright(changeKeyword); - break; - default: - keywordInColor = changeKeyword; - break; - } - return keywordInColor; - } - /** - * Record the set of profiles found by our interrogation of plugins and APIML. - * The information is re-arranged to enable easy reporting of the desired information. - * This function assumes that the 'services' module continues to use its algorithm - * in which the first profile of a given type is the profile that we select.. - * If that changes, this function must also change. - * - * @param {IApimlProfileInfo} apimlProfInfos - * The profileInfo array returned by services.getServicesByConfig(). - */ - recordProfilesFound(apimlProfInfos) { - // record our starting config - if (imperative_1.ImperativeConfig.instance.config.exists) { - this.mAutoInitReport.startingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get(); - } - else { - this.mAutoInitReport.startingConfig = null; - } - // Record the profiles found by APIML for each profile type - for (const currProfInfo of apimlProfInfos) { - const newProfRpt = { - changeForProf: this.NO_CHANGES_MSG, - profName: currProfInfo.profName, - profType: currProfInfo.profType, - basePath: currProfInfo.basePaths[0], - pluginNms: [], - altProfiles: [], - baseOverrides: [] - }; - // add all of the plugins using this profile - for (const nextPlugin of currProfInfo.pluginConfigs) { - newProfRpt.pluginNms.push(nextPlugin.pluginName); - } - // each additional basePath for the current plugin is an alternate - for (let basePathInx = 1; basePathInx < currProfInfo.basePaths.length; basePathInx++) { - newProfRpt.altProfiles.push({ - altProfName: currProfInfo.profName, - altProfType: currProfInfo.profType, - altBasePath: currProfInfo.basePaths[basePathInx] - }); - } - // each of the other profiles of the same profile type is an alternate - for (const nextProfInfoOfType of apimlProfInfos) { - if (nextProfInfoOfType.profName !== currProfInfo.profName && - nextProfInfoOfType.profType === currProfInfo.profType) { - // each basePath constitutes another alternate - for (const nextBasePath of nextProfInfoOfType.basePaths) { - newProfRpt.altProfiles.push({ - altProfName: nextProfInfoOfType.profName, - altProfType: nextProfInfoOfType.profType, - altBasePath: nextBasePath - }); - } - } - } - this.mAutoInitReport.profileRpts.push(newProfRpt); - } - } - /** - * Record how the profiles have been updated by auto-init. - */ - recordProfileUpdates() { - // get our current (ending) config - this.mAutoInitReport.endingConfig = imperative_1.ImperativeConfig.instance.config.api.layers.get(); - // record the config file name path - this.mAutoInitReport.configFileNm = this.mAutoInitReport.endingConfig.path; - this.mAutoInitReport.changeForConfig = this.NO_CHANGES_MSG; - if (this.mAutoInitReport.startingConfig === null) { - // We started with no config file, so everything was created. - this.mAutoInitReport.changeForConfig = this.CREATED_MSG; - for (const nextProfRpt of this.mAutoInitReport.profileRpts) { - nextProfRpt.changeForProf = this.CREATED_MSG; - } - } - else { - /* We must compare starting config to ending config to determine - * if we created or updated individual profiles. - */ - const startCfgLayer = this.mAutoInitReport.startingConfig; - const endCfgLayer = this.mAutoInitReport.endingConfig; - if (!startCfgLayer.exists && endCfgLayer.exists) { - // the starting config file existed, but was in a different layer - if (this.mAutoInitReport.changeForConfig === this.NO_CHANGES_MSG) { - this.mAutoInitReport.changeForConfig = this.CREATED_MSG; - // each profile in this previously non-existent layer has been created - for (const nextProfRpt of this.mAutoInitReport.profileRpts) { - nextProfRpt.changeForProf = this.CREATED_MSG; - } - } - } - else { - /* We must compare profile-by-profile. - * Look for each profile from the ending config within the starting config - */ - for (const endProfNm of lodash.keys(endCfgLayer.properties.profiles)) { - if (lodash.has(startCfgLayer.properties.profiles, endProfNm)) { - if (lodash.isEqual(startCfgLayer.properties.profiles[endProfNm], endCfgLayer.properties.profiles[endProfNm])) { - // both starting profile and ending profile are the same - this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.NO_CHANGES_MSG); - } - else { - this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.MODIFIED_MSG); - } - } - else { - /* Each profile in the ending config that is not - * in the starting config has been created. - */ - this.recordOneProfChange(endProfNm, endCfgLayer.properties.profiles[endProfNm], this.CREATED_MSG); - } - } - // Look for each profile from the staring config within the ending config - for (const startProfNm of lodash.keys(startCfgLayer.properties.profiles)) { - /* We already recorded a message for profiles that exist in both - * the starting and ending configs in the loop above, - * so just record when the starting profile has been removed. - */ - if (!lodash.has(endCfgLayer.properties.profiles, startProfNm)) { - this.recordOneProfChange(startProfNm, endCfgLayer.properties.profiles[startProfNm], this.REMOVED_MSG); - } - } - this.recordProfileConflictsWithBase(); - } - } - } - /** - * Record the change message for one profile with the - * this.mAutoInitReport.profileRpts array. - * - * @param {string} profNmToRecord - * The name of the profile for which we want to record a change. - * - * @param {IConfigProfile} profObj - * An IConfigProfile object which is used when a new entry must be - * created in the profileRpts array. - * - * @param {string} msgToRecord - * The message to record for the type of change to this profile. - */ - recordOneProfChange(profNmToRecord, profObj, msgToRecord) { - // when any profile has been modified, we know the config was modified - if (msgToRecord !== this.NO_CHANGES_MSG) { - this.mAutoInitReport.changeForConfig = this.MODIFIED_MSG; - } - const profRptInx = lodash.findIndex(this.mAutoInitReport.profileRpts, { profName: profNmToRecord }); - if (profRptInx >= 0) { - // an entry for this profile already exists - this.mAutoInitReport.profileRpts[profRptInx].changeForProf = msgToRecord; - } - else { - // we must create a new IProfileRpt entry - const newProfRpt = { - changeForProf: msgToRecord, - profName: profNmToRecord, - profType: profObj.type, - basePath: lodash.get(profObj, "properties.basePath", "Not supplied"), - pluginNms: [], - altProfiles: [], - baseOverrides: [] - }; - this.mAutoInitReport.profileRpts.push(newProfRpt); - } - } - /** - * Record info about profile properties that override properties defined in - * the base profile. These properties may prevent connecting to the APIML. - */ - recordProfileConflictsWithBase() { - var _a, _b; - const configApi = imperative_1.ImperativeConfig.instance.config.api; - const configJson = this.mAutoInitReport.endingConfig.properties; - const baseProfileName = (_a = configJson.defaults) === null || _a === void 0 ? void 0 : _a.base; - if (baseProfileName == null) { - return; // default base profile is undefined - } - const baseProfile = lodash.get(configJson, configApi.profiles.getProfilePathFromName(baseProfileName)); - if (baseProfile == null) { - return; // default base profile is invalid - } - for (const profileRpt of this.mAutoInitReport.profileRpts) { - if (profileRpt.changeForProf === this.MODIFIED_MSG && profileRpt.profType !== "base") { - const serviceProfile = lodash.get(configJson, configApi.profiles.getProfilePathFromName(profileRpt.profName)); - for (const [name, value] of Object.entries(baseProfile.properties)) { - if (serviceProfile.properties[name] != null && serviceProfile.properties[name] !== baseProfile.properties[name]) { - profileRpt.baseOverrides.push({ - propName: name, - secure: (baseProfile.secure || []).includes(name) || (serviceProfile.secure || []).includes(name), - priorityValue: serviceProfile.properties[name], - baseValue: value - }); - } - } - for (const name of (baseProfile.secure || [])) { - if ((_b = serviceProfile.secure) === null || _b === void 0 ? void 0 : _b.includes(name)) { - profileRpt.baseOverrides.push({ propName: name, secure: true }); - } - } - } - } - } -} -exports.default = ApimlAutoInitHandler; -//# sourceMappingURL=ApimlAutoInitHandler.js.map \ No newline at end of file diff --git a/lib/config/auto-init/ApimlAutoInitHandler.js.map b/lib/config/auto-init/ApimlAutoInitHandler.js.map deleted file mode 100644 index 9bdc7497f8..0000000000 --- a/lib/config/auto-init/ApimlAutoInitHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ApimlAutoInitHandler.js","sourceRoot":"","sources":["../../../src/config/auto-init/ApimlAutoInitHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,6BAA6B;AAC7B,iCAAiC;AAEjC,iEAAwD;AACxD,iDAG0B;AAC1B,+DAAwG;AAExG;;GAEG;AACH,MAAqB,oBAAqB,SAAQ,gCAAmB;IAArE;;QACI;;WAEG;QACO,iBAAY,GAAW,MAAM,CAAC;QAExC;;WAEG;QACO,wBAAmB,GAAW,0BAA0B,CAAC;QAElD,mBAAc,GAAG,eAAe,CAAC;QACjC,gBAAW,GAAG,SAAS,CAAC;QACxB,iBAAY,GAAG,UAAU,CAAC;QAC1B,gBAAW,GAAG,SAAS,CAAC;QACxB,gBAAW,GAAG,UAAU,CAAC;QAE1C;;;;;WAKG;QACK,oBAAe,G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IAAI,UAAU,CAAC,QAAQ,KAAK,MAAM,EAAE;gBAClF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAmB,CAAC;gBAChI,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;oBAChE,IAAI,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;wBAC7G,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC;4BAC1B,QAAQ,EAAE,IAAI;4BACd,MAAM,EAAE,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;4BACjG,aAAa,EAAE,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC;4BAC9C,SAAS,EAAE,KAAK;yBACnB,CAAC,CAAC;qBACN;iBACJ;gBACD,KAAK,MAAM,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE;oBAC3C,IAAI,MAAA,cAAc,CAAC,MAAM,0CAAE,QAAQ,CAAC,IAAI,CAAC,EAAE;wBACvC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;qBACnE;iBACJ;aACJ;SACJ;IACL,CAAC;CACJ;AA7eD,uCA6eC"} \ No newline at end of file diff --git a/lib/daemon/disable/Disable.definition.d.ts b/lib/daemon/disable/Disable.definition.d.ts deleted file mode 100644 index f9483288cc..0000000000 --- a/lib/daemon/disable/Disable.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DisableCommand: ICommandDefinition; diff --git a/lib/daemon/disable/Disable.definition.js b/lib/daemon/disable/Disable.definition.js deleted file mode 100644 index 5d917c9962..0000000000 --- a/lib/daemon/disable/Disable.definition.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DisableCommand = void 0; -exports.DisableCommand = { - name: "disable", - description: "Disables daemon-mode operation of the Zowe CLI.", - type: "command", - handler: __dirname + "/Disable.handler", - examples: [ - { - description: "Disable daemon-mode", - options: "" - } - ] -}; -//# sourceMappingURL=Disable.definition.js.map \ No newline at end of file diff --git a/lib/daemon/disable/Disable.definition.js.map b/lib/daemon/disable/Disable.definition.js.map deleted file mode 100644 index ee820feb96..0000000000 --- a/lib/daemon/disable/Disable.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Disable.definition.js","sourceRoot":"","sources":["../../../src/daemon/disable/Disable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qBAAqB;YAClC,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/disable/Disable.handler.d.ts b/lib/daemon/disable/Disable.handler.d.ts deleted file mode 100644 index 17a198a868..0000000000 --- a/lib/daemon/disable/Disable.handler.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; -/** - * Handler to disable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class DisableDaemonHandler implements ICommandHandler { - /** - * Process the disable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - * @throws {ImperativeError} - */ - process(cmdParams: IHandlerParameters): Promise; - /** - * Disable daemon mode. - * - * @throws {ImperativeError} - */ - private disableDaemon; - /** - * Read the process ID for a daemon running for the current user from - * the pid file of the current user. The format of the PID file is: - * { - * user: string - * pid: number - * } - * - * @param daemonPidFileNm The file name containing the PID for the daemon. - * - * @returns The Pid of the daemon for the current user. - * Returns null if no daemon PID is recorded for the user. - */ - private static readMyDaemonPid; -} diff --git a/lib/daemon/disable/Disable.handler.js b/lib/daemon/disable/Disable.handler.js deleted file mode 100644 index 00c9228249..0000000000 --- a/lib/daemon/disable/Disable.handler.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const nodeJsPath = require("path"); -const os = require("os"); -const imperative_1 = require("@zowe/imperative"); -/** - * Handler to disable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class DisableDaemonHandler { - /** - * Process the disable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - * @throws {ImperativeError} - */ - process(cmdParams) { - return __awaiter(this, void 0, void 0, function* () { - try { - yield this.disableDaemon(); - } - catch (impErr) { - cmdParams.response.console.log("Failed to disable Zowe CLI daemon mode.\n" + impErr.message); - cmdParams.response.data.setExitCode(1); - return; - } - cmdParams.response.console.log("Zowe CLI daemon mode is disabled."); - if (imperative_1.ProcessUtils.getBasicSystemInfo().platform != "win32") { - cmdParams.response.console.log("To run further Zowe commands, close this terminal and open a new terminal."); - } - cmdParams.response.data.setExitCode(0); - }); - } - /** - * Disable daemon mode. - * - * @throws {ImperativeError} - */ - disableDaemon() { - return __awaiter(this, void 0, void 0, function* () { - // form the path to the bin directory in ZOWE_CLI_HOME - let zoweExePath = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + "/bin/"); - // determine our current OS - const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); - // add the right EXE file name for the current OS - switch (sysInfo.platform) { - case "darwin": - case "linux": { - zoweExePath += "zowe"; - break; - } - case "win32": { - zoweExePath += "zowe.exe"; - break; - } - default: { - throw new imperative_1.ImperativeError({ - msg: `Daemon mode is not supported on the '${sysInfo.platform}' operating system.` - }); - } - } - // remove the EXE if it exists - if (imperative_1.IO.existsSync(zoweExePath)) { - imperative_1.IO.deleteFile(zoweExePath); - } - // form the path to the daemon PID file - const daemonPidFileNm = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + - "/daemon/daemon_pid.json"); - const myDaemonPid = DisableDaemonHandler.readMyDaemonPid(daemonPidFileNm); - if (myDaemonPid) { - // find processes running "node" - let procArray; - try { - const findProc = require('find-process'); - procArray = yield findProc('name', 'node', true); - } - catch (err) { - /* This catch is not invoked, because the find-process.finders[].win32.utils.spawn function - * does not add an on("error") event handler for the child_process.spawn() function it calls. - * Thus, ENOENT is emitted as an uncatchable event. Thanks find-process! - * If a user gets an error like this, just tell him that powershell is not on his PATH. - * Typically it should be. The same type of error might occur on Linux if 'ps' were not - * on the user's PATH. - */ - let powerShellHint = ""; - if (err.message.includes("powershell.exe ENOENT")) { - powerShellHint = "\nPowershell.exe may not be on your PATH."; - } - throw new imperative_1.ImperativeError({ - msg: "Failed while searching for the Zowe CLI daemon process.\n" - + `Reason: ${err}` - + powerShellHint - }); - } - // match and kill the running Zowe daemon for this user - let foundOurDaemon = false; - const zoweDaemonCmdRegEx = "node.*zowe.*--daemon$"; - for (const nextProc of procArray) { - if (nextProc.cmd.match(zoweDaemonCmdRegEx) && nextProc.pid == myDaemonPid) { - process.kill(nextProc.pid, "SIGINT"); - foundOurDaemon = true; - break; - } - } - if (!foundOurDaemon) { - imperative_1.Logger.getAppLogger().warn("No daemon running for user '" + - os.userInfo().username + "' with the recorded PID " + myDaemonPid); - } - } // end if myDaemonPid - // delete the daemon PID file, so no false record of a daemon remains - if (imperative_1.IO.existsSync(daemonPidFileNm)) { - imperative_1.IO.deleteFile(daemonPidFileNm); - } - }); - } - /** - * Read the process ID for a daemon running for the current user from - * the pid file of the current user. The format of the PID file is: - * { - * user: string - * pid: number - * } - * - * @param daemonPidFileNm The file name containing the PID for the daemon. - * - * @returns The Pid of the daemon for the current user. - * Returns null if no daemon PID is recorded for the user. - */ - static readMyDaemonPid(daemonPidFileNm) { - if (imperative_1.IO.existsSync(daemonPidFileNm)) { - try { - const pidFileContents = JSON.parse(imperative_1.IO.readFileSync(daemonPidFileNm).toString()); - const myUserName = os.userInfo().username; - if ((pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.user) != myUserName) { - imperative_1.Logger.getAppLogger().error(`Daemon PID file '${daemonPidFileNm}' contains ` + - `user '${pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.user}'. It should be user '${myUserName}'.`); - return null; - } - if (typeof (pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid) === "number" && Number.isInteger(pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid)) { - return pidFileContents.pid; - } - else { - imperative_1.Logger.getAppLogger().error(`Daemon PID file '${daemonPidFileNm}' ` + - `contains invalid PID value = '${pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid}' of type ` + - typeof (pidFileContents === null || pidFileContents === void 0 ? void 0 : pidFileContents.pid)); - } - } - catch (caughtErr) { - imperative_1.Logger.getAppLogger().error("Unable to read daemon PID file '" + - daemonPidFileNm + "'\nReason: " + caughtErr); - } - } - // it's ok if no PID file exists - return null; - } -} -exports.default = DisableDaemonHandler; -//# sourceMappingURL=Disable.handler.js.map \ No newline at end of file diff --git a/lib/daemon/disable/Disable.handler.js.map b/lib/daemon/disable/Disable.handler.js.map deleted file mode 100644 index c966fa25f3..0000000000 --- a/lib/daemon/disable/Disable.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Disable.handler.js","sourceRoot":"","sources":["../../../src/daemon/disable/Disable.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,mCAAmC;AACnC,yBAAyB;AAEzB,iDAG0B;AAE1B;;;;;GAKG;AACH,MAAqB,oBAAoB;IACrC;;;;;;;OAOG;IACU,OAAO,CAAC,SAA6B;;YAC9C,IAAI;gBACA,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;aAC9B;YAAC,OAAO,MAAM,EAAE;gBACb,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2CAA2C,GAAI,MAA0B,CAAC,OAAO,CAAC,CAAC;gBAClH,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;gBACvC,OAAO;aACV;YAED,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;YACpE,IAAI,yBAAY,CAAC,kBAAkB,EAAE,CAAC,QAAQ,IAAI,OAAO,EAAE;gBACvD,SAAS,CAAC,QAAQ,CAAC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000000 --- a/lib/daemon/doc/IDaemonEnableQuestions.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Specifies wwhether questions can be asked of the user, and if not, - * what value should be used for a question when we do not ask. - */ -export interface IDaemonEnableQuestions { - canAskUser: boolean; - addBinToPathVal: string; -} diff --git a/lib/daemon/doc/IDaemonEnableQuestions.js b/lib/daemon/doc/IDaemonEnableQuestions.js deleted file mode 100644 index 12d638719e..0000000000 --- a/lib/daemon/doc/IDaemonEnableQuestions.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IDaemonEnableQuestions.js.map \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonEnableQuestions.js.map b/lib/daemon/doc/IDaemonEnableQuestions.js.map deleted file mode 100644 index 5b9cc523dd..0000000000 --- a/lib/daemon/doc/IDaemonEnableQuestions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IDaemonEnableQuestions.js","sourceRoot":"","sources":["../../../src/daemon/doc/IDaemonEnableQuestions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonPidForUser.d.ts b/lib/daemon/doc/IDaemonPidForUser.d.ts deleted file mode 100644 index f40e21f913..0000000000 --- a/lib/daemon/doc/IDaemonPidForUser.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Represents the content of the JSON file into which the Zowe Daemon - * stores the process ID for a given user. - */ -export interface IDaemonPidForUser { - user: string; - pid: number; -} diff --git a/lib/daemon/doc/IDaemonPidForUser.js b/lib/daemon/doc/IDaemonPidForUser.js deleted file mode 100644 index a350162f96..0000000000 --- a/lib/daemon/doc/IDaemonPidForUser.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IDaemonPidForUser.js.map \ No newline at end of file diff --git a/lib/daemon/doc/IDaemonPidForUser.js.map b/lib/daemon/doc/IDaemonPidForUser.js.map deleted file mode 100644 index 40eec82f3c..0000000000 --- a/lib/daemon/doc/IDaemonPidForUser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IDaemonPidForUser.js","sourceRoot":"","sources":["../../../src/daemon/doc/IDaemonPidForUser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/daemon/enable/Enable.definition.d.ts b/lib/daemon/enable/Enable.definition.d.ts deleted file mode 100644 index b036e38d1c..0000000000 --- a/lib/daemon/enable/Enable.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const EnableCommand: ICommandDefinition; diff --git a/lib/daemon/enable/Enable.definition.js b/lib/daemon/enable/Enable.definition.js deleted file mode 100644 index 7581890366..0000000000 --- a/lib/daemon/enable/Enable.definition.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EnableCommand = void 0; -exports.EnableCommand = { - name: "enable", - description: "Enables daemon-mode operation of the Zowe CLI. " + - "You only need to run the enable command once after each " + - "new installation of the Zowe CLI. Afterwards, any zowe command " + - "will automatically start a daemon as needed.", - type: "command", - handler: __dirname + "/Enable.handler", - examples: [ - { - description: "Enable daemon-mode", - options: "" - } - ] -}; -//# sourceMappingURL=Enable.definition.js.map \ No newline at end of file diff --git a/lib/daemon/enable/Enable.definition.js.map b/lib/daemon/enable/Enable.definition.js.map deleted file mode 100644 index 5f3e8a8704..0000000000 --- a/lib/daemon/enable/Enable.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Enable.definition.js","sourceRoot":"","sources":["../../../src/daemon/enable/Enable.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iDAAiD;QAC1D,0DAA0D;QAC1D,iEAAiE;QACjE,8CAA8C;IAClD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oBAAoB;YACjC,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/enable/Enable.handler.d.ts b/lib/daemon/enable/Enable.handler.d.ts deleted file mode 100644 index 1c13df5db9..0000000000 --- a/lib/daemon/enable/Enable.handler.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; -/** - * Handler to enable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class EnableDaemonHandler implements ICommandHandler { - private static openNewTerminalMsg; - /** - * Process the enable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - * @throws {ImperativeError} - */ - process(cmdParams: IHandlerParameters): Promise; - /** - * Enable daemon mode. We extract our native executable and place it - * in ZOWE_CLI_HOME/bin. - * - * @throws {ImperativeError} - * - * @param {boolean} canAskQuestions Can we interactively ask the user questions? - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - private enableDaemon; - /** - * Unzip, from a gzipped tar file, any file that contains fileToExtract as a - * substring of the file name. The file will be placed into toDir. - * We expect toDir to already exist. - * - * @param tgzFile The gzipped tar file that we will extract - * - * @param toDir The directory into which we extract files - * - * @param fileToExtract The file name (or substring of the file name) to extract. - * - * @throws {ImperativeError} - * @returns A void promise to synchronize this operation. - */ - private unzipTgz; - /** - * Add our .zowe/bin directory to the user's PATH. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @param {IDaemonEnableQuestions} userQuestions Questions for user (if permitted) - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - private addZoweBinToPath; - /** - * Add our .zowe/bin directory to the front of the user's PATH on Windows. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - private addZoweBinOnWindows; - /** - * Add our .zowe/bin directory to the front of the user's PATH on Linux and MAC. - * Do that by adding a line at the end of the user's .profile file. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - private addZoweBinOnPosix; -} diff --git a/lib/daemon/enable/Enable.handler.js b/lib/daemon/enable/Enable.handler.js deleted file mode 100644 index 219cb817f3..0000000000 --- a/lib/daemon/enable/Enable.handler.js +++ /dev/null @@ -1,340 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const fs = require("fs"); -const nodeJsPath = require("path"); -const tar = require("tar"); -const child_process_1 = require("child_process"); -const imperative_1 = require("@zowe/imperative"); -/** - * Handler to enable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class EnableDaemonHandler { - /** - * Process the enable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - * @throws {ImperativeError} - */ - process(cmdParams) { - return __awaiter(this, void 0, void 0, function* () { - let userMsg; - try { - const userQuestions = { - /* TODO: Use this code block when we are ready to automatically add zowe/bin to the PATH - canAskUser: true, - addBinToPathVal: "y" - */ - canAskUser: false, - addBinToPathVal: "n" - }; - userMsg = yield this.enableDaemon(userQuestions); - } - catch (impErr) { - cmdParams.response.console.log("Failed to enable Zowe CLI daemon mode.\n" + impErr.message); - cmdParams.response.data.setExitCode(1); - return; - } - cmdParams.response.console.log("Zowe CLI daemon mode is enabled.\n" + userMsg); - cmdParams.response.data.setExitCode(0); - }); - } - /** - * Enable daemon mode. We extract our native executable and place it - * in ZOWE_CLI_HOME/bin. - * - * @throws {ImperativeError} - * - * @param {boolean} canAskQuestions Can we interactively ask the user questions? - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - enableDaemon(userQuestions) { - var _a, _b; - return __awaiter(this, void 0, void 0, function* () { - // determine our current OS - const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); - // form the path to our prebuilds tar file - let preBldTgz = __dirname + "../../../../prebuilds/zowe-"; - let exeFileName = "zowe"; - switch (sysInfo.platform) { - case "darwin": { - preBldTgz += "macos.tgz"; - break; - } - case "linux": { - preBldTgz += "linux.tgz"; - break; - } - case "win32": { - preBldTgz += "windows.tgz"; - exeFileName += ".exe"; - break; - } - default: { - throw new imperative_1.ImperativeError({ - msg: `Daemon mode is not supported on the '${sysInfo.platform}' operating system.` - }); - } - } - preBldTgz = nodeJsPath.normalize(preBldTgz); - if (!imperative_1.IO.existsSync(preBldTgz)) { - throw new imperative_1.ImperativeError({ - msg: `The archive for your OS executable does not exist: ${preBldTgz}` - }); - } - // form the path to the bin directory in ZOWE_CLI_HOME - const pathToZoweBin = nodeJsPath.normalize(imperative_1.ImperativeConfig.instance.cliHome + "/bin"); - // Does the ZOWE_CLI_HOME bin directory exist? - if (imperative_1.IO.existsSync(pathToZoweBin)) { - if (!imperative_1.IO.isDir(pathToZoweBin)) { - throw new imperative_1.ImperativeError({ - msg: `The existing file '${pathToZoweBin}' must be a directory.` - }); - } - } - else { - // create the directory - try { - imperative_1.IO.createDirSync(pathToZoweBin); - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: `Unable to create directory '${pathToZoweBin}'.\nReason: ${err}` - }); - } - } - // extract executable from the tar file into the bin directory - yield this.unzipTgz(preBldTgz, pathToZoweBin, imperative_1.ImperativeConfig.instance.rootCommandName); - /* Even though we await the unzip above, the OS still considers the exe file in-use - * for a while. We will get the following error message when trying to run the exe. - * "The process cannot access the file because it is being used by another process." - * So, we wait a little bit. - */ - const halfSecOfMillis = 500; - yield imperative_1.CliUtils.sleep(halfSecOfMillis); - // display the version of the executable - let userInfoMsg = "Zowe CLI native executable version = "; - const zoweExePath = nodeJsPath.resolve(pathToZoweBin, exeFileName); - const ioOpts = ["pipe", "pipe", "pipe"]; - try { - const spawnResult = (0, child_process_1.spawnSync)(zoweExePath, ["--version-exe"], { - stdio: ioOpts, - shell: false - }); - if (spawnResult.stdout) { - // remove any newlines from the version number - userInfoMsg += spawnResult.stdout.toString().replace(/\r?\n|\r/g, ""); - } - else { - userInfoMsg += "Failed to get version number\n"; - if (spawnResult.stderr) { - userInfoMsg += spawnResult.stderr.toString(); - } - } - } - catch (err) { - userInfoMsg += err.message; - } - // add our bin directory to the PATH if is it is not already there - userInfoMsg += yield this.addZoweBinToPath(pathToZoweBin, userQuestions); - // if ZOWE_USE_DAEMON is set, and turned off, add a warning message - if (((_b = (_a = process.env) === null || _a === void 0 ? void 0 : _a.ZOWE_USE_DAEMON) === null || _b === void 0 ? void 0 : _b.length) > 0) { - switch (process.env.ZOWE_USE_DAEMON) { - case "no": - case "false": - case "0": { - userInfoMsg += `\n\nYour ZOWE_USE_DAEMON environment variable is set to '${process.env.ZOWE_USE_DAEMON}'.` + - "\nYou must remove it, or set it to 'yes' to use daemon mode."; - } - } - } - return userInfoMsg; - }); - } - /** - * Unzip, from a gzipped tar file, any file that contains fileToExtract as a - * substring of the file name. The file will be placed into toDir. - * We expect toDir to already exist. - * - * @param tgzFile The gzipped tar file that we will extract - * - * @param toDir The directory into which we extract files - * - * @param fileToExtract The file name (or substring of the file name) to extract. - * - * @throws {ImperativeError} - * @returns A void promise to synchronize this operation. - */ - unzipTgz(tgzFile, toDir, fileToExtract) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve) => { - fs.createReadStream(tgzFile) - .on('error', function (err) { - throw new imperative_1.ImperativeError({ - msg: err - }); - }) - .pipe(new tar.Parse()) - .on('entry', function (entry) { - if (entry.type == "File" && entry.path.includes(fileToExtract)) { - const sysInfo = imperative_1.ProcessUtils.getBasicSystemInfo(); - let fileCreateOpts = {}; - if (sysInfo.platform == "linux" || sysInfo.platform == "darwin") { - // set file permissions to read, write and execute for user, read and execute for group, in octal - fileCreateOpts = { mode: 0o750 }; - } - // do not include any path structure from the tgz, just the exe name - entry.pipe(fs.createWriteStream(nodeJsPath.resolve(toDir, nodeJsPath.basename(entry.path)), fileCreateOpts)); - } - }) - .on("end", () => { - resolve(); - }); - }); - }); - } - /** - * Add our .zowe/bin directory to the user's PATH. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @param {IDaemonEnableQuestions} userQuestions Questions for user (if permitted) - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - addZoweBinToPath(pathToZoweBin, userQuestions) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - let userInfoMsg = ""; - const osPlatform = imperative_1.ProcessUtils.getBasicSystemInfo().platform; - if ((_a = process.env.PATH) === null || _a === void 0 ? void 0 : _a.includes(pathToZoweBin)) { - // bash & zsh command-path caching forces us to require a new terminal - if (osPlatform !== "win32") { - userInfoMsg += "\n\n" + EnableDaemonHandler.openNewTerminalMsg; - } - } - else { - // ZOWE_CLI_HOME/bin is not on our PATH, we want to add it - let answer = null; - if (userQuestions.canAskUser) { - // alter PATH question by OS - let pathQuestion = "May we add the Zowe bin directory to your\nPATH in your "; - if (osPlatform === "win32") { - pathQuestion += "permanent user environment"; - } - else { - pathQuestion += ".profile file"; - } - pathQuestion += " [y or n] ? "; - // ask user for permission to update PATH - answer = yield imperative_1.CliUtils.readPrompt(pathQuestion); - } - else { - // don't ask, just use default - answer = userQuestions.addBinToPathVal; - } - if (answer !== null && answer === "y" || answer === "Y") { - // user wants us to do it for him/her - if (osPlatform === "win32") { - userInfoMsg += yield this.addZoweBinOnWindows(pathToZoweBin); - } - else { - userInfoMsg += this.addZoweBinOnPosix(pathToZoweBin); - } - } - else { - userInfoMsg += `\n\nManually add '${pathToZoweBin}' to your PATH.` + - "\nOtherwise, you will continue to run the classic Zowe CLI interpreter."; - } - // when zowe/bin not already on path, user needs a new terminal - userInfoMsg += "\n\n" + EnableDaemonHandler.openNewTerminalMsg; - } // end zowe/bin not in path - return userInfoMsg; - }); - } - /** - * Add our .zowe/bin directory to the front of the user's PATH on Windows. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - addZoweBinOnWindows(pathToZoweBin) { - return __awaiter(this, void 0, void 0, function* () { - let userInfoMsg = ""; - try { - /* TODO: - * - Detect if zowe/bin is in system or user PATH env variable - * - For user PATH : reg query "HKCU\Environment" - * - For system PATH: reg query "???" - * - Add zowe/bin to the front of either user or system PATH - * - confirm that we do not exceed max path (1024 for user) - * - For system PATH - * - get user name - * - prompt for password - * - Use setx to set the new PATH value - */ - const ioOptions = ["pipe", "pipe", "pipe"]; - const setxPath = process.env.SystemRoot ? nodeJsPath.join(process.env.SystemRoot, 'System32', 'setx.exe') : 'setx.exe'; - const spawnResult = (0, child_process_1.spawnSync)(setxPath, ["zowe_set_env_test", pathToZoweBin + ";" + process.env.PATH], { - stdio: ioOptions, - shell: false - }); - if (spawnResult.stdout) { - userInfoMsg += spawnResult.stdout.toString(); - } - if (spawnResult.stderr) { - userInfoMsg += spawnResult.stderr.toString(); - } - } - catch (err) { - userInfoMsg += "Failed to run setx. Reason = " + err.message; - } - return userInfoMsg; - }); - } - /** - * Add our .zowe/bin directory to the front of the user's PATH on Linux and MAC. - * Do that by adding a line at the end of the user's .profile file. - * - * @param pathToZoweBin The absolute path to our .zowe/bin drectory. - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - addZoweBinOnPosix(pathToZoweBin) { - // Todo: Implement addZoweBinOnPosix - const userInfoMsg = ""; - return userInfoMsg; - } -} -exports.default = EnableDaemonHandler; -EnableDaemonHandler.openNewTerminalMsg = "To run further Zowe commands, close this terminal and open a new terminal."; -//# sourceMappingURL=Enable.handler.js.map \ No newline at end of file diff --git a/lib/daemon/enable/Enable.handler.js.map b/lib/daemon/enable/Enable.handler.js.map deleted file mode 100644 index 08a5c0cc1d..0000000000 --- a/lib/daemon/enable/Enable.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Enable.handler.js","sourceRoot":"","sources":["../../../src/daemon/enable/Enable.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,yBAAyB;AACzB,mCAAmC;AACnC,2BAA2B;AAC3B,iDAAwD;AAExD,iDAG0B;AAI1B;;;;;GAKG;AACH,MAAqB,mBAAmB;IAGpC;;;;;;;OAOG;IACU,OAAO,CAAC,SAA6B;;YAC9C,IAAI,OAAe,CAAC;YACpB,IAAI;gBACA,MAAM,aAAa,GAA2B;oBAC1C;;;sBAGE;oBACF,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,GAAG;iBACvB,CAAC;gBACF,OAAO,GAA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UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;gBACvH,MAAM,WAAW,GAAG,IAAA,yBAAS,EAAC,QAAQ,EAClC,CAAC,mBAAmB,EAAE,aAAa,GAAG,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAC7D;oBACI,KAAK,EAAE,SAAS;oBAChB,KAAK,EAAE,KAAK;iBACf,CACJ,CAAC;gBACF,IAAI,WAAW,CAAC,MAAM,EAAE;oBACpB,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;iBAChD;gBACD,IAAI,WAAW,CAAC,MAAM,EAAE;oBACpB,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;iBAChD;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,WAAW,IAAI,+BAA+B,GAAG,GAAG,CAAC,OAAO,CAAC;aAChE;YAED,OAAO,WAAW,CAAC;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,iBAAiB,CAAC,aAAqB;QAC3C,oCAAoC;QACpC,MAAM,WAAW,GAAW,EAAE,CAAC;QAC/B,OAAO,WAAW,CAAC;IACvB,CAAC;;AApTL,sCAqTC;AApTkB,sCAAkB,GAAG,4EAA4E,CAAC"} \ No newline at end of file diff --git a/lib/daemon/restart/Restart.definition.d.ts b/lib/daemon/restart/Restart.definition.d.ts deleted file mode 100644 index 9075d1b9a8..0000000000 --- a/lib/daemon/restart/Restart.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const RestartCommand: ICommandDefinition; diff --git a/lib/daemon/restart/Restart.definition.js b/lib/daemon/restart/Restart.definition.js deleted file mode 100644 index 02d3dab494..0000000000 --- a/lib/daemon/restart/Restart.definition.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RestartCommand = void 0; -exports.RestartCommand = { - name: "restart", - description: "Restart the Zowe CLI daemon.", - type: "command", - handler: __dirname + "/Restart.handler", - examples: [ - { - description: "Restart daemon", - options: "" - } - ] -}; -//# sourceMappingURL=Restart.definition.js.map \ No newline at end of file diff --git a/lib/daemon/restart/Restart.definition.js.map b/lib/daemon/restart/Restart.definition.js.map deleted file mode 100644 index 1542fd44b9..0000000000 --- a/lib/daemon/restart/Restart.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Restart.definition.js","sourceRoot":"","sources":["../../../src/daemon/restart/Restart.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,8BAA8B;IAC3C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gBAAgB;YAC7B,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/daemon/restart/Restart.handler.d.ts b/lib/daemon/restart/Restart.handler.d.ts deleted file mode 100644 index 21165af8f7..0000000000 --- a/lib/daemon/restart/Restart.handler.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ICommandHandler, IHandlerParameters } from "@zowe/imperative"; -/** - * Handler to disable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class RestartDaemonHandler implements ICommandHandler { - /** - * Process the disable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - */ - process(cmdParams: IHandlerParameters): Promise; - /** - * Restart daemon mode. - * - * @throws {ImperativeError} - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - private restartDaemon; -} diff --git a/lib/daemon/restart/Restart.handler.js b/lib/daemon/restart/Restart.handler.js deleted file mode 100644 index 7b448a3915..0000000000 --- a/lib/daemon/restart/Restart.handler.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Handler to disable daemon mode. - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class RestartDaemonHandler { - /** - * Process the disable daemon command and populates the response - * object as needed. - * - * @param {IHandlerParameters} cmdParams Parameters supplied by yargs - * - */ - process(cmdParams) { - return __awaiter(this, void 0, void 0, function* () { - yield this.restartDaemon(); - cmdParams.response.console.log("Zowe daemon restart is only valid when daemon mode is enabled."); - cmdParams.response.data.setExitCode(0); - }); - } - /** - * Restart daemon mode. - * - * @throws {ImperativeError} - * - * @returns {string} An informational message to display to the user after - * successful completion of the operation. - */ - restartDaemon() { - return __awaiter(this, void 0, void 0, function* () { - /* dummy routine if called from the node.js version of Zowe. */ - }); - } -} -exports.default = RestartDaemonHandler; -//# sourceMappingURL=Restart.handler.js.map \ No newline at end of file diff --git a/lib/daemon/restart/Restart.handler.js.map b/lib/daemon/restart/Restart.handler.js.map deleted file mode 100644 index 2aea3516c7..0000000000 --- a/lib/daemon/restart/Restart.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Restart.handler.js","sourceRoot":"","sources":["../../../src/daemon/restart/Restart.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAMF;;;;;GAKG;AACH,MAAqB,oBAAoB;IACrC;;;;;;OAMG;IACU,OAAO,CAAC,SAA6B;;YAC9C,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;YAC3B,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gEAAgE,CAAC,CAAC;YACjG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;IAED;;;;;;;OAOG;IACW,aAAa;;YACvB,+DAA+D;QACnE,CAAC;KAAA;CACJ;AAzBD,uCAyBC"} \ No newline at end of file diff --git a/lib/provisioning/delete/Delete.definition.d.ts b/lib/provisioning/delete/Delete.definition.d.ts deleted file mode 100644 index d893a14d1f..0000000000 --- a/lib/provisioning/delete/Delete.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DeleteCommand: ICommandDefinition; diff --git a/lib/provisioning/delete/Delete.definition.js b/lib/provisioning/delete/Delete.definition.js deleted file mode 100644 index fb44afbbfb..0000000000 --- a/lib/provisioning/delete/Delete.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteCommand = void 0; -const DeleteInstance_definition_1 = require("./instance/DeleteInstance.definition"); -exports.DeleteCommand = { - name: "delete", - aliases: ["del"], - type: "group", - summary: "Delete instance.", - description: "Deletes instance previously provisioned with z/OSMF cloud provisioning services.", - children: [DeleteInstance_definition_1.DeleteInstanceDefinition] -}; -//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/Delete.definition.js.map b/lib/provisioning/delete/Delete.definition.js.map deleted file mode 100644 index b75c57da68..0000000000 --- a/lib/provisioning/delete/Delete.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/provisioning/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAgF;AAGnE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,kFAAkF;IAC/F,QAAQ,EAAE,CAAC,oDAAwB,CAAC;CACvC,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts b/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts deleted file mode 100644 index 98d02da6c7..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DeleteInstanceDefinition: ICommandDefinition; diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.js b/lib/provisioning/delete/instance/DeleteInstance.definition.js deleted file mode 100644 index b5dd9817c3..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.definition.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteInstanceDefinition = void 0; -exports.DeleteInstanceDefinition = { - name: "instance", - aliases: ["i"], - type: "command", - summary: "Deletes instance.", - description: "Deletes selected deprovisioned instance.", - handler: __dirname + "/DeleteInstance.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "Deprovisioned Instance name.", - required: true - } - ], - examples: [ - { - description: `Delete deprovisioned instance "instance1"`, - options: "instance1" - } - ] -}; -//# sourceMappingURL=DeleteInstance.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.definition.js.map b/lib/provisioning/delete/instance/DeleteInstance.definition.js.map deleted file mode 100644 index 3a8eb50b5a..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteInstance.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/delete/instance/DeleteInstance.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,wBAAwB,GAAuB;IACxD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,GAAG,CAAC;IACd,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,0CAA0C;IACvD,OAAO,EAAE,SAAS,GAAG,yBAAyB;IAC9C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,2CAA2C;YACxD,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts b/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts deleted file mode 100644 index 9353e6c793..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.handler.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.js b/lib/provisioning/delete/instance/DeleteInstance.handler.js deleted file mode 100644 index 0bf0d23fc6..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.handler.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("util"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); - const instances = registry["scr-list"]; - if ((0, util_1.isNullOrUndefined)(instances)) { - commandParameters.response.console.error("No instance with name " + - commandParameters.arguments.name + - " was found"); - } - else if (instances.length === 1) { - const id = instances.pop()["object-id"]; - const response = yield provisioning_for_zowe_sdk_1.DeleteInstance.deleteDeprovisionedInstance(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id); - commandParameters.response.console.log(`The instance was successfully deleted`); - commandParameters.response.data.setObj(response); - } - else if (instances.length > 1) { - commandParameters.response.console.error("Multiple instances with name " + - commandParameters.arguments.name + - " were found"); - } - }); - } -} -exports.default = Handler; -//# sourceMappingURL=DeleteInstance.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/delete/instance/DeleteInstance.handler.js.map b/lib/provisioning/delete/instance/DeleteInstance.handler.js.map deleted file mode 100644 index 51afd99964..0000000000 --- a/lib/provisioning/delete/instance/DeleteInstance.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteInstance.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/delete/instance/DeleteInstance.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AAEzC,+EAKyC;AACzC,iEAA4D;AAE5D,MAAqB,OAAQ,SAAQ,qCAAgB;IACpC,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,QAAQ,GAAG,MAAM,0CAAc,CAAC,2BAA2B,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,CACL,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,uCAAuC,CAC1C,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACpD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAlCD,0BAkCC"} \ No newline at end of file diff --git a/lib/provisioning/list/List.definition.d.ts b/lib/provisioning/list/List.definition.d.ts deleted file mode 100644 index b6eca2222f..0000000000 --- a/lib/provisioning/list/List.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ListCommand: ICommandDefinition; diff --git a/lib/provisioning/list/List.definition.js b/lib/provisioning/list/List.definition.js deleted file mode 100644 index e34c4b4714..0000000000 --- a/lib/provisioning/list/List.definition.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListCommand = void 0; -const TemplateInfo_definition_1 = require("./templateInfo/TemplateInfo.definition"); -const CatalogTemplates_definition_1 = require("./catalogTemplates/CatalogTemplates.definition"); -const InstanceInfo_definition_1 = require("./instanceInfo/InstanceInfo.definition"); -const InstanceVariables_definition_1 = require("./instanceVariables/InstanceVariables.definition"); -const RegistryInstances_definition_1 = require("./registry/RegistryInstances.definition"); -exports.ListCommand = { - name: "list", - aliases: ["ls"], - type: "group", - summary: "List Provisioning Information", - description: "Lists z/OSMF provisioning information such as the provisioned " + - "instances from the registry, the provisioned instance details, the available provisioning templates and provisioning template details.", - children: [TemplateInfo_definition_1.templateInfo, CatalogTemplates_definition_1.catalogTemplates, InstanceInfo_definition_1.instanceInfo, InstanceVariables_definition_1.instanceVariables, RegistryInstances_definition_1.registryInstances] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/List.definition.js.map b/lib/provisioning/list/List.definition.js.map deleted file mode 100644 index aaea3874fa..0000000000 --- a/lib/provisioning/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/provisioning/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAsE;AACtE,gGAAkF;AAClF,oFAAsE;AACtE,mGAAqF;AACrF,0FAA4E;AAE/D,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,gEAAgE;QAC7E,wIAAwI;IACxI,QAAQ,EAAE,CAAC,sCAAY,EAAE,8CAAgB,EAAE,sCAAY,EAAE,gDAAiB,EAAE,gDAAiB,CAAC;CACjG,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts deleted file mode 100644 index a3d799a98f..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const catalogTemplates: ICommandDefinition; diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js deleted file mode 100644 index ccaae68ba3..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.catalogTemplates = void 0; -const path = require("path"); -exports.catalogTemplates = { - name: "catalog-templates", - aliases: ["ct"], - type: "command", - summary: "List z/OSMF published catalog templates.", - description: "Lists the z/OSMF service catalog published templates.", - handler: path.join(__dirname, "/CatalogTemplates.handler"), - profile: { - optional: ["zosmf"] - }, - options: [ - { - name: "all-info", - aliases: ["ai"], - description: "Display information about published z/OSMF " + - "service catalog templates (summary information is printed by default).", - type: "boolean" - } - ], - examples: [ - { - description: "List all published templates in the z/OSMF service catalog (with full detail)", - options: "--all-info" - } - ] -}; -//# sourceMappingURL=CatalogTemplates.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map b/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map deleted file mode 100644 index 5406c9ed60..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatalogTemplates.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/catalogTemplates/CatalogTemplates.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAGhB,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,0CAA0C;IACnD,WAAW,EAAE,uDAAuD;IACpE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAC1D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,6CAA6C;gBAC1D,wEAAwE;YACxE,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+EAA+E;YAC5F,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts deleted file mode 100644 index 6649724a44..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to list template catalog - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class CatalogTemplatesHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js deleted file mode 100644 index cc575b20f1..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to list template catalog - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class CatalogTemplatesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const templates = yield provisioning_for_zowe_sdk_1.ListCatalogTemplates.listCatalogCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION); - let prettifiedTemplates = {}; - if (commandParameters.arguments.allInfo) { - prettifiedTemplates = imperative_1.TextUtils.explainObject(templates, provisioning_for_zowe_sdk_1.explainPublishedTemplatesFull, true); - } - else { - prettifiedTemplates = imperative_1.TextUtils.explainObject(templates, provisioning_for_zowe_sdk_1.explainPublishedTemplatesSummary, false); - } - let response = "z/OSMF Service Catalog templates\n"; - response = response + imperative_1.TextUtils.prettyJson(prettifiedTemplates); - // Print out the response - commandParameters.response.console.log(response); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(templates); - }); - } -} -exports.default = CatalogTemplatesHandler; -//# sourceMappingURL=CatalogTemplates.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map b/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map deleted file mode 100644 index 5a5c24c70e..0000000000 --- a/lib/provisioning/list/catalogTemplates/CatalogTemplates.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatalogTemplates.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/catalogTemplates/CatalogTemplates.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,uBAAwB,SAAQ,qCAAgB;IACpD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,SAAS,GAAwB,MAAM,gDAAoB,CAAC,iBAAiB,CAC/E,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,CACtC,CAAC;YAEF,IAAI,mBAAmB,GAAQ,EAAE,CAAC;YAClC,IAAI,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE;gBACrC,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CACzC,SAAS,EACT,yDAA6B,EAC7B,IAAI,CACP,CAAC;aACL;iBAAM;gBACH,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CACzC,SAAS,EACT,4DAAgC,EAChC,KAAK,CACR,CAAC;aACL;YACD,IAAI,QAAQ,GAAG,oCAAoC,CAAC;YACpD,QAAQ,GAAG,QAAQ,GAAG,sBAAS,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;YAChE,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAEjD,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;KAAA;CACJ;AA7BD,0CA6BC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts deleted file mode 100644 index 29ea505348..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const instanceInfo: ICommandDefinition; diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js deleted file mode 100644 index be6e82f9d7..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceInfo = void 0; -const path = require("path"); -exports.instanceInfo = { - name: "instance-info", - aliases: ["ii"], - type: "command", - summary: "List Provisioned Instance Details.", - description: "List details about an instance provisioned with z/OSMF.", - handler: path.join(__dirname, "/InstanceInfo.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "Provisioned Instance Name", - required: true - } - ], - options: [ - { - name: "display", - description: "Level of information to display for the provisioned instance. Possible values:\n\n" + - "summary \t- summary information, no actions or variables\n" + - "actions \t- (default) summary with actions, no variables\n" + - "vars \t- summary information with variables, no actions\n" + - "extended \t- extended information with actions\n" + - "full \t- all available information\n", - type: "string", - allowableValues: { - values: ["extended", "summary", "vars", "actions", "full"], - caseSensitive: false - } - } - ], - examples: [ - { - description: "List summary information with a list of actions for an instance with the name \"instance1\"", - options: "instance1" - }, - { - description: "Show extended general information with actions for a provisioned instance with the name \"instance1\"", - options: "instance1 --display extended" - } - ] -}; -//# sourceMappingURL=InstanceInfo.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map b/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map deleted file mode 100644 index fdbefc850b..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InstanceInfo.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceInfo/InstanceInfo.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,yDAAyD;IACtE,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oFAAoF;gBACjG,4DAA4D;gBAC5D,4DAA4D;gBAC5D,2DAA2D;gBAC3D,kDAAkD;gBAClD,sCAAsC;YACtC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE;gBACb,MAAM,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC;gBAC1D,aAAa,EAAE,KAAK;aACvB;SACJ;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,6FAA6F;YAC1G,OAAO,EAAE,WAAW;SACvB;QACD;YACI,WAAW,EAAE,uGAAuG;YACpH,OAAO,EAAE,8BAA8B;SAC1C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts deleted file mode 100644 index 87cfc132a6..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to list instance info - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class InstanceInfoHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; - /** - * Format the output of instance summary data, options may be used to further refine the output - * @param {IProvisionedInstance} instance: one or more provisioned instance - * @param option: command options - */ - private formatProvisionedInstanceSummaryOutput; -} diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js deleted file mode 100644 index d46dccf316..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const util_1 = require("util"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to list instance info - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class InstanceInfoHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); - const instances = registry["scr-list"]; - if ((0, util_1.isNullOrUndefined)(instances)) { - commandParameters.response.console.error("No instance with name " + commandParameters.arguments.name + " was found"); - } - else if (instances.length === 1) { - const id = instances.pop()["object-id"]; - const response = yield provisioning_for_zowe_sdk_1.ListInstanceInfo.listInstanceCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id); - const pretty = this.formatProvisionedInstanceSummaryOutput(response, commandParameters.arguments.display); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(pretty)); - commandParameters.response.data.setObj(response); - } - else if (instances.length > 1) { - commandParameters.response.console.error("Multiple instances with name " + commandParameters.arguments.name + " were found"); - } - }); - } - /** - * Format the output of instance summary data, options may be used to further refine the output - * @param {IProvisionedInstance} instance: one or more provisioned instance - * @param option: command options - */ - formatProvisionedInstanceSummaryOutput(instance, option) { - let prettifiedInstance = {}; - option = (0, util_1.isNullOrUndefined)(option) ? "ACTIONS" : option.toUpperCase(); - // Prettify the output - switch (option) { - // extended general information with actions summarised - case "EXTENDED": - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceExtended, false); - break; - // summary info with actions - case "SUMMARY": - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummary, false); - break; - // summary info with variables - case "VARS": - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithVars, false); - break; - // summary info with extended actions and variables - case "FULL": - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceFull, false); - break; - // default - summary with actions, variables ignored - case "ACTIONS": - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithActions, false); - break; - default: - prettifiedInstance = imperative_1.TextUtils.explainObject(instance, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummaryWithActions, false); - break; - } - return prettifiedInstance; - } -} -exports.default = InstanceInfoHandler; -//# sourceMappingURL=InstanceInfo.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map b/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map deleted file mode 100644 index 31df312055..0000000000 --- a/lib/provisioning/list/instanceInfo/InstanceInfo.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InstanceInfo.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceInfo/InstanceInfo.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAUyC;AACzC,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAEhD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAqB,CAAC,aAAa,EAAE,IAAI,EACtH,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,GAAG,YAAY,CAAC,CAAC;aACxH;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,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,CAAC,CAAC;gBACjG,MAAM;YAEV,8BAA8B;YAC9B,KAAK,MAAM;gBACP,kBAAkB,GAAG,sBAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,qEAAyC,EAAE,KAAK,CAAC,CAAC;gBACzG,MAAM;YAEV,mDAAmD;YACnD,KAAK,MAAM;gBACP,kBAAkB,GAAG,sBAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,0DAA8B,EAAE,KAAK,CAAC,CAAC;gBAC9F,MAAM;YACV,oDAAoD;YACpD,KAAK,SAAS;gBACV,kBAAkB,GAAG,sBAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,wEAA4C,EAAE,KAAK,CAAC,CAAC;gBAC5G,MAAM;YACV;gBACI,kBAAkB,GAAG,sBAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,wEAA4C,EAAE,KAAK,CAAC,CAAC;gBAC5G,MAAM;SACb;QAED,OAAO,kBAAkB,CAAC;IAE9B,CAAC;CACJ;AA9DD,sCA8DC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts deleted file mode 100644 index ac30837fe6..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const instanceVariables: ICommandDefinition; diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js deleted file mode 100644 index 3897602333..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceVariables = void 0; -const path = require("path"); -exports.instanceVariables = { - name: "instance-variables", - aliases: ["iv"], - type: "command", - summary: "List Instance Variables and Values.", - description: "List a set of variables and their values for a given name.", - handler: path.join(__dirname, "/InstanceVariables.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "Provisioned Instance Name", - required: true - } - ], - examples: [ - { - description: "List instance variables of \"instance1\"", - options: "instance1" - } - ], - outputFormatOptions: true -}; -//# sourceMappingURL=InstanceVariables.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map b/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map deleted file mode 100644 index b8ffa7a863..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InstanceVariables.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceVariables/InstanceVariables.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,qCAAqC;IAC9C,WAAW,EAAE,4DAA4D;IACzE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0CAA0C;YACvD,OAAO,EAAE,WAAW;SACvB;KACJ;IACD,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts deleted file mode 100644 index e9a0bc1ad6..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to list instance variables - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class InstanceVariablesHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js deleted file mode 100644 index 27c981a2ad..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("util"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to list instance variables - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class InstanceVariablesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); - const instances = registry["scr-list"]; - if ((0, util_1.isNullOrUndefined)(instances)) { - commandParameters.response.console.error("No instance with name " + - commandParameters.arguments.name + - " was found"); - } - else if (instances.length === 1) { - const id = instances.pop()["object-id"]; - const variables = (yield provisioning_for_zowe_sdk_1.ListInstanceVariables.listVariablesCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id)).variables; - commandParameters.response.format.output({ - fields: ["name", "value", "visibility", "update-registry"], - output: variables, - format: "table", - header: true - }); - commandParameters.response.data.setObj(variables); - } - else if (instances.length > 1) { - commandParameters.response.console.error("Multiple instances with name " + - commandParameters.arguments.name + - " were found"); - } - }); - } -} -exports.default = InstanceVariablesHandler; -//# sourceMappingURL=InstanceVariables.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map b/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map deleted file mode 100644 index fdd3cea42c..0000000000 --- a/lib/provisioning/list/instanceVariables/InstanceVariables.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InstanceVariables.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/instanceVariables/InstanceVariables.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AAEzC,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,wBAAyB,SAAQ,qCAAgB;IACrD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,SAAS,GAAmC,CAC9C,MAAM,iDAAqB,CAAC,mBAAmB,CAC3C,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,CACL,CACJ,CAAC,SAAS,CAAC;gBACZ,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,CAAC;oBAC1D,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;gBACH,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aACrD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAvCD,2CAuCC"} \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.d.ts b/lib/provisioning/list/registry/RegistryInstances.definition.d.ts deleted file mode 100644 index a3052a9eb7..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const registryInstances: ICommandDefinition; diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.js b/lib/provisioning/list/registry/RegistryInstances.definition.js deleted file mode 100644 index ab91ca47d2..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.definition.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.registryInstances = void 0; -const path = require("path"); -exports.registryInstances = { - name: "registry-instances", - aliases: ["ri"], - type: "command", - summary: "List provisioned instances.", - description: "List the provisioned instances from the z/OSMF software registry.", - handler: path.join(__dirname, "/RegistryInstances.handler"), - profile: { - optional: ["zosmf"] - }, - options: [ - { - name: "all-info", - aliases: ["ai"], - description: "Display all available information about provisioned instances (summary by default).", - type: "boolean" - }, - { - name: "filter-by-type", - aliases: ["fbt"], - description: "Filter the list of provisioned instances by type (e.g. DB2 or CICS).", - type: "string" - }, - { - name: "filter-by-external-name", - aliases: ["fben"], - description: "Filter the list of provisioned instances by External Name.", - type: "string" - }, - { - name: "types", - aliases: ["t"], - description: "Display a list of all types for provisioned instances (e.g. DB2 or CICS).", - type: "boolean" - } - ], - examples: [ - { - description: "List all provisioned instances (with full detail)", - options: "--all-info" - } - ] -}; -//# sourceMappingURL=RegistryInstances.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.definition.js.map b/lib/provisioning/list/registry/RegistryInstances.definition.js.map deleted file mode 100644 index 580e9d1cfb..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RegistryInstances.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/registry/RegistryInstances.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,mEAAmE;IAChF,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC;IAC5D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,sEAAsE;YACnF,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.d.ts b/lib/provisioning/list/registry/RegistryInstances.handler.d.ts deleted file mode 100644 index 2707bcc4ac..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to list registry instances - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class RegistryInstancesHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; - /** - * Format the output of instance summary data, options may be used to further refine the output - * @param {IProvisionedInstance} instances: one or more provisioned instance - * @param showAllInfo : display summary (default) or all information fields - */ - private formatProvisionedInstancesSummaryOutput; -} diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.js b/lib/provisioning/list/registry/RegistryInstances.handler.js deleted file mode 100644 index 9ce8cdeb11..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.handler.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const util_1 = require("util"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to list registry instances - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class RegistryInstancesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.filterByType, commandParameters.arguments.filterByExternalName); - const instances = response["scr-list"]; - const pretty = imperative_1.TextUtils.prettyJson(this.formatProvisionedInstancesSummaryOutput(instances, commandParameters.arguments.allInfo)); - // Print out the response - if (commandParameters.arguments.types) { - commandParameters.response.console.log("z/OSMF Service Registry " + - "- Types of Provisioned Instances.\n"); - const unique = [...new Set(instances.map((item) => item.type))]; - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(unique)); - } - else { - commandParameters.response.console.log("z/OSMF Service Registry"); - if (!(0, util_1.isNullOrUndefined)(commandParameters.arguments.filterByType)) { - commandParameters.response.console.log("\nShowing ONLY \"" - + commandParameters.arguments.filterByType.toUpperCase() + "\" instance types."); - } - commandParameters.response.console.log(pretty); - } - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } - /** - * Format the output of instance summary data, options may be used to further refine the output - * @param {IProvisionedInstance} instances: one or more provisioned instance - * @param showAllInfo : display summary (default) or all information fields - */ - formatProvisionedInstancesSummaryOutput(instances, showAllInfo) { - // Use defined pretty print template - IProvisionedInstancePrettyFull for displaying info - let prettifiedInstances = []; - if (showAllInfo) { - prettifiedInstances = imperative_1.TextUtils.explainObject(instances, provisioning_for_zowe_sdk_1.explainProvisionedInstanceFull, true); - } - else { - prettifiedInstances = imperative_1.TextUtils.explainObject(instances, provisioning_for_zowe_sdk_1.explainProvisionedInstanceSummary, false); - } - return prettifiedInstances; - } -} -exports.default = RegistryInstancesHandler; -//# sourceMappingURL=RegistryInstances.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/registry/RegistryInstances.handler.js.map b/lib/provisioning/list/registry/RegistryInstances.handler.js.map deleted file mode 100644 index c1305fafca..0000000000 --- a/lib/provisioning/list/registry/RegistryInstances.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RegistryInstances.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/registry/RegistryInstances.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAOyC;AACzC,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,wBAAyB,SAAQ,qCAAgB;IAErD,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,QAAQ,GAA0B,MAAM,iDAAqB,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,iDAAqB,CAAC,aAAa,EACvI,iBAAiB,CAAC,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;YAChG,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,MAAM,MAAM,GAAG,sBAAS,CAAC,UAAU,CAAC,IAAI,CAAC,uCAAuC,CAAC,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YAClI,yBAAyB;YAEzB,IAAI,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE;gBACnC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B;oBAC7D,qCAAqC,CAAC,CAAC;gBAC3C,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;aACxE;iBAAM;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBAClE,IAAI,CAAC,IAAA,wBAAiB,EAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE;oBAC9D,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB;0BACpD,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,GAAG,oBAAoB,CAAC,CAAC;iBACxF;gBACD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;aAClD;YACD,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;IAED;;;;OAIG;IACK,uCAAuC,CAAC,SAAiC,EAC7E,WAAoB;QACpB,yFAAyF;QACzF,IAAI,mBAAmB,GAAU,EAAE,CAAC;QACpC,IAAI,WAAW,EAAE;YACb,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CAAC,SAAS,EAAE,0DAA8B,EAAE,IAAI,CAAC,CAAC;SAClG;aAAM;YACH,mBAAmB,GAAG,sBAAS,CAAC,aAAa,CAAC,SAAS,EAAE,6DAAiC,EAAE,KAAK,CAAC,CAAC;SACtG;QACD,OAAO,mBAAmB,CAAC;IAC/B,CAAC;CACJ;AA3CD,2CA2CC"} \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts b/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts deleted file mode 100644 index 2af3087e97..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const templateInfo: ICommandDefinition; diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js deleted file mode 100644 index 3c33e8ab18..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.templateInfo = void 0; -const path = require("path"); -exports.templateInfo = { - name: "template-info", - aliases: ["ti"], - type: "command", - summary: "List Published Template Details.", - description: "List details about a template published with z/OSMF Cloud Provisioning.", - handler: path.join(__dirname, "/TemplateInfo.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "The name of a z/OSMF cloud provisioning template.", - required: true - } - ], - options: [ - { - name: "all-info", - aliases: ["ai"], - description: "Display detailed information about published z/OSMF " + - "service catalog template (summary information is printed by default).", - type: "boolean" - } - ], - examples: [ - { - description: "List summary information for template \"template1\"", - options: "template1" - } - ] -}; -//# sourceMappingURL=TemplateInfo.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map b/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map deleted file mode 100644 index e4410bddb4..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TemplateInfo.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/list/templateInfo/TemplateInfo.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6BAA6B;AAEhB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,yEAAyE;IACtF,OAAO,EAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,sDAAsD;gBACnE,uEAAuE;YACvE,IAAI,EAAE,SAAS;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts b/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts deleted file mode 100644 index 1052c7f7f9..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to list template info - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class TemplateInfoHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js deleted file mode 100644 index 187fa987f5..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to list template info - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class TemplateInfoHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield provisioning_for_zowe_sdk_1.ListTemplateInfo.listTemplateCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name); - let prettifiedTemplateInfo = {}; - if (commandParameters.arguments.allInfo) { - prettifiedTemplateInfo = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainPublishedTemplateInfoFull, false); - } - else { - prettifiedTemplateInfo = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainPublishedTemplateInfoSummary, false); - } - // Print out the response - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(prettifiedTemplateInfo)); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = TemplateInfoHandler; -//# sourceMappingURL=TemplateInfo.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map b/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map deleted file mode 100644 index 16524095e0..0000000000 --- a/lib/provisioning/list/templateInfo/TemplateInfo.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TemplateInfo.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/list/templateInfo/TemplateInfo.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAChD,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAA2B,MAAM,4CAAgB,CAAC,kBAAkB,CAC9E,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YAEF,IAAI,sBAAsB,GAAQ,EAAE,CAAC;YACrC,IAAI,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE;gBACrC,sBAAsB,GAAG,sBAAS,CAAC,aAAa,CAC5C,QAAQ,EACR,4DAAgC,EAChC,KAAK,CACR,CAAC;aACL;iBAAM;gBACH,sBAAsB,GAAG,sBAAS,CAAC,aAAa,CAC5C,QAAQ,EACR,+DAAmC,EACnC,KAAK,CACR,CAAC;aACL;YACD,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAC/C,CAAC;YAEF,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AA9BD,sCA8BC"} \ No newline at end of file diff --git a/lib/provisioning/perform/Perform.definition.d.ts b/lib/provisioning/perform/Perform.definition.d.ts deleted file mode 100644 index 503a317e8e..0000000000 --- a/lib/provisioning/perform/Perform.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const PerformCommand: ICommandDefinition; diff --git a/lib/provisioning/perform/Perform.definition.js b/lib/provisioning/perform/Perform.definition.js deleted file mode 100644 index 0616eedca6..0000000000 --- a/lib/provisioning/perform/Perform.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PerformCommand = void 0; -const Action_definition_1 = require("./action/Action.definition"); -exports.PerformCommand = { - name: "perform", - aliases: ["perf"], - type: "group", - summary: "Perform instance actions.", - description: "Perform actions against instances provisioned with z/OSMF.", - children: [Action_definition_1.ActionDefinition] -}; -//# sourceMappingURL=Perform.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/Perform.definition.js.map b/lib/provisioning/perform/Perform.definition.js.map deleted file mode 100644 index dafcb71e32..0000000000 --- a/lib/provisioning/perform/Perform.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Perform.definition.js","sourceRoot":"","sources":["../../../src/provisioning/perform/Perform.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kEAA8D;AAGjD,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,4DAA4D;IACzE,QAAQ,EAAE,CAAC,oCAAgB,CAAC;CAC/B,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.definition.d.ts b/lib/provisioning/perform/action/Action.definition.d.ts deleted file mode 100644 index 4bbdd4483c..0000000000 --- a/lib/provisioning/perform/action/Action.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ActionDefinition: ICommandDefinition; diff --git a/lib/provisioning/perform/action/Action.definition.js b/lib/provisioning/perform/action/Action.definition.js deleted file mode 100644 index dfb6a4216e..0000000000 --- a/lib/provisioning/perform/action/Action.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActionDefinition = void 0; -exports.ActionDefinition = { - name: "action", - aliases: ["act"], - type: "command", - summary: "Perform instance actions.", - description: "Perform actions on instances previously provisioned with z/OSMF cloud\n" + - " provisioning services. To view the list of provisioned instances, use the\n" + - " \"zowe provisioning list registry-instances\" command. Once you have\n" + - " obtained an instance name you can use the \"zowe provisioning list\n" + - " instance-info \" command to view the available instance actions.", - handler: __dirname + "/Action.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "Provisioned Instance name.", - required: true - }, - { - name: "actionname", - type: "string", - description: "The action name. Use the \"zowe provisioning list instance-info \"\n" + - " command to view available instance actions.", - required: true - } - ], - examples: [ - { - description: `Perform the "start" action on the provisioned instance "instance1"`, - options: "instance1 start" - } - ] -}; -//# sourceMappingURL=Action.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.definition.js.map b/lib/provisioning/perform/action/Action.definition.js.map deleted file mode 100644 index b63609a00a..0000000000 --- a/lib/provisioning/perform/action/Action.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/perform/action/Action.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,yEAAyE;QACtF,gFAAgF;QAChF,2EAA2E;QAC3E,yEAAyE;QACzE,2EAA2E;IAC3E,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4EAA4E;gBACzF,mDAAmD;YACnD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.handler.d.ts b/lib/provisioning/perform/action/Action.handler.d.ts deleted file mode 100644 index 4bedc27c55..0000000000 --- a/lib/provisioning/perform/action/Action.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to perform action against instance - * @export - * @class ActionHandler - * @implements {ICommandHandler} - */ -export default class ActionHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/perform/action/Action.handler.js b/lib/provisioning/perform/action/Action.handler.js deleted file mode 100644 index 2bd9538a93..0000000000 --- a/lib/provisioning/perform/action/Action.handler.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const util_1 = require("util"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to perform action against instance - * @export - * @class ActionHandler - * @implements {ICommandHandler} - */ -class ActionHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const registry = yield provisioning_for_zowe_sdk_1.ListRegistryInstances.listFilteredRegistry(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, null, commandParameters.arguments.name); - const instances = registry["scr-list"]; - if ((0, util_1.isNullOrUndefined)(instances)) { - commandParameters.response.console.error("No instance with name " + - commandParameters.arguments.name + - " was found"); - } - else if (instances.length === 1) { - const id = instances.pop()["object-id"]; - const response = yield provisioning_for_zowe_sdk_1.PerformAction.doProvisioningActionCommon(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, id, commandParameters.arguments.actionname); - const pretty = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainActionResponse, false); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(pretty)); - commandParameters.response.data.setObj(response); - } - else if (instances.length > 1) { - commandParameters.response.console.error("Multiple instances with name " + - commandParameters.arguments.name + - " were found"); - } - }); - } -} -exports.default = ActionHandler; -//# sourceMappingURL=Action.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/perform/action/Action.handler.js.map b/lib/provisioning/perform/action/Action.handler.js.map deleted file mode 100644 index 8505d01515..0000000000 --- a/lib/provisioning/perform/action/Action.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/perform/action/Action.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,+EAMyC;AACzC,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,aAAc,SAAQ,qCAAgB;IAC1C,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAG,MAAM,iDAAqB,CAAC,oBAAoB,CAC7D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,IAAI,EACJ,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;YACF,MAAM,SAAS,GAA2B,QAAQ,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,IAAA,wBAAiB,EAAC,SAAS,CAAC,EAAE;gBAC9B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,wBAAwB;oBACpB,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,YAAY,CACnB,CAAC;aACL;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;gBACxC,MAAM,QAAQ,GAAG,MAAM,yCAAa,CAAC,0BAA0B,CAC3D,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,EAAE,EACF,iBAAiB,CAAC,SAAS,CAAC,UAAU,CACzC,CAAC;gBACF,MAAM,MAAM,GAAG,sBAAS,CAAC,aAAa,CAClC,QAAQ,EACR,iDAAqB,EACrB,KAAK,CACR,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAC/B,CAAC;gBACF,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACpD;iBAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CACpC,+BAA+B;oBAC3B,iBAAiB,CAAC,SAAS,CAAC,IAAI;oBAChC,aAAa,CACpB,CAAC;aACL;QACL,CAAC;KAAA;CACJ;AAxCD,gCAwCC"} \ No newline at end of file diff --git a/lib/provisioning/provision/Provision.definition.d.ts b/lib/provisioning/provision/Provision.definition.d.ts deleted file mode 100644 index c186f2136f..0000000000 --- a/lib/provisioning/provision/Provision.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ProvisionCommand: ICommandDefinition; diff --git a/lib/provisioning/provision/Provision.definition.js b/lib/provisioning/provision/Provision.definition.js deleted file mode 100644 index 16a3f36e24..0000000000 --- a/lib/provisioning/provision/Provision.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProvisionCommand = void 0; -const Template_definition_1 = require("./template/Template.definition"); -exports.ProvisionCommand = { - name: "provision", - aliases: ["prov"], - type: "group", - summary: "Provision published software service templates.", - description: "Using z/OSMF cloud provisioning services provision available templates.", - children: [Template_definition_1.TemplateDefinition] -}; -//# sourceMappingURL=Provision.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/Provision.definition.js.map b/lib/provisioning/provision/Provision.definition.js.map deleted file mode 100644 index d52255967a..0000000000 --- a/lib/provisioning/provision/Provision.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Provision.definition.js","sourceRoot":"","sources":["../../../src/provisioning/provision/Provision.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wEAAoE;AAGvD,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,iDAAiD;IAC1D,WAAW,EAAE,yEAAyE;IACtF,QAAQ,EAAE,CAAC,wCAAkB,CAAC;CACjC,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.definition.d.ts b/lib/provisioning/provision/template/Template.definition.d.ts deleted file mode 100644 index 46a451f0f0..0000000000 --- a/lib/provisioning/provision/template/Template.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const TemplateDefinition: ICommandDefinition; diff --git a/lib/provisioning/provision/template/Template.definition.js b/lib/provisioning/provision/template/Template.definition.js deleted file mode 100644 index a163474e79..0000000000 --- a/lib/provisioning/provision/template/Template.definition.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TemplateDefinition = void 0; -const Constants_1 = require("../../../Constants"); -exports.TemplateDefinition = { - name: "template", - aliases: ["tem"], - type: "command", - summary: "Provision a published software service template.", - description: "Using z/OSMF cloud provisioning services, provision available templates.\n" + - "You can view available templates using the " + Constants_1.Constants.BINARY_NAME + " provisioning list " + - "catalog-templates command.", - handler: __dirname + "/Template.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "name", - type: "string", - description: "The name of a z/OSMF cloud provisioning template.", - required: true - } - ], - options: [ - { - name: "properties", - aliases: ["p"], - description: "A sequence of string enclosed \"name=value\"" + - " pairs of prompt variables.\n" + - "e.g: \"CSQ_MQ_SSID=ZCT1,CSQ_CMD_PFX=!ZCT1\".", - type: "string" - }, - { - name: "properties-file", - aliases: ["pf"], - description: "Path to .yml file containing properties.", - type: "string" - }, - { - name: "domain-name", - aliases: ["dn"], - description: "Required if the user has consumer authorization " + - "to more than one domain with this template name.", - type: "string" - }, - { - name: "tenant-name", - aliases: ["tn"], - description: "Required if the user has consumer authorization to" + - " more than one tenant in the same domain " + - "that contains this template name.", - type: "string" - }, - { - name: "user-data-id", - aliases: ["udi"], - description: "ID for the user data specified with user-data." + - " Passed into the software services registry.", - type: "string" - }, - { - name: "user-data", - aliases: ["ud"], - description: "User data that is passed into the software services registry. " + - "Can be specified only if user-data-id is provided.", - type: "string" - }, - { - name: "account-info", - aliases: ["ai"], - description: "Account information to use in the JCL JOB statement. " + - "The default is the account information that " + - "is associated with the resource pool for the tenant.", - type: "string" - }, - { - name: "system-nick-names", - aliases: ["snn"], - description: "Each string is the nickname of the system " + - "upon which to provision the software service defined by the " + - "template. The field is required if the resource pool " + - "associated with the tenant used for this operation " + - "is not set up to automatically select a system. Only one nickname is allowed." + - "If the field is provided it is validated.\n" + - "e.g: \"SYSNAME1,SYSNAME2\".", - type: "string" - } - ], - examples: [ - { - description: "Provision a published software service template.", - options: "template1" - } - ] -}; -//# sourceMappingURL=Template.definition.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.definition.js.map b/lib/provisioning/provision/template/Template.definition.js.map deleted file mode 100644 index 3b781e8369..0000000000 --- a/lib/provisioning/provision/template/Template.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Template.definition.js","sourceRoot":"","sources":["../../../../src/provisioning/provision/template/Template.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kDAAkD;IAC3D,WAAW,EAAE,4E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f,WAAW,EAAE,uDAAuD;gBAChE,8CAA8C;gBAC9C,sDAAsD;YAC1D,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,4CAA4C;gBACrD,8DAA8D;gBAC9D,uDAAuD;gBACvD,qDAAqD;gBACrD,+EAA+E;gBAC/E,6CAA6C;gBAC7C,6BAA6B;YAEjC,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.handler.d.ts b/lib/provisioning/provision/template/Template.handler.d.ts deleted file mode 100644 index 9353e6c793..0000000000 --- a/lib/provisioning/provision/template/Template.handler.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/provisioning/provision/template/Template.handler.js b/lib/provisioning/provision/template/Template.handler.js deleted file mode 100644 index 4d8b57c90e..0000000000 --- a/lib/provisioning/provision/template/Template.handler.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("util"); -const imperative_1 = require("@zowe/imperative"); -const provisioning_for_zowe_sdk_1 = require("@zowe/provisioning-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - let response; - let usedOptionalParms = false; - let arrayOfSystemNickNames; - if (!(0, util_1.isNullOrUndefined)(commandParameters.arguments.systemNickNames)) { - arrayOfSystemNickNames = commandParameters.arguments.systemNickNames - .split(",") - .map((systemName) => { - return systemName.trim(); - }); - } - const provisionOptionalParams = provisioning_for_zowe_sdk_1.ProvisioningService.checkForPassedOptionalParms(commandParameters.arguments.properties, commandParameters.arguments.propertiesFile, commandParameters.arguments.domainName, commandParameters.arguments.tenantName, commandParameters.arguments.userDataId, commandParameters.arguments.userData, commandParameters.arguments.accountInfo, arrayOfSystemNickNames); - for (const property in provisionOptionalParams) { - if (!(0, util_1.isNullOrUndefined)(provisionOptionalParams[property])) { - usedOptionalParms = true; - } - } - if (usedOptionalParms) { - response = yield provisioning_for_zowe_sdk_1.ProvisionPublishedTemplate.provisionTemplate(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name, provisionOptionalParams); - } - else { - response = yield provisioning_for_zowe_sdk_1.ProvisionPublishedTemplate.provisionTemplate(this.mSession, provisioning_for_zowe_sdk_1.ProvisioningConstants.ZOSMF_VERSION, commandParameters.arguments.name); - } - let prettyResponse = imperative_1.TextUtils.explainObject(response, provisioning_for_zowe_sdk_1.explainProvisionTemplateResponse, false); - prettyResponse = imperative_1.TextUtils.prettyJson(prettyResponse); - commandParameters.response.console.log(prettyResponse); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Template.handler.js.map \ No newline at end of file diff --git a/lib/provisioning/provision/template/Template.handler.js.map b/lib/provisioning/provision/template/Template.handler.js.map deleted file mode 100644 index b799a2bed2..0000000000 --- a/lib/provisioning/provision/template/Template.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Template.handler.js","sourceRoot":"","sources":["../../../../src/provisioning/provision/template/Template.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,+BAAyC;AACzC,iDAAiE;AACjE,+EAOyC;AACzC,iEAA4D;AAE5D,MAAqB,OAAQ,SAAQ,qCAAgB;IACpC,UAAU,CAAC,iBAAqC;;YACzD,IAAI,QAAoC,CAAC;YACzC,IAAI,iBAAiB,GAAY,KAAK,CAAC;YACvC,IAAI,sBAAgC,CAAC;YAErC,IAAI,CAAC,IAAA,wBAAiB,EAAC,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE;gBACjE,sBAAsB,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe;qBAC/D,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,UAAkB,EAAE,EAAE;oBACxB,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC;gBAC7B,CAAC,CAAC,CAAC;aACV;YAED,MAAM,uBAAuB,GAAwB,+CAAmB,CAAC,2BAA2B,CAChG,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAC1C,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,QAAQ,EACpC,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,sBAAsB,CACzB,CAAC;YAEF,KAAK,MAAM,QAAQ,IAAI,uBAAuB,EAAE;gBAC5C,IACI,CAAC,IAAA,wBAAiB,EACd,uBAAuB,CACnB,QAAqC,CACxC,CACJ,EACH;oBACE,iBAAiB,GAAG,IAAI,CAAC;iBAC5B;aACJ;YAED,IAAI,iBAAiB,EAAE;gBACnB,QAAQ,GAAG,MAAM,sDAA0B,CAAC,iBAAiB,CACzD,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAChC,uBAAuB,CAC1B,CAAC;aACL;iBAAM;gBACH,QAAQ,GAAG,MAAM,sDAA0B,CAAC,iBAAiB,CACzD,IAAI,CAAC,QAAQ,EACb,iDAAqB,CAAC,aAAa,EACnC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CACnC,CAAC;aACL;YAED,IAAI,cAAc,GAAG,sBAAS,CAAC,aAAa,CACxC,QAAQ,EACR,4DAAgC,EAChC,KAAK,CACR,CAAC;YACF,cAAc,GAAG,sBAAS,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;YAEtD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;YAEvD,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAhED,0BAgEC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.definition.d.ts b/lib/workflows/archive/Archive.definition.d.ts deleted file mode 100644 index ea5e8c92d0..0000000000 --- a/lib/workflows/archive/Archive.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the archive group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const ArchiveDefinition: ICommandDefinition; diff --git a/lib/workflows/archive/Archive.definition.js b/lib/workflows/archive/Archive.definition.js deleted file mode 100644 index 8e6c403248..0000000000 --- a/lib/workflows/archive/Archive.definition.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ArchiveDefinition = void 0; -const Archive_workflow_definition_1 = require("./workflow/Archive.workflow.definition"); -/** - * This object defines the command for the archive group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -exports.ArchiveDefinition = { - name: "archive", - type: "group", - description: "Archive workflow instance in z/OSMF.", - children: [ - Archive_workflow_definition_1.Workflow - ] -}; -//# sourceMappingURL=Archive.definition.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.definition.js.map b/lib/workflows/archive/Archive.definition.js.map deleted file mode 100644 index 4676e85779..0000000000 --- a/lib/workflows/archive/Archive.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Archive.definition.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wFAAkE;AAElE;;;;;GAKG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE;QACN,sCAAQ;KACX;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.handler.d.ts b/lib/workflows/archive/Archive.handler.d.ts deleted file mode 100644 index 3136f27f45..0000000000 --- a/lib/workflows/archive/Archive.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common Handler for archiving workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -export default class ArchiveHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof ArchiveHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows archive" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ArchiveHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/archive/Archive.handler.js b/lib/workflows/archive/Archive.handler.js deleted file mode 100644 index e73a55e118..0000000000 --- a/lib/workflows/archive/Archive.handler.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -/** - * Common Handler for archiving workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -class ArchiveHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows archive" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ArchiveHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - let sourceType; - if (this.arguments.workflowKey) { - sourceType = "workflowKey"; - } - else if (this.arguments.workflowName) { - sourceType = "workflowName"; - } - let resp; - let getWfKey; - let error; - switch (sourceType) { - case "workflowKey": - try { - resp = yield zos_workflows_for_zowe_sdk_1.ArchiveWorkflow.archiveWorkflowByKey(this.mSession, this.arguments.workflowKey, undefined); - } - catch (err) { - error = "Archive workflow: " + err; - throw error; - } - params.response.data.setObj(resp); - params.response.console.log("Workflow archived with workflow-key " + resp.workflowKey); - break; - case "workflowName": { - getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { workflowName: this.arguments.workflowName }); - if (getWfKey === null || getWfKey.workflows.length === 0) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.` - }); - } - const successWfs = []; - const failedWfs = []; - for (const element of getWfKey.workflows) { - try { - resp = yield zos_workflows_for_zowe_sdk_1.ArchiveWorkflow.archiveWorkflowByKey(this.mSession, element.workflowKey); - successWfs.push(element); - } - catch (err) { - failedWfs.push(element); - } - } - params.response.data.setObj("Archived."); - if (getWfKey.workflows.length > 0) { - params.response.console.log("Successfully archived workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: successWfs, - format: "table", - header: true - }); - } - if (failedWfs.length > 0) { - params.response.console.log("\nFailed to archive Workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: failedWfs, - format: "table", - header: true - }); - throw new imperative_1.ImperativeError({ - msg: `Some workflows were not archived, please check the message above.` - }); - } - break; - } - default: - throw new imperative_1.ImperativeError({ - msg: `Internal create error: Unable to determine the the criteria by which to run workflow archive action. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - }); - } -} -exports.default = ArchiveHandler; -//# sourceMappingURL=Archive.handler.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.handler.js.map b/lib/workflows/archive/Archive.handler.js.map deleted file mode 100644 index 90b4a6353a..0000000000 --- a/lib/workflows/archive/Archive.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Archive.handler.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iEAA4D;AAC5D,iFAAoH;AAEpH;;;GAGG;AAEH,MAAqB,cAAe,SAAQ,qCAAgB;IASxD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,UAAU,GAAG,aAAa,CAAC;aAC9B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,UAAU,GAAG,cAAc,CAAC;aAC/B;YAED,IAAI,IAAI,CAAC;YACT,IAAI,QAA0B,CAAC;YAC/B,IAAI,KAAK,CAAC;YAEV,QAAQ,UAAU,EAAE;gBAChB,KAAK,aAAa;oBACd,IAAG;wBACC,IAAI,GAAG,MAAM,4CAAe,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;qBAC3G;oBAAC,OAAO,GAAG,EAAC;wBACT,KAAK,GAAG,oBAAoB,GAAG,GAAG,CAAC;wBACnC,MAAM,KAAK,CAAC;qBACf;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBAClC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;oBACvF,MAAM;gBAEV,KAAK,cAAc,CAAC,CAAC;oBACjB,QAAQ,GAAG,MAAM,0CAAa,CAAC,YAA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CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,SAAS;4BACjB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,MAAM,IAAI,4BAAe,CAAC;4BACtB,GAAG,EAAE,mEAAmE;yBAC3E,CAAC,CAAC;qBACN;oBACD,MAAM;iBACT;gBACD;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,uGAAuG;4BAC5G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AA7FD,iCA6FC"} \ No newline at end of file diff --git a/lib/workflows/archive/Archive.options.d.ts b/lib/workflows/archive/Archive.options.d.ts deleted file mode 100644 index ce5138f94f..0000000000 --- a/lib/workflows/archive/Archive.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the archive workflow commands. - */ -export declare const ArchiveOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/archive/Archive.options.js b/lib/workflows/archive/Archive.options.js deleted file mode 100644 index 7b8162b182..0000000000 --- a/lib/workflows/archive/Archive.options.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ArchiveOptions = void 0; -/** - * Object containing all extra options to be used by the archive workflow commands. - */ -exports.ArchiveOptions = { - /** - * The name of the workflow to be archived. - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - type: "string", - description: "The name of the workflow to be archived.", - required: false, - absenceImplications: ["workflow-key"], - conflictsWith: ["workflow-key"] - }, - /** - * The workflow key of the workflow to be archived. - * @type {ICommandOptionDefinition} - */ - workflowKey: { - name: "workflow-key", - aliases: ["wk"], - type: "string", - description: "The workflow key of the workflow to be archived.", - required: false - }, - /** - * Identifies the version of the zOSMF workflow service. - * @type {ICommandOptionDefinition} - */ - zosmfVersion: { - name: "zosmf-version", - aliases: ["zosmf-v"], - description: "Identifies the version of the zOSMF workflow service.", - type: "boolean", - required: false - } -}; -//# sourceMappingURL=Archive.options.js.map \ No newline at end of file diff --git a/lib/workflows/archive/Archive.options.js.map b/lib/workflows/archive/Archive.options.js.map deleted file mode 100644 index 63bab20726..0000000000 --- a/lib/workflows/archive/Archive.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Archive.options.js","sourceRoot":"","sources":["../../../src/workflows/archive/Archive.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,cAAc,GAAgD;IAEvE;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;QAC/D,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts b/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts deleted file mode 100644 index a73b374685..0000000000 --- a/lib/workflows/archive/workflow/Archive.workflow.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for archiving workflow instance on zOSMF. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const Workflow: ICommandDefinition; diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.js b/lib/workflows/archive/workflow/Archive.workflow.definition.js deleted file mode 100644 index c1c75298d7..0000000000 --- a/lib/workflows/archive/workflow/Archive.workflow.definition.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Workflow = void 0; -const Archive_options_1 = require("../Archive.options"); -const path_1 = require("path"); -/** - * This object defines the command for archiving workflow instance on zOSMF. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.Workflow = { - name: "active-workflow", - aliases: ["aw"], - description: "Archive an active workflow instance in z/OSMF.", - type: "command", - handler: (0, path_1.join)(__dirname, "../Archive.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - Archive_options_1.ArchiveOptions.workflowName, - Archive_options_1.ArchiveOptions.workflowKey - ]), - outputFormatOptions: true, - examples: [ - { - description: "Archive a workflow with workflow name \"testworkflow\"", - options: "--wn \"testworkflow\" " - }, - { - description: "Archive multiple workflows with workflow names starting with \"test\"", - options: "--wn \"test.*\" " - }, - { - description: "Archive a workflow with workflow key \"123-456-abv-xyz\"", - options: "--wk \"123-456-abv-xyz\" " - } - ] -}; -//# sourceMappingURL=Archive.workflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/archive/workflow/Archive.workflow.definition.js.map b/lib/workflows/archive/workflow/Archive.workflow.definition.js.map deleted file mode 100644 index 353b076b59..0000000000 --- a/lib/workflows/archive/workflow/Archive.workflow.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Archive.workflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/archive/workflow/Archive.workflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AACpD,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,QAAQ,GAAuB;IACxC,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC;IAC9C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,wBAAwB;SACpC;QACD;YACI,WAAW,EAAE,uEAAuE;YACpF,OAAO,EAAE,kBAAkB;SAC9B;QACD;YACI,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,2BAA2B;SACvC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/Create.common.handler.d.ts b/lib/workflows/create/Create.common.handler.d.ts deleted file mode 100644 index 7e21a8cc3c..0000000000 --- a/lib/workflows/create/Create.common.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common Handler for creating workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -export default class CreateCommonHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof CreateCommonHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows create" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof CreateCommonHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/create/Create.common.handler.js b/lib/workflows/create/Create.common.handler.js deleted file mode 100644 index 9b2542c2a9..0000000000 --- a/lib/workflows/create/Create.common.handler.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common Handler for creating workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -class CreateCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows create" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof CreateCommonHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - let sourceType; - if (this.arguments.dataSet) { - sourceType = "dataset"; - } - else if (this.arguments.ussFile) { - sourceType = "uss-file"; - } - else if (this.arguments.localFile) { - sourceType = "local-file"; - } - let wfKey; - let resp; - let error; - if (this.arguments.overwrite) { - wfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName); - if (wfKey) { - try { - resp = yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, wfKey); - } - catch (err) { - error = - "Deleting z/OSMF workflow with workflow name " + - this.arguments.workflowName + - " failed. More details: \n" + - err; - } - } - } - switch (sourceType) { - case "dataset": - try { - resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflow(this.mSession, this.arguments.workflowName, this.arguments.dataSet, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted); - } - catch (err) { - error = - "Creating zOS/MF workflow with data set: " + - this.arguments.dataSet + - " failed. More details: \n" + - err; - throw error; - } - params.response.data.setObj(resp); - params.response.format.output({ - fields: ["workflowKey", "workflowDescription"], - output: resp, - format: "object" - }); - break; - case "uss-file": - try { - resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflow(this.mSession, this.arguments.workflowName, this.arguments.ussFile, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted); - } - catch (err) { - error = - "Creating z/OSMF workflow with uss file: " + - this.arguments.ussFile + - " failed. More details: \n" + - err; - throw error; - } - params.response.data.setObj(resp); - params.response.format.output({ - fields: ["workflowKey", "workflowDescription"], - output: resp, - format: "object" - }); - break; - case "local-file": - try { - resp = yield zos_workflows_for_zowe_sdk_1.CreateWorkflow.createWorkflowLocal(this.mSession, this.arguments.workflowName, this.arguments.localFile, this.arguments.systemName, this.arguments.owner, this.arguments.variablesInputFile, this.arguments.variables, this.arguments.assignToOwner, this.arguments.accessType, this.arguments.deleteCompleted, this.arguments.keepFiles, this.arguments.remoteDirectory); - } - catch (err) { - error = - "Creating z/OSMF workflow with local file: " + - this.arguments.localFile + - " failed. More details: \n" + - err; - throw error; - } - params.response.data.setObj(resp); - params.response.format.output({ - fields: [ - "workflowKey", - "workflowDescription", - resp.filesKept - ? "filesKept" - : resp.failedToDelete - ? "failedToDelete" - : "" - ], - output: resp, - format: "object" - }); - break; - default: - throw new imperative_1.ImperativeError({ - msg: `Internal create error: Unable to determine the source of the definition file. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - }); - } -} -exports.default = CreateCommonHandler; -//# sourceMappingURL=Create.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.common.handler.js.map b/lib/workflows/create/Create.common.handler.js.map deleted file mode 100644 index bc3afb6343..0000000000 --- a/lib/workflows/create/Create.common.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.common.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAI0C;AAC1C,iEAA4D;AAE5D;;;GAGG;AAEH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAS7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxB,UAAU,GAAG,SAAS,CAAC;aAC1B;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC/B,UAAU,GAAG,UAAU,CAA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create/Create.common.options.d.ts b/lib/workflows/create/Create.common.options.d.ts deleted file mode 100644 index c2a412f058..0000000000 --- a/lib/workflows/create/Create.common.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the create workflow commands. - */ -export declare const CreateCommonOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/create/Create.common.options.js b/lib/workflows/create/Create.common.options.js deleted file mode 100644 index 5142ef7ca8..0000000000 --- a/lib/workflows/create/Create.common.options.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateCommonOptions = void 0; -/** - * Object containing all extra options to be used by the create workflow commands. - */ -exports.CreateCommonOptions = { - /** - * Data set containing workflow definiton option. - * @type {ICommandOptionDefinition} - */ - dataSet: { - name: "data-set", - aliases: ["ds"], - type: "string", - description: "Data set that contains a workflow definiton.", - required: true - }, - /** - * Uss file containing workflow definiton option. - * @type {ICommandOptionDefinition} - */ - ussFile: { - name: "uss-file", - aliases: ["uf"], - type: "string", - description: "Uss file that contains workflow definiton.", - required: true - }, - /** - * Local file containing workflow definiton option. - * @type {ICommandOptionDefinition} - */ - localFile: { - name: "local-file", - aliases: ["lf"], - type: "string", - description: "Local file that contains workflow definiton.", - required: true - }, - /** - * System where the workflow will run. - * @type {ICommandOptionDefinition} - */ - systemName: { - name: "system-name", - aliases: ["sn"], - description: "z/OS system to execute the workflow.", - type: "string", - required: true - }, - /** - * User id of the owner of the workflow. - * @type {ICommandOptionDefinition} - */ - owner: { - name: "owner", - aliases: ["ow"], - description: "User ID of the workflow owner. This user can perform the workflow steps or delegate the steps to other users.", - type: "string", - required: true - }, - /** - * Property file containing key-value pairs as workflow variables. - * @type {ICommandOptionDefinition} - */ - inputFile: { - name: "variables-input-file", - aliases: ["vif"], - description: "Specifies an optional properties file that you can use to pre-specify values for one or more of the variables that" + - " are defined in the workflow definition file.", - type: "string", - required: false - }, - /** - * Variables list for workflow. - * @type {ICommandOptionDefinition} - */ - variables: { - name: "variables", - aliases: ["vs"], - description: "Includes a list of variables for the workflow. " + - "The variables that you specify here take precedence over the variables that are specified in the workflow variable input file. " + - "Make sure the value meets all regular expression requirements set for the corresponding variable.", - type: "string", - required: false - }, - /** - * Indicates whether the workflow steps are assigned to the workflow owner. - * @type {ICommandOptionDefinition} - */ - assignToOwner: { - name: "assign-to-owner", - aliases: ["ato"], - description: "Indicates whether the workflow steps are assigned to the workflow owner.", - type: "boolean", - required: false - }, - /** - * Specifies the access type for the workflow. Public, Restricted or Private. - * @type {ICommandOptionDefinition} - */ - accessType: { - name: "access-type", - aliases: ["at"], - description: "Specifies the access type for the workflow. Public, Restricted or Private.", - type: "string", - required: false, - allowableValues: { - values: ["Public", "Restricted", "Private"], - caseSensitive: true - } - }, - /** - * Whether the successfully completed jobs to be deleted from the JES spool. - * @type {ICommandOptionDefinition} - */ - deleteCompleted: { - name: "delete-completed", - aliases: ["dc"], - description: "Whether the successfully completed jobs to be deleted from the JES spool.", - type: "boolean", - required: false - }, - /** - * Specifies whether delete workflow with the same name if it already exists. - * @type {ICommandOptionDefinition} - */ - overwrite: { - name: "overwrite", - aliases: ["ov"], - description: "Replaces an existing workflow with a new workflow. ", - type: "boolean", - required: false - }, - /** - * The remote uss directory where the files are to be uploaded. - * @type {ICommandOptionDefinition} - */ - remoteDirectory: { - name: "remote-directory", - aliases: ["rd"], - description: "The remote uss directory where the files are to be uploaded. The directory has to exist", - type: "string", - required: false - }, - /** - * Avoid deletion the uploaded files after successful execution. - * @type {ICommandOptionDefinition} - */ - keepFiles: { - name: "keep-files", - aliases: ["kf"], - description: "Avoid deletion the uploaded files in /tmp or another specified directory after successful execution.", - type: "boolean", - defaultValue: false, - required: false - }, - /** - * Identifies the version of the zOSMF workflow service. - * @type {ICommandOptionDefinition} - */ - zosmfVersion: { - name: "zosmf-version", - aliases: ["zosmf-v"], - description: "Identifies the version of the zOSMF workflow service.", - type: "boolean", - required: false - } -}; -//# sourceMappingURL=Create.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.common.options.js.map b/lib/workflows/create/Create.common.options.js.map deleted file mode 100644 index 510aae2494..0000000000 --- a/lib/workflows/create/Create.common.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.common.options.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,mBAAmB,GAAgD;IAE5E;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE,IAAI;KACjB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,IAAI;KACjB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE,IAAI;KACjB;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OA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D;QAClE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,eAAe,EAAE;QACb,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,yFAAyF;QACtG,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,sGAAsG;QACnH,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/Create.definition.d.ts b/lib/workflows/create/Create.definition.d.ts deleted file mode 100644 index a11b7ec4f8..0000000000 --- a/lib/workflows/create/Create.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the create group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const CreateDefinition: ICommandDefinition; diff --git a/lib/workflows/create/Create.definition.js b/lib/workflows/create/Create.definition.js deleted file mode 100644 index af92f6508f..0000000000 --- a/lib/workflows/create/Create.definition.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateDefinition = void 0; -const Dataset_definition_1 = require("./dataset/Dataset.definition"); -const UssFile_definition_1 = require("./ussfile/UssFile.definition"); -const LocalFile_definition_1 = require("./localfile/LocalFile.definition"); -/** - * This object defines the command for the create group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -exports.CreateDefinition = { - name: "create", - aliases: ["cre"], - type: "group", - description: "Create a z/OSMF workflow on a z/OS system.", - children: [ - Dataset_definition_1.DataSet, - UssFile_definition_1.UssFile, - LocalFile_definition_1.LocalFile - ] -}; -//# sourceMappingURL=Create.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/Create.definition.js.map b/lib/workflows/create/Create.definition.js.map deleted file mode 100644 index bbc0fc76b5..0000000000 --- a/lib/workflows/create/Create.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.definition.js","sourceRoot":"","sources":["../../../src/workflows/create/Create.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAuD;AACvD,qEAAuD;AACvD,2EAA6D;AAG7D;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE;QACN,4BAAO;QACP,4BAAO;QACP,gCAAS;KACZ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/dataset/Dataset.definition.d.ts b/lib/workflows/create/dataset/Dataset.definition.d.ts deleted file mode 100644 index d33cfe8525..0000000000 --- a/lib/workflows/create/dataset/Dataset.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for creating workflow instance from dataset within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const DataSet: ICommandDefinition; diff --git a/lib/workflows/create/dataset/Dataset.definition.js b/lib/workflows/create/dataset/Dataset.definition.js deleted file mode 100644 index 1203fdcf46..0000000000 --- a/lib/workflows/create/dataset/Dataset.definition.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataSet = void 0; -const Create_common_options_1 = require("../Create.common.options"); -const path_1 = require("path"); -/** - * This object defines the command for creating workflow instance from dataset within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.DataSet = { - name: "workflow-from-data-set", - aliases: ["wfds"], - description: "Create a z/OSMF workflow on a z/OS system using a Data set", - type: "command", - handler: (0, path_1.join)(__dirname, "../Create.common.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "workflowName", - type: "string", - description: "Name of the workflow", - required: true - } - ], - options: ([ - Create_common_options_1.CreateCommonOptions.dataSet, - Create_common_options_1.CreateCommonOptions.systemName, - Create_common_options_1.CreateCommonOptions.owner, - Create_common_options_1.CreateCommonOptions.inputFile, - Create_common_options_1.CreateCommonOptions.variables, - Create_common_options_1.CreateCommonOptions.assignToOwner, - Create_common_options_1.CreateCommonOptions.accessType, - Create_common_options_1.CreateCommonOptions.deleteCompleted, - Create_common_options_1.CreateCommonOptions.overwrite - // CreateCommonOptions.zosmfVersion - ]), - outputFormatOptions: true, - examples: [ - { - description: "Create a workflow with name \"testworkflow\" using the data set \"TESTID.WKFLOW\" that contains the workflow " + - "definition xml on the system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", - options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" - }, - { - description: "Create a workflow with name \"testworkflow\" using data set \"TESTID.WKFLOW\" containing workflow definition xml, " + - "on system \"TESTM1\" with owner \"MYSYSID\" and delete succesfully completed jobs", - options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" --delete-completed" - }, - { - description: "Create a workflow with name \"testworkflow\" using data set \"TESTID.WKFLOW\" containing workflow definition xml, " + - "on system \"TESTM1\" with owner \"MYSYSID\" and with variable values in the member PROPERTIES of data set TESTID.DATA", - options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" " + - "--variables-input-file TESTID.DATA(PROPERTIES)" - }, - { - description: "Create a workflow with name \"testworkflow\" using the data set \"TESTID.WKFLOW\" that contains a workflow definition xml" + - ", on a system \"TESTM1\" with owner \"MYSYSID\" and with the variable name DUMMYVAR and the value DUMMYVAL. Assign it to the owner", - options: "\"testworkflow\" --data-set \"TESTID.WKFLOW\" --system-name \"TESTM1\" --owner \"MYSYSID\" --variables DUMMYVAR=DUMMYVAL " + - "--assign-to-owner" - } - ] -}; -//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/dataset/Dataset.definition.js.map b/lib/workflows/create/dataset/Dataset.definition.js.map deleted file mode 100644 index c129868eba..0000000000 --- a/lib/workflows/create/dataset/Dataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/dataset/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,OAAO,GAAuB;IACvC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,OAAO;QAC3B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,mCAAmC;KACtC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+GAA+G;gBAC5H,qIAAqI;YACrI,OAAO,EAAE,wGAAwG;SACpH;QACD;YACI,WAAW,EAAE,oHAAoH;gBACjI,mFAAmF;YACnF,OAAO,EAAE,+GAA+G;SAC3H;QACD;YACI,WAAW,EAAE,oHAAoH;gBACjI,uHAAuH;YACvH,OAAO,EAAE,6FAA6F;gBAClG,gDAAgD;SACvD;QACD;YACI,WAAW,EAAE,2HAA2H;gBACxI,oIAAoI;YACpI,OAAO,EAAE,2HAA2H;gBAChI,mBAAmB;SAC1B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/localfile/LocalFile.definition.d.ts b/lib/workflows/create/localfile/LocalFile.definition.d.ts deleted file mode 100644 index 2f05682189..0000000000 --- a/lib/workflows/create/localfile/LocalFile.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for creating workflow instance from local file within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const LocalFile: ICommandDefinition; diff --git a/lib/workflows/create/localfile/LocalFile.definition.js b/lib/workflows/create/localfile/LocalFile.definition.js deleted file mode 100644 index 4104c21072..0000000000 --- a/lib/workflows/create/localfile/LocalFile.definition.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LocalFile = void 0; -const Create_common_options_1 = require("../Create.common.options"); -const path_1 = require("path"); -/** - * This object defines the command for creating workflow instance from local file within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.LocalFile = { - name: "workflow-from-local-file", - aliases: ["wflf"], - description: "Create a z/OSMF workflow on a z/OS system using a Local file", - type: "command", - handler: (0, path_1.join)(__dirname, "../Create.common.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "workflowName", - type: "string", - description: "Name of the workflow", - required: true - } - ], - options: ([ - Create_common_options_1.CreateCommonOptions.localFile, - Create_common_options_1.CreateCommonOptions.systemName, - Create_common_options_1.CreateCommonOptions.owner, - Create_common_options_1.CreateCommonOptions.inputFile, - Create_common_options_1.CreateCommonOptions.variables, - Create_common_options_1.CreateCommonOptions.assignToOwner, - Create_common_options_1.CreateCommonOptions.accessType, - Create_common_options_1.CreateCommonOptions.deleteCompleted, - Create_common_options_1.CreateCommonOptions.overwrite, - Create_common_options_1.CreateCommonOptions.remoteDirectory, - Create_common_options_1.CreateCommonOptions.keepFiles - ]), - outputFormatOptions: true, - examples: [ - { - description: "Create a workflow with name \"testworkflow\" using the local file \"TESTID_WKFLOW.xml\" that contains the workflow " + - "definition xml on the system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", - options: "\"testworkflow\" --local-file \"TESTID_WKFLOW.xml\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" - } - ] -}; -//# sourceMappingURL=LocalFile.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/localfile/LocalFile.definition.js.map b/lib/workflows/create/localfile/LocalFile.definition.js.map deleted file mode 100644 index 606aee3f0d..0000000000 --- a/lib/workflows/create/localfile/LocalFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalFile.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/localfile/LocalFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAG5B;;;;;GAKG;AACU,QAAA,SAAS,GAAuB;IACzC,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,8DAA8D;IAC3E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;KAChC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qHAAqH;gBAClI,qIAAqI;YACrI,OAAO,EAAE,8GAA8G;SAC1H;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/create/ussfile/UssFile.definition.d.ts b/lib/workflows/create/ussfile/UssFile.definition.d.ts deleted file mode 100644 index 011ceecccb..0000000000 --- a/lib/workflows/create/ussfile/UssFile.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for creating workflow instance from uss file within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const UssFile: ICommandDefinition; diff --git a/lib/workflows/create/ussfile/UssFile.definition.js b/lib/workflows/create/ussfile/UssFile.definition.js deleted file mode 100644 index 4b149a1b09..0000000000 --- a/lib/workflows/create/ussfile/UssFile.definition.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssFile = void 0; -const Create_common_options_1 = require("../Create.common.options"); -const path_1 = require("path"); -/** - * This object defines the command for creating workflow instance from uss file within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.UssFile = { - name: "workflow-from-uss-file", - aliases: ["wfuf"], - description: "Create a workflow instance in z/OSMF using a USS file", - type: "command", - handler: (0, path_1.join)(__dirname, "../Create.common.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "workflowName", - type: "string", - description: "Name of the workflow instance to create", - required: true - } - ], - options: ([ - Create_common_options_1.CreateCommonOptions.ussFile, - Create_common_options_1.CreateCommonOptions.systemName, - Create_common_options_1.CreateCommonOptions.owner, - Create_common_options_1.CreateCommonOptions.inputFile, - Create_common_options_1.CreateCommonOptions.variables, - Create_common_options_1.CreateCommonOptions.assignToOwner, - Create_common_options_1.CreateCommonOptions.accessType, - Create_common_options_1.CreateCommonOptions.deleteCompleted, - Create_common_options_1.CreateCommonOptions.overwrite - // CreateCommonOptions.zosmfVersion - ]), - outputFormatOptions: true, - examples: [ - { - description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + - "on system \"TESTM1\" with owner \"OTHERID\" and delete workflow with the same name if it already exist in z/OSMF", - options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"OTHERID\" --overwrite" - }, - { - description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + - "on system \"TESTM1\" with owner \"MYSYSID\" and delete successfully completed jobs", - options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"MYSYSID\" --delete-completed" - }, - { - description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + - "on system \"TESTM1\" with owner \"MYSYSID\" and with variable values in the member PROPERTIES of data set TESTID.DATA", - options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\" --owner \"MYSYSID\" " + - "--variables-input-file TESTID.DATA(PROPERTIES)" - }, - { - description: "Create a workflow with name \"testworkflow\" using uss file \"/path/workflow.xml\" containing workflow definition, " + - "on system \"TESTM1\" with owner \"MYSYSID\" and with variables VAR1 and VAR2 with values DUMMYVAL1 and DUMMYVAL2, " + - "and assign it to the owner", - options: "\"testworkflow\" --uss-file \"/path/workflow.xml\" --system-name \"TESTM1\"" + - "--variables VAR1=DUMMYVAL1,VAR2=DUMMYVAL2 " + - "--owner \"MYSYSID\" --assign-to-owner" - } - ] -}; -//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/workflows/create/ussfile/UssFile.definition.js.map b/lib/workflows/create/ussfile/UssFile.definition.js.map deleted file mode 100644 index e1a31cfd78..0000000000 --- a/lib/workflows/create/ussfile/UssFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/workflows/create/ussfile/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oEAA+D;AAC/D,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,OAAO,GAAuB;IACvC,IAAI,EAAE,wBAAwB;IAC9B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,2CAAmB,CAAC,OAAO;QAC3B,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,KAAK;QACzB,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,SAAS;QAC7B,2CAAmB,CAAC,aAAa;QACjC,2CAAmB,CAAC,UAAU;QAC9B,2CAAmB,CAAC,eAAe;QACnC,2CAAmB,CAAC,SAAS;QAC7B,mCAAmC;KACtC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,qHAAqH;gBAClI,kHAAkH;YAClH,OAAO,EAAE,6GAA6G;SACzH;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,oFAAoF;YACpF,OAAO,EAAE,oHAAoH;SAChI;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,uHAAuH;YACvH,OAAO,EAAE,kGAAkG;gBACvG,gDAAgD;SACvD;QACD;YACI,WAAW,EAAE,qHAAqH;gBAClI,oHAAoH;gBACpH,4BAA4B;YAC5B,OAAO,EAAE,6EAA6E;gBAClF,4CAA4C;gBAC5C,uCAAuC;SAC9C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.archived.common.handler.d.ts b/lib/workflows/delete/Delete.archived.common.handler.d.ts deleted file mode 100644 index 96f1bf0687..0000000000 --- a/lib/workflows/delete/Delete.archived.common.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common handler to delete a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -export default class DeleteArchivedCommonHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof DeleteArchivedCommonHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows delete" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof DeleteArchivedCommonHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/delete/Delete.archived.common.handler.js b/lib/workflows/delete/Delete.archived.common.handler.js deleted file mode 100644 index 6a45236c72..0000000000 --- a/lib/workflows/delete/Delete.archived.common.handler.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const minimatch = require("minimatch"); -/** - * Common handler to delete a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -class DeleteArchivedCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows delete" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof DeleteArchivedCommonHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - let error; - let listWorkflows; - this.arguments = params.arguments; - let sourceType; - if (this.arguments.workflowKey) { - sourceType = "workflowKey"; - } - else if (this.arguments.workflowName) { - sourceType = "workflowName"; - } - switch (sourceType) { - case "workflowKey": - try { - yield zos_workflows_for_zowe_sdk_1.ArchivedDeleteWorkflow.archivedDeleteWorkflow(this.mSession, this.arguments.workflowKey); - } - catch (err) { - error = "Delete workflow: " + err; - throw error; - } - params.response.data.setObj("Deleted."); - params.response.console.log("Workflow deleted."); - break; - case "workflowName": { - let wildCard = true; - let check; - let normalized; - const successWfs = []; - const failedWfs = []; - this.arguments.workflowName.includes(".*") - ? (normalized = this.arguments.workflowName - .split(".*") - .join("*")) - : (wildCard = false); - listWorkflows = yield zos_workflows_for_zowe_sdk_1.ListArchivedWorkflows.listArchivedWorkflows(this.mSession); - for (let i = listWorkflows.archivedWorkflows.length - 1; i >= 0; i--) { - // Swap between checks to avoid "glob pattern string required" error. - wildCard - ? (check = minimatch(listWorkflows.archivedWorkflows[i].workflowName, normalized)) - : (check = - listWorkflows.archivedWorkflows[i] - .workflowName === - this.arguments.workflowName); - if (check) { - try { - yield zos_workflows_for_zowe_sdk_1.ArchivedDeleteWorkflow.archivedDeleteWorkflow(this.mSession, listWorkflows.archivedWorkflows[i].workflowKey); - successWfs.push(listWorkflows.archivedWorkflows[i]); - } - catch (err) { - failedWfs.push(listWorkflows.archivedWorkflows[i]); - } - } - else { - listWorkflows.archivedWorkflows.splice(i, 1); - } - } - if (listWorkflows.archivedWorkflows.length === 0) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.` - }); - } - if (listWorkflows.archivedWorkflows.length > 0) { - params.response.console.log("Successfully deleted workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: successWfs, - format: "table", - header: true - }); - } - if (failedWfs.length > 0) { - params.response.console.log("\nFailed to delete Workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: failedWfs, - format: "table", - header: true - }); - throw new imperative_1.ImperativeError({ - msg: `Some workflows were not deleted, please check the message above.` - }); - } - params.response.data.setObj("Deleted."); - break; - } - default: - throw new imperative_1.ImperativeError({ - msg: `Internal create error: Unable to determine the the criteria by which to run delete workflow action. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - }); - } -} -exports.default = DeleteArchivedCommonHandler; -//# sourceMappingURL=Delete.archived.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.archived.common.handler.js.map b/lib/workflows/delete/Delete.archived.common.handler.js.map deleted file mode 100644 index d6540343a5..0000000000 --- a/lib/workflows/delete/Delete.archived.common.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.archived.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.archived.common.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAK0C;AAC1C,iEAA4D;AAC5D,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEvC;;;GAGG;AACH,MAAqB,2BAA4B,SAAQ,qCAAgB;IASrE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,KAAa,CAAC;YAClB,IAAI,aAAiC,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,IAAI,UAAkB,CAAC;YACvB,IAAI,IAAI,CAAC,SAAS,CAAC,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AAE,IAAI;yBACf,CAAC,CAAC;qBACN;oBAED,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;wBACtB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CACvB,kCAAkC,CACrC,CAAC;wBACF,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;4BAC1B,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;4BACvC,MAAM,EAAE,SAAS;4BACjB,MAAM,EAAE,OAAO;4BACf,MAAM,EAAE,IAAI;yBACf,CAAC,CAAC;wBACH,MAAM,IAAI,4BAAe,CAAC;4BACtB,GAAG,EAAE,kEAAkE;yBAC1E,CAAC,CAAC;qBACN;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM;iBACT;gBACD;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EACC,sGAAsG;4BACtG,yBAAyB;wBAC7B,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AArID,8CAqIC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.common.handler.d.ts b/lib/workflows/delete/Delete.common.handler.d.ts deleted file mode 100644 index f5ad6af969..0000000000 --- a/lib/workflows/delete/Delete.common.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common handler to delete a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -export default class DeleteCommonHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof DeleteCommonHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows delete" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof DeleteCommonHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/delete/Delete.common.handler.js b/lib/workflows/delete/Delete.common.handler.js deleted file mode 100644 index a072e7dd7d..0000000000 --- a/lib/workflows/delete/Delete.common.handler.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common handler to delete a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -class DeleteCommonHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows delete" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof DeleteCommonHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - let error; - let getWfKey; - this.arguments = params.arguments; - let sourceType; - if (this.arguments.workflowKey) { - sourceType = "workflowKey"; - } - else if (this.arguments.workflowName) { - sourceType = "workflowName"; - } - switch (sourceType) { - case "workflowKey": - try { - yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, this.arguments.workflowKey); - } - catch (err) { - error = "Delete workflow: " + err; - throw error; - } - params.response.data.setObj("Deleted."); - params.response.console.log("Workflow deleted."); - break; - case "workflowName": { - getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { workflowName: this.arguments.workflowName }); - if (getWfKey === null || getWfKey.workflows.length === 0) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.`, - additionalDetails: JSON.stringify(params) - }); - } - const successWfs = []; - const failedWfs = []; - for (const element of getWfKey.workflows) { - try { - yield zos_workflows_for_zowe_sdk_1.DeleteWorkflow.deleteWorkflow(this.mSession, element.workflowKey); - successWfs.push(element); - } - catch (err) { - failedWfs.push(element); - } - } - params.response.data.setObj("Deleted."); - if (getWfKey.workflows.length > 0) { - params.response.console.log("Successfully deleted workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: successWfs, - format: "table", - header: true - }); - } - if (failedWfs.length > 0) { - params.response.console.log("\nFailed to delete Workflow(s): "); - params.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: failedWfs, - format: "table", - header: true - }); - throw new imperative_1.ImperativeError({ - msg: `Some workflows were not deleted, please check the message above.` - }); - } - break; - } - default: - throw new imperative_1.ImperativeError({ - msg: `Internal create error: Unable to determine the the criteria by which to run delete workflow action. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - }); - } -} -exports.default = DeleteCommonHandler; -//# sourceMappingURL=Delete.common.handler.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.common.handler.js.map b/lib/workflows/delete/Delete.common.handler.js.map deleted file mode 100644 index 39d35522a6..0000000000 --- a/lib/workflows/delete/Delete.common.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.common.handler.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.common.handler.ts"],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MAAM,IAAI,4BAAe,CAAC;4BACtB,GAAG,EAAE,kEAAkE;yBAC1E,CAAC,CAAC;qBACN;oBAED,MAAM;iBACT;gBACD;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,sGAAsG;4BAC3G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AA7FD,sCA6FC"} \ No newline at end of file diff --git a/lib/workflows/delete/Delete.definition.d.ts b/lib/workflows/delete/Delete.definition.d.ts deleted file mode 100644 index 77c8bd9361..0000000000 --- a/lib/workflows/delete/Delete.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the delete group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/workflows/delete/Delete.definition.js b/lib/workflows/delete/Delete.definition.js deleted file mode 100644 index 162f7664ba..0000000000 --- a/lib/workflows/delete/Delete.definition.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteDefinition = void 0; -const DeleteActiveWorkflow_definition_1 = require("./deleteActiveWorkflow/DeleteActiveWorkflow.definition"); -const DeleteArchivedWorkflow_definition_1 = require("./deleteArchivedWorkflow/DeleteArchivedWorkflow.definition"); -/** - * This object defines the command for the delete group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -exports.DeleteDefinition = { - name: "delete", - aliases: ["del"], - type: "group", - description: "Delete an active workflow or an archived workflow from z/OSMF.", - children: [ - DeleteActiveWorkflow_definition_1.DeleteActiveWorkflow, - DeleteArchivedWorkflow_definition_1.DeleteArchivedWorkflow - ] -}; -//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/Delete.definition.js.map b/lib/workflows/delete/Delete.definition.js.map deleted file mode 100644 index 3a53052a20..0000000000 --- a/lib/workflows/delete/Delete.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/workflows/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4GAA8F;AAC9F,kHAAoG;AAGpG;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gEAAgE;IAC7E,QAAQ,EAAE;QACN,sDAAoB;QACpB,0DAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts deleted file mode 100644 index d8e35ff634..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete workflow using workflow key within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const DeleteActiveWorkflow: ICommandDefinition; diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js deleted file mode 100644 index d2cc54af1a..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteActiveWorkflow = void 0; -const path_1 = require("path"); -const DeleteActiveWorkflow_options_1 = require("../deleteActiveWorkflow/DeleteActiveWorkflow.options"); -/** - * This object defines the command for delete workflow using workflow key within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.DeleteActiveWorkflow = { - name: "active-workflow", - aliases: ["aw"], - description: "Delete an active workflow instance in z/OSMF", - type: "command", - handler: (0, path_1.join)(__dirname, "../Delete.common.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowKey, - DeleteActiveWorkflow_options_1.DeleteWorkflowOptions.workflowName - ]), - examples: [ - { - description: "To delete a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", - options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" - }, - { - description: "To delete a workflow instance in z/OSMF with workflow name \"testWorkflow\"", - options: "--workflow-name \"testWorkflow\"" - }, - { - description: "To delete multiple workflow instances in z/OSMF with names starting with \"test\"", - options: "--workflow-name \"test.*\"" - } - ] -}; -//# sourceMappingURL=DeleteActiveWorkflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map deleted file mode 100644 index adaaf65ea9..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteActiveWorkflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAC5B,uGAA6F;AAG7F;;;;;GAKG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,0BAA0B,CAAC;IACpD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,oDAAqB,CAAC,WAAW;QACjC,oDAAqB,CAAC,YAAY;KAErC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oGAAoG;YACjH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,6EAA6E;YAC1F,OAAO,EAAE,kCAAkC;SAC9C;QACD;YACI,WAAW,EAAE,mFAAmF;YAChG,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts deleted file mode 100644 index 4fe6c6252c..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the delete active workflow commands. - */ -export declare const DeleteWorkflowOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js deleted file mode 100644 index c4994dbcb4..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteWorkflowOptions = void 0; -/** - * Object containing all extra options to be used by the delete active workflow commands. - */ -exports.DeleteWorkflowOptions = { - /** - * Parameter to delete workflow by workflow name - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - description: "Delete active workflow by specified workflow name", - type: "string", - required: false, - absenceImplications: ["workflow-key"], - conflictsWith: ["workflow-key"] - }, - /** - * Parameter to delete workflow by workflow key. - * @type {ICommandOptionDefinition} - */ - workflowKey: { - name: "workflow-key", - aliases: ["wk"], - description: "Delete active workflow by specified workflow key", - type: "string", - required: false - // absenceImplications: ["by-name"] - // conflictsWith: ["by-name"], - } -}; -//# sourceMappingURL=DeleteActiveWorkflow.options.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map b/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map deleted file mode 100644 index 56946208ef..0000000000 --- a/lib/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteActiveWorkflow.options.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteActiveWorkflow/DeleteActiveWorkflow.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,qBAAqB,GAAgD;IAE9E;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mCAAmC;QACnC,8BAA8B;KACjC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts deleted file mode 100644 index a59619540a..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete workflow using workflow key within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const DeleteArchivedWorkflow: ICommandDefinition; diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js deleted file mode 100644 index c9024db679..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteArchivedWorkflow = void 0; -const path_1 = require("path"); -const DeleteArchivedWorkflow_options_1 = require("../deleteArchivedWorkflow/DeleteArchivedWorkflow.options"); -/** - * This object defines the command for delete workflow using workflow key within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.DeleteArchivedWorkflow = { - name: "archived-workflow", - aliases: ["arw"], - description: "Delete an archived workflow from z/OSMF", - type: "command", - handler: (0, path_1.join)(__dirname, "../Delete.archived.common.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - DeleteArchivedWorkflow_options_1.DeleteArchivedWorkflowOptions.workflowKey, - DeleteArchivedWorkflow_options_1.DeleteArchivedWorkflowOptions.workflowName - ]), - examples: [ - { - description: "To delete an archived workflow from z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", - options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" - }, - { - description: "To delete an archived workflow from z/OSMF with workflow name \"testWorkflow\"", - options: "--workflow-name \"testWorkflow\"" - }, - { - description: "To delete multiple archived workflows from z/OSMF with names beginnig with \"test\"", - options: "--workflow-name \"test.*\"" - } - ] -}; -//# sourceMappingURL=DeleteArchivedWorkflow.definition.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map deleted file mode 100644 index 0a32997fa7..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteArchivedWorkflow.definition.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAC5B,6GAAyG;AAGzG;;;;;GAKG;AACU,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,yCAAyC;IACtD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,mCAAmC,CAAC;IAC7D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,8DAA6B,CAAC,WAAW;QACzC,8DAA6B,CAAC,YAAY;KAE7C,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,uGAAuG;YACpH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,gFAAgF;YAC7F,OAAO,EAAE,kCAAkC;SAC9C;QACD;YACI,WAAW,EAAE,qFAAqF;YAClG,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts deleted file mode 100644 index eefcaffb86..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the delete archived workflow commands. - */ -export declare const DeleteArchivedWorkflowOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js deleted file mode 100644 index fda4663d83..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteArchivedWorkflowOptions = void 0; -/** - * Object containing all extra options to be used by the delete archived workflow commands. - */ -exports.DeleteArchivedWorkflowOptions = { - /** - * Parameter to delete workflow by workflow name - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - description: "Delete an archived workflow by specified workflow name", - type: "string", - required: false, - absenceImplications: ["workflow-key"], - conflictsWith: ["workflow-key"] - }, - /** - * Parameter to delete workflow by workflow key. - * @type {ICommandOptionDefinition} - */ - workflowKey: { - name: "workflow-key", - aliases: ["wk"], - description: "Delete an archived workflow by specified workflow key", - type: "string", - required: false - // absenceImplications: ["by-name"] - // conflictsWith: ["by-name"], - } -}; -//# sourceMappingURL=DeleteArchivedWorkflow.options.js.map \ No newline at end of file diff --git a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map b/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map deleted file mode 100644 index dcfe15e818..0000000000 --- a/lib/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteArchivedWorkflow.options.js","sourceRoot":"","sources":["../../../../src/workflows/delete/deleteArchivedWorkflow/DeleteArchivedWorkflow.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,6BAA6B,GAAgD;IAEtF;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mCAAmC;QACnC,8BAA8B;KACjC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/List.definition.d.ts b/lib/workflows/list/List.definition.d.ts deleted file mode 100644 index fe3d4fd8a4..0000000000 --- a/lib/workflows/list/List.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the List group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const ListDefinition: ICommandDefinition; diff --git a/lib/workflows/list/List.definition.js b/lib/workflows/list/List.definition.js deleted file mode 100644 index 7353aa52d3..0000000000 --- a/lib/workflows/list/List.definition.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDefinition = void 0; -const ActiveWorkflows_definition_1 = require("./activeWorkflows/ActiveWorkflows.definition"); -const ActiveWorkflowDetails_definition_1 = require("./activeWorkflowDetails/ActiveWorkflowDetails.definition"); -const RetrieveWorkflowDefinition_definition_1 = require("./retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition"); -const ArchivedWorkflows_definition_1 = require("./archivedWorkflows/ArchivedWorkflows.definition"); -/** - * This object defines the command for the List group within zosworkflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -exports.ListDefinition = { - name: "list", - aliases: ["ls"], - type: "group", - description: "List the z/OSMF workflows for a system or a sysplex with filter options.", - children: [ - ActiveWorkflows_definition_1.ActiveWorkflows, - ActiveWorkflowDetails_definition_1.ActiveWorkflowDetails, - RetrieveWorkflowDefinition_definition_1.RetrieveWorkflowDefinition, - ArchivedWorkflows_definition_1.ArchivedWorkflows - ] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/List.definition.js.map b/lib/workflows/list/List.definition.js.map deleted file mode 100644 index 0ab131d05d..0000000000 --- a/lib/workflows/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/workflows/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAA+E;AAC/E,+GAAiG;AACjG,8HAAgH;AAChH,mGAAqF;AAGrF;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,0EAA0E;IACvF,QAAQ,EAAE;QACN,4CAAe;QACf,wDAAqB;QACrB,kEAA0B;QAC1B,gDAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts deleted file mode 100644 index 65e8255498..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the list active workflow details commands. - */ -export declare const ActiveWorkflowDetailsCommonOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js deleted file mode 100644 index 72a09b62c3..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActiveWorkflowDetailsCommonOptions = void 0; -/** - * Object containing all extra options to be used by the list active workflow details commands. - */ -exports.ActiveWorkflowDetailsCommonOptions = { - /** - * Parameter to list workflow details by workflow name - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - description: "List active workflow details by specified workflow name.", - type: "string", - required: false, - absenceImplications: ["workflow-key"], - conflictsWith: ["workflow-key"] - }, - /** - * Parameter to list workflow details by workflow key. - * @type {ICommandOptionDefinition} - */ - workflowKey: { - name: "workflow-key", - aliases: ["wk"], - description: "List active workflow details by specified workflow key.", - type: "string", - required: false - // absenceImplications: ["workflow-name"] - // conflictsWith: ["workflow-name"], - }, - /** - * Optional parameter for listing steps properties. - * @type {ICommandOptionDefinition} - */ - listSteps: { - name: "list-steps", - aliases: ["ls"], - description: "Optional parameter for listing steps and their properties.", - type: "boolean", - required: false - }, - /** - * Optional parameter for listing steps summary only - * @type {ICommandOptionDefinition} - */ - stepsSummaryOnly: { - name: "steps-summary-only", - aliases: ["sso"], - description: "Optional parameter that lists steps summary only.", - type: "boolean", - required: false, - conflictsWith: ["list-steps"] - }, - /** - * Optional parameter for listing steps summary only - * @type {ICommandOptionDefinition} - */ - skipWorkflowSummary: { - name: "skip-workflow-summary", - aliases: ["sws"], - description: "Optional parameter that skips the default workflow summary.", - type: "boolean", - required: false, - impliesOneOf: ["steps-summary-only", "list-steps", "list-variables"] - }, - /** - * Optional parameter for listing variables properties. - * @type {ICommandOptionDefinition} - */ - listVariables: { - name: "list-variables", - aliases: ["lv"], - description: "Optional parameter for listing variables and their properties.", - type: "boolean", - required: false - } -}; -//# sourceMappingURL=ActiveWorkflowDetails.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map deleted file mode 100644 index 637458ccf0..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflowDetails.common.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,kCAAkC,GAAgD;IAE3F;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,yCAAyC;QACzC,oCAAoC;KACvC;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,gBAAgB,EAAE;QACd,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;QACf,aAAa,EAAE,CAAC,YAAY,CAAC;KAChC;IAED;;;OAGG;IACH,mBAAmB,EAAE;QACjB,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,6DAA6D;QAC1E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,CAAC,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,CAAC;KACvE;IAED;;;OAGG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts deleted file mode 100644 index 3455b0d610..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for listing active workflow details within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const ActiveWorkflowDetails: ICommandDefinition; diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js deleted file mode 100644 index 3342f1b9b2..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActiveWorkflowDetails = void 0; -const ActiveWorkflowDetails_common_options_1 = require("./ActiveWorkflowDetails.common.options"); -const path_1 = require("path"); -/** - * This object defines the command for listing active workflow details within zosworkflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.ActiveWorkflowDetails = { - name: "active-workflow-details", - aliases: ["awd"], - description: "Get the details of an active z/OSMF workflow", - type: "command", - handler: (0, path_1.join)(__dirname, "./ActiveWorkflowDetails.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.workflowName, - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.workflowKey, - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.listSteps, - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.stepsSummaryOnly, - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.listVariables, - ActiveWorkflowDetails_common_options_1.ActiveWorkflowDetailsCommonOptions.skipWorkflowSummary - ]), - examples: [ - { - description: "To list the details of an active workflow with key \"7c62c790-0340-86b2-61ce618d8f8c\" including its steps and variables", - options: "--workflow-key \"7c62c790-0340-86b2-61ce618d8f8c\" --list-steps --list-variables" - }, - { - description: "To list the details of an active workflow with name \"testWorkflow\" including its steps and variables", - options: "--workflow-name \"testWorkflow\" --list-steps --list-variables" - } - ] -}; -//# sourceMappingURL=ActiveWorkflowDetails.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map deleted file mode 100644 index 85439e6bfe..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflowDetails.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iGAA4F;AAC5F,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,qBAAqB,GAAuB;IACrD,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,iCAAiC,CAAC;IAC3D,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,yEAAkC,CAAC,YAAY;QAC/C,yEAAkC,CAAC,WAAW;QAC9C,yEAAkC,CAAC,SAAS;QAC5C,yEAAkC,CAAC,gBAAgB;QACnD,yEAAkC,CAAC,aAAa;QAChD,yEAAkC,CAAC,mBAAmB;KACzD,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0HAA0H;YACvI,OAAO,EAAE,kFAAkF;SAC9F;QACD;YACI,WAAW,EAAE,wGAAwG;YACrH,OAAO,EAAE,gEAAgE;SAC5E;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts deleted file mode 100644 index 982fa202ab..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * A Handler for listing details of a workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -export default class ActiveWorkflowDetails extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof PropertiesCommonHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows list active-workflow-details" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof PropertiesCommonHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js deleted file mode 100644 index cdee7b4ce0..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -/** - * A Handler for listing details of a workflow instance in z/OSMF in zosworkflows package. - * This is not something that is intended to be used outside of this npm package. - */ -class ActiveWorkflowDetails extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows list active-workflow-details" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof PropertiesCommonHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - let workflowKey; - let response; - let requireSteps; - let stepSummaries = []; - let error; - if (this.arguments.workflowKey) { - workflowKey = this.arguments.workflowKey; - } - else if (this.arguments.workflowName) { - workflowKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); - if (!workflowKey) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.`, - additionalDetails: JSON.stringify(params) - }); - } - } - this.arguments.listSteps || this.arguments.stepsSummaryOnly ? requireSteps = true : requireSteps = false; - try { - response = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.getWorkflowProperties(this.mSession, workflowKey, undefined, requireSteps, this.arguments.listVariables); - if (this.arguments.stepsSummaryOnly && response.steps) { - stepSummaries = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.processStepSummaries(response.steps); - } - else { - stepSummaries = response.steps; - } - } - catch (err) { - error = "List workflow details error: " + err; - throw error; - } - params.response.data.setObj(response); - if (!this.arguments.skipWorkflowSummary && !this.arguments.stepsSummaryOnly) { - params.response.console.log("\nWorkflow Details: "); - params.response.format.output({ - fields: ["workflowName", "workflowKey", - response.automationStatus ? "automationStatus.messageText" : "automationStatus"], - output: response, - format: "object" - }); - } - if (response.steps) { - params.response.console.log("\nWorkflow Steps: "); - params.response.format.output({ - fields: ["name", "state", "stepNumber", - this.arguments.stepsSummaryOnly ? "misc" : ""], - output: stepSummaries, - format: "table", - header: true - }); - } - if (this.arguments.listVariables && response.variables) { - params.response.console.log("\nWorkflow Variables: "); - params.response.format.output({ - fields: ["name", "value", "type"], - output: response.variables, - format: "table", - header: true - }); - } - }); - } -} -exports.default = ActiveWorkflowDetails; -//# sourceMappingURL=ActiveWorkflowDetails.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map b/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map deleted file mode 100644 index d98686c4c4..0000000000 --- a/lib/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflowDetails.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflowDetails/ActiveWorkflowDetails.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iD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BAClD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;gBACtD,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;oBACjC,MAAM,EAAE,QAAQ,CAAC,SAAS;oBAC1B,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AAnFD,wCAmFC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts deleted file mode 100644 index f8d27aaaed..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for listing workflow instance(s) in zOSMF. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const ActiveWorkflows: ICommandDefinition; diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js deleted file mode 100644 index b81d016cf9..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActiveWorkflows = void 0; -const ActiveWorkflows_options_1 = require("./ActiveWorkflows.options"); -const path_1 = require("path"); -/** - * This object defines the command for listing workflow instance(s) in zOSMF. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.ActiveWorkflows = { - name: "active-workflows", - aliases: ["aw"], - summary: "List active workflow instance(s) in z/OSMF.", - description: "List active workflow instance(s) in z/OSMF.\n" + - "Multiple filters can be used together.\n" + - "Omitting all options will list all workflows on the sysplex", - type: "command", - handler: (0, path_1.join)(__dirname, "ActiveWorkflows.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.workflowName, - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.category, - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.system, - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.owner, - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.vendor, - ActiveWorkflows_options_1.ListActiveWorkflowsOptions.statusName - ]), - outputFormatOptions: true, - examples: [ - { - description: "List the workflow with name \"testworkflow\"", - options: "--wn \"testworkflow\"" - }, - { - description: "List multiple active workflows on the entire syspex with names containing\"workflow\"", - options: "--wn \".*workflow.*\"" - }, - { - description: "List multiple active workflows on system \"IBMSYS\" with names beginnig with \"testW\" that are in status \"complete\"", - options: "--wn \"test.*\" --sys \"IBMSYS\" --sn \"complete\"" - } - ] -}; -//# sourceMappingURL=ActiveWorkflows.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map deleted file mode 100644 index 2a95ad8fa2..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflows.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uEAAuE;AACvE,+BAA4B;AAG5B;;;;;GAKG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,6CAA6C;IACtD,WAAW,EAAE,+CAA+C;QAC5D,0CAA0C;QAC1C,6DAA6D;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,yBAAyB,CAAC;IACnD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,oDAA0B,CAAC,YAAY;QACvC,oDAA0B,CAAC,QAAQ;QACnC,oDAA0B,CAAC,MAAM;QACjC,oDAA0B,CAAC,KAAK;QAChC,oDAA0B,CAAC,MAAM;QACjC,oDAA0B,CAAC,UAAU;KACxC,CAAC;IACF,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,8CAA8C;YAC3D,OAAO,EAAE,uBAAuB;SACnC;QACD;YACI,WAAW,EAAE,uFAAuF;YACpG,OAAO,EAAE,uBAAuB;SACnC;QACD;YACI,WAAW,EAAE,wHAAwH;YACrI,OAAO,EAAE,oDAAoD;SAChE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts deleted file mode 100644 index 83e99f21f6..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common Handler for listing active workflow(s) instance(s) in z/OSMF. - */ -export default class ListActiveWorkflowsHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof ListHandler - */ - private arguments; - /** - * Handler process - invoked by the command processor to handle the "zos-workflows list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListHandler - */ - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js deleted file mode 100644 index 1dbdbab0c7..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common Handler for listing active workflow(s) instance(s) in z/OSMF. - */ -class ListActiveWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Handler process - invoked by the command processor to handle the "zos-workflows list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListHandler - */ - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = commandParameters.arguments; - let response; - let error; - const width = 42; - try { - response = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWorkflows(this.mSession, { - workflowName: this.arguments.workflowName, - category: this.arguments.category, - system: this.arguments.system, - owner: this.arguments.owner, - vendor: this.arguments.vendor, - statusName: this.arguments.statusName - }); - } - catch (err) { - error = "List workflow(s) " + err; - throw error; - } - commandParameters.response.data.setObj(response); - response.workflows.forEach((workflow) => { - workflow.workflowName = imperative_1.TextUtils.wordWrap(`${workflow.workflowName}`, width); - workflow.workflowKey = imperative_1.TextUtils.wordWrap(`${workflow.workflowKey}`, width); - workflow.workflowDescription = imperative_1.TextUtils.wordWrap(`${workflow.workflowDescription}`, width); - }); - // Format & print the response - if (response.workflows.length) { - commandParameters.response.format.output({ - fields: ["workflowName", "workflowKey", "workflowDescription"], - output: response.workflows, - format: "table", - header: true - }); - } - else { - commandParameters.response.console.log("No workflows match the requested querry"); - } - }); - } -} -exports.default = ListActiveWorkflowsHandler; -//# sourceMappingURL=ActiveWorkflows.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map deleted file mode 100644 index 835ad8ada6..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflows.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iFAAmG;AACnG,iEAA4D;AAE5D;;GAEG;AAEH,MAAqB,0BAA2B,SAAQ,qCAAgB;IASpE;;;;;OAKG;IACU,UAAU,CAAC,iBAAqC;;YACzD,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC7C,IAAI,QAA0B,CAAC;YAC/B,IAAI,KAAK,CAAC;YACV,MAAM,KAAK,GAAG,EAAE,CAAC;YACjB,IAAI;gBACA,QAAQ,GAAG,MAAM,0CAAa,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE;oBACvD,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,YA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Q,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;aACrF;QACL,CAAC;KAAA;CACJ;AAtDD,6CAsDC"} \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts deleted file mode 100644 index 3522792db2..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the list active-workflow commands. - */ -export declare const ListActiveWorkflowsOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js deleted file mode 100644 index f56824f182..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListActiveWorkflowsOptions = void 0; -/** - * Object containing all extra options to be used by the list active-workflow commands. - */ -exports.ListActiveWorkflowsOptions = { - /** - * The name of the workflow. - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - description: "Filter by workflow name. For wildcard use .*", - type: "string", - required: false - }, - /** - * Category of the workflow, which is either general or configuration - * @type {ICommandOptionDefinition} - */ - category: { - name: "category", - aliases: ["cat"], - description: "Filter by the category of the workflows, which is either general or configuration.", - type: "string", - required: false - }, - /** - * Nickname of the system on which the workflow is to be performed. - * @type {ICommandOptionDefinition} - */ - system: { - name: "system", - aliases: ["sys"], - description: "Filter by the nickname of the system on which the workflows is/are active.", - type: "string", - required: false - }, - /** - * Workflow owner (a valid z/OS user ID). - * @type {ICommandOptionDefinition} - */ - owner: { - name: "owner", - aliases: ["ow"], - description: "Filter by owner of the workflow(s) (a valid z/OS user ID).", - type: "string", - required: false - }, - /** - * Name of the vendor that provided the workflow definition file. - * @type {ICommandOptionDefinition} - */ - vendor: { - name: "vendor", - aliases: ["vd"], - description: "Filter by the name of the vendor that provided the workflow(s) definition file.", - type: "string", - required: false - }, - /** - * Workflow status. - * @type {ICommandOptionDefinition} - */ - statusName: { - name: "status-name", - aliases: ["sn"], - description: "Filter by the status of the workflow(s).", - type: "string", - required: false, - allowableValues: { - values: ["in-progress", "complete", "automation-in-progress", "canceled"], - caseSensitive: true - } - }, - /** - * Identifies the version of the zOSMF workflow service. - * @type {ICommandOptionDefinition} - */ - zosmfVersion: { - name: "zosmf-version", - aliases: ["zosmf-v"], - description: "Identifies the version of the zOSMF workflow service.", - type: "string", - required: false - } -}; -//# sourceMappingURL=ActiveWorkflows.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map b/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map deleted file mode 100644 index 94acebe0c7..0000000000 --- a/lib/workflows/list/activeWorkflows/ActiveWorkflows.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ActiveWorkflows.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/activeWorkflows/ActiveWorkflows.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,0BAA0B,GAAgD;IAEnF;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,oFAAoF;QACjG,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,4EAA4E;QACzF,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,iFAAiF;QAC9F,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE;YACb,MAAM,EAAG,CAAC,aAAa,EAAE,UAAU,EAAE,wBAAwB,EAAE,UAAU,CAAC;YAC1E,aAAa,EAAE,IAAI;SACtB;KACJ;IAED;;;OAGG;IACH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts deleted file mode 100644 index 1d42ed257f..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for listing archived z/OSMF workflows for a system or sysplex. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const ArchivedWorkflows: ICommandDefinition; diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js deleted file mode 100644 index f0af05b43e..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ArchivedWorkflows = void 0; -const path_1 = require("path"); -/** - * This object defines the command for listing archived z/OSMF workflows for a system or sysplex. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.ArchivedWorkflows = { - name: "archived-workflows", - aliases: ["arw"], - summary: "List all archived workflows for a system.", - description: "List the archived z/OSMF workflows for a system or sysplex.", - type: "command", - handler: (0, path_1.join)(__dirname, "ArchivedWorkflows.handler"), - profile: { - optional: ["zosmf"] - }, - outputFormatOptions: true -}; -//# sourceMappingURL=ArchivedWorkflows.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map deleted file mode 100644 index 18bc8c6000..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArchivedWorkflows.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/archivedWorkflows/ArchivedWorkflows.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,2CAA2C;IACpD,WAAW,EAAE,6DAA6D;IAC1E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,2BAA2B,CAAC;IACrD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts deleted file mode 100644 index 79c8c4b9b9..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common Handler for listing archived workflows for a system. - */ -export default class ListArchivedWorkflowsHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @type {*} - * @memberof ListArchivedWorkflowsHandler - */ - private arguments; - /** - * Handler process - invoked by the command processor to handle the "zos-workflows archived list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListArchivedWorkflowsHandler - */ - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js deleted file mode 100644 index eba9215db8..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common Handler for listing archived workflows for a system. - */ -class ListArchivedWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Handler process - invoked by the command processor to handle the "zos-workflows archived list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListArchivedWorkflowsHandler - */ - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = commandParameters.arguments; - let response; - let error; - const width = 42; - try { - response = yield zos_workflows_for_zowe_sdk_1.ListArchivedWorkflows.listArchivedWorkflows(this.mSession); - } - catch (err) { - error = "List workflow(s) " + err; - throw error; - } - commandParameters.response.data.setObj(response); - response.archivedWorkflows.forEach((archivedWorkflows) => { - archivedWorkflows.workflowName = imperative_1.TextUtils.wordWrap(`${archivedWorkflows.workflowName}`, width); - archivedWorkflows.workflowKey = imperative_1.TextUtils.wordWrap(`${archivedWorkflows.workflowKey}`, width); - }); - // Format & print the response - if (response.archivedWorkflows.length) { - commandParameters.response.format.output({ - fields: ["workflowName", "workflowKey"], - output: response.archivedWorkflows, - format: "table", - header: true - }); - } - else { - commandParameters.response.console.log("No workflows match the requested query"); - } - }); - } -} -exports.default = ListArchivedWorkflowsHandler; -//# sourceMappingURL=ArchivedWorkflows.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map b/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map deleted file mode 100644 index b55d3fbb27..0000000000 --- a/lib/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArchivedWorkflows.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/archivedWorkflows/ArchivedWorkflows.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iFAA6G;AAC7G,iEAA4D;AAE5D;;GAEG;AAEH,MAAqB,4BAA6B,SAAQ,qCAAgB;IAQtE;;;;;OAKG;IACU,UAAU,CAAC,iBAAqC;;YACzD,IAAI,CAAC,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC7C,IAAI,QAA4B,CAAC;YACjC,IAAI,KAAK,CAAC;YACV,MAAM,KAAK,GAAG,EAAE,CAAC;YACjB,IAAI;gBACA,QAAQ,GAAG,MAAM,kDAAqB,CAAC,qBAAqB,CACxD,IAAI,CAAC,QAAQ,CAAC,CAAC;aACtB;YAAC,OAAO,GAAG,EAAE;gBACV,KAAK,GAAG,mBAAmB,GAAG,GAAG,CAAC;gBAClC,MAAM,KAAK,CAAC;aACf;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEjD,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,iBAAiC,EAAE,EAAE;gBACrE,iBAAiB,CAAC,YAAY,GAAG,sBAAS,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,YAAY,EAAE,EAAE,KAAK,CAAC,CAAC;gBAChG,iBAAiB,CAAC,WAAW,GAAG,sBAAS,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC;YAClG,CAAC,CAAC,CAAC;YAEH,8BAA8B;YAC9B,IAAI,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE;gBACnC,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;oBACvC,MAAM,EAAE,QAAQ,CAAC,iBAAiB;oBAClC,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;iBAAM;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;aACpF;QACL,CAAC;KAAA;CACJ;AA7CD,+CA6CC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts deleted file mode 100644 index 4e8d1c792e..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for retrieving workflow contents of zosworkflow definition. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const RetrieveWorkflowDefinition: ICommandDefinition; diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js deleted file mode 100644 index c01d5f432b..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RetrieveWorkflowDefinition = void 0; -const RetrieveWorkflowDefinition_options_1 = require("./RetrieveWorkflowDefinition.options"); -const path_1 = require("path"); -/** - * This object defines the command for retrieving workflow contents of zosworkflow definition. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.RetrieveWorkflowDefinition = { - name: "definition-file-details", - aliases: ["dfd"], - description: "Retrieve the contents of a z/OSMF workflow definition from a z/OS system.", - type: "command", - handler: (0, path_1.join)(__dirname, "./RetrieveWorkflowDefinition.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "definitionFilePath", - description: "Specifies the location of the workflow definition file, which is either a UNIX path name or a fully qualified z/OS data set name.", - type: "string", - required: true - } - ], - options: ([ - RetrieveWorkflowDefinition_options_1.RetrieveWorkflowDefinitionCommonOptions.listSteps, - RetrieveWorkflowDefinition_options_1.RetrieveWorkflowDefinitionCommonOptions.listVariables - ]), - examples: [ - { - description: "To list the contents of a workflow definition stored in the UNIX file \"/user/dir/workflow.xml\"" + - " including its steps and variables", - options: "\"/user/dir/workflow.xml\" --list-steps --list-variables" - }, - { - description: "To list the contents of a workflow definition stored in the z/OS data set \"USER.DATA.SET.XML\"" + - " including its steps and variables", - options: "\"USER.DATA.SET.XML\" --list-steps --list-variables" - } - ] -}; -//# sourceMappingURL=RetrieveWorkflowDefinition.definition.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map deleted file mode 100644 index 08b311bee9..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RetrieveWorkflowDefinition.definition.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAA+F;AAC/F,+BAA4B;AAE5B;;;;;GAKG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,2EAA2E;IACxF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,sCAAsC,CAAC;IAChE,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EACX,mIAAmI;YACnI,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,4EAAuC,CAAC,SAAS;QACjD,4EAAuC,CAAC,aAAa;KACxD,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kGAAkG;gBAC/G,oCAAoC;YACpC,OAAO,EAAE,0DAA0D;SACtE;QACD;YACI,WAAW,EAAE,iGAAiG;gBAC9G,oCAAoC;YACpC,OAAO,EAAE,qDAAqD;SACjE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts deleted file mode 100644 index 536543c0b5..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common Handler for retrieving the contents of a z/OSMF workflow definition from a z/OS system. - */ -export default class ListActiveWorkflowsHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof ListHandler - */ - private arguments; - /** - * Handler process - invoked by the command processor to handle the "zos-workflows list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListHandler - */ - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js deleted file mode 100644 index 0e1f576115..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common Handler for retrieving the contents of a z/OSMF workflow definition from a z/OS system. - */ -class ListActiveWorkflowsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Handler process - invoked by the command processor to handle the "zos-workflows list" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof ListHandler - */ - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = commandParameters.arguments; - let response; - let error; - try { - response = yield zos_workflows_for_zowe_sdk_1.DefinitionWorkflow.getWorkflowDefinition(this.mSession, undefined, this.arguments.definitionFilePath, this.arguments.listSteps, this.arguments.listVariables); - } - catch (err) { - error = "List workflow(s) " + err; - throw error; - } - commandParameters.response.data.setObj(response); - commandParameters.response.console.log("\nWorkflow Details: "); - commandParameters.response.format.output({ - fields: ["workflowDefaultName", "workflowDescription", "workflowID"], - output: response, - format: "object" - }); - if (this.arguments.listSteps && response.steps) { - commandParameters.response.console.log("\nWorkflow Steps: "); - commandParameters.response.format.output({ - fields: ["name", "title", "description"], - output: response.steps, - format: "table", - header: true - }); - } - if (this.arguments.listVariables && response.variables) { - commandParameters.response.console.log("\nWorkflow Variables: "); - commandParameters.response.format.output({ - fields: ["name", "description", "type"], - output: response.variables, - format: "table", - header: true - }); - } - }); - } -} -exports.default = ListActiveWorkflowsHandler; -//# sourceMappingURL=RetrieveWorkflowDefinition.handler.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map deleted file mode 100644 index 52506c934e..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RetrieveWorkflowDefinition.handler.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,iFAA2F;AAC3F,iEAA4D;AAE5D;;GAEG;AAEH,MAAqB,0BAA2B,SAAQ,qCAAgB;IASpE;;;;;OAKG;IACU,UAAU,CAAC,iBAAqC;;YAC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S,EAAC;gBAClD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;gBACjE,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC;oBACvC,MAAM,EAAE,QAAQ,CAAC,SAAS;oBAC1B,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AAzDD,6CAyDC"} \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts deleted file mode 100644 index a2043320ea..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the retrieve workflow definition commands. - */ -export declare const RetrieveWorkflowDefinitionCommonOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js deleted file mode 100644 index 7ba8496593..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RetrieveWorkflowDefinitionCommonOptions = void 0; -/** - * Object containing all extra options to be used by the retrieve workflow definition commands. - */ -exports.RetrieveWorkflowDefinitionCommonOptions = { - /** - * Parameter to list workflow details by workflow name - * @type {ICommandOptionDefinition} - */ - definitionFilePath: { - name: "workflow-name", - aliases: ["wn"], - description: "Specifies the location of the workflow definition file, which is either a UNIX path name or a fully qualified z/OS data set name.", - type: "string", - required: true, - absenceImplications: ["workflow-key"], - conflictsWith: ["workflow-key"] - }, - /** - * Optional parameter for listing steps properties. - * @type {ICommandOptionDefinition} - */ - listSteps: { - name: "list-steps", - aliases: ["ls"], - description: "Optional parameter for listing steps and their properties.", - type: "boolean", - required: false - }, - /** - * Optional parameter for listing variables properties. - * @type {ICommandOptionDefinition} - */ - listVariables: { - name: "list-variables", - aliases: ["lv"], - description: "Optional parameter for listing variables and their properties.", - type: "boolean", - required: false - } -}; -//# sourceMappingURL=RetrieveWorkflowDefinition.options.js.map \ No newline at end of file diff --git a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map b/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map deleted file mode 100644 index 16132321e2..0000000000 --- a/lib/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RetrieveWorkflowDefinition.options.js","sourceRoot":"","sources":["../../../../src/workflows/list/retrieveWorkflowDefinition/RetrieveWorkflowDefinition.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,uCAAuC,GAAgD;IAEhG;;;OAGG;IACH,kBAAkB,EAAE;QAChB,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EACX,mIAAmI;QACnI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAGD;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,4DAA4D;QACzE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;IAED;;;OAGG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/Start.common.options.d.ts b/lib/workflows/start/Start.common.options.d.ts deleted file mode 100644 index a9972da539..0000000000 --- a/lib/workflows/start/Start.common.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the start workflow commands. - */ -export declare const StartCommonOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/workflows/start/Start.common.options.js b/lib/workflows/start/Start.common.options.js deleted file mode 100644 index 9849fcf848..0000000000 --- a/lib/workflows/start/Start.common.options.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartCommonOptions = void 0; -/** - * Object containing all extra options to be used by the start workflow commands. - */ -exports.StartCommonOptions = { - /** - * Indicates how variable conflicts are to be handled when - * the Workflows task reads in the output file from a step. - * @type {ICommandOptionDefinition} - */ - resolveConflict: { - name: "resolve-conflict-by", - aliases: ["rcb"], - description: "How variable conflicts should be handled.\n Options:\n " + - "outputFileValue: Allow the output file values to override the existing values.\n" + - "existingValue: Use the existing variables values instead of the output file values.\n" + - "leaveConflict: Automation is stopped. The user must resolve the conflict manually.", - type: "string", - required: false, - defaultValue: "outputFileValue", - allowableValues: { - values: ["outputFileValue", "existingValue", "leaveConflict"], - caseSensitive: true - } - }, - /** - * Workflow key of workflow to be run. - * @type {ICommandOptionDefinition} - */ - workflowKey: { - name: "workflow-key", - aliases: ["wk"], - type: "string", - description: "Workflow key of workflow instance to be started", - required: false, - absenceImplications: ["workflow-name"], - conflictsWith: ["workflow-name"] - }, - /** - * Workflow name of workflow to be run. - * @type {ICommandOptionDefinition} - */ - workflowName: { - name: "workflow-name", - aliases: ["wn"], - type: "string", - description: "Workflow name of workflow instance to be started" - // absenceImplications: ["with-workflow-key"], - // conflictsWith: ["with-workflow-key"] - }, - /** - * If the workflow contains any subsequent automated steps, - * this property indicates whether z/OSMF is to perform the steps. - * @type {ICommandOptionDefinition} - */ - performFollowingSteps: { - name: "perform-following-steps", - aliases: ["pfs"], - description: "Identifies whether to perform also following steps in the workflow instance.", - type: "boolean", - defaultValue: false, - required: false - }, - /** - * Identifies whether to wait for workflow instance to finish. - * @type {ICommandOptionDefinition} - */ - wait: { - name: "wait", - aliases: ["w"], - description: "Identifies whether to wait for workflow instance to finish.", - type: "boolean", - required: false - }, - /** - * Identifies the version of the zOSMF workflow service. - * @type {ICommandOptionDefinition} - */ - zosmfVersion: { - name: "zosmf-version", - aliases: ["zosmf-v"], - description: "Identifies the version of the zOSMF workflow service.", - type: "boolean", - required: false - } -}; -//# sourceMappingURL=Start.common.options.js.map \ No newline at end of file diff --git a/lib/workflows/start/Start.common.options.js.map b/lib/workflows/start/Start.common.options.js.map deleted file mode 100644 index 5f2ecc0896..0000000000 --- a/lib/workflows/start/Start.common.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Start.common.options.js","sourceRoot":"","sources":["../../../src/workflows/start/Start.common.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;GAEG;AACU,QAAA,kBAAkB,GAAgD;IAE3E;;;;OAIG;IACH,eAAe,EAAE;QACb,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,CAA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K;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/Start.definition.d.ts b/lib/workflows/start/Start.definition.d.ts deleted file mode 100644 index b5fecc0b13..0000000000 --- a/lib/workflows/start/Start.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the start group within zos-workflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const StartDefinition: ICommandDefinition; diff --git a/lib/workflows/start/Start.definition.js b/lib/workflows/start/Start.definition.js deleted file mode 100644 index ce3485f8cd..0000000000 --- a/lib/workflows/start/Start.definition.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartDefinition = void 0; -const WorkflowStep_definition_1 = require("./workflowStep/WorkflowStep.definition"); -const WorkflowFull_definition_1 = require("./workflowFull/WorkflowFull.definition"); -/** - * This object defines the command for the start group within zos-workflows. This is not - * something that is intended to be used outside of this npm package. - * - * @private - */ -exports.StartDefinition = { - name: "start", - aliases: ["sta"], - type: "group", - description: "Start a z/OSMF workflow on a z/OS system.", - children: [ - WorkflowFull_definition_1.WorkflowFull, - WorkflowStep_definition_1.WorkflowStep - ] -}; -//# sourceMappingURL=Start.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/Start.definition.js.map b/lib/workflows/start/Start.definition.js.map deleted file mode 100644 index 98c06bcfe1..0000000000 --- a/lib/workflows/start/Start.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/workflows/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,oFAAsE;AACtE,oFAAsE;AAGtE;;;;;GAKG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE;QACN,sCAAY;QACZ,sCAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts b/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts deleted file mode 100644 index 3152d28e2a..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete workflow using workflow key within zos-workflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const WorkflowFull: ICommandDefinition; diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.js b/lib/workflows/start/workflowFull/WorkflowFull.definition.js deleted file mode 100644 index f10b7d3236..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.definition.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WorkflowFull = void 0; -const path_1 = require("path"); -const Start_common_options_1 = require("../Start.common.options"); -/** - * This object defines the command for delete workflow using workflow key within zos-workflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.WorkflowFull = { - name: "workflow-full", - aliases: ["wf"], - description: "Will run workflow from the beginning to the end or to the first manual step.", - type: "command", - handler: (0, path_1.join)(__dirname, "./WorkflowFull.handler"), - profile: { - optional: ["zosmf"] - }, - options: ([ - Start_common_options_1.StartCommonOptions.workflowKey, - Start_common_options_1.StartCommonOptions.workflowName, - Start_common_options_1.StartCommonOptions.resolveConflict, - Start_common_options_1.StartCommonOptions.wait - // StartCommonOptions.zosmfVersion, - ]), - examples: [ - { - description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", - options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" - }, - { - description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" and wait for" + - "it to be finished", - options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --wait" - }, - { - description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + - "and if there is a conflict in variable's value use the value that is in output file", - options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --resolve-conflict-by \"outputFileValue\"" - }, - { - description: "To start a workflow instance in z/OSMF with workflow name \"testWorkflow\"", - options: "--workflow-name \"testWorkflow\"" - } - ] -}; -//# sourceMappingURL=WorkflowFull.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map b/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map deleted file mode 100644 index ccedcc1486..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowFull.definition.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowFull/WorkflowFull.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,+BAA4B;AAC5B,kEAA6D;AAE7D;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,8EAA8E;IAC3F,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,wBAAwB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,CAAC;QACN,yCAAkB,CAAC,WAAW;QAC9B,yCAAkB,CAAC,YAAY;QAC/B,yCAAkB,CAAC,eAAe;QAClC,yCAAkB,CAAC,IAAI;QACvB,mCAAmC;KACtC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,mGAAmG;YAChH,OAAO,EAAE,yDAAyD;SACrE;QACD;YACI,WAAW,EAAE,gHAAgH;gBACzH,mBAAmB;YACvB,OAAO,EAAE,gEAAgE;SAC5E;QACD;YACI,WAAW,EAAE,mGAAmG;gBAC5G,qFAAqF;YACzF,OAAO,EAAE,mGAAmG;SAC/G;QACD;YACI,WAAW,EAAE,4EAA4E;YACzF,OAAO,EAAE,kCAAkC;SAC9C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts b/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts deleted file mode 100644 index ecbacbf39b..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common handler to start a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -export default class WorkflowFullHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof WorkflowFullHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows start full-workflow - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof WorkflowFullHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.js b/lib/workflows/start/workflowFull/WorkflowFull.handler.js deleted file mode 100644 index c5ddacf605..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.handler.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -/** - * Common handler to start a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -class WorkflowFullHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows start full-workflow - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof WorkflowFullHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - let error; - this.arguments = params.arguments; - let workflowKey; - if (this.arguments.workflowKey) { - workflowKey = this.arguments.workflowKey; - } - else if (this.arguments.workflowName) { - workflowKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); - if (!workflowKey) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.` - }); - } - } - try { - yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, workflowKey, this.arguments.resolveConflict); - } - catch (err) { - error = "Start workflow: " + err; - throw error; - } - if (this.arguments.wait) { - let response; - let workflowComplete = false; - while (!workflowComplete) { - response = yield zos_workflows_for_zowe_sdk_1.PropertiesWorkflow.getWorkflowProperties(this.mSession, workflowKey); - if (response.automationStatus && response.statusName !== "automation-in-progress") { - workflowComplete = true; - if (response.statusName === "complete") { - params.response.data.setObj("Complete."); - params.response.console.log("Workflow completed successfully."); - } - else { - throw new imperative_1.ImperativeError({ - msg: `Workflow failed or was cancelled or there is manual step.`, - additionalDetails: JSON.stringify(response) - }); - } - } - } - } - else { - params.response.data.setObj("Started."); - params.response.console.log("Workflow started."); - } - }); - } -} -exports.default = WorkflowFullHandler; -//# sourceMappingURL=WorkflowFull.handler.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map b/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map deleted file mode 100644 index 2fd5ee365d..0000000000 --- a/lib/workflows/start/workflowFull/WorkflowFull.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowFull.handler.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowFull/WorkflowFull.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iEAA4D;AAC5D,iFAAmH;AAGnH;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;IAS7D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,KAAK,CAAC;YACV,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAClC,IAAI,WAAmB,CAAC;YAExB,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;gBAC5B,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;aAC5C;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE;gBACpC,WAAW,GAAG,M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C,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;aACpD;QACL,CAAC;KAAA;CACJ;AA7DD,sCA6DC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts b/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts deleted file mode 100644 index 15684b462a..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete workflow using workflow key within zos-workflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -export declare const WorkflowStep: ICommandDefinition; diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.js b/lib/workflows/start/workflowStep/WorkflowStep.definition.js deleted file mode 100644 index 93f804edd5..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.definition.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WorkflowStep = void 0; -const path_1 = require("path"); -const Start_common_options_1 = require("../Start.common.options"); -/** - * This object defines the command for delete workflow using workflow key within zos-workflows. - * This is not something that is intended to be used outside of this npm package. - * - * @private - */ -exports.WorkflowStep = { - name: "workflow-step", - aliases: ["ws"], - description: "Will run given step of workflow instance plus following steps if specified by --perform-following-steps option.", - type: "command", - handler: (0, path_1.join)(__dirname, "./WorkflowStep.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "stepName", - description: "Specifies the step name that will be run.", - type: "string", - required: true - } - ], - options: ([ - Start_common_options_1.StartCommonOptions.workflowKey, - Start_common_options_1.StartCommonOptions.workflowName, - Start_common_options_1.StartCommonOptions.resolveConflict, - Start_common_options_1.StartCommonOptions.performFollowingSteps - // StartCommonOptions.zosmfVersion, - ]), - examples: [ - { - description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", - options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" - }, - { - description: "To start a workflow instance in z/OSMF from step \"Step1\" with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"", - options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --perform-following-steps" - }, - { - description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"" + - "and if there is a conflict in variable's value use the value that is in output file", - options: "\"Step1\" --workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --resolve-conflict-by \"outputFileValue\"" - }, - { - description: "To start step \"Step1\" only in a workflow instance in z/OSMF with workflow name \"testWorkflow\"", - options: "\"Step1\" --workflow-name \"testWorkflow\"" - } - ] -}; -//# sourceMappingURL=WorkflowStep.definition.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map b/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map deleted file mode 100644 index ca3ec03c48..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowStep.definition.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowStep/WorkflowStep.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,+BAA4B;AAC5B,kEAA6D;AAE7D;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,iHAAiH;IAC9H,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,wBAAwB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN,yCAAkB,CAAC,WAAW;QAC9B,yCAAkB,CAAC,YAAY;QAC/B,yCAAkB,CAAC,eAAe;QAClC,yCAAkB,CAAC,qBAAqB;QACxC,mCAAmC;KACtC,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0HAA0H;YACvI,OAAO,EAAE,mEAAmE;SAC/E;QACD;YACI,WAAW,EAAE,uHAAuH;YACpI,OAAO,EAAE,6FAA6F;SACzG;QACD;YACI,WAAW,EAAE,0HAA0H;gBACnI,qFAAqF;YACzF,OAAO,EAAE,6GAA6G;SACzH;QACD;YACI,WAAW,EAAE,mGAAmG;YAChH,OAAO,EAAE,4CAA4C;SACxD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts b/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts deleted file mode 100644 index 0b5c7bbd29..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.handler.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Common handler to start a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -export default class WorkflowStepHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof WorkflowStepHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows start workflow-step" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof WorkflowStepHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.js b/lib/workflows/start/workflowStep/WorkflowStep.handler.js deleted file mode 100644 index 83a9b8e3b0..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.handler.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_workflows_for_zowe_sdk_1 = require("@zowe/zos-workflows-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Common handler to start a workflow instance in z/OSMF. - * This is not something that is intended to be used outside of this npm package. - */ -class WorkflowStepHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-workflows start workflow-step" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof WorkflowStepHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - let error; - let getWfKey; - this.arguments = params.arguments; - let sourceType; - if (this.arguments.workflowKey) { - sourceType = "workflowKey"; - } - else if (this.arguments.workflowName) { - sourceType = "workflowName"; - } - switch (sourceType) { - case "workflowKey": - try { - yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, this.arguments.workflowKey, this.arguments.resolveConflict, this.arguments.stepName, this.arguments.performFollowingSteps); - } - catch (err) { - error = "Start workflow: " + err; - throw error; - } - params.response.data.setObj("Started."); - params.response.console.log("Workflow step started."); - break; - case "workflowName": - try { - getWfKey = yield zos_workflows_for_zowe_sdk_1.ListWorkflows.getWfKey(this.mSession, this.arguments.workflowName, undefined); - if (getWfKey === null) { - throw new imperative_1.ImperativeError({ - msg: `No workflows match the provided workflow name.`, - additionalDetails: JSON.stringify(params) - }); - } - yield zos_workflows_for_zowe_sdk_1.StartWorkflow.startWorkflow(this.mSession, getWfKey, this.arguments.resolveConflict, this.arguments.stepName, this.arguments.performFollowingSteps); - } - catch (err) { - error = "Start workflow: " + err; - throw error; - } - params.response.data.setObj("Started."); - params.response.console.log("Workflow step started."); - break; - default: - throw new imperative_1.ImperativeError({ - msg: `Internal create error: Unable to determine the the criteria by which to run start workflow action. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - }); - } -} -exports.default = WorkflowStepHandler; -//# sourceMappingURL=WorkflowStep.handler.js.map \ No newline at end of file diff --git a/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map b/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map deleted file mode 100644 index eb4ff762c9..0000000000 --- a/lib/workflows/start/workflowStep/WorkflowStep.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowStep.handler.js","sourceRoot":"","sources":["../../../../src/workflows/start/workflowStep/WorkflowStep.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,iFAAgF;AAChF,iEAA4D;AAE5D;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,qCAAgB;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ACN;wBACD,MAAM,0CAAa,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,EACrF,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;qBACtE;oBAAC,OAAO,GAAG,EAAC;wBACT,KAAK,GAAG,kBAAkB,GAAG,GAAG,CAAC;wBACjC,MAAM,KAAK,CAAC;qBACf;oBACD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;oBACtD,MAAM;gBACV;oBACI,MAAM,IAAI,4BAAe,CAAC;wBACtB,GAAG,EAAE,qGAAqG;4BAC1G,yBAAyB;wBACzB,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC5C,CAAC,CAAC;aACV;QACL,CAAC;KAAA;CACJ;AAjED,sCAiEC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/Collect.definition.d.ts b/lib/zosconsole/collect/Collect.definition.d.ts deleted file mode 100644 index 3e0f808c00..0000000000 --- a/lib/zosconsole/collect/Collect.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const CollectCommand: ICommandDefinition; diff --git a/lib/zosconsole/collect/Collect.definition.js b/lib/zosconsole/collect/Collect.definition.js deleted file mode 100644 index a9d5a7411f..0000000000 --- a/lib/zosconsole/collect/Collect.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CollectCommand = void 0; -const Response_definition_1 = require("./response/Response.definition"); -exports.CollectCommand = { - name: "collect", - type: "group", - summary: "Collect z/OS console command responses", - description: "z/OSMF console services provides a command response key upon successful issue of a console command. " + - "You can use this key to collect additional console message responses.", - children: [ - Response_definition_1.SyncResponseCommandDefinition - ] -}; -//# sourceMappingURL=Collect.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/Collect.definition.js.map b/lib/zosconsole/collect/Collect.definition.js.map deleted file mode 100644 index 7832539ea2..0000000000 --- a/lib/zosconsole/collect/Collect.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Collect.definition.js","sourceRoot":"","sources":["../../../src/zosconsole/collect/Collect.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wEAA+E;AAElE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,wCAAwC;IACjD,WAAW,EAAE,sGAAsG;QACnH,uEAAuE;IACvE,QAAQ,EAAE;QACN,mDAA6B;KAChC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.definition.d.ts b/lib/zosconsole/collect/response/Response.definition.d.ts deleted file mode 100644 index 1d7cfb9f51..0000000000 --- a/lib/zosconsole/collect/response/Response.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SyncResponseCommandDefinition: ICommandDefinition; diff --git a/lib/zosconsole/collect/response/Response.definition.js b/lib/zosconsole/collect/response/Response.definition.js deleted file mode 100644 index d685ad710e..0000000000 --- a/lib/zosconsole/collect/response/Response.definition.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SyncResponseCommandDefinition = void 0; -const Constants_1 = require("../../../Constants"); -exports.SyncResponseCommandDefinition = { - name: "sync-responses", - aliases: ["sr"], - summary: "Collect outstanding synchronous console response messages", - description: `The z/OSMF console REST APIs return a "solicited response key" after successfully issuing ` + - `a synchronous console command that produces solicited responses. You can use the "solicited response key"` + - `on the "sync-responses" command to collect any additional outstanding solicited responses ` + - `from the console the command was issued.` + - `\n\n` + - `In general, when issuing a z/OS console command, z/OS applications route responses to the originating console. ` + - `The command response messages are referred to as "solicited command responses" (i.e. direct responses to the command issued). ` + - `When issuing a z/OS console command using ${Constants_1.Constants.DISPLAY_NAME}, collection of all solicited command responses ` + - `is attempted by default. However, there is no z/OS mechanism that indicates the total number of response messages that may be produced ` + - `from a given command. Therefore, the ${Constants_1.Constants.DISPLAY_NAME} console APIs return a "solicited response key" ` + - `that can be used to "follow-up" and collect any additional solicited command responses.`, - type: "command", - handler: __dirname + "/Response.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "responsekey", - type: "string", - description: `The "solicited response key" provided in response to a previously issued console command. ` + - `Used by the z/OSMF console API to collect any additional outstanding solicited responses from a ` + - `previously issued console command.`, - regex: "^[a-zA-Z0-9]+$", - required: true - } - ], - options: [ - { - name: "console-name", - aliases: ["cn", "c"], - description: `The name of the z/OS extended MCS console to direct the command. ` + - `You must have the required authority to access the console specified. ` + - `You may also specify an arbitrary name, if your installation allows dynamic creation ` + - `of consoles with arbitrary names.`, - type: "string", - allowableValues: { - values: [/^[a-zA-Z0-9]+$/.source], - caseSensitive: false - } - } - ], - examples: [ - { - description: "Collect any outstanding additional solicited response messages", - options: "C4866969" - } - ] -}; -//# sourceMappingURL=Response.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.definition.js.map b/lib/zosconsole/collect/response/Response.definition.js.map deleted file mode 100644 index 661e2d9b8f..0000000000 --- a/lib/zosconsole/collect/response/Response.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Response.definition.js","sourceRoot":"","sources":["../../../../src/zosconsole/collect/response/Response.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,6BAA6B,GAAuB;IAC7D,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,2DAA2D;IACpE,WAAW,EAAE,4FAA4F;QACzG,2GAA2G;QAC3G,4FAA4F;QAC5F,0CAA0C;QAC1C,MAAM;QACN,iHAAiH;QACjH,gIAAgI;QAChI,6CAA6C,qBAAS,CAAC,YAAY,kDAAkD;QACrH,yIAAyI;QACzI,wCAAwC,qBAAS,CAAC,YAAY,kDAAkD;QAChH,yFAAyF;IACzF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4FAA4F;gBACzG,kGAAkG;gBAClG,oCAAoC;YACpC,KAAK,EAAE,gBAAgB;YACvB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;YACpB,WAAW,EAAE,mEAAmE;gBAChF,wEAAwE;gBACxE,uFAAuF;gBACvF,mCAAmC;YACnC,IAAI,EAAE,QAAQ;YACd,eAAe,EAAE;gBACb,MAAM,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;gBACjC,aAAa,EAAE,KAAK;aACvB;SACJ;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.handler.d.ts b/lib/zosconsole/collect/response/Response.handler.d.ts deleted file mode 100644 index 49d4d2675b..0000000000 --- a/lib/zosconsole/collect/response/Response.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handle to collect a MVS console command response - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zosconsole/collect/response/Response.handler.js b/lib/zosconsole/collect/response/Response.handler.js deleted file mode 100644 index edb8b2b220..0000000000 --- a/lib/zosconsole/collect/response/Response.handler.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_console_for_zowe_sdk_1 = require("@zowe/zos-console-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handle to collect a MVS console command response - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const collectParms = { - commandResponseKey: commandParameters.arguments.responsekey, - consoleName: commandParameters.arguments["console-name"] - }; - const response = yield zos_console_for_zowe_sdk_1.CollectCommand.collect(this.mSession, collectParms); - // Print out the response - commandParameters.response.console.log(response.commandResponse); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Response.handler.js.map \ No newline at end of file diff --git a/lib/zosconsole/collect/response/Response.handler.js.map b/lib/zosconsole/collect/response/Response.handler.js.map deleted file mode 100644 index efcc3939c3..0000000000 --- a/lib/zosconsole/collect/response/Response.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Response.handler.js","sourceRoot":"","sources":["../../../../src/zosconsole/collect/response/Response.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,6EAAiG;AACjG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,YAAY,GAAkB;gBAChC,kBAAkB,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW;gBAC3D,WAAW,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC;aAC3D,CAAC;YAEF,MAAM,QAAQ,GAAqB,MAAM,yCAAc,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YAE7F,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAEjE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAErD,CAAC;KAAA;CACJ;AAlBD,0BAkBC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/Issue.definition.d.ts b/lib/zosconsole/issue/Issue.definition.d.ts deleted file mode 100644 index ce4e61d6de..0000000000 --- a/lib/zosconsole/issue/Issue.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zosconsole/issue/Issue.definition.js b/lib/zosconsole/issue/Issue.definition.js deleted file mode 100644 index 6b5c6c86f4..0000000000 --- a/lib/zosconsole/issue/Issue.definition.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IssueCommand = void 0; -const Command_definition_1 = require("./command/Command.definition"); -exports.IssueCommand = { - name: "issue", - type: "group", - summary: "Issue z/OS console commands", - description: "Issue z/OS console commands and optionally collect responses.", - children: [ - Command_definition_1.IssueCommandDefinition - ] -}; -//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/Issue.definition.js.map b/lib/zosconsole/issue/Issue.definition.js.map deleted file mode 100644 index 03592c6b7c..0000000000 --- a/lib/zosconsole/issue/Issue.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zosconsole/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAsE;AAEzD,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,+DAA+D;IAC5E,QAAQ,EAAE;QACN,2CAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.definition.d.ts b/lib/zosconsole/issue/command/Command.definition.d.ts deleted file mode 100644 index 13107c9cfc..0000000000 --- a/lib/zosconsole/issue/command/Command.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const IssueCommandDefinition: ICommandDefinition; diff --git a/lib/zosconsole/issue/command/Command.definition.js b/lib/zosconsole/issue/command/Command.definition.js deleted file mode 100644 index f55652f65c..0000000000 --- a/lib/zosconsole/issue/command/Command.definition.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IssueCommandDefinition = void 0; -const Constants_1 = require("../../../Constants"); -exports.IssueCommandDefinition = { - name: "command", - aliases: ["cmd"], - summary: "Issue a z/OS console command and print the response", - description: `Issue a z/OS console command and print command responses (known as "solicited command responses").` + - `\n\n` + - `In general, when issuing a z/OS console command, z/OS applications route responses to the originating console. ` + - `The command response messages are referred to as "solicited command responses" (i.e. direct responses to the command issued). ` + - `When issuing a z/OS console command using ${Constants_1.Constants.DISPLAY_NAME}, collection of all solicited command responses ` + - `is attempted by default. However, there is no z/OS mechanism that indicates the total number of response messages that may be produced ` + - `from a given command. Therefore, the ${Constants_1.Constants.DISPLAY_NAME} console APIs return a "solicited response key" ` + - `that can be used to "follow-up" and collect any additional solicited command responses.` + - `\n\n` + - `${Constants_1.Constants.DISPLAY_NAME} will issue "follow-up" API requests by default ` + - `to collect any additional outstanding solicited command responses until a request returns no additional responses. ` + - `At that time, ${Constants_1.Constants.DISPLAY_NAME} will attempt a final collection attempt. ` + - `If no messages are present, the command is complete. If additional messages are present, the process is repeated. ` + - `However, this does not guarantee that all messages produced in direct response (i.e. solicited) have been collected. ` + - `The z/OS application may produce additional messages in direct response to your command at some point in the future. ` + - `You can manually collect additional responses using the "command response key" OR specify additional processing ` + - `options to, for example, delay collection attempts by a specified interval.`, - type: "command", - handler: __dirname + "/Command.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "commandtext", - type: "string", - description: "The z/OS console command to issue.", - required: true - } - ], - options: [ - { - name: "console-name", - aliases: ["cn", "c"], - description: `The name of the z/OS extended MCS console to direct the command. ` + - `You must have the required authority to access the console specified. ` + - `You may also specify an arbitrary name, if your installation allows dynamic creation ` + - `of consoles with arbitrary names.`, - type: "string", - allowableValues: { - values: [/^[a-zA-Z0-9]+$/.source], - caseSensitive: false - } - }, - { - name: "include-details", - aliases: ["id", "i"], - description: `Include additional details at the end of the ${Constants_1.Constants.DISPLAY_NAME} command response, ` + - `such as the "command response key" and the z/OSMF command response URL.`, - type: "boolean" - }, - { - name: "key-only", - aliases: ["ko", "k"], - description: `Displays only the "command response key" returned from the z/OSMF console API. ` + - `You can collect additional messages using the command key with ` + - `'${Constants_1.Constants.BINARY_NAME} zos-console collect sync-responses '. ` + - `Note that when using this option, you will not be presented ` + - `with the "first set" of command response messages (if present in the API response). ` + - `However, you can view them by using the --response-format-json option.`, - type: "boolean" - }, - { - name: "return-first", - aliases: ["rf", "r"], - description: `Indicates that ${Constants_1.Constants.DISPLAY_NAME} should return immediately with the response ` + - `message set returned in the first z/OSMF API request (even if no responses are present). ` + - `Using this option may result in partial or no response, but quicker ${Constants_1.Constants.DISPLAY_NAME} ` + - `command response time. The z/OSMF console API has an implicit wait when collecting ` + - `the first set of console command responses, i.e you will normally receive at least one set of ` + - `response messages.`, - type: "boolean", - conflictsWith: ["wait-to-collect"] - }, - { - name: "solicited-keyword", - aliases: ["sk", "s"], - description: "For solicited responses (direct command responses) the response is considered complete if " + - "the keyword specified is present. If the keyword is detected, the command will immediately " + - "return, meaning the full command response may not be provided. The key only applies to " + - "the first request issued, follow up requests do not support searching for the keyword.", - type: "string" - }, - { - name: "sysplex-system", - aliases: ["ss", "sys"], - description: `Specifies the z/OS system (LPAR) in the current SYSPLEX ` + - `(where your target z/OSMF resides) to route the z/OS console command.`, - type: "string" - }, - { - name: "wait-to-collect", - aliases: ["wtc", "w"], - description: `Indicates that ${Constants_1.Constants.DISPLAY_NAME} wait at least the specified number of seconds ` + - `before attempting to collect additional solicited response messages. If additional messages ` + - `are collected on "follow-up" requests, the timer is reset until an attempt is made that results ` + - `in no additional response messages.`, - type: "number", - conflictsWith: ["return-first"] - }, - { - name: "follow-up-attempts", - aliases: ["fua", "a"], - description: "Number of request attempts if no response returned.", - type: "number", - defaultValue: "1" - } - ], - examples: [ - { - description: "Issue a z/OS console command to display the IPL information for the system", - options: "\"D IPLINFO\"" - }, - { - description: "Issue a z/OS console command to display the local and coordinated universal time and date", - options: "\"D T\"" - }, - { - description: "Issue a Db2 command to display information about the status and configuration of DDF", - options: "\"\\-DB1G DISPLAY DDF\"" - } - ] -}; -//# sourceMappingURL=Command.definition.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.definition.js.map b/lib/zosconsole/issue/command/Command.definition.js.map deleted file mode 100644 index 81dca11b2c..0000000000 --- a/lib/zosconsole/issue/command/Command.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/zosconsole/issue/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,qDAAqD;IAC9D,WAAW,EAAE,oGAAoG;QACjH,MAAM;QACN,iHAAiH;QACjH,gIAAgI;QAChI,6CAA6C,qBAAS,CAAC,YAAY,kDAAkD;QACrH,yIAAyI;QACzI,wCAAwC,qBAAS,CAAC,YAAY,kDAAkD;QAChH,yFAAyF;QACzF,MAAM;QACN,GAAG,qBAAS,CAAC,YAAY,kDAAkD;QAC3E,qHAAqH;QACrH,iBAAiB,qBAAS,CAAC,YAAY,4CAA4C;QACnF,oHAAoH;QACpH,uHAAuH;QACvH,uHAAuH;QACvH,kHAAkH;QA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SAAS;YACf,aAAa,EAAE,CAAC,iBAAiB,CAAC;SACrC;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;YACpB,WAAW,EAAE,4FAA4F;gBACzG,6FAA6F;gBAC7F,yFAAyF;gBACzF,wFAAwF;YACxF,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;YACtB,WAAW,EAAE,0DAA0D;gBACvE,uEAAuE;YACvE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC;YACrB,WAAW,EAAE,kBAAkB,qBAAS,CAAC,YAAY,iDAAiD;gBACtG,8FAA8F;gBAC9F,kGAAkG;gBAClG,qCAAqC;YACrC,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,CAAC,cAAc,CAAC;SAClC;QACD;YACI,IAAI,EAAE,oBAAoB;YAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC;YACrB,WAAW,EAAE,qDAAqD;YAClE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,GAAG;SACpB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,4EAA4E;YACzF,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,2FAA2F;YACxG,OAAO,EAAE,SAAS;SACrB;QACD;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,yBAAyB;SACrC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.handler.d.ts b/lib/zosconsole/issue/command/Command.handler.d.ts deleted file mode 100644 index cffe5fc6f3..0000000000 --- a/lib/zosconsole/issue/command/Command.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handle to issue a MVS console command - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zosconsole/issue/command/Command.handler.js b/lib/zosconsole/issue/command/Command.handler.js deleted file mode 100644 index e217cb248e..0000000000 --- a/lib/zosconsole/issue/command/Command.handler.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_console_for_zowe_sdk_1 = require("@zowe/zos-console-for-zowe-sdk"); -const util_1 = require("util"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handle to issue a MVS console command - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - let response; - const issueParms = { - command: commandParameters.arguments.commandtext, - consoleName: commandParameters.arguments["console-name"], - solicitedKeyword: commandParameters.arguments["solicited-keyword"], - sysplexSystem: commandParameters.arguments["sysplex-system"], - async: commandParameters.arguments["key-only"] === true ? "Y" : "N" - }; - if ((0, util_1.isNullOrUndefined)(commandParameters.arguments["wait-to-collect"])) { - response = yield zos_console_for_zowe_sdk_1.IssueCommand.issue(this.mSession, issueParms); - } - else { - const collectParms = { - commandResponseKey: "", - consoleName: commandParameters.arguments["console-name"], - waitToCollect: commandParameters.arguments["wait-to-collect"], - followUpAttempts: commandParameters.arguments["follow-up-attempts"] - }; - response = yield zos_console_for_zowe_sdk_1.IssueCommand.issueAndCollect(this.mSession, issueParms, collectParms); - } - // Print out the response - if (commandParameters.arguments["key-only"]) { - if (!(0, util_1.isNullOrUndefined)(response.lastResponseKey)) { - commandParameters.response.console.log(response.lastResponseKey); - } - } - else { - commandParameters.response.console.log(response.commandResponse); - if (commandParameters.arguments["include-details"]) { - const details = { - responseKey: response.lastResponseKey, - cmdResponseUrl: response.cmdResponseUrl || undefined, - keywordDetected: response.keywordDetected || - ((!(0, util_1.isNullOrUndefined)(commandParameters.arguments["solicited-keyword"])) ? false : undefined) - }; - commandParameters.response.console.log("Additional details:"); - commandParameters.response.console.log("-------------------"); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(details)); - } - } - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Command.handler.js.map \ No newline at end of file diff --git a/lib/zosconsole/issue/command/Command.handler.js.map b/lib/zosconsole/issue/command/Command.handler.js.map deleted file mode 100644 index 912e71bba9..0000000000 --- a/lib/zosconsole/issue/command/Command.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/zosconsole/issue/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,6EAA4G;AAC5G,+BAAyC;AACzC,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,IAAI,QAA0B,CAAC;YAE/B,M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AC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;gBACjE,IAAI,iBAAiB,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE;oBAChD,MAAM,OAAO,GAAG;wBACZ,WAAW,EAAE,QAAQ,CAAC,eAAe;wBACrC,cAAc,EAAE,QAAQ,CAAC,cAAc,IAAI,SAAS;wBACpD,eAAe,EAAE,QAAQ,CAAC,eAAe;4BACrC,CAAC,CAAC,CAAC,IAAA,wBAAiB,EAAC,iBAAiB,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;qBACnG,CAAC;oBACF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;oBAC9D,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;oBAC9D,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;iBACzE;aACJ;YAED,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAjDD,0BAiDC"} \ No newline at end of file diff --git a/lib/zosfiles/-strings-/en.d.ts b/lib/zosfiles/-strings-/en.d.ts deleted file mode 100644 index d103162333..0000000000 --- a/lib/zosfiles/-strings-/en.d.ts +++ /dev/null @@ -1,791 +0,0 @@ -declare const _default: { - COMMON: { - ATTRIBUTE_TITLE: string; - FOR: string; - TO: string; - WITH_VALUE: string; - }; - CREATE: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET_BINARY: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - DATA_SET_CLASSIC: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - DATA_SET_C: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - DATA_SET_LIKE: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - DATA_SET_PARTITIONED: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - DATA_SET_SEQUENTIAL: { - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - }; - }; - VSAM: { - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - OPTIONS: { - RETAINFOR: string; - RETAINTO: string; - SECONDARY: string; - SIZE: string; - VOLUMES: string; - }; - EXAMPLES: { - DEFAULT_VALUES: string; - SHOW_FIVE_MB: string; - RETAIN_100_DAYS: string; - }; - }; - ZFS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - FILESYSTEMNAME: string; - }; - OPTIONS: { - OWNER: string; - GROUP: string; - PERMS: string; - CYLS_PRI: string; - CYLS_SEC: string; - VOLUMES: string; - TIMEOUT: string; - }; - EXAMPLES: { - DEFAULT_VALUES: string; - SPECIFY_CYLS: string; - SPECIFY_VOLUMES: string; - }; - }; - USSFILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - PATH: string; - }; - OPTIONS: { - MODE: string; - }; - EXAMPLES: { - CREATE_FILE: string; - SPECIFY_MODE: string; - }; - }; - USSDIR: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - PATH: string; - }; - OPTIONS: { - MODE: string; - }; - EXAMPLES: { - CREATE_DIRECTORY: string; - SPECIFY_MODE: string; - }; - }; - }; - POSITIONALS: { - DATASETNAME: string; - }; - OPTIONS: { - VOLSER: string; - UNIT: string; - DSORG: string; - ALCUNIT: string; - PRIMARY: string; - SECONDARY: string; - DIRBLK: string; - AVGBLK: string; - RECFM: string; - BLKSIZE: string; - LIKE: string; - LRECL: string; - STORCLASS: string; - MGNTCLASS: string; - DATACLASS: string; - DSNTYPE: string; - FLATFILE: string; - SHOWATTRIBUTES: string; - SIZE: string; - }; - }; - COPY: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - FROMDSNAME: string; - TODSNAME: string; - }; - OPTIONS: { - REPLACE: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - EX5: string; - }; - }; - DATA_SET_CROSS_LPAR: { - DESCRIPTION: string; - POSITIONALS: { - FROMDSNAME: string; - TODSNAME: string; - }; - OPTIONS: { - REPLACE: string; - TARGETHOST: string; - TARGETPORT: string; - TARGETUSER: string; - TARGETPASS: string; - TARGETTOKENVAL: string; - TARGETTOKENTYPE: string; - TARGETPROFILE: string; - TARGETVOLSER: string; - TARGETMGTCLS: string; - TARGETDATACLS: string; - TARGETSTGCLS: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - }; - }; - }; - }; - DELETE: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - DSNAME: string; - }; - OPTIONS: { - VOLUME: string; - FOR_SURE: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - MIGRATED_DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - OPTIONS: { - WAIT: string; - PURGE: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - VSAM: { - DESCRIPTION: string; - POSITIONALS: { - DSNAME: string; - }; - OPTIONS: { - FOR_SURE: string; - ERASE: string; - PURGE: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - }; - }; - USS: { - DESCRIPTION: string; - POSITIONALS: { - FILENAME: string; - }; - OPTIONS: { - FOR_SURE: string; - RECURSIVE: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - ZFS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - FILESYSTEMNAME: string; - }; - OPTIONS: { - FOR_SURE: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - }; - }; - DOWNLOAD: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - ALL_MEMBERS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSFILENAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - USS_DIR: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSDIRNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - DATA_SETS_MATCHING: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - PATTERN: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - }; - OPTIONS: { - ATTRIBUTES: string; - VOLUME: string; - BINARY: string; - RECORD: string; - ENCODING: string; - FAIL_FAST: string; - FAIL_FAST_USS: string; - FILE: string; - EXTENSION: string; - DIRECTORY: string; - DIRECTORY_USS: string; - EXTENSION_MAP: string; - EXCLUDE_PATTERN: string; - MAX_CONCURRENT_REQUESTS: string; - MAX_CONCURRENT_REQUESTS_USS: string; - PRESERVE_ORIGINAL_LETTER_CASE: string; - INCLUDE_HIDDEN: string; - OVERWRITE: string; - }; - }; - INVOKE: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - AMS: { - DESCRIPTION: string; - FILE_CMD: { - SUMMARY: string; - POSITIONAL: string; - EXAMPLES: { - EX1: string; - }; - }; - STATEMENTS_CMD: { - SUMMARY: string; - POSITIONAL: string; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - }; - }; - }; - LIST: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - ALL_MEMBERS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - }; - }; - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - EX5: string; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - PATH: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - FS: { - SUMMARY: string; - DESCRIPTION: string; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - }; - OPTIONS: { - VOLUME: string; - ATTRIBUTES: string; - MAXLENGTH: string; - NAME: string; - PATTERN: string; - PATH: string; - FSNAME: string; - START: string; - GROUP: string; - OWNER: string; - MTIME: string; - SIZE: string; - PERM: string; - TYPE: string; - DEPTH: string; - FILESYS: string; - SYMLINKS: string; - }; - }; - MOUNT: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - FS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - FILESYSTEMNAME: string; - MOUNTPOINT: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - OPTIONS: { - FSTYPE: string; - MODE: string; - }; - }; - }; - }; - OPTIONS: { - RESPONSETIMEOUT: string; - }; - UNMOUNT: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - FS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - FILESYSTEMNAME: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - }; - }; - UPLOAD: { - DESCRIPTION: string; - ACTIONS: { - DIR_TO_PDS: { - DESCRIPTION: string; - POSITIONALS: { - INPUTDIR: string; - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - FILE_TO_DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - INPUTFILE: string; - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - STDIN_TO_DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - }; - }; - FILE_TO_USS: { - DESCRIPTION: string; - POSITIONALS: { - INPUTFILE: string; - USSFILENAME: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - DIR_TO_USS: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - INPUTDIR: string; - USSDIR: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - EX5: string; - }; - }; - }; - OPTIONS: { - VOLUME: string; - BINARY: string; - RECORD: string; - ENCODING: string; - RECALL: string; - RECURSIVE: string; - BINARY_FILES: string; - ASCII_FILES: string; - ATTRIBUTES: string; - MAX_CONCURRENT_REQUESTS: string; - INCLUDE_HIDDEN: string; - }; - }; - VIEW: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - EX3: string; - EX4: string; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSFILE: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - }; - OPTIONS: { - BINARY: string; - ENCODING: string; - RECORD: string; - VOLUME: string; - RANGE: string; - }; - }; - EDIT: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSFILEPATH: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - }; - OPTIONS: { - EDITOR: string; - EXTENSION: string; - }; - }; - COMPARE: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME1: string; - DATASETNAME2: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - LOCAL_FILE_DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - LOCALFILEPATH: string; - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSFILEPATH1: string; - USSFILEPATH2: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - LOCAL_FILE_USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - LOCALFILEPATH: string; - USSFILEPATH: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - SPOOL_DD: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - SPOOLDDDESCRIPTION1: string; - SPOOLDDDESCRIPTION2: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - LOCAL_FILE_SPOOL_DD: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - LOCALFILEPATH: string; - SPOOLDDDESCRIPTION: string; - }; - EXAMPLES: { - EX1: string; - EX2: string; - }; - }; - }; - OPTIONS: { - BINARY: string; - BINARY2: string; - ENCODING: string; - ENCODING2: string; - RECORD: string; - RECORD2: string; - VOLUME: string; - VOLUME2: string; - SEQNUM: string; - CONTEXTLINES: string; - BROWSERVIEW: string; - }; - }; - HMIGRATE: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - }; - OPTIONS: { - WAIT: string; - }; - }; - HRECALL: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - DATASETNAME: string; - }; - EXAMPLES: { - EX1: string; - }; - }; - }; - OPTIONS: { - WAIT: string; - }; - }; - RENAME: { - DESCRIPTION: string; - ACTIONS: { - DATA_SET: { - DESCRIPTION: string; - POSITIONALS: { - BEFOREDSNAME: string; - AFTERDSNAME: string; - }; - OPTIONS: {}; - EXAMPLES: { - EX1: string; - }; - }; - DATA_SET_MEMBER: { - DESCRIPTION: string; - POSITIONALS: { - DSNAME: string; - BEFOREMEMBERNAME: string; - AFTERMEMBERNAME: string; - }; - OPTIONS: {}; - EXAMPLES: { - EX1: string; - }; - }; - }; - }; -}; -export default _default; diff --git a/lib/zosfiles/-strings-/en.js b/lib/zosfiles/-strings-/en.js deleted file mode 100644 index 94de9844c6..0000000000 --- a/lib/zosfiles/-strings-/en.js +++ /dev/null @@ -1,960 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const Constants_1 = require("../../Constants"); -exports.default = { - COMMON: { - ATTRIBUTE_TITLE: "The following attributes are used during creation:\n", - FOR: "for", - TO: "to", - WITH_VALUE: "with value" - }, - CREATE: { - DESCRIPTION: "Create data sets.", - ACTIONS: { - DATA_SET_BINARY: { - DESCRIPTION: "Create executable data sets", - EXAMPLES: { - EX1: "Create an empty binary partitioned data set (PDS) with default parameters", - EX2: "Create an empty binary PDSE using data set type LIBRARY" - } - }, - DATA_SET_CLASSIC: { - DESCRIPTION: "Create classic data sets (JCL, HLASM, CBL, etc...)", - EXAMPLES: { - EX1: "Create an empty z/OS 'classic' PDS with default parameters", - EX2: `Create an empty z/OS 'classic' PDSE using data set type LIBRARY` - } - }, - DATA_SET_C: { - DESCRIPTION: "Create data sets for C code programming", - EXAMPLES: { - EX1: "Create an empty C code PDS with default parameters", - EX2: "Create an empty C code PDSE using data set type LIBRARY" - } - }, - DATA_SET_LIKE: { - DESCRIPTION: "Create data sets based on the properties of an existing data set", - EXAMPLES: { - EX1: "Create a data set with default parameters and like flag", - EX2: "Create a data set with default parameters and like flag and lrecl flag", - EX3: "Create a data set with type LIBRARY" - } - }, - DATA_SET_PARTITIONED: { - DESCRIPTION: "Create partitioned data sets (PDS)", - EXAMPLES: { - EX1: "Create an empty PDS with default parameters", - EX2: "Create an empty PDSE using data set type LIBRARY" - } - }, - DATA_SET_SEQUENTIAL: { - DESCRIPTION: "Create physical sequential data sets (PS)", - EXAMPLES: { - EX1: "Create an empty physical sequential data set with default parameters" - } - }, - VSAM: { - DESCRIPTION: "Create a VSAM cluster", - POSITIONALS: { - DATASETNAME: "The name of the dataset in which to create a VSAM cluster" - }, - OPTIONS: { - RETAINFOR: "The number of days that the VSAM cluster will be retained on the system. You can delete the cluster at any " + - "time when neither retain-for nor retain-to is specified.", - RETAINTO: "The earliest date that a command without the PURGE parameter can delete an entry. Specify the expiration " + - "date in the form yyyyddd, where yyyy is a four-digit year" + - " (maximum value: 2155) and ddd is the three-digit day of the year " + - "from 001 through 365 (for non-leap years) or 366 (for leap years). You can delete the cluster at any time when neither " + - "retain-for nor retain-to is used. You cannot specify both the 'retain-to' and 'retain-for' options.", - SECONDARY: "The number of items for the secondary space allocation (for example, 840). " + - "The type of item allocated is the same as the type used for the '--size' option. " + - "If you do not specify a secondary allocation, a value of ~10% of the primary allocation is used.", - SIZE: "The primary size to allocate for the VSAM cluster. Specify size as the number of items to allocate (nItems). " + - "You specify the type of item by keyword.", - VOLUMES: "The storage volumes on which to allocate a VSAM cluster. Specify a single volume by its volume serial (VOLSER). To " + - "specify more than one volume, enclose the option in double-quotes and separate each VOLSER with a space. " + - "You must specify the volumes option when your cluster is not SMS-managed." - }, - EXAMPLES: { - DEFAULT_VALUES: `Create a VSAM data set named "SOME.DATA.SET.NAME" using default values of INDEXED, 840 KB primary storage and ` + - `84 KB secondary storage`, - SHOW_FIVE_MB: `Create a 5 MB LINEAR VSAM data set named "SOME.DATA.SET.NAME" with 1 MB of secondary space. Show the properties ` + - `of the data set when it is created`, - RETAIN_100_DAYS: `Create a VSAM data set named "SOME.DATA.SET.NAME", which is retained for 100 days` - } - }, - ZFS: { - SUMMARY: "Create a z/OS file system", - DESCRIPTION: "Create a z/OS file system.", - POSITIONALS: { - FILESYSTEMNAME: "The name of the file system to create." - }, - OPTIONS: { - OWNER: "The z/OS user ID or UID for the owner of the ZFS root directory.", - GROUP: "The z/OS group ID or GID for the group of the ZFS root directory.", - PERMS: "The permissions code for the ZFS root directory.", - CYLS_PRI: "The number of primary cylinders to allocate for the ZFS.", - CYLS_SEC: "The number of secondary cylinders to allocate for the ZFS.", - VOLUMES: "The storage volumes on which to allocate the z/OS file system. Specify a single volume by its volume serial " + - "(VOLSER). To specify more than one volume, separate each VOLSER with a space. You must specify the volumes option " + - "when your cluster is not SMS-managed.", - TIMEOUT: `The number of seconds to wait for the underlying "zfsadm format" command to complete. If this command times out, ` + - `the ZFS may have been created but not formatted correctly.` - }, - EXAMPLES: { - DEFAULT_VALUES: `Create a ZFS named "HLQ.MYNEW.ZFS" using default values of 755 permissions, 10 primary and 2 secondary ` + - `cylinders allocated, and a timeout of 20 seconds`, - SPECIFY_CYLS: `Create a ZFS with 100 primary and 10 secondary cylinders allocated`, - SPECIFY_VOLUMES: `Create a ZFS specifying the volumes that should be used` - } - }, - USSFILE: { - SUMMARY: "Create a UNIX file", - DESCRIPTION: "Create a UNIX file.", - POSITIONALS: { - PATH: "The name of the file that you want to create." - }, - OPTIONS: { - MODE: "Specifies the file permission bits to use when creating the file. " - }, - EXAMPLES: { - CREATE_FILE: `Create a USS file named "test.ext" `, - SPECIFY_MODE: `Create a USS file named "text.txt" with mode "rwxrwxrwx" ` - } - }, - USSDIR: { - SUMMARY: "Create a UNIX directory", - DESCRIPTION: "Create a UNIX directory.", - POSITIONALS: { - PATH: "The name of the directory that you want to create." - }, - OPTIONS: { - MODE: "Specifies the file permission bits to use when creating the directory." - }, - EXAMPLES: { - CREATE_DIRECTORY: `Create a USS directory named "testDir" `, - SPECIFY_MODE: `Create a USS directory named "testDir" with mode "rwxrwxrwx" ` - } - } - }, - POSITIONALS: { - DATASETNAME: "The name of the data set that you want to create" - }, - OPTIONS: { - VOLSER: "The volume serial (VOLSER) on which you want the data set to be placed. A VOLSER is analogous to a drive name on a PC.", - UNIT: "The device type, also known as 'unit'", - DSORG: "The data set organization", - ALCUNIT: "The allocation unit (for example, CYL for Cylinders)", - PRIMARY: "The primary space allocation (for example, 5)", - SECONDARY: "The secondary space allocation (for example, 1)", - DIRBLK: "The number of directory blocks (for example, 25)", - AVGBLK: "The number of average blocks (for example, 25)", - RECFM: `The record format for the data set (for example, FB for "Fixed Block")`, - BLKSIZE: "The block size for the data set (for example, 6160)", - LIKE: "Name of an existing data set to base your new data set's properties on", - LRECL: "The logical record length. Analogous to the length of a line (for example, 80)", - STORCLASS: "The SMS storage class to use for the allocation", - MGNTCLASS: "The SMS management class to use for the allocation", - DATACLASS: "The SMS data class to use for the allocation", - DSNTYPE: "The data set type (BASIC, EXTPREF, EXTREQ, HFS, LARGE, PDS, LIBRARY, PIPE)", - FLATFILE: "Indicates that you want to create the data set as a physical sequential file (flat file). A physical sequential file " + - "differs from a partitioned data set (PDS) because it cannot contain members, only file contents.", - SHOWATTRIBUTES: "Show the full allocation attributes", - SIZE: "The size of the data set (specified as nCYL or nTRK - where n is the number of cylinders or tracks). Sets the primary " + - "allocation (the secondary allocation becomes ~10% of the primary)." - } - }, - COPY: { - DESCRIPTION: "Copy a data set.", - ACTIONS: { - DATA_SET: { - DESCRIPTION: "Copy a data set to another data set", - POSITIONALS: { - FROMDSNAME: "The name of the data set that you want to copy from", - TODSNAME: "The name of the data set that you want to copy to (data set must be preallocated)" - }, - OPTIONS: { - REPLACE: "Specify this option as true if you wish to replace like-named members in the target dataset" - }, - EXAMPLES: { - EX1: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET'", - EX2: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set member named 'USER.TO.SET(MEM2)'", - EX3: "Copy the data set named 'USER.FROM.SET' to the data set member named 'USER.TO.SET(MEM2)'", - EX4: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set named 'USER.TO.SET'", - EX5: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' and replace like-named members" - } - }, - DATA_SET_CROSS_LPAR: { - DESCRIPTION: "Copy a data set to another data set on a specified LPAR", - POSITIONALS: { - FROMDSNAME: "The name of the data set that you want to copy from", - TODSNAME: "The name of the data set that you want to copy to. If the dataset does not " + - "exist it will be allocated automatically" - }, - OPTIONS: { - REPLACE: "Specify this option as true if you wish to replace the target dataset if it already exists", - TARGETHOST: "The target z/OSMF server host name.", - TARGETPORT: "The target z/OSMF server port.", - TARGETUSER: "The target z/OSMF user name, which can be the same as your TSO login.", - TARGETPASS: "The target z/OSMF password, which can be the same as your TSO password.", - TARGETTOKENVAL: "The type of token to get and use for the API for the target system.", - TARGETTOKENTYPE: "The value of the token to pass to the API for the target system.", - TARGETPROFILE: "The name of a z/OSMF profile to load for the target host. ", - TARGETVOLSER: "The volume serial (VOLSER) on which you want the target data set to be placed.", - TARGETMGTCLS: "The SMS management class to use for the allocation of the target data set.", - TARGETDATACLS: "The SMS data class to use for the allocation of the target data set.", - TARGETSTGCLS: "The SMS storage class to use for the allocation of the target data set." - }, - EXAMPLES: { - EX1: "Copy the data set named 'USER.FROM.SET' to the data set named 'USER.TO.SET' using the --target-zosmf-p" + - " option to specify the target host using a zosmf profile", - EX2: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set member named 'USER.TO.SET(MEM2)'", - EX3: "Copy the data set named 'USER.FROM.SET' to the data set member named 'USER.TO.SET(MEM2)'", - EX4: "Copy the data set member named 'USER.FROM.SET(MEM1)' to the data set named 'USER.TO.SET' using the " + - "--target-host, --target-user, and --target-password options" - } - } - } - }, - DELETE: { - DESCRIPTION: "Delete a data set or Unix System Services file.", - ACTIONS: { - DATA_SET: { - DESCRIPTION: "Delete a data set or data set member permanently", - POSITIONALS: { - DSNAME: "The name of the data set that you want to delete" - }, - OPTIONS: { - VOLUME: "The volume serial (VOLSER) where the data set resides. The option is required only when the data set is not" + - " catalogued on the system.", - FOR_SURE: "Specify this option to confirm that you want to delete the data set permanently." - }, - EXAMPLES: { - EX1: "Delete the data set named 'ibmuser.cntl'", - EX2: "Delete the data set member named 'ibmuser.cntl(mem)'" - } - }, - MIGRATED_DATA_SET: { - DESCRIPTION: "Delete migrated data sets.", - POSITIONALS: { - DATASETNAME: "The name of the migrated data set you want to delete." - }, - OPTIONS: { - WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued.", - PURGE: "If true then the function uses the PURGE=YES on ARCHDEL request. If false (default) the function uses the PURGE=NO on " + - "ARCHDEL request." - }, - EXAMPLES: { - EX1: `Delete a migrated data set using default options` - } - }, - VSAM: { - DESCRIPTION: "Delete a VSAM cluster permanently", - POSITIONALS: { - DSNAME: "The name of the VSAM cluster that you want to delete" - }, - OPTIONS: { - FOR_SURE: "Specify this option to confirm that you want to delete the VSAM cluster permanently.", - ERASE: "Specify this option to overwrite the data component for the cluster with binary zeros. This " + - "option is ignored if the NOERASE attribute was specified when the cluster was defined or altered.", - PURGE: "Specify this option to delete the VSAM cluster regardless of its retention period or date." - }, - EXAMPLES: { - EX1: "Delete the VSAM data set named 'ibmuser.cntl.vsam'", - EX2: "Delete all expired VSAM data sets that match 'ibmuser.AAA.**.FFF'", - EX3: "Delete a non-expired VSAM data set named 'ibmuser.cntl.vsam'", - EX4: "Delete an expired VSAM data set named 'ibmuser.cntl.vsam' by overwriting the components with zeros" - } - }, - USS: { - DESCRIPTION: "Delete a Unix Systems Services (USS) File or directory permanently", - POSITIONALS: { - FILENAME: "The name of the file or directory that you want to delete" - }, - OPTIONS: { - FOR_SURE: "Specify this option to confirm that you want to delete the file or directory permanently.", - RECURSIVE: "Delete directories recursively." - }, - EXAMPLES: { - EX1: "Delete the empty directory '/u/ibmuser/testcases'", - EX2: "Delete the file named '/a/ibmuser/my_text.txt'", - EX3: "Recursively delete the directory named '/u/ibmuser/testcases'" - } - }, - ZFS: { - SUMMARY: "Delete a z/OS file system permanently", - DESCRIPTION: "Delete a z/OS file system permanently.", - POSITIONALS: { - FILESYSTEMNAME: "The name of the z/OS file system that you want to delete." - }, - OPTIONS: { - FOR_SURE: "Specify this option to confirm that you want to delete the ZFS permanently." - }, - EXAMPLES: { - EX1: "Delete the z/OS file system 'HLQ.MYNEW.ZFS'" - } - } - } - }, - DOWNLOAD: { - SUMMARY: "Download content from data sets and USS files", - DESCRIPTION: "Download content from z/OS data sets and USS files to your PC.", - ACTIONS: { - ALL_MEMBERS: { - SUMMARY: "Download all members from a pds", - DESCRIPTION: "Download all members from a partitioned data set to a local folder", - POSITIONALS: { - DATASETNAME: "The name of the data set from which you want to download members" - }, - EXAMPLES: { - EX1: `Download the members of the data set "ibmuser.loadlib" in binary mode to the directory "loadlib/"`, - EX2: `Download the members of the data set "ibmuser.cntl" in text mode to the directory "jcl/"` - } - }, - DATA_SET: { - SUMMARY: "Download content from a z/OS data set", - DESCRIPTION: "Download content from a z/OS data set to a local file", - POSITIONALS: { - DATASETNAME: "The name of the data set that you want to download" - }, - EXAMPLES: { - EX1: `Download the data set "ibmuser.loadlib(main)" in binary mode to the local file "main.obj"` - } - }, - USS_FILE: { - SUMMARY: "Download content from a USS file", - DESCRIPTION: "Download content from a USS file to a local file on your PC", - POSITIONALS: { - USSFILENAME: "The name of the USS file you want to download" - }, - EXAMPLES: { - EX1: `Download the file "/a/ibmuser/my_text.txt" to ./my_text.txt`, - EX2: `Download the file "/a/ibmuser/MyJava.class" to "java/MyJava.class" in binary mode` - } - }, - USS_DIR: { - SUMMARY: "Download content from a USS directory", - DESCRIPTION: "Download content from a USS directory to a local directory on your PC", - POSITIONALS: { - USSDIRNAME: "The name of the USS directory you want to download" - }, - EXAMPLES: { - EX1: `Download the directory "/a/ibmuser" to "./" in binary mode`, - EX2: `Download the directory "/a/ibmuser" to "./localDir"`, - EX3: `Download files from the directory "/a/ibmuser" that match the name "*.log" and were modified within the last day` - } - }, - DATA_SETS_MATCHING: { - SUMMARY: "Download multiple data sets at once", - DESCRIPTION: "Download all data sets that match a DSLEVEL pattern (see help below). " + - "You can use several options to qualify which data sets will be skipped and how the " + - "downloaded files will be structured. Data sets that are neither physical sequential nor " + - "partitioned data sets (with members) will be excluded.", - POSITIONALS: { - PATTERN: `The pattern or patterns to match data sets against. Also known as 'DSLEVEL'. The following special sequences can be ` + - `used in the pattern: - ${imperative_1.TextUtils.chalk.yellow("%")}: matches any single character - ${imperative_1.TextUtils.chalk.yellow("*")}: matches any number of characters within a data set name qualifier ` + - `(e.g. "ibmuser.j*.old" matches "ibmuser.jcl.old" but not "ibmuser.jcl.very.old") - ${imperative_1.TextUtils.chalk.yellow("**")}: matches any number of characters within any number of data set name qualifiers ` + - `(e.g. "ibmuser.**.old" matches both "ibmuser.jcl.old" and "ibmuser.jcl.very.old") - However, the pattern cannot begin with any of these sequences.You can specify multiple patterns separated by commas, ` + - `for example "ibmuser.**.cntl,ibmuser.**.jcl"` - }, - EXAMPLES: { - EX1: `Download all data sets beginning with "ibmuser" and ending with ".cntl" or ".jcl" to the local directory "jcl" to ` + - `files with the extension ".jcl"`, - EX2: `Download all data sets that begin with "ibmuser.public.project" or "ibmuser.project.private", excluding those that end ` + - `in "lib" to the local directory "project", providing a custom mapping of data set low level qualifier to local file extension` - } - } - }, - OPTIONS: { - ATTRIBUTES: "Path of an attributes file to control how files are downloaded", - VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + - "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", - BINARY: "Download the file content in binary mode, which means that no data conversion is performed. The data transfer process " + - "returns each line as-is, without translation. No delimiters are added between records.", - RECORD: "Download the file content in record mode, which means that no data conversion is performed and the record length is prepended" + - " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + - " Conflicts with binary.", - ENCODING: "Download the file content with encoding mode, which means that data conversion is performed using the file encoding " + - "specified.", - FAIL_FAST: "Set this option to false to continue downloading dataset members if one or more fail.", - FAIL_FAST_USS: "Set this option to false to continue downloading USS files if one or more fail.", - FILE: "The path to the local file where you want to download the content. When you omit the option, the command generates a file " + - "name automatically for you.", - EXTENSION: "Save the local files with a specified file extension. For example, .txt. Or \"\" for no extension. When no extension " + - "is specified, .txt is used as the default file extension.", - DIRECTORY: "The directory to where you want to save the members. The command creates the directory for you when it does not already " + - "exist. By default, the command creates a folder structure based on the data set qualifiers. For example, the data set " + - "ibmuser.new.cntl's members are downloaded to ibmuser/new/cntl).", - DIRECTORY_USS: "The directory to where you want to save the files. The command creates the directory for you when it does not already " + - "exist. By default, the command downloads the files to the current directory.", - EXTENSION_MAP: `Use this option to map data set names that match your pattern to the desired extension. A comma delimited key value ` + - `pairing (e.g. "cntl=.jcl,cpgm=.c" to map the last segment of each data set (also known as the "low level qualifier" to the ` + - `desired local file extension).`, - EXCLUDE_PATTERN: "Exclude data sets that match these DSLEVEL patterns. Any data sets that match" + - " this pattern will not be downloaded.", - MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to download members." + - " Increasing the value results in faster downloads. " + - "However, increasing the value increases resource consumption on z/OS and can be prone " + - "to errors caused by making too many concurrent requests. If the download process encounters an error, " + - "the following message displays:\n" + - "The maximum number of TSO address spaces have been created. When you specify 0, " + - Constants_1.Constants.DISPLAY_NAME + " attempts to download all members at once" + - " without a maximum number of concurrent requests. ", - MAX_CONCURRENT_REQUESTS_USS: "Specifies the maximum number of concurrent z/OSMF REST API requests to download files." + - " Increasing the value results in faster downloads. " + - "However, increasing the value increases resource consumption on z/OS and can be prone " + - "to errors caused by making too many concurrent requests. If the download process encounters an error, " + - "the following message displays:\n" + - "The maximum number of TSO address spaces have been created. When you specify 0, " + - Constants_1.Constants.DISPLAY_NAME + " attempts to download all files at once" + - " without a maximum number of concurrent requests. ", - PRESERVE_ORIGINAL_LETTER_CASE: "Specifies if the automatically generated directories and files use the original letter case", - INCLUDE_HIDDEN: "Include hidden files and folders that have names beginning with a dot", - OVERWRITE: "Overwrite files that already exist in your local environment" - } - }, - INVOKE: { - SUMMARY: "Invoke various z/OS utilities", - DESCRIPTION: "Invoke z/OS utilities such as Access Method Services (AMS).", - ACTIONS: { - AMS: { - DESCRIPTION: "Submit control statements for execution by Access Method Services (IDCAMS). You can use IDCAMS to create VSAM data " + - "sets (CSI, ZFS, etc...), delete data sets, and more. You must format the control statements exactly as the IDCAMS utility " + - "expects. For more information about control statements, see the IBM publication 'z/OS DFSMS Access Method Services Commands'.", - FILE_CMD: { - SUMMARY: "Invoke AMS to submit a file", - POSITIONAL: "The path to a file that contains IDCAMS control statements. Ensure that your file does not contain " + - "statements that are longer than 255 characters (maximum allowed length).", - EXAMPLES: { - EX1: "Reads the specified file and submits the controls statements" - } - }, - STATEMENTS_CMD: { - SUMMARY: "Invoke AMS to submit statements", - POSITIONAL: "The IDCAMS control statement that you want to submit. " + - Constants_1.Constants.DISPLAY_NAME + " attempts to split the inline control " + - "statement at 255 characters.", - EXAMPLES: { - EX1: "Defines a cluster named 'DUMMY.VSAM.CLUSTER'", - EX2: "Deletes a cluster named 'DUMMY.VSAM.CLUSTER'" - } - } - } - } - }, - LIST: { - SUMMARY: "List the details for data sets and the members in the data sets", - DESCRIPTION: "List data sets and data set members. Optionally, you can list their details and attributes.", - ACTIONS: { - ALL_MEMBERS: { - SUMMARY: "List all members of a pds", - DESCRIPTION: "List all members of a partitioned data set. To view additional information about each member, use the --attributes " + - "option under the Options section of this help text.", - POSITIONALS: { - DATASETNAME: "The name of the data set for which you want to list the members" - }, - EXAMPLES: { - EX1: `Show members of the data set "ibmuser.asm"`, - EX2: `Show attributes of members of the data set "ibmuser.cntl"`, - EX3: `Show the first 5 members of the data set "ibmuser.cntl"`, - EX4: `Show the first 4 members of the data set "ibmuser.cntl" matching an input pattern"` - } - }, - DATA_SET: { - SUMMARY: "List data sets", - DESCRIPTION: "List data sets that match a pattern in the data set name", - POSITIONALS: { - DATASETNAME: "The name or pattern of the data set that you want to list" - }, - EXAMPLES: { - EX1: `Show the data set "ibmuser.asm"`, - EX2: `Show attributes of the data set "ibmuser.cntl"`, - EX3: `Show all data sets of the user "ibmuser"`, - EX4: `Show attributes of all data sets of the user "ibmuser"`, - EX5: `Show the first 5 data sets of the user "ibmuser"` - } - }, - USS_FILE: { - SUMMARY: "List USS files", - DESCRIPTION: "List USS files and directories in a UNIX file path", - POSITIONALS: { - PATH: "The directory containing the files and directories to be listed" - }, - EXAMPLES: { - EX1: `Show the files and directories in path '/u/ibmuser'`, - EX2: "Show the files and directories in path '/u/ibmuser displaying only the file or directory name", - EX3: "Show the files and directories in path '/u/ibmuser' displaying the headers associated with the file detail" - } - }, - FS: { - SUMMARY: "Listing mounted z/OS filesystems", - DESCRIPTION: "List all mounted filesystems, or the specific filesystem mounted at a given path, " + - "or the filesystem with a given filesystem name.", - EXAMPLES: { - EX1: "To list all mounted filesystems", - EX2: "To list filesystems mounted to a specific path", - EX3: "To list filesystems mounted with a specific name" - } - } - }, - OPTIONS: { - VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + - "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", - ATTRIBUTES: "Display more information about each member. Data sets with an undefined record format display information related to " + - "executable modules. Variable and fixed block data sets display information about when the members were created and modified.", - MAXLENGTH: "The option --max-length specifies the maximum number of items to return. Skip this parameter to return all items." + - " If you specify an incorrect value, the parameter returns up to 1000 items.", - NAME: "Filters files in USS based on the name of the file or directory.", - PATTERN: "The option --pattern specifies the match pattern used when listing members in a data set. The default is to match against " + - "all members, e.g. \"*\".", - PATH: "Specifies the path where the file system is mounted." + - " This option and --fsname are mutually exclusive.", - FSNAME: "Specifies the name of the mounted file system." + - " This option and --path are mutually exclusive.", - START: "An optional search parameter that specifies the first data set name to return in the response document.", - GROUP: "Filters content in USS based on the owning group name or ID.", - OWNER: "Filters content in USS based on the owning user name or ID.", - MTIME: "Filters content in USS based on the last modification time." + - " N - specify an exact number of days, +N - older than N days, -N - newer than N days ", - SIZE: "Filters content in USS based on the size." + - " Default units are bytes. Add a suffix of K for kilobytes, M for megabytes, or G for gigabytes." + - " N - specify an exact file size, +N - larger than N size, -N - smaller than N size", - PERM: "Filters content in USS based on the octal permissions string.", - TYPE: "Filters content in USS based on the type of content." + - " f - regular file, d - directory, l - symbolic link, p - FIFO named pipe, s - socket", - DEPTH: "Filters content in USS based on the number of directories to traverse down.", - FILESYS: "Filters content in USS based on the filesystem the data is on." + - " true - all filesystems, false - same filesystem as search directory.", - SYMLINKS: "Filters content in USS based on whether or not to follow symbolic links. true - report symlinks, false - follow symlinks" - } - }, - MOUNT: { - SUMMARY: "Mount file systems", - DESCRIPTION: "Mount z/OS UNIX file systems, such as HFS, ZFS, and more. This connects you to USS file systems.", - ACTIONS: { - FS: { - SUMMARY: "Mount a file system", - DESCRIPTION: "Mount a UNIX file system on a specified directory.", - POSITIONALS: { - FILESYSTEMNAME: "The name of the file system to mount.", - MOUNTPOINT: "The directory to use as a mount point." - }, - EXAMPLES: { - EX1: `Mount a z/OS file system using default options`, - EX2: `Mount a hierarchical file system with write access` - }, - OPTIONS: { - FSTYPE: "Specify the file system type that you are going to mount. The name must match the TYPE operand on a FILESYSTYPE" - + " statement in the BPXPRMxx parmlib member for the file system.", - MODE: "Specify the mode for mounting the file system (rdonly - read-only, rdwr - read/write)." - } - } - } - }, - OPTIONS: { - RESPONSETIMEOUT: "The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response." + - " Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600" - }, - UNMOUNT: { - SUMMARY: "Unmount file systems", - DESCRIPTION: "Unmount file systems, such as HFS, ZFS, and more. This disconnects you from USS file systems.", - ACTIONS: { - FS: { - SUMMARY: "Unmount a file system", - DESCRIPTION: "Unmount a UNIX file system.", - POSITIONALS: { - FILESYSTEMNAME: "The name of the file system to unmount." - }, - EXAMPLES: { - EX1: "Unmount a mounted file system" - } - } - } - }, - UPLOAD: { - DESCRIPTION: "Upload the contents of a file to data sets.", - ACTIONS: { - DIR_TO_PDS: { - DESCRIPTION: "Upload files from a local directory to a partitioned data set (PDS)", - POSITIONALS: { - INPUTDIR: "The path for a local directory that you want to upload to a PDS", - DATASETNAME: "The name of the partitioned data set to which you want to upload the files" - }, - EXAMPLES: { - EX1: `Upload a directory named "src" to a PDS named "ibmuser.src"`, - EX2: `Upload a directory named "src" to a migrated PDS named "ibmuser.src" and wait for it to be recalled` - } - }, - FILE_TO_DATA_SET: { - DESCRIPTION: "Upload the contents of a file to a z/OS data set", - POSITIONALS: { - INPUTFILE: "The local file that you want to upload to a data set", - DATASETNAME: "The name of the data set to which you want to upload the file" - }, - EXAMPLES: { - EX1: `Upload file contents to a sequential data set named "ibmuser.ps"`, - EX2: `Upload file contents to a PDS member named "ibmuser.pds(mem)"`, - EX3: `Upload file contents to a migrated data set and wait for it to be recalled` - } - }, - STDIN_TO_DATA_SET: { - DESCRIPTION: "Upload the content of a stdin to a z/OS data set", - POSITIONALS: { - DATASETNAME: "The name of the data set to which you want to upload data" - }, - EXAMPLES: { - EX1: `Stream content from stdin to a sequential data set named "ibmuser.ps" from a Windows console`, - EX2: `Stream content from stdin to a partition data set member named "ibmuser.pds(mem)" from a Windows console`, - EX3: `Stream content from stdin to a migrated data set and wait for it to be recalled from a Windows console` - } - }, - FILE_TO_USS: { - DESCRIPTION: "Upload content to a USS file from local file", - POSITIONALS: { - INPUTFILE: "The local file that you want to upload to a USS file", - USSFILENAME: "The name of the USS file to which you want to upload the file" - }, - EXAMPLES: { - EX1: `Upload to the USS file "/a/ibmuser/my_text.txt" from the file "file.txt"` - } - }, - DIR_TO_USS: { - SUMMARY: "Upload a local directory to a USS directory", - DESCRIPTION: "Upload a local directory to a USS directory.\n\n" + - "An optional .zosattributes file in the source directory can be used to control file conversion and tagging.\n\n" + - "An example .zosattributes file:{{space}}{{space}}\n" + - "# pattern local-encoding remote-encoding{{space}}{{space}}\n" + - "# Don't upload the node_modules directory{{space}}{{space}}\n" + - "node_modules -{{space}}{{space}}\n" + - "# Don't upload files that start with periods{{space}}{{space}}\n" + - ".* -{{space}}{{space}}\n" + - "# Upload jpg images in binary{{space}}{{space}}\n" + - "*.jpg binary binary{{space}}{{space}}\n" + - "# Convert CICS Node.js profiles to EBCDIC{{space}}{{space}}\n" + - "*.profile ISO8859-1 EBCDIC{{space}}{{space}}\n\n" + - "Lines starting with the ‘#’ character are comments. Each line can specify up to three positional attributes:\n" + - "{{bullet}} A pattern to match a set of files. Pattern-matching syntax follows the same rules as those that apply " + - "in .gitignore files (note that negated patterns that begin with ‘!’ are not supported). " + - "See https://git-scm.com/docs/gitignore#_pattern_format.\n" + - "{{bullet}} A local-encoding to identify a file’s encoding on the local workstation. If '-' is specified for local-encoding," + - "files that match the pattern are not transferred.\n" + - "{{bullet}} A remote-encoding to specify the file’s desired character set on USS. This attribute must either match the local " + - "encoding or be set to EBCDIC. If set to EBCDIC, files are transferred in text mode and converted, otherwise they are " + - "transferred in binary mode. Remote files are tagged either with the remote encoding or as binary.\n\n" + - "A .zosattributes file can either be placed in the top-level directory you want to upload, or its location can be specified by " + - "using the --attributes parameter. .zosattributes files that are placed in nested directories are ignored.\n", - POSITIONALS: { - INPUTDIR: "The local directory path that you want to upload to a USS directory", - USSDIR: "The name of the USS directory to which you want to upload the local directory" - }, - EXAMPLES: { - EX1: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory`, - EX2: `Upload all files from the "local_dir" directory and all its sub-directories, ` + - `to the "/a/ibmuser/my_dir" USS directory`, - EX3: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory ` + - `in default ASCII mode, while specifying a list of file names (without path) to be uploaded in binary mode`, - EX4: `Upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory ` + - `in binary mode, while specifying a list of file names (without path) to be uploaded in ASCII mode`, - EX5: `Recursively upload all files from the "local_dir" directory to the "/a/ibmuser/my_dir" USS directory, ` + - `specifying files to ignore and file encodings in the local file my_global_attributes` - } - } - }, - OPTIONS: { - VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + - "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", - BINARY: "Data content in binary mode, which means that no data conversion is performed. The data transfer process " + - "returns each record as-is, without translation. No delimiters are added between records.", - RECORD: "Data content in record mode, which means that no data conversion is performed and the record length is prepended" + - " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + - " Conflicts with binary.", - ENCODING: "Data content in encoding mode, which means that data conversion is performed according to the encoding specified.", - RECALL: "The method by which migrated data set is handled. By default, a migrated data set is recalled synchronously. You can " + - "specify the following values: wait, nowait, error", - RECURSIVE: "Upload all directories recursively.", - BINARY_FILES: "Comma separated list of file names to be uploaded in binary mode. " + - "Use this option when you upload a directory in default ASCII mode, " + - "but you want to specify certain files to be uploaded in binary mode. " + - "All files matching specified file names will be uploaded in binary mode. " + - "If a .zosattributes file (or equivalent file specified via --attributes) is present, " + - "--binary-files will be ignored.", - ASCII_FILES: "Comma separated list of file names to be uploaded in ASCII mode. " + - "Use this option when you upload a directory with --binary/-b flag, " + - "but you want to specify certain files to be uploaded in ASCII mode. " + - "All files matching specified file names will be uploaded in ASCII mode. " + - "If a .zosattributes file (or equivalent file specified via --attributes) is present, " + - "--ascii-files will be ignored.", - ATTRIBUTES: "Path of an attributes file to control how files are uploaded", - MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to upload files." + - " Increasing the value results in faster uploads. " + - "However, increasing the value increases resource consumption on z/OS and can be prone " + - "to errors caused by making too many concurrent requests. If the upload process encounters an error, " + - "the following message displays:\n" + - "The maximum number of TSO address spaces have been created. When you specify 0, " + - Constants_1.Constants.DISPLAY_NAME + " attempts to upload all members at once" + - " without a maximum number of concurrent requests. ", - INCLUDE_HIDDEN: "Include hidden files and folders that have names beginning with a dot" - } - }, - VIEW: { - SUMMARY: "View the contents of a data set or USS file", - DESCRIPTION: "View the contents of a data set or USS file on your terminal (stdout).", - ACTIONS: { - DATA_SET: { - SUMMARY: "View content from a z/OS data set", - DESCRIPTION: "View content from a z/OS data set on your terminal (stdout).", - POSITIONALS: { - DATASETNAME: "The name of the data set you want to display." - }, - EXAMPLES: { - EX1: `View the contents of the data set member "ibmuser.cntl(iefbr14)"`, - EX2: `View the contents of the data set member "ibmuser.test.loadlib(main)" in binary mode`, - EX3: `View only the first two lines of content for data set member "ibmuser.cntl(iefbr14)"`, - EX4: `View only lines six through eight (zero-based) in the contents of the data set member "ibmuser.cntl(iefbr14)"` - } - }, - USS_FILE: { - SUMMARY: "View content from a USS file", - DESCRIPTION: "View content from a Unix System Services (USS) file on your terminal (stdout).", - POSITIONALS: { - USSFILE: "The name of the USS file you want to display." - }, - EXAMPLES: { - EX1: `View the contents of the USS file "/a/ibmuser/my_text.txt"`, - EX2: `View the contents of the USS file "/a/ibmuser/MyJavaClass.class" in binary mode` - } - } - }, - OPTIONS: { - BINARY: "Transfer the file content in binary mode (no EBCDIC to ASCII conversion).", - ENCODING: "Transfer the file content with encoding mode, which means that data conversion is performed using the file encoding " + - "specified.", - RECORD: "Transfer the file content in record mode, which means that no data conversion is performed and the record length is prepended" + - " to the data. The data transfer process returns each line as-is, without translation. No delimiters are added between records." + - " Conflicts with binary.", - VOLUME: "The volume serial (VOLSER) where the data set resides. You can use this option at any time. However, the VOLSER is required " + - "only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", - RANGE: "The range of records to return in either `SSS-EEE` or `SSS,NNN` format. SSS identifies the start record, EEE " + - "identifies the end record, and NNN identifies the number of retrieved records." - } - }, - EDIT: { - SUMMARY: "Edit the contents of a data set or USS file", - DESCRIPTION: "Edit the contents of a data set or USS file with your terminal and default editor.", - ACTIONS: { - DATA_SET: { - SUMMARY: "Edit content from a z/OS data set", - DESCRIPTION: "Edit content from a z/OS data set with your terminal and default editor.", - POSITIONALS: { - DATASETNAME: "The name of the data set you want to edit." - }, - EXAMPLES: { - EX1: `Edit the contents of the data set member "ibmuser.cntl(iefbr14)"`, - EX2: `Edit the contents of the USS file "ibmuser.jcl(iefbr14)" and set extension as "jcl"`, - } - }, - USS_FILE: { - SUMMARY: "Edit content from a USS file", - DESCRIPTION: "Edit content from a Unix System Services (USS) file with your terminal and default editor.", - POSITIONALS: { - USSFILEPATH: "The path of the USS file you want to edit." - }, - EXAMPLES: { - EX1: `Edit the contents of the USS file "/a/ibmuser/my_text.txt" in notepad`, - EX2: `Edit the contents of the USS file "/a/ibmuser/my_jcl.jcl" in notepad and set extension as "jcl"`, - } - } - }, - OPTIONS: { - EDITOR: `Set the default editor that you wish to use for editing. Set the option to the editor's executable file location ` + - `or the program's name: ie "--editor notepad"`, - EXTENSION: `Set the file extension of the file for editing to leverage an editor's file-type-specific formatting: ` + - `ie "--extension jcl"` - } - }, - COMPARE: { - SUMMARY: "Compare the contents of a two data set members", - DESCRIPTION: "Compare the contents of a two data set members on your terminal (stdout).", - ACTIONS: { - DATA_SET: { - SUMMARY: "Compare content of two z/OS data sets", - DESCRIPTION: "Compare content of two z/OS data sets on your terminal (stdout).", - POSITIONALS: { - DATASETNAME1: "The name of the first data set you want to compare.", - DATASETNAME2: "The name of the second data set you want to compare." - }, - EXAMPLES: { - EX1: `Compare the contents of the data set members "sys1.samplib(antptso)" and "sys1.samplib(antxtso)"`, - EX2: `Compare the contents of the data set members "sys1.samplib(antptso)" and "sys1.samplib(antxtso)" without sequence numbers` - } - }, - LOCAL_FILE_DATA_SET: { - SUMMARY: "Compare content of a local file and a z/os dataset", - DESCRIPTION: "Compare content of a local file and a z/os dataset on your terminal (stdout).", - POSITIONALS: { - LOCALFILEPATH: "The path of the local file you want to compare.", - DATASETNAME: "The name of the data set you want to compare." - }, - EXAMPLES: { - EX1: `Compare the contents of the local file and the data set member "./a.txt" and "sys1.samplib(antxtso)"`, - EX2: `Compare the contents of the local file and the data set member "./a.txt" and "sys1.samplib(antxtso)"` + - `without sequence numbers` - } - }, - USS_FILE: { - SUMMARY: "Compare content of a local file and a z/os uss files", - DESCRIPTION: "Compare the contents of a two uss files on your terminal (stdout). browser.", - POSITIONALS: { - USSFILEPATH1: "The path of the first uss file you want to compare.", - USSFILEPATH2: "The path of the second uss file you want to compare." - }, - EXAMPLES: { - EX1: `Compare the contents of the uss file "/u/user/test.txt" and "/u/user/test.txt"`, - EX2: `Compare the contents of the uss file "/u/user/test.txt" and "/u/user/test.txt" without sequence numbers` - } - }, - LOCAL_FILE_USS_FILE: { - SUMMARY: "Compare content of a local file and a z/os uss file", - DESCRIPTION: "Compare content of a local file and a z/os uss file on your terminal (stdout).", - POSITIONALS: { - LOCALFILEPATH: "The path of the local file you want to compare.", - USSFILEPATH: "The path of the uss file set you want to compare." - }, - EXAMPLES: { - EX1: `Compare the contents of the local file and the uss file "./a.txt" and "/u/user/test.txt"`, - EX2: `Compare the contents of the local file and the uss file "./a.txt" and "/u/user/test.txt"` + - `without sequence numbers` - } - }, - SPOOL_DD: { - SUMMARY: "Compare content of two spool dds", - DESCRIPTION: "Compare content of two spool dds on your terminal (stdout).", - POSITIONALS: { - SPOOLDDDESCRIPTION1: "The name of the first job with the id of spool dd", - SPOOLDDDESCRIPTION2: "The name of the second job with the id of spool dd" - }, - EXAMPLES: { - EX1: `Compare the contents of the two spool dds "jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"`, - EX2: `Compare the contents of the two spool dds "jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"` + - `without sequence numbers` - } - }, - LOCAL_FILE_SPOOL_DD: { - SUMMARY: "Compare content of a local file and a spool dd", - DESCRIPTION: "Compare content of a local-file and a spool-dd on your terminal (stdout).", - POSITIONALS: { - LOCALFILEPATH: "The path of the local file you want to compare.", - SPOOLDDDESCRIPTION: "The name of the job with the id of spool dd" - }, - EXAMPLES: { - EX1: `Compare the contents of a local-file and a spool dd "./a.txt" "jobName:jobId:spoolId"`, - EX2: `Compare the contents of a local-file and a spool dd "./a.txt" "jobName:jobId:spoolId"` + - `without sequence numbers` - } - }, - }, - OPTIONS: { - BINARY: "Transfer the content of the first data set in binary mode (no EBCDIC to ASCII conversion). If binary mode is set " + - "and the binary2 flag is not set then both datasets are transferred in binary mode.", - BINARY2: "Transfer the content of the second data set in binary mode.", - ENCODING: "Transfer the content of the first data set with encoding mode, which means that data conversion is performed " + - "using the file encoding specified. If encoding mode is set and the encoding2 flag is not set both data sets are " + - "transferred in encoding mode.", - ENCODING2: "Transfer the content of the second data set with encoding mode.", - RECORD: "Transfer the content for the first data set in record mode, which means that no data conversion is performed and the record " + - "length is prepended to the data. The data transfer process returns each line as-is, without translation. No delimiters are " + - "added between records. If encoding mode is set and the encoding2 flag is not set both data sets are transferred in " + - "encoding mode. This option conflicts with binary mode.", - RECORD2: "Transfer the content for the second data set in record mode. Conflicts with binary2.", - VOLUME: "The volume serial (VOLSER) where the first data set resides. You can use this option at any time. However, the " + - "VOLSER is required only when the data set is not cataloged on the system. A VOLSER is analogous to a drive name on a PC.", - VOLUME2: "The volume serial (VOLSER) where the second data set resides.", - SEQNUM: "If you are comparing two files that contain sequence numbers, this option controls if the sequences numbers are " + - "removed from the end of each string. The default is to keep the sequence numbers. Use the --no-seqnum option to not " + - "include them.", - CONTEXTLINES: "The number of context lines that display before and after detected non-matching lines. By default all matching " + - "lines display. If you want to limit the amount of data returned to only lines with differences use the context " + - "lines option to reduce the matching lines to only those before and after non-matching lines. Using the value " + - "of 0 strips all matching lines.", - BROWSERVIEW: "Opens the diffs between two given files in browser" - } - }, - HMIGRATE: { - DESCRIPTION: "Migrate data sets.", - ACTIONS: { - DATA_SET: { - DESCRIPTION: "Migrate a data set.", - POSITIONALS: { - DATASETNAME: "The name of the data set you want to migrate." - }, - EXAMPLES: { - EX1: `Migrate a data set using default options` - } - } - }, - OPTIONS: { - WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued." - } - }, - HRECALL: { - DESCRIPTION: "Recall migrated data sets.", - ACTIONS: { - DATA_SET: { - DESCRIPTION: "Recall a migrated data set.", - POSITIONALS: { - DATASETNAME: "The name of the data set you want to recall." - }, - EXAMPLES: { - EX1: `Recall a data set using default options` - } - } - }, - OPTIONS: { - WAIT: "If true then the function waits for completion of the request. If false (default) the request is queued." - } - }, - RENAME: { - DESCRIPTION: "Rename a data set or member.", - ACTIONS: { - DATA_SET: { - DESCRIPTION: "Rename a data set.", - POSITIONALS: { - BEFOREDSNAME: "The name of the data set that you want to rename.", - AFTERDSNAME: "The name you want to rename the data set to." - }, - OPTIONS: {}, - EXAMPLES: { - EX1: "Rename the data set named 'USER.BEFORE.SET' to 'USER.AFTER.SET.'" - } - }, - DATA_SET_MEMBER: { - DESCRIPTION: "Rename a data set member.", - POSITIONALS: { - DSNAME: "The name of the data set the member belongs to.", - BEFOREMEMBERNAME: "The name of the data set member that you want to rename.", - AFTERMEMBERNAME: "The name you want to rename the data set member to." - }, - OPTIONS: {}, - EXAMPLES: { - EX1: "In the data set 'USER.DATA.SET', rename the member named 'MEM1' to 'MEM2'." - } - } - } - } -}; -//# sourceMappingURL=en.js.map \ No newline at end of file diff --git a/lib/zosfiles/-strings-/en.js.map b/lib/zosfiles/-strings-/en.js.map deleted file mode 100644 index 059a2dc087..0000000000 --- a/lib/zosfiles/-strings-/en.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/zosfiles/-strings-/en.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;AAEF,iDAA6C;AAC7C,+CAA4C;AAE5C,kBAAe;IACX,MAAM,EAAE;QACJ,eAAe,EAAE,sDAAsD;QACvE,GAAG,EAAE,KAAK;QACV,EAAE,EAAE,IAAI;QACR,UAAU,EAAE,YAAY;KAC3B;IACD,MAAM,EAAE;QACJ,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE;YACL,eAAe,EAAE;gBACb,WAAW,EAAE,6BAA6B;gBAC1C,QAAQ,EAAE;oBACN,GA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oBAAoB;QACjC,OAAO,EAAE;YACL,QAAQ,EAAE;gBACN,WAAW,EAAE,qBAAqB;gBAClC,WAAW,EAAE;oBACT,WAAW,EAAE,+CAA+C;iBAC/D;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE,0CAA0C;iBAClD;aACJ;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,0GAA0G;SACnH;KACJ;IACD,OAAO,EAAE;QACL,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE;YACL,QAAQ,EAAE;gBACN,WAAW,EAAE,6BAA6B;gBAC1C,WAAW,EAAE;oBACT,WAAW,EAAE,8CAA8C;iBAC9D;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE,yCAAyC;iBACjD;aACJ;SACJ;QACD,OAAO,EAAE;YACL,IAAI,EAAE,0GAA0G;SACnH;KACJ;IACD,MAAM,EAAE;QACJ,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE;YACL,QAAQ,EAAE;gBACN,WAAW,EAAE,oBAAoB;gBACjC,WAAW,EAAE;oBACT,YAAY,EAAE,mDAAmD;oBACjE,WAAW,EAAE,8CAA8C;iBAC9D;gBACD,OAAO,EAAE,EACR;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE,kEAAkE;iBAC1E;aACJ;YACD,eAAe,EAAE;gBACb,WAAW,EAAE,2BAA2B;gBACxC,WAAW,EAAE;oBACT,MAAM,EAAE,iDAAiD;oBACzD,gBAAgB,EAAE,0DAA0D;oBAC5E,eAAe,EAAE,qDAAqD;iBACzE;gBACD,OAAO,EAAE,EACR;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE,4EAA4E;iBACpF;aACJ;SACJ;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.definition.d.ts b/lib/zosfiles/compare/Compare.definition.d.ts deleted file mode 100644 index 2e0d7ba2bb..0000000000 --- a/lib/zosfiles/compare/Compare.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const CompareDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/Compare.definition.js b/lib/zosfiles/compare/Compare.definition.js deleted file mode 100644 index 733f4fa448..0000000000 --- a/lib/zosfiles/compare/Compare.definition.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompareDefinition = void 0; -const Dataset_definition_1 = require("./ds/Dataset.definition"); -const LocalfileDataset_definition_1 = require("./lf-ds/LocalfileDataset.definition"); -const UssFile_definition_1 = require("./uss/UssFile.definition"); -const LocalfileUss_definition_1 = require("./lf-uss/LocalfileUss.definition"); -const Spooldd_definition_1 = require("./sdd/Spooldd.definition"); -const LocalfileSpooldd_definition_1 = require("./lf-sdd/LocalfileSpooldd.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.COMPARE; -/** - * Compare group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.CompareDefinition = { - name: "compare", - aliases: ["cmp"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Dataset_definition_1.DatasetDefinition, - LocalfileDataset_definition_1.LocalfileDatasetDefinition, - UssFile_definition_1.UssFileDefinition, - LocalfileUss_definition_1.LocalfileUssFileDefinition, - Spooldd_definition_1.SpoolddDefinition, - LocalfileSpooldd_definition_1.LocalfileSpoolddDefinition - ], -}; -//# sourceMappingURL=Compare.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.definition.js.map b/lib/zosfiles/compare/Compare.definition.js.map deleted file mode 100644 index 93bee18780..0000000000 --- a/lib/zosfiles/compare/Compare.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Compare.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/Compare.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAC1D,qFAAiF;AACjF,iEAA2D;AAC3D,8EAA8E;AAC9E,iEAA6D;AAC7D,sFAAkF;AAIlF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,wDAA0B;QAC1B,sCAAiB;QACjB,oDAA0B;QAC1B,sCAAiB;QACjB,wDAA0B;KAC7B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.options.d.ts b/lib/zosfiles/compare/Compare.options.d.ts deleted file mode 100644 index b82e8cc64b..0000000000 --- a/lib/zosfiles/compare/Compare.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the Compare API - */ -export declare const CompareOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/compare/Compare.options.js b/lib/zosfiles/compare/Compare.options.js deleted file mode 100644 index 27c0717570..0000000000 --- a/lib/zosfiles/compare/Compare.options.js +++ /dev/null @@ -1,133 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompareOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.COMPARE.OPTIONS; -/** - * Object containing all options to be used by the Compare API - */ -exports.CompareOptions = { - /** - * The binary option - * @type {ICommandOptionDefinition} - */ - binary: { - name: "binary", - aliases: ["b"], - description: strings.BINARY, - type: "boolean" - }, - /** - * The binary option for file 2 - * @type {ICommandOptionDefinition} - */ - binary2: { - name: "binary2", - aliases: ["b2"], - description: strings.BINARY2, - type: "boolean" - }, - /** - * The encoding option - * @type {ICommandOptionDefinition} - */ - encoding: { - name: "encoding", - aliases: ["ec"], - description: strings.ENCODING, - type: "string" - }, - /** - * The encoding option for file 2 - * @type {ICommandOptionDefinition} - */ - encoding2: { - name: "encoding2", - aliases: ["ec2"], - description: strings.ENCODING2, - type: "string" - }, - /** - * The record option - * @type {ICommandOptionDefinition} - */ - record: { - name: "record", - aliases: ["r"], - description: strings.RECORD, - type: "boolean", - conflictsWith: ["binary"] - }, - /** - * The record option for file 2 - * @type {ICommandOptionDefinition} - */ - record2: { - name: "record2", - aliases: ["r2"], - description: strings.RECORD2, - type: "boolean", - conflictsWith: ["binary2"] - }, - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volume: { - name: "volume-serial", - aliases: ["vs"], - description: strings.VOLUME, - type: "string" - }, - /** - * The volume serial for file 2 - * @type {ICommandOptionDefinition} - */ - volume2: { - name: "volume-serial2", - aliases: ["vs2"], - description: strings.VOLUME2, - type: "string" - }, - /** - * The seqnum option - * @type {ICommandOptionDefinition} - */ - seqnum: { - name: "seqnum", - aliases: ["sn"], - description: strings.SEQNUM, - defaultValue: true, - type: "boolean" - }, - /** - * The contextlines option - * @type {ICommandOptionDefinition} - */ - contextLines: { - name: "context-lines", - aliases: ["cl"], - description: strings.CONTEXTLINES, - type: "number" - }, - /** - * Open in browser option - */ - browserView: { - name: "browser-view", - aliases: ["bv"], - description: strings.BROWSERVIEW, - type: "boolean" - } -}; -//# sourceMappingURL=Compare.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/Compare.options.js.map b/lib/zosfiles/compare/Compare.options.js.map deleted file mode 100644 index a8f6affeaf..0000000000 --- a/lib/zosfiles/compare/Compare.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Compare.options.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/Compare.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC,OAAO,CAAC;AAE3F;;GAEG;AACU,QAAA,cAAc,GAAgD;IAEvE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,SAAS,CAAC;KAC7B;IAED;;;OAGG;IAEH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IAEH,OAAO,EAAE;QACL,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IAEH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IAEH,YAAY,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,YAAY;QACjC,IAAI,EAAE,QAAQ;KACjB;IAED;;OAEG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBase.handler.d.ts b/lib/zosfiles/compare/CompareBase.handler.d.ts deleted file mode 100644 index 30067f615e..0000000000 --- a/lib/zosfiles/compare/CompareBase.handler.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/// -import { AbstractSession, ICommandArguments, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../ZosFilesBase.handler"; -import { CompareBaseHelper } from "./CompareBaseHelper"; -/** - * This class is used by the various zosfiles-compare handlers as the base class for their implementation. - * All handlers within zosfiles-compare should extend this class. - * - * This class should not be used outside of the zosfiles-compare package. - * - * @private - */ -export declare abstract class CompareBaseHandler extends ZosFilesBaseHandler { - /** - * This will grab the zosmf profile and create a session before calling the subclass - * {@link ZosFilesBaseHandler#processWithSession} method. - * - * @param {IHandlerParameters} commandParameters Command parameters sent by imperative. - * - * @returns {Promise} - */ - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; - /** - * Abstract method required for compare handlers to determine how they gather the contents of the file/dataset to compare - * @param session Gives access to the session object in case the handler needs to submit a request to get the first file - * @param args Command arguments required for getting the dataset, filepath, or spool descriptor - * @param helper CompareBaseHelper instance to access prepare- functions - */ - abstract getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - /** - * Abstract method required for compare handlers to determine how they gather the contents of the file/dataset to compare - * @param session Gives access to the session object in case the handler needs to submit a request to get the contents - * @param args Command arguments required for getting the dataset, filepath, or spool descriptor - * @param helper CompareBaseHelper instance to access prepare- functions - */ - abstract getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/CompareBase.handler.js b/lib/zosfiles/compare/CompareBase.handler.js deleted file mode 100644 index 6753509b0f..0000000000 --- a/lib/zosfiles/compare/CompareBase.handler.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompareBaseHandler = void 0; -const imperative_1 = require("@zowe/imperative"); -const ZosFilesBase_handler_1 = require("../ZosFilesBase.handler"); -const CompareBaseHelper_1 = require("./CompareBaseHelper"); -/** - * This class is used by the various zosfiles-compare handlers as the base class for their implementation. - * All handlers within zosfiles-compare should extend this class. - * - * This class should not be used outside of the zosfiles-compare package. - * - * @private - */ -class CompareBaseHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - /** - * This will grab the zosmf profile and create a session before calling the subclass - * {@link ZosFilesBaseHandler#processWithSession} method. - * - * @param {IHandlerParameters} commandParameters Command parameters sent by imperative. - * - * @returns {Promise} - */ - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const helper = new CompareBaseHelper_1.CompareBaseHelper(commandParameters); - helper.task = { - percentComplete: 0, - statusMessage: `Retrieving content for the first file/dataset`, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task: helper.task }); - const fileContent1 = yield this.getFile1(session, commandParameters.arguments, helper); - commandParameters.response.progress.endBar(); - commandParameters.response.progress.startBar({ task: helper.task }); - helper.task.statusMessage = `Retrieving content for the second file/dataset`; - const fileContent2 = yield this.getFile2(session, commandParameters.arguments, helper); - return helper.getResponse(helper.prepareContent(fileContent1), helper.prepareContent(fileContent2)); - }); - } -} -exports.CompareBaseHandler = CompareBaseHandler; -//# sourceMappingURL=CompareBase.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBase.handler.js.map b/lib/zosfiles/compare/CompareBase.handler.js.map deleted file mode 100644 index 3ef3e55ec7..0000000000 --- a/lib/zosfiles/compare/CompareBase.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CompareBase.handler.js","sourceRoot":"","sources":["../../../src/zosfiles/compare/CompareBase.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,iDAAqG;AAErG,kEAA8D;AAC9D,2DAAwD;AAExD;;;;;;;GAOG;AACH,MAAsB,kBAAmB,SAAQ,0CAAmB;IAChE;;;;;;;OAOG;IACU,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,MAAM,GAAG,IAAI,qCAAiB,CAAC,iBAAiB,CAAC,CAAC;YACxD,MAAM,CAAC,IAAI,GAAG;gBACV,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,+CAA+C;gBAC9D,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YAEpE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACvF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC7C,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YAEpE,MAAM,CAAC,IAAI,CAAC,aAAa,GAAG,gDAAgD,CAAC;YAC7E,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAEvF,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;QACxG,CAAC;KAAA;CAyBJ;AApDD,gDAoDC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBaseHelper.d.ts b/lib/zosfiles/compare/CompareBaseHelper.d.ts deleted file mode 100644 index 5d30abe1c6..0000000000 --- a/lib/zosfiles/compare/CompareBaseHelper.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -/// -import { IHandlerParameters, ITaskWithStatus, IDiffOptions, IDiffNameOptions } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ICompareFileOptions } from "./doc/ICompareFileOptions"; -/** - * Base helper for compare command to handle common operations through the comparison - * @export - */ -export declare class CompareBaseHelper { - /** - * file compare option for file1 - * @public - * @memberof CompareBaseHelper - */ - file1Options: ICompareFileOptions; - /** - * file compare option for file2 - * @public - * @memberof CompareBaseHelper - */ - file2Options: ICompareFileOptions; - /** - * responseTimeout option - * @public - * @memberof CompareBaseHelper - */ - responseTimeout: number; - /** - * seqnum option - * @public - * @memberof CompareBaseHelper - */ - seqnum: boolean; - /** - * contextLines option - * @private - * @memberof CompareBaseHelper - */ - contextLines: number; - /** - * browserView option - * @private - * @memberof CompareBaseHelper - */ - browserView: boolean; - /** - * task - * @private - * @memberof CompareBaseHelper - */ - task: ITaskWithStatus; - /** - * Creates an instance of CompareBaseHelper - * @param {IHandlerParameters} commandParameters Command parameters sent to the handler - * @memberof CompareBaseHelper - */ - constructor(commandParameters: IHandlerParameters); - /** - * Parse the spool description and split them into individual properties - * @param spoolDescription Colon-separated (:) spool descriptor - * @returns Object containing the name, job id, and spool id - */ - prepareSpoolDescriptor(spoolDescription: string): { - jobName: string; - jobId: string; - spoolId: number; - }; - /** - * Helper function that compare-related handlers will use to get the contents of a local file - * @param filePath Path to the file to compare against - * @returns Buffer with the contents of the file - */ - prepareLocalFile(filePath: string): Buffer; - /** - * This method will prepare the strings for comparison ready - * @param {string | Buffer } content - Content string or buffer of file 1 - * @param {string | Buffer } content2 - - Content string or buffer of file 2 - * @returns - * @public - * @memberof CompareBaseHelper - */ - prepareContent(content: string | Buffer): string; - /** - * To get the difference string in terminal or in browser - * @param {string} string1 - string of file 1 content - * @param {string} string2 - string of file 2 content - * @param {IDiffOptions} options - * @returns {IZosFilesResponse} - * @public - * @memberof CompareBaseHelper - */ - getResponse(string1: string, string2: string, options?: IDiffOptions | IDiffNameOptions): Promise; -} diff --git a/lib/zosfiles/compare/CompareBaseHelper.js b/lib/zosfiles/compare/CompareBaseHelper.js deleted file mode 100644 index fbd4a42f6a..0000000000 --- a/lib/zosfiles/compare/CompareBaseHelper.js +++ /dev/null @@ -1,176 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompareBaseHelper = void 0; -const path = require("path"); -const fs = require("fs"); -const imperative_1 = require("@zowe/imperative"); -/** - * Base helper for compare command to handle common operations through the comparison - * @export - */ -class CompareBaseHelper { - /** - * Creates an instance of CompareBaseHelper - * @param {IHandlerParameters} commandParameters Command parameters sent to the handler - * @memberof CompareBaseHelper - */ - constructor(commandParameters) { - var _a; - /** - * file compare option for file1 - * @public - * @memberof CompareBaseHelper - */ - this.file1Options = {}; - /** - * file compare option for file2 - * @public - * @memberof CompareBaseHelper - */ - this.file2Options = {}; - this.file1Options.binary = commandParameters.arguments.binary; - this.file2Options.binary = commandParameters.arguments.binary2; - this.file1Options.encoding = commandParameters.arguments.encoding; - this.file2Options.encoding = commandParameters.arguments.encoding2; - this.file1Options.record = commandParameters.arguments.record; - this.file2Options.record = commandParameters.arguments.record2; - this.file1Options.volumeSerial = commandParameters.arguments.volumeSerial; - this.file2Options.volumeSerial = commandParameters.arguments.volumeSerial2; - if (((_a = this.file2Options) === null || _a === void 0 ? void 0 : _a.binary) == null) { - this.file2Options.binary = this.file1Options.binary; - } - if (this.file2Options.encoding == null) { - this.file2Options.encoding = this.file1Options.encoding; - } - if (this.file2Options.record == null) { - this.file2Options.record = this.file1Options.record; - } - this.seqnum = commandParameters.arguments.seqnum; - this.browserView = commandParameters.arguments.browserView; - this.contextLines = commandParameters.arguments.contextLines; - this.responseTimeout = commandParameters.arguments.responseTimeout; - this.file1Options.responseTimeout = this.responseTimeout; - this.file2Options.responseTimeout = this.responseTimeout; - // Clear undefined properties - this.file1Options = JSON.parse(JSON.stringify(this.file1Options)); - this.file2Options = JSON.parse(JSON.stringify(this.file2Options)); - } - /** - * Parse the spool description and split them into individual properties - * @param spoolDescription Colon-separated (:) spool descriptor - * @returns Object containing the name, job id, and spool id - */ - prepareSpoolDescriptor(spoolDescription) { - const descriptionSeparator = ":"; - const spoolDescArr = spoolDescription.split(descriptionSeparator); - const jobName = spoolDescArr[0]; - const jobId = spoolDescArr[1]; - const spoolId = Number(spoolDescArr[2]); - return { jobName, jobId, spoolId }; - } - /** - * Helper function that compare-related handlers will use to get the contents of a local file - * @param filePath Path to the file to compare against - * @returns Buffer with the contents of the file - */ - prepareLocalFile(filePath) { - const localFile = path.isAbsolute(filePath) ? filePath : path.resolve(filePath); - let lfContentBuf; - let localFileHandle; - try { - try { - // check if the path given is of a file or not - localFileHandle = fs.openSync(localFile, 'r'); - if (!fs.fstatSync(localFileHandle).isFile()) { - throw new imperative_1.ImperativeError({ - msg: 'Path is not of a file. Please check the path and try again' - }); - } - } - catch (error) { - if (error instanceof imperative_1.ImperativeError) - throw error; - throw new imperative_1.ImperativeError({ - msg: 'Path not found. Please check the path and try again' - }); - } - // reading local file as buffer - lfContentBuf = fs.readFileSync(localFileHandle); - } - finally { - if (localFileHandle != null) - fs.closeSync(localFileHandle); - } - return lfContentBuf; - } - /** - * This method will prepare the strings for comparison ready - * @param {string | Buffer } content - Content string or buffer of file 1 - * @param {string | Buffer } content2 - - Content string or buffer of file 2 - * @returns - * @public - * @memberof CompareBaseHelper - */ - prepareContent(content) { - let contentString = content.toString(); - if (this.seqnum === false) { - const seqnumlen = 8; - contentString = content.toString().split("\n").map((line) => line.slice(0, -seqnumlen)).join("\n"); - } - return contentString; - } - /** - * To get the difference string in terminal or in browser - * @param {string} string1 - string of file 1 content - * @param {string} string2 - string of file 2 content - * @param {IDiffOptions} options - * @returns {IZosFilesResponse} - * @public - * @memberof CompareBaseHelper - */ - getResponse(string1, string2, options) { - return __awaiter(this, void 0, void 0, function* () { - // CHECKING IF THE BROWSER VIEW IS TRUE, OPEN UP THE DIFFS IN BROWSER - if (this.browserView) { - yield imperative_1.DiffUtils.openDiffInbrowser(string1, string2, options); - return { - success: true, - commandResponse: "Launching data-sets diffs in browser...", - apiResponse: {} - }; - } - const jsonDiff = yield imperative_1.DiffUtils.getDiffString(string1, string2, { - outputFormat: 'terminal', - contextLinesArg: this.contextLines, - name1: options === null || options === void 0 ? void 0 : options.name1, - name2: options === null || options === void 0 ? void 0 : options.name2 - }); - return { - success: true, - commandResponse: jsonDiff, - apiResponse: {} - }; - }); - } -} -exports.CompareBaseHelper = CompareBaseHelper; -//# sourceMappingURL=CompareBaseHelper.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/CompareBaseHelper.js.map b/lib/zosfiles/compare/CompareBaseHelper.js.map deleted file mode 100644 index 3958b56f36..0000000000 --- a/lib/zosfiles/compare/CompareBaseHelper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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AAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACtG;QACD,OAAO,aAAa,CAAC;IACzB,CAAC;IAED;;;;;;;;OAQG;IACU,WAAW,CAAC,OAAe,EAAE,OAAe,EAAE,OAAuC;;YAC9F,sEAAsE;YACtE,IAAI,IAAI,CAAC,WAAW,EAAE;gBAClB,MAAM,sBAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;gBAC7D,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,yCAAyC;oBAC1D,WAAW,EAAE,EAAE;iBAClB,CAAC;aACL;YAED,MAAM,QAAQ,GAAG,MAAM,sBAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE;gBAC7D,YAAY,EAAE,UAAU;gBACxB,eAAe,EAAE,IAAI,CAAC,YAAY;gBAClC,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;gBACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;aACxB,CAAC,CAAC;YAEH,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,QAAQ;gBACzB,WAAW,EAAE,EAAE;aAClB,CAAC;QACN,CAAC;KAAA;CACJ;AAxLD,8CAwLC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/doc/ICompareFileOptions.d.ts b/lib/zosfiles/compare/doc/ICompareFileOptions.d.ts deleted file mode 100644 index 74c07d42f7..0000000000 --- a/lib/zosfiles/compare/doc/ICompareFileOptions.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { IZosFilesOptions } from "@zowe/zos-files-for-zowe-sdk"; -/** - * These are the options to be used in file comaparison to handle the - * binary, encoding, record and volumeSerial operations in the comparison process - * - * @exports - * @interface ICompareFileOptions - */ -export interface ICompareFileOptions extends IZosFilesOptions { - binary?: boolean; - encoding?: string; - record?: boolean; - volumeSerial?: string; -} diff --git a/lib/zosfiles/compare/doc/ICompareFileOptions.js b/lib/zosfiles/compare/doc/ICompareFileOptions.js deleted file mode 100644 index d0bffc1ed3..0000000000 --- a/lib/zosfiles/compare/doc/ICompareFileOptions.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ICompareFileOptions.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/doc/ICompareFileOptions.js.map b/lib/zosfiles/compare/doc/ICompareFileOptions.js.map deleted file mode 100644 index 2cdf99eacc..0000000000 --- a/lib/zosfiles/compare/doc/ICompareFileOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ICompareFileOptions.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/doc/ICompareFileOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE"} \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.definition.d.ts b/lib/zosfiles/compare/ds/Dataset.definition.d.ts deleted file mode 100644 index 61c5636664..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/ds/Dataset.definition.js b/lib/zosfiles/compare/ds/Dataset.definition.js deleted file mode 100644 index 583ab47c23..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.definition.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DatasetDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DatasetDefinition = { - name: "data-set", - aliases: ["ds"], - summary: strings.ACTIONS.DATA_SET.SUMMARY, - description: strings.ACTIONS.DATA_SET.DESCRIPTION, - type: "command", - handler: __dirname + "/Dataset.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "dataSetName1", - description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME1, - type: "string", - required: true - }, - { - name: "dataSetName2", - type: "string", - description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME2, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.binary, - Compare_options_1.CompareOptions.binary2, - Compare_options_1.CompareOptions.encoding, - Compare_options_1.CompareOptions.encoding2, - Compare_options_1.CompareOptions.record, - Compare_options_1.CompareOptions.record2, - Compare_options_1.CompareOptions.volume, - Compare_options_1.CompareOptions.volume2, - Compare_options_1.CompareOptions.seqnum, - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, - options: `"sys1.samplib(antptso)" "sys1.samplib(antxtso)"` - }, - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX2, - options: `"sys1.samplib(antptso)" "sys1.samplib(antxtso)" --no-seqnum` - } - ] -}; -//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.definition.js.map b/lib/zosfiles/compare/ds/Dataset.definition.js.map deleted file mode 100644 index 6c97e3b336..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,QAAQ;QACvB,gCAAc,CAAC,SAAS;QACxB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,iDAAiD;SAC7D;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,6DAA6D;SACzE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.handler.d.ts b/lib/zosfiles/compare/ds/Dataset.handler.d.ts deleted file mode 100644 index 6b0644e91e..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHandler } from "../CompareBase.handler"; -import { CompareBaseHelper } from '../CompareBaseHelper'; -/** - * Handler to view a data set's content - * @export - */ -export default class DatasetHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/ds/Dataset.handler.js b/lib/zosfiles/compare/ds/Dataset.handler.js deleted file mode 100644 index 54f29f5836..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to view a data set's content - * @export - */ -class DatasetHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName1, Object.assign(Object.assign({}, helper.file1Options), { task: helper.task })); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName2, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); - }); - } -} -exports.default = DatasetHandler; -//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/ds/Dataset.handler.js.map b/lib/zosfiles/compare/ds/Dataset.handler.js.map deleted file mode 100644 index 9139210542..0000000000 --- a/lib/zosfiles/compare/ds/Dataset.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AACnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts deleted file mode 100644 index 6ddf0a291e..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare local files and data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const LocalfileDatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js deleted file mode 100644 index 10f3fd73d3..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LocalfileDatasetDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare local files and data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.LocalfileDatasetDefinition = { - name: "local-file-data-set", - aliases: ["lf-ds"], - summary: strings.ACTIONS.LOCAL_FILE_DATA_SET.SUMMARY, - description: strings.ACTIONS.LOCAL_FILE_DATA_SET.DESCRIPTION, - type: "command", - handler: __dirname + "/LocalfileDataset.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "localFilePath", - description: strings.ACTIONS.LOCAL_FILE_DATA_SET.POSITIONALS.LOCALFILEPATH, - type: "string", - required: true - }, - { - name: "dataSetName", - type: "string", - description: strings.ACTIONS.LOCAL_FILE_DATA_SET.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.binary, - Compare_options_1.CompareOptions.encoding, - Compare_options_1.CompareOptions.record, - Compare_options_1.CompareOptions.volume, - Compare_options_1.CompareOptions.seqnum, - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.LOCAL_FILE_DATA_SET.EXAMPLES.EX1, - options: `"./a.txt" "sys1.samplib(antxtso)"` - }, - { - description: strings.ACTIONS.LOCAL_FILE_DATA_SET.EXAMPLES.EX2, - options: `"./a.txt" "sys1.samplib(antxtso)" --no-seqnum` - } - ] -}; -//# sourceMappingURL=LocalfileDataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map b/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map deleted file mode 100644 index 2064c10454..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileDataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-ds/LocalfileDataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO;IACpD,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,aAAa;YAC1E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,WAAW;YACxE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,QAAQ;QACvB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,mCAAmC;SAC/C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,+CAA+C;SAC3D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts deleted file mode 100644 index cd3286cf4b..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHelper } from '../CompareBaseHelper'; -import { CompareBaseHandler } from '../CompareBase.handler'; -/** - * Handler to compare a localfile and a dataset content - * @export - */ -export default class LocalfileDatasetHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js deleted file mode 100644 index f4f382f081..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to compare a localfile and a dataset content - * @export - */ -class LocalfileDatasetHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return helper.prepareLocalFile(args.localFilePath); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.dataSet(session, args.dataSetName, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); - }); - } -} -exports.default = LocalfileDatasetHandler; -//# sourceMappingURL=LocalfileDataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map b/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map deleted file mode 100644 index 71653b243f..0000000000 --- a/lib/zosfiles/compare/lf-ds/LocalfileDataset.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileDataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-ds/LocalfileDataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AAEnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,uBAAwB,SAAQ,wCAAkB;IACtD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACvG,CAAC;KAAA;CACJ;AAPD,0CAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts deleted file mode 100644 index dae17067c6..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare local-file-spool-dd command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const LocalfileSpoolddDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js deleted file mode 100644 index 86cf2cad9c..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LocalfileSpoolddDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare local-file-spool-dd command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.LocalfileSpoolddDefinition = { - name: "local-file-spool-dd", - aliases: ["lf-sdd"], - summary: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.SUMMARY, - description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.DESCRIPTION, - type: "command", - handler: __dirname + "/LocalfileSpooldd.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "localFilePath", - description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.POSITIONALS.LOCALFILEPATH, - type: "string", - required: true - }, - { - name: "spoolDescription", - type: "string", - description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.seqnum, - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.EXAMPLES.EX1, - options: `"./a.txt" "jobName:jobId:spoolId"` - }, - { - description: strings.ACTIONS.LOCAL_FILE_SPOOL_DD.EXAMPLES.EX2, - options: `"./a.txt" "jobName:jobId:spoolId" --no-seqnum` - } - ] -}; -//# sourceMappingURL=LocalfileSpooldd.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map deleted file mode 100644 index 7b76b23323..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileSpooldd.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-sdd/LocalfileSpooldd.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO;IACpD,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,aAAa;YAC1E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW,CAAC,kBAAkB;YAC/E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,mCAAmC;SAC/C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,+CAA+C;SAC3D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts deleted file mode 100644 index b3d3e2f093..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHelper } from "../CompareBaseHelper"; -import { CompareBaseHandler } from "../CompareBase.handler"; -/** - * Handler to compare spooldd's content - * @export - */ -export default class LocalfileSpoolddHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js deleted file mode 100644 index 9de16d90f3..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to compare spooldd's content - * @export - */ -class LocalfileSpoolddHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return helper.prepareLocalFile(args.localFilePath); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription); - return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); - }); - } -} -exports.default = LocalfileSpoolddHandler; -//# sourceMappingURL=LocalfileSpooldd.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map b/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map deleted file mode 100644 index bbadfe5eef..0000000000 --- a/lib/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileSpooldd.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-sdd/LocalfileSpooldd.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsD;AAEtD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,uBAAwB,SAAQ,wCAAkB;IACtD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACzF,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AARD,0CAQC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts deleted file mode 100644 index b1dc65f343..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare local files and data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const LocalfileUssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js deleted file mode 100644 index 7528276cf8..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LocalfileUssFileDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare local files and data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.LocalfileUssFileDefinition = { - name: "local-file-uss-file", - aliases: ["lf-uss"], - summary: strings.ACTIONS.LOCAL_FILE_USS_FILE.SUMMARY, - description: strings.ACTIONS.LOCAL_FILE_USS_FILE.DESCRIPTION, - type: "command", - handler: __dirname + "/LocalfileUss.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "localFilePath", - description: strings.ACTIONS.LOCAL_FILE_USS_FILE.POSITIONALS.LOCALFILEPATH, - type: "string", - required: true - }, - { - name: "ussFilePath", - type: "string", - description: strings.ACTIONS.LOCAL_FILE_USS_FILE.POSITIONALS.USSFILEPATH, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.binary, - Compare_options_1.CompareOptions.encoding, - Compare_options_1.CompareOptions.seqnum, - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.LOCAL_FILE_USS_FILE.EXAMPLES.EX1, - options: `"./a.txt" "/u/user/test.txt"` - }, - { - description: strings.ACTIONS.LOCAL_FILE_USS_FILE.EXAMPLES.EX2, - options: `"./a.txt" "/u/user/test.txt" --no-seqnum` - } - ] -}; -//# sourceMappingURL=LocalfileUss.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map b/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map deleted file mode 100644 index 1cc3094f7d..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileUss.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-uss/LocalfileUss.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CA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/compare/lf-uss/LocalfileUss.handler.d.ts deleted file mode 100644 index f60ec09483..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHelper } from '../CompareBaseHelper'; -import { CompareBaseHandler } from '../CompareBase.handler'; -/** - * Handler to compare the local file and uss file's content - * @export - */ -export default class LocalfileUssHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js deleted file mode 100644 index b37fcef06b..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to compare the local file and uss file's content - * @export - */ -class LocalfileUssHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return helper.prepareLocalFile(args.localFilePath); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); - }); - } -} -exports.default = LocalfileUssHandler; -//# sourceMappingURL=LocalfileUss.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map b/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map deleted file mode 100644 index 7e6c60f671..0000000000 --- a/lib/zosfiles/compare/lf-uss/LocalfileUss.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LocalfileUss.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/lf-uss/LocalfileUss.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AAEnD,gEAA4D;AAE5D;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,wCAAkB;IAClD,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACvG,CAAC;KAAA;CACJ;AAPD,sCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts b/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts deleted file mode 100644 index e60990bfdc..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare spool-dds command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const SpoolddDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.js b/lib/zosfiles/compare/sdd/Spooldd.definition.js deleted file mode 100644 index 03a11da164..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.definition.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SpoolddDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare spool-dds command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.SpoolddDefinition = { - name: "spool-dd", - aliases: ["sdd"], - summary: strings.ACTIONS.SPOOL_DD.SUMMARY, - description: strings.ACTIONS.SPOOL_DD.DESCRIPTION, - type: "command", - handler: __dirname + "/Spooldd.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "spoolDescription1", - description: strings.ACTIONS.SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION1, - type: "string", - required: true - }, - { - name: "spoolDescription2", - type: "string", - description: strings.ACTIONS.SPOOL_DD.POSITIONALS.SPOOLDDDESCRIPTION2, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.SPOOL_DD.EXAMPLES.EX1, - options: `"jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2"` - }, - { - description: strings.ACTIONS.SPOOL_DD.EXAMPLES.EX2, - options: `"jobName1:jobId1:spoolId1" "jobName2:jobId2:spoolId2" --no-seqnum` - } - ] -}; -//# sourceMappingURL=Spooldd.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.definition.js.map b/lib/zosfiles/compare/sdd/Spooldd.definition.js.map deleted file mode 100644 index 46fb810e7a..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Spooldd.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/sdd/Spooldd.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,mBAAmB;YACrE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,mBAAmB;YACrE,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uDAAuD;SACnE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,mEAAmE;SAC/E;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts b/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts deleted file mode 100644 index f293bae78c..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHandler } from "../CompareBase.handler"; -import { CompareBaseHelper } from "../CompareBaseHelper"; -/** - * Handler to compare spooldd's content - * @export - */ -export default class SpoolddHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.js b/lib/zosfiles/compare/sdd/Spooldd.handler.js deleted file mode 100644 index 9bcb42bc47..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.handler.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to compare spooldd's content - * @export - */ -class SpoolddHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription1); - return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - const { jobName, jobId, spoolId } = helper.prepareSpoolDescriptor(args.spoolDescription2); - return yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(session, jobName, jobId, spoolId); - }); - } -} -exports.default = SpoolddHandler; -//# sourceMappingURL=Spooldd.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/sdd/Spooldd.handler.js.map b/lib/zosfiles/compare/sdd/Spooldd.handler.js.map deleted file mode 100644 index 2597c450de..0000000000 --- a/lib/zosfiles/compare/sdd/Spooldd.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Spooldd.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/sdd/Spooldd.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsD;AACtD,gEAA4D;AAG5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC1F,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC1F,OAAO,MAAM,+BAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC/E,CAAC;KAAA;CACJ;AATD,iCASC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.definition.d.ts b/lib/zosfiles/compare/uss/UssFile.definition.d.ts deleted file mode 100644 index 7e7f490a85..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Compare uss-files command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/compare/uss/UssFile.definition.js b/lib/zosfiles/compare/uss/UssFile.definition.js deleted file mode 100644 index fe310b8e44..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.definition.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssFileDefinition = void 0; -const Compare_options_1 = require("../Compare.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COMPARE; -/** - * Compare uss-files command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.UssFileDefinition = { - name: "uss-files", - aliases: ["uss", "uf"], - summary: strings.ACTIONS.USS_FILE.SUMMARY, - description: strings.ACTIONS.USS_FILE.DESCRIPTION, - type: "command", - handler: __dirname + "/UssFile.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "ussFilePath1", - description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH1, - type: "string", - required: true - }, - { - name: "ussFilePath2", - type: "string", - description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH2, - required: true - } - ], - options: [ - Compare_options_1.CompareOptions.binary, - Compare_options_1.CompareOptions.binary2, - Compare_options_1.CompareOptions.encoding, - Compare_options_1.CompareOptions.encoding2, - Compare_options_1.CompareOptions.seqnum, - Compare_options_1.CompareOptions.contextLines, - Compare_options_1.CompareOptions.browserView - ], - examples: [ - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, - options: `"/u/user/test.txt" "/u/user/test.txt"` - }, - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, - options: `"/u/user/test.txt" "/u/user/test.txt" --no-seqnum` - } - ] -}; -//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.definition.js.map b/lib/zosfiles/compare/uss/UssFile.definition.js.map deleted file mode 100644 index 061ac27e2f..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,wDAAoD;AAGpD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEtF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY;YAC9D,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,OAAO;QACtB,gCAAc,CAAC,QAAQ;QACvB,gCAAc,CAAC,SAAS;QACxB,gCAAc,CAAC,MAAM;QACrB,gCAAc,CAAC,YAAY;QAC3B,gCAAc,CAAC,WAAW;KAC7B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uCAAuC;SACnD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,mDAAmD;SAC/D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.handler.d.ts b/lib/zosfiles/compare/uss/UssFile.handler.d.ts deleted file mode 100644 index c6fcd360e9..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.handler.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { AbstractSession, ICommandArguments } from "@zowe/imperative"; -import { CompareBaseHandler } from "../CompareBase.handler"; -import { CompareBaseHelper } from "../CompareBaseHelper"; -/** - * Handler to view a data set's content - * @export - */ -export default class UssFileHandler extends CompareBaseHandler { - getFile1(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; - getFile2(session: AbstractSession, args: ICommandArguments, helper: CompareBaseHelper): Promise; -} diff --git a/lib/zosfiles/compare/uss/UssFile.handler.js b/lib/zosfiles/compare/uss/UssFile.handler.js deleted file mode 100644 index 4454bf9657..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const CompareBase_handler_1 = require("../CompareBase.handler"); -/** - * Handler to view a data set's content - * @export - */ -class UssFileHandler extends CompareBase_handler_1.CompareBaseHandler { - getFile1(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath1, Object.assign(Object.assign({}, helper.file1Options), { task: helper.task })); - }); - } - getFile2(session, args, helper) { - return __awaiter(this, void 0, void 0, function* () { - return yield zos_files_for_zowe_sdk_1.Get.USSFile(session, args.ussFilePath2, Object.assign(Object.assign({}, helper.file2Options), { task: helper.task })); - }); - } -} -exports.default = UssFileHandler; -//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/compare/uss/UssFile.handler.js.map b/lib/zosfiles/compare/uss/UssFile.handler.js.map deleted file mode 100644 index ab8b7b2cbe..0000000000 --- a/lib/zosfiles/compare/uss/UssFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/compare/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAmD;AACnD,gEAA4D;AAG5D;;;GAGG;AACH,MAAqB,cAAe,SAAQ,wCAAkB;IAC7C,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;IACY,QAAQ,CAAC,OAAwB,EAAE,IAAuB,EAAE,MAAyB;;YAC9F,OAAO,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,kCAAO,MAAM,CAAC,YAAY,KAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAG,CAAC;QACxG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/Copy.definition.d.ts b/lib/zosfiles/copy/Copy.definition.d.ts deleted file mode 100644 index 6ff7b358fb..0000000000 --- a/lib/zosfiles/copy/Copy.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the copy group within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const CopyDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/Copy.definition.js b/lib/zosfiles/copy/Copy.definition.js deleted file mode 100644 index a38d640f0a..0000000000 --- a/lib/zosfiles/copy/Copy.definition.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CopyDefinition = void 0; -const Ds_definition_1 = require("./ds/Ds.definition"); -const Dsclp_definition_1 = require("./dsclp/Dsclp.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.COPY; -/** - * This object defines the command for the copy group within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.CopyDefinition = { - name: "copy", - aliases: ["cp"], - type: "group", - description: strings.DESCRIPTION, - children: [ - Ds_definition_1.DsDefinition, - Dsclp_definition_1.DsclpDefinition - ] -}; -//# sourceMappingURL=Copy.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/Copy.definition.js.map b/lib/zosfiles/copy/Copy.definition.js.map deleted file mode 100644 index 3714e39752..0000000000 --- a/lib/zosfiles/copy/Copy.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Copy.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/copy/Copy.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,sDAAkD;AAClD,+DAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,kCAAe;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.definition.d.ts b/lib/zosfiles/copy/ds/Ds.definition.d.ts deleted file mode 100644 index cf04797175..0000000000 --- a/lib/zosfiles/copy/ds/Ds.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for copy data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @type {ICommandDefinition} - */ -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/ds/Ds.definition.js b/lib/zosfiles/copy/ds/Ds.definition.js deleted file mode 100644 index bfbd322825..0000000000 --- a/lib/zosfiles/copy/ds/Ds.definition.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COPY.ACTIONS.DATA_SET; -/** - * This object defines the command for copy data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @type {ICommandDefinition} - */ -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "Ds.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fromDataSetName", - type: "string", - description: strings.POSITIONALS.FROMDSNAME, - required: true - }, - { - name: "toDataSetName", - type: "string", - description: strings.POSITIONALS.TODSNAME, - required: true - } - ], - options: [ - { - name: "replace", - aliases: ["rep"], - description: strings.OPTIONS.REPLACE, - type: "boolean" - } - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"USER.FROM.SET" "USER.TO.SET"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"USER.FROM.SET(mem1)" "USER.TO.SET(mem2)"` - }, - { - description: strings.EXAMPLES.EX3, - options: `"USER.FROM.SET" "USER.TO.SET(mem2)"` - }, - { - description: strings.EXAMPLES.EX4, - options: `"USER.FROM.SET(mem1)" "USER.TO.SET"` - }, - { - description: strings.EXAMPLES.EX5, - options: `"USER.FROM.SET" "USER.TO.SET" --replace` - } - ] -}; -//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.definition.js.map b/lib/zosfiles/copy/ds/Ds.definition.js.map deleted file mode 100644 index 1cdb5e1332..0000000000 --- a/lib/zosfiles/copy/ds/Ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAI5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,YAAY,CAAC;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU;YAC3C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO;YACpC,IAAI,EAAE,SAAS;SAClB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAC3C,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAC/B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+BAA+B;SAC3C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2CAA2C;SACvD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qCAAqC;SACjD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qCAAqC;SACjD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yCAAyC;SACrD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.handler.d.ts b/lib/zosfiles/copy/ds/Ds.handler.d.ts deleted file mode 100644 index 5f41a8f0b4..0000000000 --- a/lib/zosfiles/copy/ds/Ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to copy a data set. - */ -export default class DsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/copy/ds/Ds.handler.js b/lib/zosfiles/copy/ds/Ds.handler.js deleted file mode 100644 index cc2e48dda3..0000000000 --- a/lib/zosfiles/copy/ds/Ds.handler.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const ZosFiles_utils_1 = require("../../ZosFiles.utils"); -/** - * Handler to copy a data set. - */ -class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const fromDataSet = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.fromDataSetName); - const toDataSet = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.toDataSetName); - const options = { - "from-dataset": fromDataSet, - enq: commandParameters.arguments.enq, - replace: commandParameters.arguments.replace, - responseTimeout: commandParameters.arguments.responseTimeout - }; - return zos_files_for_zowe_sdk_1.Copy.dataSet(session, toDataSet, options); - }); - } -} -exports.default = DsHandler; -//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/ds/Ds.handler.js.map b/lib/zosfiles/copy/ds/Ds.handler.js.map deleted file mode 100644 index d98bfe2244..0000000000 --- a/lib/zosfiles/copy/ds/Ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAsG;AACtG,qEAAiE;AACjE,yDAAkD;AAElD;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,WAAW,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YACtF,MAAM,SAAS,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAClF,MAAM,OAAO,GAAwB;gBACjC,cAAc,EAAE,WAAW;gBAC3B,GAAG,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG;gBACpC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,6BAAI,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,4BAaC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts b/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts deleted file mode 100644 index b59d17a4f4..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for copy data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @type {ICommandDefinition} - */ -export declare const DsclpDefinition: ICommandDefinition; diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.js b/lib/zosfiles/copy/dsclp/Dsclp.definition.js deleted file mode 100644 index a2f2956930..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.definition.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsclpDefinition = void 0; -const path_1 = require("path"); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const ZosFiles_options_1 = require("../../ZosFiles.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.COPY.ACTIONS.DATA_SET_CROSS_LPAR; -const TargetZosmfOptions = [ - { - name: "target-host", - aliases: ["th"], - description: strings.OPTIONS.TARGETHOST, - type: "string" - }, - { - name: "target-port", - aliases: ["tp"], - description: strings.OPTIONS.TARGETPORT, - type: "number" - }, - { - name: "target-user", - aliases: ["tu"], - description: strings.OPTIONS.TARGETUSER, - type: "string" - }, - { - name: "target-password", - aliases: ["tpw"], - description: strings.OPTIONS.TARGETPASS, - type: "string" - }, - { - name: "target-token-type", - aliases: ["ttt"], - description: strings.OPTIONS.TARGETTOKENTYPE, - type: "string" - }, - { - name: "target-token-value", - aliases: ["ttv"], - description: strings.OPTIONS.TARGETTOKENVAL, - type: "string" - }, - { - name: "target-zosmf-profile", - aliases: ["t-zosmf-p", "target-zosmf-p"], - description: strings.OPTIONS.TARGETPROFILE, - type: "string" - } -]; -const GeneralOptions = [ - { - name: "replace", - aliases: ["rep"], - description: strings.OPTIONS.REPLACE, - type: "boolean" - }, - { - name: "target-volume-serial", - aliases: ["tvs", "target-volser"], - description: strings.OPTIONS.TARGETVOLSER, - type: "string" - }, - { - name: "target-management-class", - aliases: ["tmc"], - description: strings.OPTIONS.TARGETMGTCLS, - type: "string" - }, - { - name: "target-data-class", - aliases: ["tdc"], - description: strings.OPTIONS.TARGETDATACLS, - type: "string" - }, - { - name: "target-storage-class", - aliases: ["tsc"], - description: strings.OPTIONS.TARGETSTGCLS, - type: "string" - } -]; -const Positionals = [ - { - name: "fromDataSetName", - type: "string", - description: strings.POSITIONALS.FROMDSNAME, - required: true - }, - { - name: "toDataSetName", - type: "string", - description: strings.POSITIONALS.TODSNAME, - required: true - } -]; -function buildChainedHandlerArgMapping(optionDefs) { - return optionDefs.map((optionDef) => ({ - from: optionDef.name, - to: imperative_1.CliUtils.getOptionFormat(optionDef.name).camelCase, - mapFromArguments: true, - applyToHandlers: [0], - optional: !optionDef.required - })); -} -/** - * This object defines the command for copy data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @type {ICommandDefinition} - */ -exports.DsclpDefinition = { - name: "data-set-cross-lpar", - aliases: ["dsclp"], - description: strings.DESCRIPTION, - type: "command", - chainedHandlers: [ - { - handler: (0, path_1.join)(__dirname, "TargetProfile.handler"), - mapping: [ - ...buildChainedHandlerArgMapping(zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS), - ...buildChainedHandlerArgMapping(TargetZosmfOptions), - { - from: "apiResponse.sessCfg", - to: "targetZosmfSession" - } - ] - }, - { - handler: (0, path_1.join)(__dirname, "Dsclp.handler"), - mapping: [ - ...buildChainedHandlerArgMapping(Positionals), - ...buildChainedHandlerArgMapping(zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS), - ...buildChainedHandlerArgMapping(ZosFiles_options_1.ZosFilesOptionDefinitions), - ...buildChainedHandlerArgMapping(GeneralOptions) - ] - } - ], - profile: { - optional: ["zosmf"] - }, - positionals: Positionals, - options: [ - ...TargetZosmfOptions, - ...GeneralOptions, - { - name: "target-zosmf-session", - description: "Session configuration for target z/OSMF profile", - type: "json", - hidden: true - } - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"USER.FROM.SET" "USER.TO.SET" --target-zosmf-p SYS1` - }, - { - description: strings.EXAMPLES.EX2, - options: `"USER.FROM.SET(mem1)" "USER.TO.SET(mem2)" --target-zosmf-p SYS1` - }, - { - description: strings.EXAMPLES.EX3, - options: `"USER.FROM.SET" "USER.TO.SET(mem2)" --target-zosmf-p SYS1` - }, - { - description: strings.EXAMPLES.EX4, - options: `"USER.FROM.SET(mem1)" "USER.TO.SET" --target-host sys1.com --target-user user1 --target-password pass1` - } - ] -}; -//# sourceMappingURL=Dsclp.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map b/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map deleted file mode 100644 index 79b2bfa1cc..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dsclp.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/Dsclp.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,+BAA4B;AAC5B,iDAC2D;AAC3D,iEAAwD;AACxD,6DAAmE;AAInE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC;AAE/G,MAAM,kBAAkB,GAA+B;IACnD;QACI,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU;QACvC,IAAI,EAAE,QAAQ;KAC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CAAC,GAAG;YACjC,OAAO,EAAE,2DAA2D;SACvE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wGAAwG;SACpH;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts b/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts deleted file mode 100644 index b10444b144..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.handler.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to copy a data set. - */ -export default class DsclpHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; - /** - * Private function to prompt user if they wish to overwrite an existing dataset. - */ - private promptForOverwrite; -} diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.js b/lib/zosfiles/copy/dsclp/Dsclp.handler.js deleted file mode 100644 index e35153abf1..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.handler.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const ZosFiles_utils_1 = require("../../ZosFiles.utils"); -/** - * Handler to copy a data set. - */ -class DsclpHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const sourceDataset = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.fromDataSetName); - const targetDataset = (0, ZosFiles_utils_1.getDataSet)(commandParameters.arguments.toDataSetName); - const options = { - "from-dataset": sourceDataset, - enq: commandParameters.arguments.enq, - replace: commandParameters.arguments.replace, - responseTimeout: commandParameters.arguments.responseTimeout, - targetVolser: commandParameters.arguments.targetVolser, - targetManagementClass: commandParameters.arguments.targetManagementClass, - targetStorageClass: commandParameters.arguments.targetStorageClass, - targetDataClass: commandParameters.arguments.targetDataClass, - promptFn: this.promptForOverwrite(commandParameters.response.console) - }; - const sourceOptions = { - binary: commandParameters.arguments.binary, - encoding: commandParameters.arguments.encoding, - record: commandParameters.arguments.record, - volume: commandParameters.arguments.volume - }; - const targetSession = new imperative_1.Session(commandParameters.arguments.targetZosmfSession); - return zos_files_for_zowe_sdk_1.Copy.dataSetCrossLPAR(session, targetDataset, options, sourceOptions, targetSession); - }); - } - /** - * Private function to prompt user if they wish to overwrite an existing dataset. - */ - promptForOverwrite(console) { - return (targetDSN) => __awaiter(this, void 0, void 0, function* () { - const answer = yield console.prompt(`The dataset '${targetDSN}' already exists on the target system. Do you want to overwrite it? [y/N]: `); - return (answer != null && (answer.toLowerCase() === "y" || answer.toLowerCase() === "yes")); - }); - } -} -exports.default = DsclpHandler; -//# sourceMappingURL=Dsclp.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map b/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map deleted file mode 100644 index 3d59e2c7b3..0000000000 --- a/lib/zosfiles/copy/dsclp/Dsclp.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dsclp.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/Dsclp.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA4G;AAC5G,yEAA4H;AAC5H,qEAAiE;AACjE,yDAAkD;AAElD;;GAEG;AAEH,MAAqB,YAAa,SAAQ,0CAAmB;IAC5C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,aAAa,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YACxF,MAAM,aAAa,GAAa,IAAA,2BAAU,EAAC,iBAAiB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAEtF,MAAM,OAAO,GAAiC;gBAC1C,cAAc,EAAE,aAAa;gBAC7B,GAAG,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG;gBACpC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACtD,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,kBAAkB,EAAE,iBAAiB,CAAC,SAAS,CAAC,kBAAkB;gBAClE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC;aACxE,CAAC;YAEF,MAAM,aAAa,GAAgB;gBAC/B,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;aAC7C,CAAC;YAEF,MAAM,aAAa,GAAG,IAAI,oBAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;YAElF,OAAO,6BAAI,CAAC,gBAAgB,CAAC,OAAO,EAChC,aAAa,EACb,OAAO,EACP,aAAa,EACb,aAAa,CAChB,CAAC;QACN,CAAC;KAAA;IAED;;OAEG;IACK,kBAAkB,CAAC,OAAmC;QAC1D,OAAO,CAAO,SAAiB,EAAE,EAAE;YAC/B,MAAM,MAAM,GAAW,MAAM,OAAO,CAAC,MAAM,CACvC,gBAAgB,SAAS,6EAA6E,CAAC,CAAC;YAC5G,OAAO,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC;QAChG,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AA5CD,+BA4CC"} \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts b/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts deleted file mode 100644 index cb59ddef06..0000000000 --- a/lib/zosfiles/copy/dsclp/TargetProfile.handler.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to load a target profile. - * - * TODO Consider migrating code for loading target profiles to Imperative - */ -export default class TargetProfileHandler extends ZosFilesBaseHandler { - /** - * Build target z/OSMF session from profiles and command arguments. - */ - process(params: IHandlerParameters): Promise; - /** - * Return session config for target profile to pass on to the next handler. - */ - processWithSession(_params: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js deleted file mode 100644 index 5d4f8e6f72..0000000000 --- a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to load a target profile. - * - * TODO Consider migrating code for loading target profiles to Imperative - */ -class TargetProfileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - /** - * Build target z/OSMF session from profiles and command arguments. - */ - process(params) { - const _super = Object.create(null, { - process: { get: () => super.process } - }); - var _a; - return __awaiter(this, void 0, void 0, function* () { - const targetProfileName = params.arguments.targetZosmfProfile; - let targetCmdArgs = {}; - try { - if (targetProfileName != null) { - if ((_a = imperative_1.ImperativeConfig.instance.config) === null || _a === void 0 ? void 0 : _a.exists) { - targetCmdArgs = imperative_1.ImperativeConfig.instance.config.api.profiles.get(targetProfileName); - } - else { - targetCmdArgs = params.profiles.get("zosmf", false, targetProfileName); - } - } - const targetPrefix = "target"; - for (const [k, v] of Object.entries(params.arguments)) { - if (k.startsWith(targetPrefix) && v != null) { - const normalizedOptName = k.charAt(targetPrefix.length).toLowerCase() + k.slice(targetPrefix.length + 1); - targetCmdArgs[normalizedOptName] = v; - } - } - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: `Failed to load target z/OSMF profile: ${err.message}`, - causeErrors: err - }); - } - yield _super.process.call(this, Object.assign(Object.assign({}, params), { arguments: Object.assign(Object.assign({}, params.arguments), targetCmdArgs) })); - }); - } - /** - * Return session config for target profile to pass on to the next handler. - */ - processWithSession(_params, session) { - return __awaiter(this, void 0, void 0, function* () { - return { - success: true, - commandResponse: undefined, - apiResponse: { sessCfg: session.ISession } - }; - }); - } -} -exports.default = TargetProfileHandler; -//# sourceMappingURL=TargetProfile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map b/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map deleted file mode 100644 index a4e3d29b11..0000000000 --- a/lib/zosfiles/copy/dsclp/TargetProfile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TargetProfile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/copy/dsclp/TargetProfile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA0G;AAE1G,qEAAiE;AAEjE;;;;GAIG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACjE;;OAEG;IACU,OAAO,CAAC,MAA0B;;;;;;YAC3C,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC;YAC9D,IAAI,aAAa,GAAwB,EAAE,CAAC;YAE5C,IAAI;gBACA,IAAI,iBAAiB,IAAI,IAAI,EAAE;oBAC3B,IAAI,MAAA,6BAAgB,CAAC,QAAQ,CAAC,MAAM,0CAAE,MAAM,EAAE;wBAC1C,aAAa,GAAG,6BAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;qBACxF;yBAAM;wBACH,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;qBAC1E;iBACJ;gBAED,MAAM,YAAY,GAAG,QAAQ,CAAC;gBAC9B,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;oBACnD,IAAI,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE;wBACzC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;wBACzG,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;qBACxC;iBACJ;aACJ;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,yCAAyC,GAAG,CAAC,OAAO,EAAE;oBAC3D,WAAW,EAAE,GAAG;iBACnB,CAAC,CAAC;aACN;YAED,MAAM,OAAM,OAAO,4CACZ,MAAM,KACT,SAAS,kCAAO,MAAM,CAAC,SAAS,GAAK,aAAa,KACpD,CAAC;;KACN;IAED;;OAEG;IACU,kBAAkB,CAAC,OAA2B,EAAE,OAAwB;;YACjF,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,SAAS;gBAC1B,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;aAC7C,CAAC;QACN,CAAC;KAAA;CACJ;AA/CD,uCA+CC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.definition.d.ts b/lib/zosfiles/create/Create.definition.d.ts deleted file mode 100644 index c978ee66f2..0000000000 --- a/lib/zosfiles/create/Create.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const CreateDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/Create.definition.js b/lib/zosfiles/create/Create.definition.js deleted file mode 100644 index f57dea1ba4..0000000000 --- a/lib/zosfiles/create/Create.definition.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateDefinition = void 0; -const BinaryPDS_definition_1 = require("./binaryPds/BinaryPDS.definition"); -const ClassicPDS_definition_1 = require("./classicPds/ClassicPDS.definition"); -const CPDS_definition_1 = require("./cPds/CPDS.definition"); -const ds_definition_1 = require("./ds/ds.definition"); -const Pds_definition_1 = require("./pds/Pds.definition"); -const Ps_definition_1 = require("./ps/Ps.definition"); -const vsam_definition_1 = require("./vsam/vsam.definition"); -const zfs_definition_1 = require("./zfs/zfs.definition"); -const ussDir_definition_1 = require("./ussDir/ussDir.definition"); -const ussFile_definition_1 = require("./ussFile/ussFile.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.CREATE; -/** - * Create group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.CreateDefinition = { - name: "create", - aliases: ["cre"], - type: "group", - description: strings.DESCRIPTION, - children: [Ps_definition_1.PsDefinition, - Pds_definition_1.PdsDefinition, - BinaryPDS_definition_1.BinaryPDSDefinition, - CPDS_definition_1.CPDSDefinition, - ClassicPDS_definition_1.ClassicPDSDefinition, - ds_definition_1.DsDefinition, - vsam_definition_1.VsamDefinition, - zfs_definition_1.ZfsDefinition, - ussFile_definition_1.UssFileDefinition, - ussDir_definition_1.UssDirDefinition - ] -}; -//# sourceMappingURL=Create.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.definition.js.map b/lib/zosfiles/create/Create.definition.js.map deleted file mode 100644 index cc15454ce9..0000000000 --- a/lib/zosfiles/create/Create.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2EAAuE;AACvE,8EAA0E;AAC1E,4DAAwD;AACxD,sDAAkD;AAClD,yDAAqD;AACrD,sDAAkD;AAClD,4DAAwD;AACxD,yDAAqD;AAGrD,kEAA8D;AAC9D,qEAAiE;AAEjE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE,CAAC,4BAAY;QACnB,8BAAa;QACb,0CAAmB;QACnB,gCAAc;QACd,4CAAoB;QACpB,4BAAY;QACZ,gCAAc;QACd,8BAAa;QACb,sCAAiB;QACjB,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.options.d.ts b/lib/zosfiles/create/Create.options.d.ts deleted file mode 100644 index 789b85a1fe..0000000000 --- a/lib/zosfiles/create/Create.options.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the Create API - */ -export declare const ZosFilesCreateExtraOptions: { - [key: string]: ICommandOptionDefinition; -}; -/** - * Object containing all options to be used by the Create API - */ -export declare const ZosFilesCreateOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/create/Create.options.js b/lib/zosfiles/create/Create.options.js deleted file mode 100644 index 761e65b6b1..0000000000 --- a/lib/zosfiles/create/Create.options.js +++ /dev/null @@ -1,228 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZosFilesCreateOptions = exports.ZosFilesCreateExtraOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.CREATE.OPTIONS; -/** - * Object containing all extra options to be used by the Create API - */ -exports.ZosFilesCreateExtraOptions = { - /** - * The indicator of a flat file creation (Sequential data set) - * @type {ICommandOptionDefinition} - */ - flatFile: { - name: "flat-file", - aliases: ["ff"], - description: strings.FLATFILE, - type: "boolean" - }, - /** - * The indicator that we should print all allocation attributes - * @type {ICommandOptionDefinition} - * @deprecated - */ - showAttributes: { - name: "show-attributes", - aliases: ["pa"], - description: strings.SHOWATTRIBUTES, - hidden: true, - type: "boolean" - }, - /** - * The indicator that we should print all allocation attributes - * @type {ICommandOptionDefinition} - */ - attributes: { - name: "attributes", - aliases: ["a"], - description: strings.SHOWATTRIBUTES, - type: "boolean" - }, - /** - * The size of the data set - * @type {ICommandOptionDefinition} - */ - size: { - name: "size", - aliases: ["sz"], - description: strings.SIZE, - type: "string" - }, - /** - * The like value of data set - * @type {ICommandOptionDefinition} - */ - like: { - name: "like", - aliases: ["lk"], - description: strings.LIKE, - type: "string" - } -}; -/** - * Object containing all options to be used by the Create API - */ -exports.ZosFilesCreateOptions = { - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volser: { - name: "volume-serial", - aliases: ["vs", "volser"], - description: strings.VOLSER, - type: "string" - }, - /** - * The device type - * @type {ICommandOptionDefinition} - */ - unit: { - name: "device-type", - aliases: ["dt", "unit"], - description: strings.UNIT, - type: "string" - }, - /** - * The data set organization - * @type {ICommandOptionDefinition} - */ - dsorg: { - name: "data-set-organization", - aliases: ["dso", "dsorg"], - description: strings.DSORG, - type: "string" - }, - /** - * The unit of space allocation - * @type {ICommandOptionDefinition} - */ - alcunit: { - name: "allocation-space-unit", - aliases: ["asu"], - description: strings.ALCUNIT, - type: "string" - }, - /** - * The primary space allocation - * @type {ICommandOptionDefinition} - */ - primary: { - name: "primary-space", - aliases: ["ps"], - description: strings.PRIMARY, - type: "number" - }, - /** - * The secondary space allocation - * @type {ICommandOptionDefinition} - */ - secondary: { - name: "secondary-space", - aliases: ["ss"], - description: strings.SECONDARY, - type: "number" - }, - /** - * The number of directory blocks - * @type {ICommandOptionDefinition} - */ - dirblk: { - name: "directory-blocks", - aliases: ["db", "dirblks"], - description: strings.DIRBLK, - type: "number" - }, - /** - * The average block - * @type {ICommandOptionDefinition} - */ - avgblk: { - name: "average-blocks", - aliases: ["ab"], - description: strings.AVGBLK, - type: "number" - }, - /** - * The record format - * @type {ICommandOptionDefinition} - */ - recfm: { - name: "record-format", - aliases: ["rf", "recfm"], - description: strings.RECFM, - type: "string" - }, - /** - * The block size - * @type {ICommandOptionDefinition} - */ - blksize: { - name: "block-size", - aliases: ["bs", "blksize"], - description: strings.BLKSIZE, - type: "number" - }, - /** - * The record length - * @type {ICommandOptionDefinition} - */ - lrecl: { - name: "record-length", - aliases: ["rl", "lrecl"], - description: strings.LRECL, - type: "number" - }, - /** - * The storage class - * @type {ICommandOptionDefinition} - */ - storclass: { - name: "storage-class", - aliases: ["sc"], - description: strings.STORCLASS, - type: "string" - }, - /** - * The management class - * @type {ICommandOptionDefinition} - */ - mgntclass: { - name: "management-class", - aliases: ["mc"], - description: strings.MGNTCLASS, - type: "string" - }, - /** - * The data class - * @type {ICommandOptionDefinition} - */ - dataclass: { - name: "data-class", - aliases: ["dc"], - description: strings.DATACLASS, - type: "string" - }, - /** - * The data set type - * @type {ICommandOptionDefinition} - */ - dsntype: { - name: "data-set-type", - aliases: ["dst", "dsntype"], - description: strings.DSNTYPE, - type: "string" - } -}; -//# sourceMappingURL=Create.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.options.js.map b/lib/zosfiles/create/Create.options.js.map deleted file mode 100644 index 7b06487a05..0000000000 --- a/lib/zosfiles/create/Create.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.options.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAE1F;;GAEG;AACU,QAAA,0BAA0B,GAAgD;IACnF;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,SAAS;KAClB;IAED;;;;OAIG;IACH,cAAc,EAAE;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;KACjB;IACD;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,IAAI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CAAC,KAAK,EAAE,SAAS,CAAC;QAC3B,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/Create.utils.d.ts b/lib/zosfiles/create/Create.utils.d.ts deleted file mode 100644 index d4e62809d7..0000000000 --- a/lib/zosfiles/create/Create.utils.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Arguments } from "yargs"; -import { ICreateDataSetOptions } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Generate the appropriate options object to create a dataset before sending it to the z/OS MF APIs - * @param {yargs.Arguments} commandArguments - The provided command arguments - * @return {ICreateDataSetOptions} Object to be sent - */ -export declare function generateZosmfOptions(commandArguments: Arguments): ICreateDataSetOptions; diff --git a/lib/zosfiles/create/Create.utils.js b/lib/zosfiles/create/Create.utils.js deleted file mode 100644 index b48f79a783..0000000000 --- a/lib/zosfiles/create/Create.utils.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.generateZosmfOptions = void 0; -/** - * Generate the appropriate options object to create a dataset before sending it to the z/OS MF APIs - * @param {yargs.Arguments} commandArguments - The provided command arguments - * @return {ICreateDataSetOptions} Object to be sent - */ -function generateZosmfOptions(commandArguments) { - return JSON.parse(JSON.stringify({ - alcunit: commandArguments.allocationSpaceUnit, - volser: commandArguments.volumeSerial, - primary: commandArguments.primarySpace, - secondary: commandArguments.secondarySpace, - dirblk: commandArguments.directoryBlocks, - recfm: commandArguments.recordFormat, - blksize: commandArguments.blockSize, - lrecl: commandArguments.recordLength, - storclass: commandArguments.storageClass, - mgntclass: commandArguments.managementClass, - dataclass: commandArguments.dataClass, - dsntype: commandArguments.dataSetType, - showAttributes: commandArguments.showAttributes || commandArguments.attributes, - size: commandArguments.size, - responseTimeout: commandArguments.responseTimeout - })); -} -exports.generateZosmfOptions = generateZosmfOptions; -//# sourceMappingURL=Create.utils.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/Create.utils.js.map b/lib/zosfiles/create/Create.utils.js.map deleted file mode 100644 index 6f5ff11970..0000000000 --- a/lib/zosfiles/create/Create.utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Create.utils.js","sourceRoot":"","sources":["../../../src/zosfiles/create/Create.utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAOF;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,gBAA2B;IAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;QAC7B,OAAO,EAAE,gBAAgB,CAAC,mBAAmB;QAC7C,MAAM,EAAE,gBAAgB,CAAC,YAAY;QACrC,OAAO,EAAE,gBAAgB,CAAC,YAAY;QACtC,SAAS,EAAE,gBAAgB,CAAC,cAAc;QAC1C,MAAM,EAAE,gBAAgB,CAAC,eAAe;QACxC,KAAK,EAAE,gBAAgB,CAAC,YAAY;QACpC,OAAO,EAAE,gBAAgB,CAAC,SAAS;QACnC,KAAK,EAAE,gBAAgB,CAAC,YAAY;QACpC,SAAS,EAAE,gBAAgB,CAAC,YAAY;QACxC,SAAS,EAAE,gBAAgB,CAAC,eAAe;QAC3C,SAAS,EAAE,gBAAgB,CAAC,SAAS;QACrC,OAAO,EAAE,gBAAgB,CAAC,WAAW;QACrC,cAAc,EAAE,gBAAgB,CAAC,cAAc,IAAI,gBAAgB,CAAC,UAAU;QAC9E,IAAI,EAAE,gBAAgB,CAAC,IAAI;QAC3B,eAAe,EAAE,gBAAgB,CAAC,eAAe;KACpD,CAAC,CAAC,CAAC;AACR,CAAC;AAlBD,oDAkBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts deleted file mode 100644 index 978b58df87..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create Binary PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const BinaryPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js deleted file mode 100644 index 68c411c7b2..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinaryPDSDefinition = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create Binary PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.BinaryPDSDefinition = { - name: "data-set-binary", - aliases: ["bin"], - description: strings.ACTIONS.DATA_SET_BINARY.DESCRIPTION, - type: "command", - handler: __dirname + "/BinaryPDS.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.primary }), - Create_options_1.ZosFilesCreateOptions.volser, - Create_options_1.ZosFilesCreateOptions.secondary, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.dirblk }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.recfm }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.blksize }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.BINARY.lrecl }), - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateOptions.dsntype, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_BINARY.EXAMPLES.EX1, - options: "NEW.BINARY.DATASET" - }, - { - description: strings.ACTIONS.DATA_SET_BINARY.EXAMPLES.EX2, - options: "NEW.BINARY.DATASET --data-set-type LIBRARY" - } - ] -}; -//# sourceMappingURL=BinaryPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map b/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map deleted file mode 100644 index 88532b8d05..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BinaryPDS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/binaryPds/BinaryPDS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;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AAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG;YACzD,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG;YACzD,OAAO,EAAE,4CAA4C;SACxD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts deleted file mode 100644 index 3c230c3625..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a Binary-PDS data set - */ -export default class BinaryPDSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js deleted file mode 100644 index ab8fc77562..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to create a Binary-PDS data set - */ -class BinaryPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 0 /* CreateDataSetTypeEnum.DATA_SET_BINARY */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - }); - } -} -exports.default = BinaryPDSHandler; -//# sourceMappingURL=BinaryPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map b/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map deleted file mode 100644 index b3454c664b..0000000000 --- a/lib/zosfiles/create/binaryPds/BinaryPDS.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BinaryPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/binaryPds/BinaryPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,gBAAiB,SAAQ,0CAAmB;IAChD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,iDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,mCASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.definition.d.ts b/lib/zosfiles/create/cPds/CPDS.definition.d.ts deleted file mode 100644 index 47e6be1fdb..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create C-code PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const CPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/cPds/CPDS.definition.js b/lib/zosfiles/create/cPds/CPDS.definition.js deleted file mode 100644 index 85bf47a6ec..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.definition.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CPDSDefinition = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create C-code PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.CPDSDefinition = { - name: "data-set-c", - aliases: ["dsc"], - description: strings.ACTIONS.DATA_SET_C.DESCRIPTION, - type: "command", - handler: __dirname + "/CPDS.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Create_options_1.ZosFilesCreateOptions.volser, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.primary }), - Create_options_1.ZosFilesCreateOptions.secondary, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.dirblk }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.recfm }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.blksize }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.C.lrecl }), - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateOptions.dsntype, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_C.EXAMPLES.EX1, - options: "NEW.CCODE.DATASET" - }, - { - description: strings.ACTIONS.DATA_SET_C.EXAMPLES.EX2, - options: "NEW.CCODE.DATASET --data-set-type LIBRARY" - } - ] -}; -//# sourceMappingURL=CPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.definition.js.map b/lib/zosfiles/create/cPds/CPDS.definition.js.map deleted file mode 100644 index eaba079bf3..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"C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AC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpD,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpD,OAAO,EAAE,2CAA2C;SACvD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.handler.d.ts b/lib/zosfiles/create/cPds/CPDS.handler.d.ts deleted file mode 100644 index cce9c8a62a..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a C-PDS data set - */ -export default class CPDSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/cPds/CPDS.handler.js b/lib/zosfiles/create/cPds/CPDS.handler.js deleted file mode 100644 index 3b3349abad..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to create a C-PDS data set - */ -class CPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 1 /* CreateDataSetTypeEnum.DATA_SET_C */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - }); - } -} -exports.default = CPDSHandler; -//# sourceMappingURL=CPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/cPds/CPDS.handler.js.map b/lib/zosfiles/create/cPds/CPDS.handler.js.map deleted file mode 100644 index f659472b9c..0000000000 --- a/lib/zosfiles/create/cPds/CPDS.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/cPds/CPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,4CAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,8BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts b/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts deleted file mode 100644 index 3f29ed7f5b..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create Classic PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const ClassicPDSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js deleted file mode 100644 index acc08a9bfe..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassicPDSDefinition = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create Classic PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.ClassicPDSDefinition = { - name: "data-set-classic", - aliases: ["classic"], - description: strings.ACTIONS.DATA_SET_CLASSIC.DESCRIPTION, - type: "command", - handler: __dirname + "/ClassicPDS.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.primary }), - Create_options_1.ZosFilesCreateOptions.volser, - Create_options_1.ZosFilesCreateOptions.secondary, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.dirblk }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.recfm }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.blksize }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.CLASSIC.lrecl }), - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateOptions.dsntype, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_CLASSIC.EXAMPLES.EX1, - options: "NEW.CLASSIC.DATASET" - }, - { - description: strings.ACTIONS.DATA_SET_CLASSIC.EXAMPLES.EX2, - options: "NEW.CLASSIC.DATASET --data-set-type LIBRARY" - } - ] -}; -//# sourceMappingURL=ClassicPDS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map b/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map deleted file mode 100644 index 7c9790756a..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassicPDS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/classicPds/ClassicPDS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAGtF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW;IACzD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;wCAC3B,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;QACxF,sCAAqB,CAAC,MAAM;QAC5B,sCAAqB,CAAC,SAAS;wCAC3B,sCAAqB,CAAC,MAAM,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;wCAClF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;wCAChF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO;wCACpF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;QACpF,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG;YAC1D,OAAO,EAAE,qBAAqB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAAG;YAC1D,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts b/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts deleted file mode 100644 index b6c6ad299b..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a Classic-PDS data set - */ -export default class ClassicPDSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js deleted file mode 100644 index ee7353d77a..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to create a Classic-PDS data set - */ -class ClassicPDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 2 /* CreateDataSetTypeEnum.DATA_SET_CLASSIC */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - }); - } -} -exports.default = ClassicPDSHandler; -//# sourceMappingURL=ClassicPDS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map b/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map deleted file mode 100644 index 0c83e903fb..0000000000 --- a/lib/zosfiles/create/classicPds/ClassicPDS.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassicPDS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/classicPds/ClassicPDS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,kDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,oCASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.definition.d.ts b/lib/zosfiles/create/ds/ds.definition.d.ts deleted file mode 100644 index f2b61e435b..0000000000 --- a/lib/zosfiles/create/ds/ds.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create dataSet command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ds/ds.definition.js b/lib/zosfiles/create/ds/ds.definition.js deleted file mode 100644 index 9a5fb121d4..0000000000 --- a/lib/zosfiles/create/ds/ds.definition.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create dataSet command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: strings.ACTIONS.DATA_SET_LIKE.DESCRIPTION, - type: "command", - handler: __dirname + "/ds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Create_options_1.ZosFilesCreateOptions.volser, - Create_options_1.ZosFilesCreateOptions.primary, - Create_options_1.ZosFilesCreateOptions.secondary, - Create_options_1.ZosFilesCreateOptions.dirblk, - Create_options_1.ZosFilesCreateOptions.recfm, - Create_options_1.ZosFilesCreateOptions.blksize, - Create_options_1.ZosFilesCreateOptions.lrecl, - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateOptions.dsntype, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes, - Create_options_1.ZosFilesCreateExtraOptions.like - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX1, - options: "NEW.DATASET --like EXISTING.DATASET" - }, - { - description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX2, - options: "NEW.DATASET --like EXISTING.DATASET --lrecl 1024" - }, - { - description: strings.ACTIONS.DATA_SET_LIKE.EXAMPLES.EX3, - options: "NEW.DATASET --data-set-type LIBRARY" - } - ] -}; -//# sourceMappingURL=ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.definition.js.map b/lib/zosfiles/create/ds/ds.definition.js.map deleted file mode 100644 index daca8f1e9a..0000000000 --- a/lib/zosfiles/create/ds/ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ds/ds.definition.ts"],"names":[],"mappings":";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C,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,qCAAqC;SACjD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG;YACvD,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.handler.d.ts b/lib/zosfiles/create/ds/ds.handler.d.ts deleted file mode 100644 index bde5233885..0000000000 --- a/lib/zosfiles/create/ds/ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to like a data set - */ -export default class DataSetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/ds/ds.handler.js b/lib/zosfiles/create/ds/ds.handler.js deleted file mode 100644 index aab043cf1d..0000000000 --- a/lib/zosfiles/create/ds/ds.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to like a data set - */ -class DataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - if (commandParameters.arguments.like == null) { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 5 /* CreateDataSetTypeEnum.DATA_SET_BLANK */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - } - else { - return zos_files_for_zowe_sdk_1.Create.dataSetLike(session, commandParameters.arguments.dataSetName, commandParameters.arguments.like, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - } - }); - } -} -exports.default = DataSetHandler; -//# sourceMappingURL=ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ds/ds.handler.js.map b/lib/zosfiles/create/ds/ds.handler.js.map deleted file mode 100644 index f22d029d5e..0000000000 --- a/lib/zosfiles/create/ds/ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ds/ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AAEH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,EAAE;gBAC1C,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,gDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;aAEL;iBACI;gBACD,OAAO,+BAAM,CAAC,WAAW,CACrB,OAAO,EACP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAChC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;aACL;QAEL,CAAC;KAAA;CACJ;AArBD,iCAqBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.definition.d.ts b/lib/zosfiles/create/pds/Pds.definition.d.ts deleted file mode 100644 index 8fc6944388..0000000000 --- a/lib/zosfiles/create/pds/Pds.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const PdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/pds/Pds.definition.js b/lib/zosfiles/create/pds/Pds.definition.js deleted file mode 100644 index 14bf9e3a74..0000000000 --- a/lib/zosfiles/create/pds/Pds.definition.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PdsDefinition = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create PDS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.PdsDefinition = { - name: "data-set-partitioned", - aliases: ["pds"], - description: strings.ACTIONS.DATA_SET_PARTITIONED.DESCRIPTION, - type: "command", - handler: __dirname + "/Pds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Create_options_1.ZosFilesCreateOptions.volser, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.primary }), - Create_options_1.ZosFilesCreateOptions.secondary, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.dirblk), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.dirblk }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.recfm }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.blksize }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.lrecl }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.alcunit), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.PARTITIONED.alcunit }), - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateOptions.dsntype, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_PARTITIONED.EXAMPLES.EX1, - options: "NEW.PDS.DATASET" - }, - { - description: strings.ACTIONS.DATA_SET_PARTITIONED.EXAMPLES.EX2, - options: "NEW.PDSE.DATASET --data-set-type LIBRARY" - } - ] -}; -//# sourceMappingURL=Pds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.definition.js.map b/lib/zosfiles/create/pds/Pds.definition.js.map deleted file mode 100644 index 0931a3af64..0000000000 --- a/lib/zosfiles/create/pds/Pds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Pds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/pds/Pds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAGtF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,WAAW;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;QAC5F,sCAAqB,CAAC,SAAS;wCAC3B,sCAAqB,CAAC,MAAM,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM;wCACtF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;wCACpF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;wCACxF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;wCACpF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;QAC5F,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,sCAAqB,CAAC,OAAO;QAC7B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG;YAC9D,OAAO,EAAE,iBAAiB;SAC7B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,GAAG;YAC9D,OAAO,EAAE,0CAA0C;SACtD;KAEJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.handler.d.ts b/lib/zosfiles/create/pds/Pds.handler.d.ts deleted file mode 100644 index 8e2cc2217e..0000000000 --- a/lib/zosfiles/create/pds/Pds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a PDS data set - */ -export default class PdsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/pds/Pds.handler.js b/lib/zosfiles/create/pds/Pds.handler.js deleted file mode 100644 index 24d76b6c27..0000000000 --- a/lib/zosfiles/create/pds/Pds.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to create a PDS data set - */ -class PdsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 3 /* CreateDataSetTypeEnum.DATA_SET_PARTITIONED */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - }); - } -} -exports.default = PdsHandler; -//# sourceMappingURL=Pds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/pds/Pds.handler.js.map b/lib/zosfiles/create/pds/Pds.handler.js.map deleted file mode 100644 index 68437c1279..0000000000 --- a/lib/zosfiles/create/pds/Pds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Pds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/pds/Pds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,sDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,6BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.definition.d.ts b/lib/zosfiles/create/ps/Ps.definition.d.ts deleted file mode 100644 index 7a9eec24d3..0000000000 --- a/lib/zosfiles/create/ps/Ps.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Create PS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const PsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ps/Ps.definition.js b/lib/zosfiles/create/ps/Ps.definition.js deleted file mode 100644 index ce4336c100..0000000000 --- a/lib/zosfiles/create/ps/Ps.definition.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PsDefinition = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE; -/** - * Create PS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.PsDefinition = { - name: "data-set-sequential", - aliases: ["ps"], - description: strings.ACTIONS.DATA_SET_SEQUENTIAL.DESCRIPTION, - type: "command", - handler: __dirname + "/Ps.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - Create_options_1.ZosFilesCreateExtraOptions.size, - Create_options_1.ZosFilesCreateOptions.volser, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.primary), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.primary }), - Create_options_1.ZosFilesCreateOptions.secondary, - Create_options_1.ZosFilesCreateOptions.dirblk, - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.recfm), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.recfm }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.blksize), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.blksize }), - Object.assign(Object.assign({}, Create_options_1.ZosFilesCreateOptions.lrecl), { defaultValue: zos_files_for_zowe_sdk_1.CreateDefaults.DATA_SET.SEQUENTIAL.lrecl }), - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - Create_options_1.ZosFilesCreateOptions.unit, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.ACTIONS.DATA_SET_SEQUENTIAL.EXAMPLES.EX1, - options: "NEW.PS.DATASET" - } - ] -}; -//# sourceMappingURL=Ps.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.definition.js.map b/lib/zosfiles/create/ps/Ps.definition.js.map deleted file mode 100644 index ca547a3eaf..0000000000 --- a/lib/zosfiles/create/ps/Ps.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ps.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ps/Ps.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yEAA8D;AAC9D,sDAAsF;AAItF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErF;;;GAGG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,WAAW;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2CAA0B,CAAC,IAAI;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO;QAC3F,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,MAAM;wCACxB,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;wCACnF,sCAAqB,CAAC,OAAO,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO;wCACvF,sCAAqB,CAAC,KAAK,KAAE,YAAY,EAAE,uCAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;QACvF,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,SAAS;QAC/B,sCAAqB,CAAC,IAAI;QAC1B,2CAA0B,CAAC,cAAc;QACzC,2CAA0B,CAAC,UAAU;KACxC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG;YAC7D,OAAO,EAAE,gBAAgB;SAC5B;KAEJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.handler.d.ts b/lib/zosfiles/create/ps/Ps.handler.d.ts deleted file mode 100644 index ce45077196..0000000000 --- a/lib/zosfiles/create/ps/Ps.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a PDS data set - */ -export default class PsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/ps/Ps.handler.js b/lib/zosfiles/create/ps/Ps.handler.js deleted file mode 100644 index cb626cba0d..0000000000 --- a/lib/zosfiles/create/ps/Ps.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const Create_utils_1 = require("../Create.utils"); -/** - * Handler to create a PDS data set - */ -class PsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Create.dataSet(session, 4 /* CreateDataSetTypeEnum.DATA_SET_SEQUENTIAL */, commandParameters.arguments.dataSetName, (0, Create_utils_1.generateZosmfOptions)(commandParameters.arguments)); - }); - } -} -exports.default = PsHandler; -//# sourceMappingURL=Ps.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ps/Ps.handler.js.map b/lib/zosfiles/create/ps/Ps.handler.js.map deleted file mode 100644 index 0179d7d30d..0000000000 --- a/lib/zosfiles/create/ps/Ps.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ps.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ps/Ps.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AACjE,kDAAuD;AAEvD;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,OAAO,CACjB,OAAO,qDAEP,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,SAAS,CAAC,CACpD,CAAC;QACN,CAAC;KAAA;CACJ;AATD,4BASC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/uss.options.d.ts b/lib/zosfiles/create/ussDir/uss.options.d.ts deleted file mode 100644 index f8bf395765..0000000000 --- a/lib/zosfiles/create/ussDir/uss.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Specifies the file or directory permission bits to be used in creating the file or directory. - */ -export declare const UssCreateOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/create/ussDir/uss.options.js b/lib/zosfiles/create/ussDir/uss.options.js deleted file mode 100644 index 95b8348416..0000000000 --- a/lib/zosfiles/create/ussDir/uss.options.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssCreateOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE.ACTIONS.USSDIR.OPTIONS; -/** - * Specifies the file or directory permission bits to be used in creating the file or directory. - */ -exports.UssCreateOptions = { - /** - * The permission bits for owner, group, and world users of the directory - * @type {ICommandOptionDefinition} - */ - mode: { - name: "mode", - aliases: ["m"], - description: strings.MODE, - type: "string", - // eslint-disable-next-line @typescript-eslint/no-magic-numbers - stringLengthRange: [9, 9] - } -}; -//# sourceMappingURL=uss.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/uss.options.js.map b/lib/zosfiles/create/ussDir/uss.options.js.map deleted file mode 100644 index de4d30e729..0000000000 --- a/lib/zosfiles/create/ussDir/uss.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uss.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/uss.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;AAE5G;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,+DAA+D;QAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.d.ts b/lib/zosfiles/create/ussDir/ussDir.definition.d.ts deleted file mode 100644 index e862ca926b..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const UssDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.js b/lib/zosfiles/create/ussDir/ussDir.definition.js deleted file mode 100644 index bdfc27baba..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssDirDefinition = void 0; -const uss_options_1 = require("../ussDir/uss.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const ussStrings = fileStrings.CREATE.ACTIONS.USSDIR; -exports.UssDirDefinition = { - name: "uss-directory", - aliases: ["dir"], - summary: ussStrings.SUMMARY, - description: ussStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/ussDir.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "ussPath", - type: "string", - description: ussStrings.POSITIONALS.PATH, - required: true - } - ], - options: [ - uss_options_1.UssCreateOptions.mode - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: ussStrings.EXAMPLES.CREATE_DIRECTORY, - options: "testDir" - }, - { - description: ussStrings.EXAMPLES.SPECIFY_MODE, - options: "testDir -m rwxrwxrwx" - } - ] -}; -//# sourceMappingURL=ussDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.definition.js.map b/lib/zosfiles/create/ussDir/ussDir.definition.js.map deleted file mode 100644 index ec862e67a1..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ussDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/ussDir.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uDAAyD;AAGzD,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;AAExC,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,UAAU,CAAC,OAAO;IAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAgB,CAAC,IAAI;KACxB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB;YACjD,OAAO,EAAE,SAAS;SACrB;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY;YAC7C,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.d.ts b/lib/zosfiles/create/ussDir/ussDir.handler.d.ts deleted file mode 100644 index 8cf42b7760..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a USS Directory - */ -export default class UssDirHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.js b/lib/zosfiles/create/ussDir/ussDir.handler.js deleted file mode 100644 index 380db9de90..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.handler.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a USS Directory - */ -class UssDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const strMode = commandParameters.arguments.mode; - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - return zos_files_for_zowe_sdk_1.Create.uss(session, commandParameters.arguments.ussPath, "directory", strMode, zosFilesOptions); - }); - } -} -exports.default = UssDirHandler; -//# sourceMappingURL=ussDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussDir/ussDir.handler.js.map b/lib/zosfiles/create/ussDir/ussDir.handler.js.map deleted file mode 100644 index a10aa05f9d..0000000000 --- a/lib/zosfiles/create/ussDir/ussDir.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ussDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussDir/ussDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,aAAc,SAAQ,0CAAmB;IAC7C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;YACjD,MAAM,eAAe,GAAqB,EAAE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAE1G,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;QAC3G,CAAC;KAAA;CACJ;AAPD,gCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/uss.options.d.ts b/lib/zosfiles/create/ussFile/uss.options.d.ts deleted file mode 100644 index f8bf395765..0000000000 --- a/lib/zosfiles/create/ussFile/uss.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Specifies the file or directory permission bits to be used in creating the file or directory. - */ -export declare const UssCreateOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/create/ussFile/uss.options.js b/lib/zosfiles/create/ussFile/uss.options.js deleted file mode 100644 index cf6bb8c89f..0000000000 --- a/lib/zosfiles/create/ussFile/uss.options.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssCreateOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE.ACTIONS.USSFILE.OPTIONS; -/** - * Specifies the file or directory permission bits to be used in creating the file or directory. - */ -exports.UssCreateOptions = { - /** - * The permission bits for the owner, group, and world users of the file - * @type {ICommandOptionDefinition} - */ - mode: { - name: "mode", - aliases: ["m"], - description: strings.MODE, - type: "string", - // eslint-disable-next-line @typescript-eslint/no-magic-numbers - stringLengthRange: [9, 9] - } -}; -//# sourceMappingURL=uss.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/uss.options.js.map b/lib/zosfiles/create/ussFile/uss.options.js.map deleted file mode 100644 index 9d3d0026b8..0000000000 --- a/lib/zosfiles/create/ussFile/uss.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uss.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/uss.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AAE7G;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,+DAA+D;QAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.d.ts b/lib/zosfiles/create/ussFile/ussFile.definition.d.ts deleted file mode 100644 index 312a696e09..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.js b/lib/zosfiles/create/ussFile/ussFile.definition.js deleted file mode 100644 index 1f048153f8..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssFileDefinition = void 0; -const uss_options_1 = require("./uss.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const ussStrings = fileStrings.CREATE.ACTIONS.USSFILE; -exports.UssFileDefinition = { - name: "uss-file", - aliases: ["file"], - summary: ussStrings.SUMMARY, - description: ussStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/ussFile.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "ussPath", - type: "string", - description: ussStrings.POSITIONALS.PATH, - required: true - } - ], - options: [ - uss_options_1.UssCreateOptions.mode - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: ussStrings.EXAMPLES.CREATE_FILE, - options: "text.txt" - }, - { - description: ussStrings.EXAMPLES.SPECIFY_MODE, - options: "text.txt -m rwxrwxrwx" - } - ] -}; -//# sourceMappingURL=ussFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.definition.js.map b/lib/zosfiles/create/ussFile/ussFile.definition.js.map deleted file mode 100644 index 6c84a87a76..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ussFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/ussFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+CAAiD;AAGjD,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;AAEzC,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC,OAAO;IAC3B,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,IAAI;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAgB,CAAC,IAAI;KACxB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW;YAC5C,OAAO,EAAE,UAAU;SACtB;QACD;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY;YAC7C,OAAO,EAAE,uBAAuB;SACnC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.d.ts b/lib/zosfiles/create/ussFile/ussFile.handler.d.ts deleted file mode 100644 index 46c4867f7f..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a USS file - */ -export default class UssFileHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.js b/lib/zosfiles/create/ussFile/ussFile.handler.js deleted file mode 100644 index 6d85247974..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.handler.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a USS file - */ -class UssFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const strMode = commandParameters.arguments.mode; - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - return zos_files_for_zowe_sdk_1.Create.uss(session, commandParameters.arguments.ussPath, "file", strMode, zosFilesOptions); - }); - } -} -exports.default = UssFileHandler; -//# sourceMappingURL=ussFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/ussFile/ussFile.handler.js.map b/lib/zosfiles/create/ussFile/ussFile.handler.js.map deleted file mode 100644 index b97d07188f..0000000000 --- a/lib/zosfiles/create/ussFile/ussFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ussFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/ussFile/ussFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC;YACjD,MAAM,eAAe,GAAqB,EAAE,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAE1G,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;QACtG,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.definition.d.ts b/lib/zosfiles/create/vsam/vsam.definition.d.ts deleted file mode 100644 index f0d6deffaf..0000000000 --- a/lib/zosfiles/create/vsam/vsam.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const VsamDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/vsam/vsam.definition.js b/lib/zosfiles/create/vsam/vsam.definition.js deleted file mode 100644 index 80f297a549..0000000000 --- a/lib/zosfiles/create/vsam/vsam.definition.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VsamDefinition = void 0; -const vsam_options_1 = require("./vsam.options"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const vsamStrings = fileStrings.CREATE.ACTIONS.VSAM; -// Add the allowable values to the description of dataset organization. -const vsamDsOrg = Create_options_1.ZosFilesCreateOptions.dsorg; -vsamDsOrg.description += - "."; -vsamDsOrg.defaultValue = zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.dsorg; -vsamDsOrg.allowableValues = { - values: zos_files_for_zowe_sdk_1.ZosFilesConstants.VSAM_DSORG_CHOICES, - caseSensitive: false -}; -// revise the description of size for VSAM. -const vsamSize = Object.assign({}, ...[Create_options_1.ZosFilesCreateExtraOptions.size]); -vsamSize.description = - vsamStrings.OPTIONS.SIZE; -vsamSize.defaultValue = zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.primary + zos_files_for_zowe_sdk_1.CreateDefaults.VSAM.alcunit; -// revise the description of secondary-space for VSAM. -const vsamSecondary = Object.assign({}, ...[Create_options_1.ZosFilesCreateOptions.secondary]); -vsamSecondary.description = vsamStrings.OPTIONS.SECONDARY; -// Add the allowable values to the description of retainFor. -const vsamRetainFor = Object.assign({}, ...[vsam_options_1.VsamCreateOptions.retainFor]); -exports.VsamDefinition = { - name: "data-set-vsam", - aliases: ["vsam"], - description: vsamStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/vsam.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: vsamStrings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - vsamDsOrg, - vsamSize, - vsamSecondary, - vsam_options_1.VsamCreateOptions.volumes, - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - vsamRetainFor, - vsam_options_1.VsamCreateOptions.retainTo, - Create_options_1.ZosFilesCreateExtraOptions.showAttributes, - Create_options_1.ZosFilesCreateExtraOptions.attributes - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: vsamStrings.EXAMPLES.DEFAULT_VALUES, - options: "SOME.DATA.SET.NAME" - }, - { - description: vsamStrings.EXAMPLES.SHOW_FIVE_MB, - options: "SOME.DATA.SET.NAME --data-set-organization LINEAR --size 5MB --secondary-space 1 --attributes" - }, - { - description: vsamStrings.EXAMPLES.RETAIN_100_DAYS, - options: "SOME.DATA.SET.NAME --retain-for 100 " - } - ] -}; -//# sourceMappingURL=vsam.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.definition.js.map b/lib/zosfiles/create/vsam/vsam.definition.js.map deleted file mode 100644 index 38f00ae587..0000000000 --- a/lib/zosfiles/create/vsam/vsam.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vsam.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iDAAmD;AACnD,yEAAiF;AACjF,sDAAsF;AAItF,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AAEpD,uEAAuE;AACvE,MAAM,SAAS,GAAG,sCAAqB,CAAC,KAAK,CAAC;AAC9C,SAAS,CAAC,WAAW;IACjB,GAAG,CAAC;AACR,SAAS,CAAC,YAAY,GAAG,uCAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AACnD,SAAS,CAAC,eAAe,GAAG;IACxB,MAAM,EAAE,0CAAiB,CAAC,kBAAkB;IAC5C,aAAa,EAAE,KAAK;CACvB,CAAC;AAEF,2CAA2C;AAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,2CAA0B,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,QAAQ,CAAC,WAAW;IAChB,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;AAC7B,QAAQ,CAAC,YAAY,GAAG,uCAAc,CAAC,IAAI,CAAC,OAAO,GAAG,uCAAc,CAAC,IAAI,CAAC,OAAO,CAAC;AAElF,sDAAsD;AACtD,MAAM,a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YAC9C,OAAO,EAAE,+FAA+F;SAC3G;QACD;YACI,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,eAAe;YACjD,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.handler.d.ts b/lib/zosfiles/create/vsam/vsam.handler.d.ts deleted file mode 100644 index 17e77c7738..0000000000 --- a/lib/zosfiles/create/vsam/vsam.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a VSAM data set - */ -export default class VsamHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/vsam/vsam.handler.js b/lib/zosfiles/create/vsam/vsam.handler.js deleted file mode 100644 index 8f68436747..0000000000 --- a/lib/zosfiles/create/vsam/vsam.handler.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a VSAM data set - */ -class VsamHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - // collect the options from our command line arguments into an object - const createVsamOptions = JSON.parse(JSON.stringify({ - dsorg: commandParameters.arguments.dataSetOrganization, - size: commandParameters.arguments.size, - secondary: commandParameters.arguments.secondarySpace, - volumes: commandParameters.arguments.volumes, - storclass: commandParameters.arguments.storageClass, - mgntclass: commandParameters.arguments.managementClass, - dataclass: commandParameters.arguments.dataClass, - retainFor: commandParameters.arguments.retainFor, - retainTo: commandParameters.arguments.retainTo, - showAttributes: commandParameters.arguments.showAttributes || commandParameters.arguments.attributes, - responseTimeout: commandParameters.arguments.responseTimeout - })); - return zos_files_for_zowe_sdk_1.Create.vsam(session, commandParameters.arguments.dataSetName, createVsamOptions); - }); - } -} -exports.default = VsamHandler; -//# sourceMappingURL=vsam.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.handler.js.map b/lib/zosfiles/create/vsam/vsam.handler.js.map deleted file mode 100644 index e059e80fac..0000000000 --- a/lib/zosfiles/create/vsam/vsam.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vsam.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.handler.ts"],"names":[],"mappings":";AACA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA6F;AAC7F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,iBAAiB,GAAgC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;gBAC7E,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,mBAAmB;gBACtD,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc;gBACrD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACnD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBACtD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBACpG,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC,CAAC;YAEJ,OAAO,+BAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AAnBD,8BAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.options.d.ts b/lib/zosfiles/create/vsam/vsam.options.d.ts deleted file mode 100644 index c6ede2fd1e..0000000000 --- a/lib/zosfiles/create/vsam/vsam.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the Create API - */ -export declare const VsamCreateOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/create/vsam/vsam.options.js b/lib/zosfiles/create/vsam/vsam.options.js deleted file mode 100644 index 3b336a452a..0000000000 --- a/lib/zosfiles/create/vsam/vsam.options.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VsamCreateOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE.ACTIONS.VSAM.OPTIONS; -/** - * Object containing all extra options to be used by the Create API - */ -exports.VsamCreateOptions = { - /** - * The volumes on which to allocate a VSAM cluster - * @type {ICommandOptionDefinition} - */ - volumes: { - name: "volumes", - aliases: ["v"], - description: strings.VOLUMES, - type: "string" - }, - /** - * The number of days for which the VSAM cluster will be retained. - * @type {ICommandOptionDefinition} - */ - retainFor: { - name: "retain-for", - aliases: ["rf"], - description: strings.RETAINFOR, - type: "number", - conflictsWith: ["retain-to"] - }, - /** - * The number of days for which the VSAM cluster will be retained. - * @type {ICommandOptionDefinition} - */ - retainTo: { - name: "retain-to", - aliases: ["rt"], - description: strings.RETAINTO, - type: "string", - conflictsWith: ["retain-for"] - } -}; -//# sourceMappingURL=vsam.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/vsam/vsam.options.js.map b/lib/zosfiles/create/vsam/vsam.options.js.map deleted file mode 100644 index d49d815767..0000000000 --- a/lib/zosfiles/create/vsam/vsam.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vsam.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/vsam/vsam.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;AAE1G;;GAEG;AACU,QAAA,iBAAiB,GAAgD;IAC1E;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,WAAW,CAAC;KAC/B;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,YAAY,CAAC;KAChC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.definition.d.ts b/lib/zosfiles/create/zfs/zfs.definition.d.ts deleted file mode 100644 index 99dfaa72b4..0000000000 --- a/lib/zosfiles/create/zfs/zfs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ZfsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/create/zfs/zfs.definition.js b/lib/zosfiles/create/zfs/zfs.definition.js deleted file mode 100644 index 15632f14fc..0000000000 --- a/lib/zosfiles/create/zfs/zfs.definition.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZfsDefinition = void 0; -const zfs_options_1 = require("./zfs.options"); -const Create_options_1 = require("../Create.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const zfsStrings = fileStrings.CREATE.ACTIONS.ZFS; -exports.ZfsDefinition = { - name: "zos-file-system", - aliases: ["zfs"], - summary: zfsStrings.SUMMARY, - description: zfsStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/zfs.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fileSystemName", - type: "string", - description: zfsStrings.POSITIONALS.FILESYSTEMNAME, - required: true - } - ], - options: [ - zfs_options_1.ZfsCreateOptions.owner, - zfs_options_1.ZfsCreateOptions.group, - zfs_options_1.ZfsCreateOptions.perms, - zfs_options_1.ZfsCreateOptions.cylsPri, - zfs_options_1.ZfsCreateOptions.cylsSec, - Create_options_1.ZosFilesCreateOptions.storclass, - Create_options_1.ZosFilesCreateOptions.mgntclass, - Create_options_1.ZosFilesCreateOptions.dataclass, - zfs_options_1.ZfsCreateOptions.volumes, - zfs_options_1.ZfsCreateOptions.timeout - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: zfsStrings.EXAMPLES.DEFAULT_VALUES, - options: "HLQ.MYNEW.ZFS" - }, - { - description: zfsStrings.EXAMPLES.SPECIFY_CYLS, - options: "HLQ.MYNEW.ZFS --cp 100 --cs 10" - }, - { - description: zfsStrings.EXAMPLES.SPECIFY_VOLUMES, - options: "HLQ.MYNEW.ZFS -v ZFS001 ZFS002" - } - ] -}; -//# sourceMappingURL=zfs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.definition.js.map b/lib/zosfiles/create/zfs/zfs.definition.js.map deleted file mode 100644 index 0c9bdf7f83..0000000000 --- a/lib/zosfiles/create/zfs/zfs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zfs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+CAAiD;AACjD,sDAA0D;AAG1D,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAErC,QAAA,aAAa,GAAuB;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ee..0000000000 --- a/lib/zosfiles/create/zfs/zfs.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a z/OS file system - */ -export default class ZfsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/create/zfs/zfs.handler.js b/lib/zosfiles/create/zfs/zfs.handler.js deleted file mode 100644 index 235352aeb2..0000000000 --- a/lib/zosfiles/create/zfs/zfs.handler.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a z/OS file system - */ -class ZfsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - // collect the options from our command line arguments into an object - const createZfsOptions = { - owner: commandParameters.arguments.owner, - group: commandParameters.arguments.group, - perms: commandParameters.arguments.perms, - cylsPri: commandParameters.arguments.cylsPri, - cylsSec: commandParameters.arguments.cylsSec, - storclass: commandParameters.arguments.storageClass, - mgntclass: commandParameters.arguments.managementClass, - dataclass: commandParameters.arguments.dataClass, - volumes: commandParameters.arguments.volumes, - timeout: commandParameters.arguments.timeout, - responseTimeout: commandParameters.arguments.responseTimeout - }; - return zos_files_for_zowe_sdk_1.Create.zfs(session, commandParameters.arguments.fileSystemName, createZfsOptions); - }); - } -} -exports.default = ZfsHandler; -//# sourceMappingURL=zfs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.handler.js.map b/lib/zosfiles/create/zfs/zfs.handler.js.map deleted file mode 100644 index 8a8b73f59d..0000000000 --- a/lib/zosfiles/create/zfs/zfs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zfs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA4F;AAC5F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,gBAAgB,GAA+B;gBACjD,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBACnD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBACtD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAC7F,CAAC;KAAA;CACJ;AAnBD,6BAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.options.d.ts b/lib/zosfiles/create/zfs/zfs.options.d.ts deleted file mode 100644 index d23c5608f6..0000000000 --- a/lib/zosfiles/create/zfs/zfs.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the Create API - */ -export declare const ZfsCreateOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/create/zfs/zfs.options.js b/lib/zosfiles/create/zfs/zfs.options.js deleted file mode 100644 index 5b774459f9..0000000000 --- a/lib/zosfiles/create/zfs/zfs.options.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZfsCreateOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.CREATE.ACTIONS.ZFS.OPTIONS; -/** - * Object containing all extra options to be used by the Create API - */ -exports.ZfsCreateOptions = { - /** - * The user ID for owner of the ZFS root directory - * @type {ICommandOptionDefinition} - */ - owner: { - name: "owner", - aliases: ["o"], - description: strings.OWNER, - type: "string" - }, - /** - * The group ID for the ZFS root directory - * @type {ICommandOptionDefinition} - */ - group: { - name: "group", - aliases: ["g"], - description: strings.GROUP, - type: "string" - }, - /** - * The permissions code for the ZFS root directory - * @type {ICommandOptionDefinition} - */ - perms: { - name: "perms", - aliases: ["p"], - description: strings.PERMS, - type: "number", - defaultValue: 755 - }, - /** - * The number of primary cylinders to allocate for the ZFS - * @type {ICommandOptionDefinition} - */ - cylsPri: { - name: "cyls-pri", - aliases: ["cp"], - description: strings.CYLS_PRI, - type: "number", - defaultValue: 10 - }, - /** - * The number of secondary cylinders to allocate for the ZFS - * @type {ICommandOptionDefinition} - */ - cylsSec: { - name: "cyls-sec", - aliases: ["cs"], - description: strings.CYLS_SEC, - type: "number", - defaultValue: 2 - }, - /** - * The volumes on which to create the ZFS - * @type {ICommandOptionDefinition} - */ - volumes: { - name: "volumes", - aliases: ["v"], - description: strings.VOLUMES, - type: "array" - }, - /** - * The number of seconds to wait for the create command to complete - * @type {ICommandOptionDefinition} - */ - timeout: { - name: "timeout", - aliases: ["t"], - description: strings.TIMEOUT, - type: "number", - defaultValue: 20 - } -}; -//# sourceMappingURL=zfs.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/create/zfs/zfs.options.js.map b/lib/zosfiles/create/zfs/zfs.options.js.map deleted file mode 100644 index e02cd31ef7..0000000000 --- a/lib/zosfiles/create/zfs/zfs.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zfs.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/create/zfs/zfs.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;AAEzG;;GAEG;AACU,QAAA,gBAAgB,GAAgD;IACzE;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,GAAG;KACpB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACnB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,CAAC;KAClB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,OAAO;KAChB;IAED;;;OAGG;IACH,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,OAAO;QAC5B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/Delete.definition.d.ts b/lib/zosfiles/delete/Delete.definition.d.ts deleted file mode 100644 index 1dd9dc9521..0000000000 --- a/lib/zosfiles/delete/Delete.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for the delete group within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/Delete.definition.js b/lib/zosfiles/delete/Delete.definition.js deleted file mode 100644 index dc3ae481c4..0000000000 --- a/lib/zosfiles/delete/Delete.definition.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteDefinition = void 0; -const Ds_definition_1 = require("./ds/Ds.definition"); -const Vsam_definition_1 = require("./vsam/Vsam.definition"); -const Uss_definition_1 = require("./uss/Uss.definition"); -const zfs_definition_1 = require("./zfs/zfs.definition"); -const Mds_definition_1 = require("./mds/Mds.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.DELETE; -/** - * This object defines the command for the delete group within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.DeleteDefinition = { - name: "delete", - aliases: ["del"], - type: "group", - description: strings.DESCRIPTION, - children: [ - Ds_definition_1.DsDefinition, - Mds_definition_1.MdsDefinition, - Vsam_definition_1.VsamDefinition, - Uss_definition_1.UssDefinition, - zfs_definition_1.ZfsDefinition - ] -}; -//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/Delete.definition.js.map b/lib/zosfiles/delete/Delete.definition.js.map deleted file mode 100644 index e668c09006..0000000000 --- a/lib/zosfiles/delete/Delete.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,sDAAkD;AAClD,4DAAwD;AACxD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAErD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;;;GAKG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,8BAAa;QACb,gCAAc;QACd,8BAAa;QACb,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.definition.d.ts b/lib/zosfiles/delete/ds/Ds.definition.d.ts deleted file mode 100644 index 57f09cdcc4..0000000000 --- a/lib/zosfiles/delete/ds/Ds.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/ds/Ds.definition.js b/lib/zosfiles/delete/ds/Ds.definition.js deleted file mode 100644 index 39e46b6913..0000000000 --- a/lib/zosfiles/delete/ds/Ds.definition.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DELETE.ACTIONS.DATA_SET; -/** - * This object defines the command for delete data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "Ds.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DSNAME, - required: true - } - ], - options: [ - { - name: "for-sure", - aliases: ["f"], - description: strings.OPTIONS.FOR_SURE, - type: "boolean", - required: true - }, - { - name: "volume", - aliases: ["vol"], - description: strings.OPTIONS.VOLUME, - type: "string" - } - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.cntl" -f` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.cntl(mem)" -f` - } - ] -}; -//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.definition.js.map b/lib/zosfiles/delete/ds/Ds.definition.js.map deleted file mode 100644 index fbf71d72b1..0000000000 --- a/lib/zosfiles/delete/ds/Ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEtG;;;;;GAKG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,YAAY,CAAC;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM;YACvC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM;YACnC,IAAI,EAAE,QAAQ;SACjB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.handler.d.ts b/lib/zosfiles/delete/ds/Ds.handler.d.ts deleted file mode 100644 index 92f2bc5fe4..0000000000 --- a/lib/zosfiles/delete/ds/Ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to delete a data set. - */ -export default class DsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/delete/ds/Ds.handler.js b/lib/zosfiles/delete/ds/Ds.handler.js deleted file mode 100644 index da292a0739..0000000000 --- a/lib/zosfiles/delete/ds/Ds.handler.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to delete a data set. - */ -class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const options = {}; - if (commandParameters.arguments.volume) { - options.volume = commandParameters.arguments.volume; - } - options.responseTimeout = commandParameters.arguments.responseTimeout; - return zos_files_for_zowe_sdk_1.Delete.dataSet(session, commandParameters.arguments.dataSetName, options); - }); - } -} -exports.default = DsHandler; -//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/ds/Ds.handler.js.map b/lib/zosfiles/delete/ds/Ds.handler.js.map deleted file mode 100644 index d366bddbee..0000000000 --- a/lib/zosfiles/delete/ds/Ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAgG;AAChG,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,OAAO,GAA0B,EAAE,CAAC;YAE1C,IAAI,iBAAiB,CAAC,SAAS,CAAC,MAAM,EAAE;gBACpC,OAAO,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC;aACvD;YACD,OAAO,CAAC,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,eAAe,CAAC;YAEtE,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACrF,CAAC;KAAA;CACJ;AAXD,4BAWC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.definition.d.ts b/lib/zosfiles/delete/mds/Mds.definition.d.ts deleted file mode 100644 index 26bfe6ace4..0000000000 --- a/lib/zosfiles/delete/mds/Mds.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const MdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/mds/Mds.definition.js b/lib/zosfiles/delete/mds/Mds.definition.js deleted file mode 100644 index 1361477cce..0000000000 --- a/lib/zosfiles/delete/mds/Mds.definition.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MdsDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DELETE.ACTIONS.MIGRATED_DATA_SET; -exports.MdsDefinition = { - name: "migrated-data-set", - aliases: ["mds"], - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/Mds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - { - name: "wait", - aliases: ["w"], - description: strings.OPTIONS.WAIT, - type: "boolean", - defaultValue: false, - required: false - }, - { - name: "purge", - aliases: ["p"], - description: strings.OPTIONS.PURGE, - type: "boolean", - defaultValue: false, - required: false - } - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"USER.DATA.SET"` - } - ] -}; -//# sourceMappingURL=Mds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.definition.js.map b/lib/zosfiles/delete/mds/Mds.definition.js.map deleted file mode 100644 index d1ab825ad2..0000000000 --- a/lib/zosfiles/delete/mds/Mds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Mds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/mds/Mds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;AAElG,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;YACjC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK;YAClC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.handler.d.ts b/lib/zosfiles/delete/mds/Mds.handler.d.ts deleted file mode 100644 index ea8cead525..0000000000 --- a/lib/zosfiles/delete/mds/Mds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Handler to rename a Data Set - */ -export default class MDSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/delete/mds/Mds.handler.js b/lib/zosfiles/delete/mds/Mds.handler.js deleted file mode 100644 index 9dac2e302e..0000000000 --- a/lib/zosfiles/delete/mds/Mds.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -/** - * Handler to rename a Data Set - */ -class MDSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const { options } = commandParameters.arguments; - return zos_files_for_zowe_sdk_1.HDelete.dataSet(session, commandParameters.arguments.dataSetName, options); - }); - } -} -exports.default = MDSHandler; -//# sourceMappingURL=Mds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/mds/Mds.handler.js.map b/lib/zosfiles/delete/mds/Mds.handler.js.map deleted file mode 100644 index 491a5c3426..0000000000 --- a/lib/zosfiles/delete/mds/Mds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Mds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/mds/Mds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAA0E;AAE1E;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,gCAAO,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtF,CAAC;KAAA;CACJ;AAVD,6BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.definition.d.ts b/lib/zosfiles/delete/uss/Uss.definition.d.ts deleted file mode 100644 index ad66459cac..0000000000 --- a/lib/zosfiles/delete/uss/Uss.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const UssDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/uss/Uss.definition.js b/lib/zosfiles/delete/uss/Uss.definition.js deleted file mode 100644 index 17b567811f..0000000000 --- a/lib/zosfiles/delete/uss/Uss.definition.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DELETE.ACTIONS.USS; -/** - * This object defines the command for delete data-set within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.UssDefinition = { - name: "uss-file", - aliases: ["uf", "uss"], - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "Uss.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fileName", - type: "string", - description: strings.POSITIONALS.FILENAME, - required: true - } - ], - options: ([ - { - name: "for-sure", - aliases: ["f"], - description: strings.OPTIONS.FOR_SURE, - type: "boolean", - required: true - }, - { - name: "recursive", - aliases: ["r"], - description: strings.OPTIONS.RECURSIVE, - type: "boolean", - required: false - } - ]), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"/a/ibmuser/testcases" -f` - }, - { - description: strings.EXAMPLES.EX2, - options: `"/a/ibmuser/testcases/my_text.txt" -f` - }, - { - description: strings.EXAMPLES.EX3, - options: `"/a/ibmuser/testcases" -rf` - } - ] -}; -//# sourceMappingURL=Uss.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.definition.js.map b/lib/zosfiles/delete/uss/Uss.definition.js.map deleted file mode 100644 index d07d1ff512..0000000000 --- a/lib/zosfiles/delete/uss/Uss.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Uss.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/uss/Uss.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;;;GAKG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE,CAAC;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,SAAS;YACtC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;SAClB;KACJ,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2BAA2B;SACvC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,uCAAuC;SACnD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,4BAA4B;SACxC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.handler.d.ts b/lib/zosfiles/delete/uss/Uss.handler.d.ts deleted file mode 100644 index 00c1b251a4..0000000000 --- a/lib/zosfiles/delete/uss/Uss.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to delete a USS file. - */ -export default class UssHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/delete/uss/Uss.handler.js b/lib/zosfiles/delete/uss/Uss.handler.js deleted file mode 100644 index d1910f8d04..0000000000 --- a/lib/zosfiles/delete/uss/Uss.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to delete a USS file. - */ -class UssHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - return zos_files_for_zowe_sdk_1.Delete.ussFile(session, commandParameters.arguments.fileName, commandParameters.arguments.recursive, zosFilesOptions); - }); - } -} -exports.default = UssHandler; -//# sourceMappingURL=Uss.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/uss/Uss.handler.js.map b/lib/zosfiles/delete/uss/Uss.handler.js.map deleted file mode 100644 index 9c8b13b664..0000000000 --- a/lib/zosfiles/delete/uss/Uss.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Uss.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/uss/Uss.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2F;AAC3F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QACjI,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.d.ts b/lib/zosfiles/delete/vsam/Vsam.definition.d.ts deleted file mode 100644 index 48ed718b3c..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete vsam-cluster within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const VsamDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.js b/lib/zosfiles/delete/vsam/Vsam.definition.js deleted file mode 100644 index 62cfbdca15..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.definition.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VsamDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DELETE.ACTIONS.VSAM; -/** - * This object defines the command for delete vsam-cluster within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.VsamDefinition = { - name: "data-set-vsam", - aliases: ["vsam"], - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "Vsam.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: strings.POSITIONALS.DSNAME, - required: true - } - ], - options: [ - { - name: "for-sure", - aliases: ["f"], - description: strings.OPTIONS.FOR_SURE, - type: "boolean", - required: true - }, - { - name: "erase", - aliases: ["e"], - description: strings.OPTIONS.ERASE, - type: "boolean", - defaultValue: false - }, - { - name: "purge", - aliases: ["p"], - description: strings.OPTIONS.PURGE, - type: "boolean", - defaultValue: false - } - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.cntl.vsam" -f` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.AAA.**.FFF" -f` - }, - { - description: strings.EXAMPLES.EX3, - options: `"ibmuser.cntl.vsam" -f --purge` - }, - { - description: strings.EXAMPLES.EX4, - options: `"ibmuser.cntl.vsam" -f --erase` - } - ] -}; -//# sourceMappingURL=Vsam.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.definition.js.map b/lib/zosfiles/delete/vsam/Vsam.definition.js.map deleted file mode 100644 index 5aac60be81..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Vsam.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/vsam/Vsam.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AAElG;;;;;GAKG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,cAAc,CAAC;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,a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mode 100644 index 8a22cb2d1a..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to delete a VSAM data set. - */ -export default class VsamHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/delete/vsam/Vsam.handler.js b/lib/zosfiles/delete/vsam/Vsam.handler.js deleted file mode 100644 index d059668bb2..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.handler.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to delete a VSAM data set. - */ -class VsamHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - return zos_files_for_zowe_sdk_1.Delete.vsam(session, commandParameters.arguments.dataSetName, { - erase: commandParameters.arguments.erase, - purge: commandParameters.arguments.purge, - responseTimeout: commandParameters.arguments.responseTimeout - }); - }); - } -} -exports.default = VsamHandler; -//# sourceMappingURL=Vsam.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/vsam/Vsam.handler.js.map b/lib/zosfiles/delete/vsam/Vsam.handler.js.map deleted file mode 100644 index bf66c8c749..0000000000 --- a/lib/zosfiles/delete/vsam/Vsam.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Vsam.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/vsam/Vsam.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAyE;AACzE,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,OAAO,+BAAM,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACjE,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AARD,8BAQC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.definition.d.ts b/lib/zosfiles/delete/zfs/zfs.definition.d.ts deleted file mode 100644 index 6c26a19a66..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.definition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * This object defines the command for delete zos-file-system within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -export declare const ZfsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/delete/zfs/zfs.definition.js b/lib/zosfiles/delete/zfs/zfs.definition.js deleted file mode 100644 index 62c83ca969..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.definition.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ZfsDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DELETE.ACTIONS.ZFS; -/** - * This object defines the command for delete zos-file-system within zosfiles. This is not - * something that is intended to be used outside of the zosfiles package. - * - * @private - */ -exports.ZfsDefinition = { - name: "zos-file-system", - aliases: ["zfs"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "zfs.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fileSystemName", - type: "string", - description: strings.POSITIONALS.FILESYSTEMNAME, - required: true - } - ], - options: [ - { - name: "for-sure", - aliases: ["f"], - description: strings.OPTIONS.FOR_SURE, - type: "boolean", - required: true - } - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"HLQ.MYNEW.ZFS" -f` - } - ] -}; -//# sourceMappingURL=zfs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.definition.js.map b/lib/zosfiles/delete/zfs/zfs.definition.js.map deleted file mode 100644 index 3da821bb06..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zfs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/zfs/zfs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;;;GAKG;AACU,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,aAAa,CAAC;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,cAAc;YAC/C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;YACrC,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACjB;KAC2B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;SAChC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.handler.d.ts b/lib/zosfiles/delete/zfs/zfs.handler.d.ts deleted file mode 100644 index d014f5f17b..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Handler to delete a z/OS file system. - */ -export default class ZfsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/delete/zfs/zfs.handler.js b/lib/zosfiles/delete/zfs/zfs.handler.js deleted file mode 100644 index 61ec8e4c47..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -/** - * Handler to delete a z/OS file system. - */ -class ZfsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - return zos_files_for_zowe_sdk_1.Delete.zfs(session, commandParameters.arguments.fileSystemName, zosFilesOptions); - }); - } -} -exports.default = ZfsHandler; -//# sourceMappingURL=zfs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/delete/zfs/zfs.handler.js.map b/lib/zosfiles/delete/zfs/zfs.handler.js.map deleted file mode 100644 index 9928b35bd1..0000000000 --- a/lib/zosfiles/delete/zfs/zfs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zfs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/delete/zfs/zfs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAA2F;AAE3F;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/download/Download.definition.d.ts b/lib/zosfiles/download/Download.definition.d.ts deleted file mode 100644 index 65a9b542ef..0000000000 --- a/lib/zosfiles/download/Download.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const DownloadDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/Download.definition.js b/lib/zosfiles/download/Download.definition.js deleted file mode 100644 index 1247e2d02d..0000000000 --- a/lib/zosfiles/download/Download.definition.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DownloadDefinition = void 0; -const Dataset_definition_1 = require("./ds/Dataset.definition"); -const AllMembers_definition_1 = require("./am/AllMembers.definition"); -const UssFile_definition_1 = require("./uss/UssFile.definition"); -const DataSetMatching_definition_1 = require("./dsm/DataSetMatching.definition"); -const UssDir_definition_1 = require("./ussdir/UssDir.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.DOWNLOAD; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.DownloadDefinition = { - name: "download", - aliases: ["dl"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Dataset_definition_1.DatasetDefinition, - AllMembers_definition_1.AllMembersDefinition, - UssFile_definition_1.UssFileDefinition, - UssDir_definition_1.UssDirDefinition, - DataSetMatching_definition_1.DataSetMatchingDefinition - ] -}; -//# sourceMappingURL=Download.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/Download.definition.js.map b/lib/zosfiles/download/Download.definition.js.map deleted file mode 100644 index 1e3c77fb4b..0000000000 --- a/lib/zosfiles/download/Download.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Download.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/download/Download.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA4D;AAC5D,sEAAkE;AAGlE,iEAA6D;AAC7D,iFAA6E;AAC7E,kEAA8D;AAE9D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC;AAEpF;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,4CAAoB;QACpB,sCAAiB;QACjB,oCAAgB;QAChB,sDAAyB;KAC5B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/Download.options.d.ts b/lib/zosfiles/download/Download.options.d.ts deleted file mode 100644 index 29e0f21835..0000000000 --- a/lib/zosfiles/download/Download.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the Download data set API - */ -export declare const DownloadOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/download/Download.options.js b/lib/zosfiles/download/Download.options.js deleted file mode 100644 index 2cb84c8dfb..0000000000 --- a/lib/zosfiles/download/Download.options.js +++ /dev/null @@ -1,189 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DownloadOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.DOWNLOAD.OPTIONS; -const maxConcurrentRequestsMaxValue = 99999; -/** - * Object containing all options to be used by the Download data set API - */ -exports.DownloadOptions = { - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volume: { - name: "volume-serial", - aliases: ["vs"], - description: strings.VOLUME, - type: "string" - }, - /** - * The binary option - * @type {ICommandOptionDefinition} - */ - binary: { - name: "binary", - aliases: ["b"], - description: strings.BINARY, - type: "boolean" - }, - /** - * The record option - * @type {ICommandOptionDefinition} - */ - record: { - name: "record", - aliases: ["r"], - description: strings.RECORD, - type: "boolean", - conflictsWith: ["binary"] - }, - /** - * The encoding option - * @type {ICommandOptionDefinition} - */ - encoding: { - name: "encoding", - aliases: ["ec"], - description: strings.ENCODING, - type: "string" - }, - /** - * The local file to download the data set to - * @type {ICommandOptionDefinition} - */ - file: { - name: "file", - aliases: ["f"], - description: strings.FILE, - type: "string" - }, - /** - * The file extension to use for the downloaded file - * @type {ICommandOptionDefinition} - */ - extension: { - name: "extension", - aliases: ["e"], - description: strings.EXTENSION, - type: "stringOrEmpty" - }, - /** - * The directory to download all members to - * @type {ICommandOptionDefinition} - */ - directory: { - name: "directory", - aliases: ["d"], - description: strings.DIRECTORY, - type: "string" - }, - directoryUss: { - name: "directory", - aliases: ["d"], - description: strings.DIRECTORY_USS, - type: "string" - }, - /** - * The pattern to be excluded - * @type {ICommandOptionDefinition} - */ - excludePattern: { - name: "exclude-patterns", - aliases: ["ep"], - description: strings.EXCLUDE_PATTERN, - type: "string" - }, - /** - * The extension-map to use for the downloaded file - * @type {ICommandOptionDefinition} - */ - extensionMap: { - name: "extension-map", - aliases: ["em"], - description: strings.EXTENSION_MAP, - type: "string", - conflictsWith: ["extension"] - }, - /** - * The maximum concurrent requests for "download all-members" - * @type {ICommandOptionDefinition} - */ - maxConcurrentRequests: { - name: "max-concurrent-requests", - aliases: ["mcr"], - description: strings.MAX_CONCURRENT_REQUESTS, - type: "number", - defaultValue: 1, - numericValueRange: [0, maxConcurrentRequestsMaxValue] - }, - maxConcurrentRequestsUss: { - name: "max-concurrent-requests", - aliases: ["mcr"], - description: strings.MAX_CONCURRENT_REQUESTS_USS, - type: "number", - defaultValue: 1, - numericValueRange: [0, maxConcurrentRequestsMaxValue] - }, - preserveOriginalLetterCase: { - name: "preserve-original-letter-case", - aliases: ["po"], - description: strings.PRESERVE_ORIGINAL_LETTER_CASE, - type: "boolean", - defaultValue: false - }, - failFast: { - name: "fail-fast", - aliases: ["ff"], - description: strings.FAIL_FAST, - type: "boolean", - defaultValue: true - }, - failFastUss: { - name: "fail-fast", - aliases: ["ff"], - description: strings.FAIL_FAST_USS, - type: "boolean", - defaultValue: true - }, - /** - * The attributes option to specify the path to a zos-files-attributes file - */ - attributes: { - name: "attributes", - aliases: ["attrs"], - description: strings.ATTRIBUTES, - type: "existingLocalFile", - conflictsWith: ["binary", "record"] - }, - /** - * The include hidden option for download - */ - includeHidden: { - name: "include-hidden", - aliases: ["ih"], - description: strings.INCLUDE_HIDDEN, - type: "boolean" - }, - /** - * The include hidden option for download - */ - overwrite: { - name: "overwrite", - aliases: ["ow"], - description: strings.OVERWRITE, - type: "boolean" - } -}; -//# sourceMappingURL=Download.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/Download.options.js.map b/lib/zosfiles/download/Download.options.js.map deleted file mode 100644 index e0effcdcec..0000000000 --- a/lib/zosfiles/download/Download.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Download.options.js","sourceRoot":"","sources":["../../../src/zosfiles/download/Download.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC;AAE5F,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAE5C;;GAEG;AACU,QAAA,eAAe,GAAgD;IACxE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAA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SAAS;QAC9B,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.definition.d.ts b/lib/zosfiles/download/am/AllMembers.definition.d.ts deleted file mode 100644 index 773fe099ab..0000000000 --- a/lib/zosfiles/download/am/AllMembers.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const AllMembersDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/am/AllMembers.definition.js b/lib/zosfiles/download/am/AllMembers.definition.js deleted file mode 100644 index f444aaf785..0000000000 --- a/lib/zosfiles/download/am/AllMembers.definition.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllMembersDefinition = void 0; -const Download_options_1 = require("../Download.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.ALL_MEMBERS; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.AllMembersDefinition = { - name: "all-members", - aliases: ["am"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/AllMembers.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - Download_options_1.DownloadOptions.volume, - Download_options_1.DownloadOptions.directory, - Download_options_1.DownloadOptions.binary, - Download_options_1.DownloadOptions.record, - Download_options_1.DownloadOptions.encoding, - Download_options_1.DownloadOptions.extension, - Download_options_1.DownloadOptions.maxConcurrentRequests, - Download_options_1.DownloadOptions.preserveOriginalLetterCase, - Download_options_1.DownloadOptions.failFast - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.loadlib" -b -d loadlib` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.cntl" -d jcl` - } - ] -}; -//# sourceMappingURL=AllMembers.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.definition.js.map b/lib/zosfiles/download/am/AllMembers.definition.js.map deleted file mode 100644 index 311c5d85eb..0000000000 --- a/lib/zosfiles/download/am/AllMembers.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllMembers.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/am/AllMembers.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;AAE3G;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;QACxB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,qBAAqB;QACrC,kCAAe,CAAC,0BAA0B;QAC1C,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iCAAiC;SAC7C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,uBAAuB;SACnC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.handler.d.ts b/lib/zosfiles/download/am/AllMembers.handler.d.ts deleted file mode 100644 index 8ac63c0256..0000000000 --- a/lib/zosfiles/download/am/AllMembers.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to download all members from a pds - * @export - */ -export default class AllMembersHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/download/am/AllMembers.handler.js b/lib/zosfiles/download/am/AllMembers.handler.js deleted file mode 100644 index ee51a1994c..0000000000 --- a/lib/zosfiles/download/am/AllMembers.handler.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to download all members from a pds - * @export - */ -class AllMembersHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const status = { - statusMessage: "Downloading all members", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task: status }); - return zos_files_for_zowe_sdk_1.Download.allMembers(session, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - encoding: commandParameters.arguments.encoding, - directory: commandParameters.arguments.directory, - extension: commandParameters.arguments.extension, - maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, - preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, - failFast: commandParameters.arguments.failFast, - task: status, - responseTimeout: commandParameters.arguments.responseTimeout - }); - }); - } -} -exports.default = AllMembersHandler; -//# sourceMappingURL=AllMembers.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/am/AllMembers.handler.js.map b/lib/zosfiles/download/am/AllMembers.handler.js.map deleted file mode 100644 index 6ff40a8922..0000000000 --- a/lib/zosfiles/download/am/AllMembers.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllMembers.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/am/AllMembers.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAA2E;AAC3E,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,yBAAyB;gBACxC,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC;YAC7D,OAAO,iCAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACzE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,MAAM;gBACZ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAtBD,oCAsBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.definition.d.ts b/lib/zosfiles/download/ds/Dataset.definition.d.ts deleted file mode 100644 index 7b6fea174a..0000000000 --- a/lib/zosfiles/download/ds/Dataset.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/ds/Dataset.definition.js b/lib/zosfiles/download/ds/Dataset.definition.js deleted file mode 100644 index 934d9eb51f..0000000000 --- a/lib/zosfiles/download/ds/Dataset.definition.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DatasetDefinition = void 0; -const Download_options_1 = require("../Download.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.DATA_SET; -/** - * Download data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DatasetDefinition = { - name: "data-set", - aliases: ["ds"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/Dataset.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - Download_options_1.DownloadOptions.volume, - Download_options_1.DownloadOptions.file, - Download_options_1.DownloadOptions.extension, - Download_options_1.DownloadOptions.binary, - Download_options_1.DownloadOptions.record, - Download_options_1.DownloadOptions.preserveOriginalLetterCase, - Download_options_1.DownloadOptions.encoding - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.loadlib(main)" -b -f main.obj` - } - ] -}; -//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.definition.js.map b/lib/zosfiles/download/ds/Dataset.definition.js.map deleted file mode 100644 index 4cdf6b0ea2..0000000000 --- a/lib/zosfiles/download/ds/Dataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAExG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,IAAI;QACpB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,0BAA0B;QAC1C,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wCAAwC;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.handler.d.ts b/lib/zosfiles/download/ds/Dataset.handler.d.ts deleted file mode 100644 index c4e1396f69..0000000000 --- a/lib/zosfiles/download/ds/Dataset.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to download a data set or member - * @export - */ -export default class DatasetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/download/ds/Dataset.handler.js b/lib/zosfiles/download/ds/Dataset.handler.js deleted file mode 100644 index b1a659a982..0000000000 --- a/lib/zosfiles/download/ds/Dataset.handler.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to download a data set or member - * @export - */ -class DatasetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Downloading data set", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - return zos_files_for_zowe_sdk_1.Download.dataSet(session, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - encoding: commandParameters.arguments.encoding, - file: commandParameters.arguments.file, - extension: commandParameters.arguments.extension, - preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, - task, - responseTimeout: commandParameters.arguments.responseTimeout, - overwrite: commandParameters.arguments.overwrite - }); - }); - } -} -exports.default = DatasetHandler; -//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ds/Dataset.handler.js.map b/lib/zosfiles/download/ds/Dataset.handler.js.map deleted file mode 100644 index 4e6801c49f..0000000000 --- a/lib/zosfiles/download/ds/Dataset.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAA2E;AAC3E,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,sBAAsB;gBACrC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YACrD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACtE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;aACnD,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AArBD,iCAqBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts b/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts deleted file mode 100644 index 00f9ec2955..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DataSetMatchingDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.js b/lib/zosfiles/download/dsm/DataSetMatching.definition.js deleted file mode 100644 index 6f132e707c..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.definition.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataSetMatchingDefinition = void 0; -const Download_options_1 = require("../Download.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.DATA_SETS_MATCHING; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DataSetMatchingDefinition = { - name: "data-sets-matching", - aliases: ["dsm", "data-set-matching"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/DataSetMatching.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "pattern", - description: strings.POSITIONALS.PATTERN, - type: "string", - required: true - } - ], - options: [ - Download_options_1.DownloadOptions.volume, - Download_options_1.DownloadOptions.directory, - Download_options_1.DownloadOptions.binary, - Download_options_1.DownloadOptions.record, - Download_options_1.DownloadOptions.encoding, - Download_options_1.DownloadOptions.extension, - Download_options_1.DownloadOptions.excludePattern, - Download_options_1.DownloadOptions.extensionMap, - Download_options_1.DownloadOptions.maxConcurrentRequests, - Download_options_1.DownloadOptions.preserveOriginalLetterCase, - Download_options_1.DownloadOptions.failFast - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.**.cntl, ibmuser.**.jcl" --directory jcl --extension .jcl` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.public.project.*, ibmuser.project.private.*" --exclude-patterns "ibmuser.public.**.*lib" ` + - `--directory project --extension-map cpgm=c,asmpgm=asm,java=java,chdr=c,jcl=jcl,cntl=jcl` - } - ] -}; -//# sourceMappingURL=DataSetMatching.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map b/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map deleted file mode 100644 index bfa19c1c67..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataSetMatching.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/dsm/DataSetMatching.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC;AAElH;;;GAGG;AACU,QAAA,yBAAyB,GAAuB;IACzD,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,0BAA0B;IAC/C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,OAAO;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;QACxB,kCAAe,CAAC,SAAS;QACzB,kCAAe,CAAC,cAAc;QAC9B,kCAAe,CAAC,YAAY;QAC5B,kCAAe,CAAC,qBAAqB;QACrC,kCAAe,CAAC,0BAA0B;QAC1C,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oEAAoE;SAChF;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oGAAoG;gBAC7G,yFAAyF;SAC5F;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts b/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts deleted file mode 100644 index 852f33ef3e..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to download all members from a pds - * @export - */ -export default class DataSetMatchingHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.js b/lib/zosfiles/download/dsm/DataSetMatching.handler.js deleted file mode 100644 index 2f10c7c5f7..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.handler.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to download all members from a pds - * @export - */ -class DataSetMatchingHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const extensionMap = {}; - try { - if (commandParameters.arguments.extensionMap) { - commandParameters.arguments.extensionMap = commandParameters.arguments.extensionMap.toLowerCase(); - const unoptimizedMap = commandParameters.arguments.extensionMap.split(","); - for (const entry of unoptimizedMap) { - const splitEntry = entry.split("="); - imperative_1.ImperativeExpect.toBeEqual(splitEntry.length, 2); - extensionMap[splitEntry[0]] = splitEntry[1]; - } - } - } - catch (err) { - throw new imperative_1.ImperativeError({ msg: "An error occurred processing the extension map.", causeErrors: err }); - } - const listStatus = { - statusMessage: "Searching for data sets", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - const listOptions = { - excludePatterns: (_a = commandParameters.arguments.excludePatterns) === null || _a === void 0 ? void 0 : _a.split(","), - maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, - task: listStatus, - responseTimeout: commandParameters.arguments.responseTimeout - }; - commandParameters.response.progress.startBar({ task: listStatus }); - const response = yield zos_files_for_zowe_sdk_1.List.dataSetsMatchingPattern(session, commandParameters.arguments.pattern.split(","), listOptions); - commandParameters.response.progress.endBar(); - if (response.success) { - commandParameters.response.console.log(`\r${response.commandResponse}\n`); - } - else { - return response; - } - const downloadStatus = { - statusMessage: "Downloading data sets", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - const downloadOptions = { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - encoding: commandParameters.arguments.encoding, - directory: commandParameters.arguments.directory, - extension: commandParameters.arguments.extension, - extensionMap: commandParameters.arguments.extensionMap ? extensionMap : undefined, - maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, - preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase, - failFast: commandParameters.arguments.failFast, - task: downloadStatus, - responseTimeout: commandParameters.arguments.responseTimeout - }; - commandParameters.response.progress.startBar({ task: downloadStatus }); - return zos_files_for_zowe_sdk_1.Download.allDataSets(session, response.apiResponse, downloadOptions); - }); - } -} -exports.default = DataSetMatchingHandler; -//# sourceMappingURL=DataSetMatching.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map b/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map deleted file mode 100644 index 76eb0dd8f7..0000000000 --- a/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataSetMatching.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/dsm/DataSetMatching.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAsI;AACtI,yEAAoH;AACpH,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,sBAAuB,SAAQ,0CAAmB;IACtD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;;YAC3F,MAAM,YAAY,GAA4B,EAAE,CAAC;YACjD,IAAI;gBACA,IAAI,iBAAiB,CAAC,SAAS,CAAC,YAAY,EAAE;oBAC1C,iBAAiB,CAAC,SAAS,CAAC,YAAY,GAAG,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;oBAClG,MAAM,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAC3E,KAAK,MAAM,KAAK,IAAI,cAAc,EAAE;wBAChC,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACpC,6BAAgB,C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,EAAE,uBAAuB;gBACtC,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,MAAM,eAAe,GAAqB;gBACtC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;gBACjF,qBAAqB,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB;gBACxE,0BAA0B,EAAE,iBAAiB,CAAC,SAAS,CAAC,0BAA0B;gBAClF,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,cAAc;gBACpB,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;YACvE,OAAO,iCAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;;KAC/E;CACJ;AA7DD,yCA6DC"} \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.definition.d.ts b/lib/zosfiles/download/uss/UssFile.definition.d.ts deleted file mode 100644 index 2dd2fd8077..0000000000 --- a/lib/zosfiles/download/uss/UssFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const UssFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/uss/UssFile.definition.js b/lib/zosfiles/download/uss/UssFile.definition.js deleted file mode 100644 index 7f4f1f3b29..0000000000 --- a/lib/zosfiles/download/uss/UssFile.definition.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssFileDefinition = void 0; -const Download_options_1 = require("../Download.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.USS_FILE; -/** - * Download data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.UssFileDefinition = { - name: "uss-file", - aliases: ["uf", "uss"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/UssFile.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "ussFileName", - description: strings.POSITIONALS.USSFILENAME, - type: "string", - required: true - } - ], - options: [ - Download_options_1.DownloadOptions.file, - Download_options_1.DownloadOptions.binary, - Download_options_1.DownloadOptions.encoding - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"/a/ibmuser/my_text.txt" -f ./my_text.txt` - }, - { - description: strings.EXAMPLES.EX2, - options: `"/a/ibmuser/MyJava.class" -b -f "java/MyJava.class"` - } - ] -}; -//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.definition.js.map b/lib/zosfiles/download/uss/UssFile.definition.js.map deleted file mode 100644 index bbce0b0643..0000000000 --- a/lib/zosfiles/download/uss/UssFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAGtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAExG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,kCAAe,CAAC,IAAI;QACpB,kCAAe,CAAC,MAAM;QACtB,kCAAe,CAAC,QAAQ;KAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,2CAA2C;SACvD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qDAAqD;SACjE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.handler.d.ts b/lib/zosfiles/download/uss/UssFile.handler.d.ts deleted file mode 100644 index 20c488cfe9..0000000000 --- a/lib/zosfiles/download/uss/UssFile.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Handler to download an uss file - * @export - */ -export default class UssFileHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/download/uss/UssFile.handler.js b/lib/zosfiles/download/uss/UssFile.handler.js deleted file mode 100644 index ac31de5f97..0000000000 --- a/lib/zosfiles/download/uss/UssFile.handler.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -/** - * Handler to download an uss file - * @export - */ -class UssFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Downloading USS file", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - return zos_files_for_zowe_sdk_1.Download.ussFile(session, commandParameters.arguments.ussFileName, { - binary: commandParameters.arguments.binary, - encoding: commandParameters.arguments.encoding, - file: commandParameters.arguments.file, - task, - responseTimeout: commandParameters.arguments.responseTimeout, - overwrite: commandParameters.arguments.overwrite - }); - }); - } -} -exports.default = UssFileHandler; -//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/uss/UssFile.handler.js.map b/lib/zosfiles/download/uss/UssFile.handler.js.map deleted file mode 100644 index f105f02b44..0000000000 --- a/lib/zosfiles/download/uss/UssFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,qEAAiE;AACjE,iDAAmG;AACnG,yEAA2E;AAE3E;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,sBAAsB;gBACrC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YACrD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACtE,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;aACnD,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAjBD,iCAiBC"} \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.d.ts b/lib/zosfiles/download/ussdir/UssDir.definition.d.ts deleted file mode 100644 index ddf9ad74bb..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const UssDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.js b/lib/zosfiles/download/ussdir/UssDir.definition.js deleted file mode 100644 index 870f77136d..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.definition.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UssDirDefinition = void 0; -const Download_options_1 = require("../Download.options"); -const List_options_1 = require("../../list/List.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.USS_DIR; -/** - * Download all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.UssDirDefinition = { - name: "uss-directory", - aliases: ["uss-dir"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/UssDir.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "ussDirName", - description: strings.POSITIONALS.USSDIRNAME, - type: "string", - required: true - } - ], - options: [ - Download_options_1.DownloadOptions.attributes, - Download_options_1.DownloadOptions.directoryUss, - Download_options_1.DownloadOptions.binary, - Download_options_1.DownloadOptions.encoding, - Download_options_1.DownloadOptions.maxConcurrentRequestsUss, - Download_options_1.DownloadOptions.failFastUss, - Download_options_1.DownloadOptions.includeHidden, - Download_options_1.DownloadOptions.overwrite, - List_options_1.ListOptions.name, - List_options_1.ListOptions.maxLength, - List_options_1.ListOptions.group, - List_options_1.ListOptions.owner, - List_options_1.ListOptions.mtime, - List_options_1.ListOptions.size, - List_options_1.ListOptions.perm, - List_options_1.ListOptions.type, - List_options_1.ListOptions.depth, - List_options_1.ListOptions.filesys, - List_options_1.ListOptions.symlinks - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `/a/ibmuser --binary` - }, - { - description: strings.EXAMPLES.EX2, - options: `/a/ibmuser --directory localDir` - }, - { - description: strings.EXAMPLES.EX3, - options: `/a/ibmuser --name "*.log" --mtime -1` - } - ] -}; -//# sourceMappingURL=UssDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.definition.js.map b/lib/zosfiles/download/ussdir/UssDir.definition.js.map deleted file mode 100644 index d9122aebc9..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ussdir/UssDir.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,0DAAsD;AAEtD,0DAAsD;AAEtD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;AAEvG;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CA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diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.d.ts b/lib/zosfiles/download/ussdir/UssDir.handler.d.ts deleted file mode 100644 index e5a9a35b9b..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to download all members from a pds - * @export - */ -export default class UssDirHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.js b/lib/zosfiles/download/ussdir/UssDir.handler.js deleted file mode 100644 index d24712fe99..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.handler.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to download all members from a pds - * @export - */ -class UssDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const downloadStatus = { - statusMessage: "Searching for files", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - const zosAttributes = zos_files_for_zowe_sdk_1.ZosFilesAttributes.loadFromFile(commandParameters.arguments.attributes, commandParameters.arguments.directory); - const downloadOptions = { - binary: commandParameters.arguments.binary, - directory: commandParameters.arguments.directory, - maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, - task: downloadStatus, - responseTimeout: commandParameters.arguments.responseTimeout, - failFast: commandParameters.arguments.failFast, - attributes: zosAttributes, - includeHidden: commandParameters.arguments.includeHidden, - overwrite: commandParameters.arguments.overwrite - }; - const listOptions = { - name: commandParameters.arguments.name ? commandParameters.arguments.name : "*", - maxLength: commandParameters.arguments.maxLength, - group: commandParameters.arguments.group, - user: commandParameters.arguments.owner, - mtime: commandParameters.arguments.mtime, - size: commandParameters.arguments.size, - perm: commandParameters.arguments.perm, - type: commandParameters.arguments.type, - depth: commandParameters.arguments.depth, - filesys: commandParameters.arguments.filesys, - symlinks: commandParameters.arguments.symlinks - }; - commandParameters.response.progress.startBar({ task: downloadStatus }); - const response = yield zos_files_for_zowe_sdk_1.Download.ussDir(session, commandParameters.arguments.ussDirName, downloadOptions, listOptions); - commandParameters.response.progress.endBar(); - return response; - }); - } -} -exports.default = UssDirHandler; -//# sourceMappingURL=UssDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/download/ussdir/UssDir.handler.js.map b/lib/zosfiles/download/ussdir/UssDir.handler.js.map deleted file mode 100644 index f560638c31..0000000000 --- a/lib/zosfiles/download/ussdir/UssDir.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/download/ussdir/UssDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAkI;AAClI,qEAAi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I;gBACtC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACtC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;aACjD,CAAC;YAEF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;YACvE,MAAM,QAAQ,GAAG,MAAM,iCAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;YACtH,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC7C,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAzCD,gCAyCC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.definition.d.ts b/lib/zosfiles/edit/Edit.definition.d.ts deleted file mode 100644 index c83673a4a5..0000000000 --- a/lib/zosfiles/edit/Edit.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Edit group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const EditDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/Edit.definition.js b/lib/zosfiles/edit/Edit.definition.js deleted file mode 100644 index 9f045f5d03..0000000000 --- a/lib/zosfiles/edit/Edit.definition.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EditDefinition = void 0; -const Dataset_definition_1 = require("./ds/Dataset.definition"); -const USSFile_definition_1 = require("./uss/USSFile.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.EDIT; -/** - * Edit group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.EditDefinition = { - name: "edit", - aliases: ["ed"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Dataset_definition_1.DatasetDefinition, - USSFile_definition_1.USSFileDefinition - ], -}; -//# sourceMappingURL=Edit.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.definition.js.map b/lib/zosfiles/edit/Edit.definition.js.map deleted file mode 100644 index d542ebc0ba..0000000000 --- a/lib/zosfiles/edit/Edit.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Edit.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAG1D,iEAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.handler.d.ts b/lib/zosfiles/edit/Edit.handler.d.ts deleted file mode 100644 index 58ca6dd4ff..0000000000 --- a/lib/zosfiles/edit/Edit.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../ZosFilesBase.handler"; -/** - * Handler to Edit USS or DS content locally - * @export - */ -export default class EditHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/edit/Edit.handler.js b/lib/zosfiles/edit/Edit.handler.js deleted file mode 100644 index 35d1d5c52d..0000000000 --- a/lib/zosfiles/edit/Edit.handler.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const ZosFilesBase_handler_1 = require("../ZosFilesBase.handler"); -const Edit_utils_1 = require("../edit/Edit.utils"); -/** - * Handler to Edit USS or DS content locally - * @export - */ -class EditHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - // Setup - build temp and check for stash - let lfFile = { - tempPath: null, - fileName: (_a = commandParameters.arguments.ussFilePath) !== null && _a !== void 0 ? _a : commandParameters.arguments.dataSetName, - fileType: commandParameters.positionals[2].includes('d') ? "ds" : "uss", - guiAvail: imperative_1.ProcessUtils.isGuiAvailable() === imperative_1.GuiResult.GUI_AVAILABLE, - conflict: false, - zosResp: null - }; - lfFile.tempPath = commandParameters.arguments.localFilePath = yield Edit_utils_1.EditUtilities.buildTempPath(lfFile, commandParameters); - // Use or override stash if exists - const stash = yield Edit_utils_1.EditUtilities.checkForStash(lfFile.tempPath); - let useStash, viewDiff = false; - if (stash) { - useStash = yield Edit_utils_1.EditUtilities.promptUser(Edit_utils_1.Prompt.useStash); - } - // Retrieve etag & download mf file to edit locally if not using stash - try { - const task = { - percentComplete: 10, - statusMessage: "Retrieving file", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - // Retrieve etag AND file contents if not using stash - lfFile = yield Edit_utils_1.EditUtilities.localDownload(session, lfFile, useStash); - commandParameters.response.progress.endBar(); - // Show a file comparison for the purpose of seeing the current version of remote compared to past edits - if (useStash) { - viewDiff = yield Edit_utils_1.EditUtilities.promptUser(Edit_utils_1.Prompt.viewDiff); - if (viewDiff) { - yield Edit_utils_1.EditUtilities.fileComparison(session, commandParameters, lfFile); - } - } - } - catch (error) { - if (error instanceof imperative_1.ImperativeError && error.errorCode === String(imperative_1.RestConstants.HTTP_STATUS_404)) { - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red(`File not found on mainframe. Command terminated.`), - causeErrors: error - }); - } - else { - throw error; - } - } - // Edit local copy of mf file (automatically open an editor for user if not in headless linux) - commandParameters.response.console.log(imperative_1.TextUtils.chalk.green(`Temp file location: `) + - imperative_1.TextUtils.chalk.blue(lfFile.tempPath)); - const overwrite = yield Edit_utils_1.EditUtilities.makeEdits(lfFile, commandParameters.arguments.editor); - if (!overwrite) { - return { - success: true, - commandResponse: imperative_1.TextUtils.chalk.green("Exiting now. Temp file persists for editing.") - }; - } - // Once done editing, user will provide terminal input. Upload local file with saved etag - let uploaded = false; - let canceled = false; - do { - [uploaded, canceled] = yield Edit_utils_1.EditUtilities.uploadEdits(session, commandParameters, lfFile); - } while (!uploaded && !canceled); - if (!canceled) { - return { - success: true, - commandResponse: imperative_1.TextUtils.chalk.green("Successfully uploaded edits to mainframe.") - }; - } - else { - return { - success: true, - commandResponse: imperative_1.TextUtils.chalk.green("Exiting now. Temp file persists for editing.") - }; - } - }); - } -} -exports.default = EditHandler; -//# sourceMappingURL=Edit.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.handler.js.map b/lib/zosfiles/edit/Edit.handler.js.map deleted file mode 100644 index f0c1484956..0000000000 --- a/lib/zosfiles/edit/Edit.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Edit.handler.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDACkH;AAElH,kEAA8D;AAC9D,mDAAgF;AAEhF;;;GAGG;AACH,MAAqB,WAAY,SAAQ,0CAAmB;IAC3C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;;YAC3F,yCAAyC;YACzC,IAAI,MAAM,GAAe;gBACrB,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,MAAA,iBAAiB,CAAC,SAAS,CAAC,WAAW,mCAAI,iBAAiB,CAAC,SAAS,CAAC,WAAW;gBAC5F,QAAQ,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;gBACvE,QAAQ,EAAE,yBAAY,CAAC,cAAc,EAAE,KAAK,sBAAS,CAAC,aAAa;gBACnE,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,IAAI;aAChB,CAAC;YACF,MAAM,CAAC,QAAQ,GAAG,iBAAiB,CAAC,SAAS,CAAC,aAAa,GAAG,MAAM,0BAAK,CAAC,aAAa,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;YAEnH,kCAAkC;YAClC,MAAM,KAAK,GAAY,MAAM,0BAAK,CAAC,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9F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC;gBACpF,sBAAS,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;YAEvC,MAAM,SAAS,GAAG,MAAM,0BAAK,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAEpF,IAAI,CAAC,SAAS,EAAC;gBACX,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,8CAA8C,CACjD;iBACJ,CAAC;aACL;YAED,yFAAyF;YACzF,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,GAAG;gBACC,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,MAAM,0BAAK,CAAC,WAAW,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;aACtF,QAAQ,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE;YACjC,IAAI,CAAC,QAAQ,EAAC;gBACV,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,2CAA2C,CAC9C;iBACJ,CAAC;aACL;iBAAM;gBACH,OAAO;oBACH,OAAO,EAAE,IAAI;oBACb,eAAe,EAAE,sBAAS,CAAC,KAAK,CAAC,KAAK,CAClC,8CAA8C,CACjD;iBACJ,CAAC;aACL;;KAEJ;CACJ;AA1FD,8BA0FC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.options.d.ts b/lib/zosfiles/edit/Edit.options.d.ts deleted file mode 100644 index ee8a064c70..0000000000 --- a/lib/zosfiles/edit/Edit.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the Edit API - */ -export declare const EditOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/edit/Edit.options.js b/lib/zosfiles/edit/Edit.options.js deleted file mode 100644 index 539e05d0dd..0000000000 --- a/lib/zosfiles/edit/Edit.options.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EditOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.EDIT.OPTIONS; -/** - * Object containing all options to be used by the Edit API - */ -exports.EditOptions = { - /** - * The option to set a default editor - * @type {ICommandOptionDefinition} - */ - editor: { - name: "editor", - aliases: ["ed"], - description: strings.EDITOR, - type: "string", - required: false - }, - extension: { - name: "extension", - aliases: ["ext"], - description: strings.EXTENSION, - type: "string", - required: false - }, -}; -//# sourceMappingURL=Edit.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.options.js.map b/lib/zosfiles/edit/Edit.options.js.map deleted file mode 100644 index 71909f07ce..0000000000 --- a/lib/zosfiles/edit/Edit.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Edit.options.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC;AAExF;;GAEG;AACU,QAAA,WAAW,GAAgD;IAEpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;IACD,SAAS,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,KAAK;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.utils.d.ts b/lib/zosfiles/edit/Edit.utils.d.ts deleted file mode 100644 index 0a3034e99d..0000000000 --- a/lib/zosfiles/edit/Edit.utils.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -/** - * enum of prompts to be used as input to {@link EditUtilities.promptUser} during the file editing process - * @export - * @enum - */ -export declare enum Prompt { - useStash = 0, - viewDiff = 1, - overwriteRemote = 2, - viewUpdatedRemote = 3, - continueToUpload = 4 -} -/** - * Type indicates which file system is being used for storage on mainframe {@link ILocalFile} - * @export - * @type - */ -export declare type EditFileType = "uss" | "ds"; -/** - * A class to hold pertinent information about the local file during the editing process - * @export - * @interface - */ -export interface ILocalFile { - tempPath: string | null; - fileName: string; - fileType: EditFileType; - guiAvail: boolean; - zosResp: IZosFilesResponse | null; - conflict: boolean; - encoding?: string | null; -} -/** - * A shared utility class that uss and ds handlers use for local file editing - * @export - * @class - */ -export declare class EditUtilities { - /** - * Builds a temp path where local file will be saved. If uss file, file name will be hashed - * to prevent any conflicts with file naming. A given filename will always result in the - * same unique file path. - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise} - returns unique file path for temp file - * @memberof EditUtilities - */ - static buildTempPath(lfFile: ILocalFile, commandParameters: IHandlerParameters): Promise; - /** - * Check for temp path's existence (check if previously 'stashed'/temp edits exist) - * @param {string} tempPath - unique file path for local file (stash/temp file) - * @returns {Promise} - promise that resolves to true if stash exists or false if doesn't - * @memberof EditUtilities - */ - static checkForStash(tempPath: string): Promise; - /** - * Collection of prompts to be used at different points in editing process - * @param {Prompt} prompt - selected prompt from {@link Prompt} (enum object) - * @param {Boolean} conflict - optional. true if detected conflict between local and remote files - * @returns {Promise} - promise whose resolution depends on user input - * @memberof EditUtilities - */ - static promptUser(prompt: Prompt, conflict?: boolean): Promise; - /** - * Download file and determine if downloading just to get etag (useStash) or to save file locally & get etag (!useStash) - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {boolean} useStash - should be true if don't want to overwrite local file when refreshing etag - * @returns {ILocalFile} - */ - static localDownload(session: AbstractSession, lfFile: ILocalFile, useStash: boolean): Promise; - /** - * Performs appropriate file comparison (either in browser or as a terminal diff) between local file and remote - * Local file (lf) will then be opened in default editor - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {boolean} promptUser - optional. if there are changes then prompt user to show diff, otherwise return - * @returns {Promise} - the response generated by {@link CompareBaseHelper.getResponse} - * @memberof EditUtilities - */ - static fileComparison(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile, promptUser?: boolean): Promise; - /** - * Enable user to make their edits and wait for user input to indicate editing is complete - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {string} editor - optional parameter originally supplied by args - * @memberof EditUtilities - */ - static makeEdits(lfFile: ILocalFile, editor?: string): Promise; - /** - * Upload temp file with saved etag - * - if matching etag: successful upload, destroy stash/temp -> END - * - if non-matching etag: unsuccessful upload -> refresh etag -> perform file comparison/edit -> re-attempt upload - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise<[boolean, boolean]>} - [resolves to true if uploading was successful and - * false if not, resolves to true if user wishes to cancel command and false if not] - * @memberof EditUtilities - */ - static uploadEdits(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile): Promise<[boolean, boolean]>; - /** - * When changes occur in the remote file, user will have to overwrite remote or account for the discrepancy between files - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise} - returns a boolean where true means command is canceled and false means continue - * @memberof EditUtilities - */ - static etagMismatch(session: AbstractSession, commandParameters: IHandlerParameters, lfFile: ILocalFile): Promise<[boolean, boolean]>; - /** - * Destroy path of temporary local file (remove stash) - * @param {string} tempPath - unique file path for local file (stash) - * @memberof EditUtilities - */ - static destroyTempFile(tempPath: string): Promise; -} diff --git a/lib/zosfiles/edit/Edit.utils.js b/lib/zosfiles/edit/Edit.utils.js deleted file mode 100644 index d0110fbfba..0000000000 --- a/lib/zosfiles/edit/Edit.utils.js +++ /dev/null @@ -1,365 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EditUtilities = exports.Prompt = void 0; -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const imperative_1 = require("@zowe/imperative"); -const CompareBaseHelper_1 = require("../compare/CompareBaseHelper"); -const fs_1 = require("fs"); -const os_1 = require("os"); -const path = require("path"); -const LocalfileDataset_handler_1 = require("../compare/lf-ds/LocalfileDataset.handler"); -const LocalfileUss_handler_1 = require("../compare/lf-uss/LocalfileUss.handler"); -/** - * enum of prompts to be used as input to {@link EditUtilities.promptUser} during the file editing process - * @export - * @enum - */ -var Prompt; -(function (Prompt) { - Prompt[Prompt["useStash"] = 0] = "useStash"; - Prompt[Prompt["viewDiff"] = 1] = "viewDiff"; - Prompt[Prompt["overwriteRemote"] = 2] = "overwriteRemote"; - Prompt[Prompt["viewUpdatedRemote"] = 3] = "viewUpdatedRemote"; - Prompt[Prompt["continueToUpload"] = 4] = "continueToUpload"; -})(Prompt = exports.Prompt || (exports.Prompt = {})); -/** - * A shared utility class that uss and ds handlers use for local file editing - * @export - * @class - */ -class EditUtilities { - /** - * Builds a temp path where local file will be saved. If uss file, file name will be hashed - * to prevent any conflicts with file naming. A given filename will always result in the - * same unique file path. - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise} - returns unique file path for temp file - * @memberof EditUtilities - */ - static buildTempPath(lfFile, commandParameters) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - // find the appropriate extension for either uss or ds - const ussExt = (lfFile.fileType === 'uss' && lfFile.fileName.includes(".")) ? lfFile.fileName.split(".").pop() : ""; - let ext = "." + (lfFile.fileType === 'uss' ? ussExt : ((_a = commandParameters.arguments.extension) !== null && _a !== void 0 ? _a : "txt")); - ext = (ext === "." ? "" : ext); - if (lfFile.fileType === 'uss') { - // Hash in a repeatable way if uss fileName (in case presence of special chars) - const crypto = require("crypto"); - let hash = crypto.createHash('sha256').update(lfFile.fileName).digest('hex'); - // shorten hash - const hashLen = 10; - hash = hash.slice(0, hashLen); - return path.join((0, os_1.tmpdir)(), path.parse(lfFile.fileName).name + '_' + hash + ext); - } - return path.join((0, os_1.tmpdir)(), lfFile.fileName + ext); - }); - } - /** - * Check for temp path's existence (check if previously 'stashed'/temp edits exist) - * @param {string} tempPath - unique file path for local file (stash/temp file) - * @returns {Promise} - promise that resolves to true if stash exists or false if doesn't - * @memberof EditUtilities - */ - static checkForStash(tempPath) { - return __awaiter(this, void 0, void 0, function* () { - try { - return (0, fs_1.existsSync)(tempPath); - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: 'Failure when checking for stash. Command terminated.', - causeErrors: err - }); - } - }); - } - /** - * Collection of prompts to be used at different points in editing process - * @param {Prompt} prompt - selected prompt from {@link Prompt} (enum object) - * @param {Boolean} conflict - optional. true if detected conflict between local and remote files - * @returns {Promise} - promise whose resolution depends on user input - * @memberof EditUtilities - */ - static promptUser(prompt, conflict) { - return __awaiter(this, void 0, void 0, function* () { - let input; - let promptText; - const promptPrefix = (conflict ? 'CONFLICT: ' : ''); - switch (prompt) { - case Prompt.useStash: - promptText = 'Keep and continue editing found temp file? y/n'; - break; - case Prompt.viewDiff: - promptText = 'View diff between temp and mainframe files? y/n'; - break; - case Prompt.viewUpdatedRemote: - promptText = promptPrefix + 'Remote has changed. View diff between local and mainframe files? y/n'; - break; - case Prompt.overwriteRemote: - promptText = promptPrefix + 'Overwrite remote with local edits? (Answer after editing) y/n'; - break; - case Prompt.continueToUpload: - promptText = promptPrefix + 'Ignore conflicts and overwrite remote? y/n'; - break; - } - do { - input = yield imperative_1.CliUtils.readPrompt(imperative_1.TextUtils.chalk.green(promptText)); - } while (input != null && input.toLowerCase() != 'y' && input.toLowerCase() != 'n'); - if (input == null) { - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red('No input provided. Command terminated. Temp file will persist.') - }); - } - return input.toLowerCase() === 'y'; - }); - } - /** - * Download file and determine if downloading just to get etag (useStash) or to save file locally & get etag (!useStash) - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {boolean} useStash - should be true if don't want to overwrite local file when refreshing etag - * @returns {ILocalFile} - */ - static localDownload(session, lfFile, useStash) { - return __awaiter(this, void 0, void 0, function* () { - // account for both useStash|!useStash and uss|ds when downloading - const tempPath = useStash ? path.posix.join((0, os_1.tmpdir)(), "toDelete.txt") : lfFile.tempPath; - const args = [ - session, - lfFile.fileName, - { - returnEtag: true, - binary: null, - encoding: null, - file: tempPath - } - ]; - if (lfFile.fileType === 'uss') { - lfFile.zosResp = yield zos_files_for_zowe_sdk_1.Download.ussFile(...args); - lfFile.encoding = args[2].encoding; - } - else { - lfFile.zosResp = yield zos_files_for_zowe_sdk_1.Download.dataSet(...args); - } - if (useStash) { - yield this.destroyTempFile(path.posix.join((0, os_1.tmpdir)(), "toDelete.txt")); - } - return lfFile; - }); - } - /** - * Performs appropriate file comparison (either in browser or as a terminal diff) between local file and remote - * Local file (lf) will then be opened in default editor - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {boolean} promptUser - optional. if there are changes then prompt user to show diff, otherwise return - * @returns {Promise} - the response generated by {@link CompareBaseHelper.getResponse} - * @memberof EditUtilities - */ - static fileComparison(session, commandParameters, lfFile, promptUser) { - return __awaiter(this, void 0, void 0, function* () { - const handlerDs = new LocalfileDataset_handler_1.default(); - const handlerUss = new LocalfileUss_handler_1.default(); - const helper = new CompareBaseHelper_1.CompareBaseHelper(commandParameters); - const gui = imperative_1.ProcessUtils.isGuiAvailable(); - const options = { - name1: "local file", - name2: "remote file" - }; - helper.browserView = (gui === imperative_1.GuiResult.GUI_AVAILABLE); - const lf = yield handlerDs.getFile1(session, commandParameters.arguments, helper); - let mf; - try { - if (commandParameters.positionals[2].includes('d')) { - mf = yield handlerDs.getFile2(session, commandParameters.arguments, helper); - } - else { - mf = yield handlerUss.getFile2(session, commandParameters.arguments, helper); - } - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red(err + '\nCommand terminated. Issue retrieving files for comparison.'), - causeErrors: err - }); - } - const localContent = helper.prepareContent(lf); - const remoteContent = helper.prepareContent(mf); - let viewUpdatedRemote = !promptUser; - if (localContent !== remoteContent) { - lfFile.conflict = true; - } - if (promptUser && lfFile.conflict) { - viewUpdatedRemote = yield this.promptUser(Prompt.viewUpdatedRemote, lfFile.conflict); - } - if (!viewUpdatedRemote) { - return; - } - const diffResponse = yield helper.getResponse(localContent, remoteContent, options); - if (!helper.browserView) { - if (diffResponse) { - commandParameters.response.console.log('\n' + diffResponse.commandResponse); - } - else { - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red('Diff was unable to be generated') - }); - } - } - return diffResponse; - }); - } - /** - * Enable user to make their edits and wait for user input to indicate editing is complete - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @param {string} editor - optional parameter originally supplied by args - * @memberof EditUtilities - */ - static makeEdits(lfFile, editor) { - return __awaiter(this, void 0, void 0, function* () { - if (lfFile.guiAvail) { - imperative_1.ProcessUtils.openInEditor(lfFile.tempPath, editor, true); - } - return yield this.promptUser(Prompt.overwriteRemote, lfFile.conflict); - }); - } - /** - * Upload temp file with saved etag - * - if matching etag: successful upload, destroy stash/temp -> END - * - if non-matching etag: unsuccessful upload -> refresh etag -> perform file comparison/edit -> re-attempt upload - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise<[boolean, boolean]>} - [resolves to true if uploading was successful and - * false if not, resolves to true if user wishes to cancel command and false if not] - * @memberof EditUtilities - */ - static uploadEdits(session, commandParameters, lfFile) { - return __awaiter(this, void 0, void 0, function* () { - const etagMismatchCode = 412; - const args = [ - session, - lfFile.tempPath, - lfFile.fileName, - { - encoding: lfFile.encoding, - etag: lfFile.zosResp.apiResponse.etag, - returnEtag: true - }, - ]; - let response; - try { - if (lfFile.fileType === 'uss') { - response = yield zos_files_for_zowe_sdk_1.Upload.fileToUssFile(...args); - } - else { - response = yield zos_files_for_zowe_sdk_1.Upload.fileToDataset(...args); - } - if (response.success) { - // If matching etag & successful upload, destroy temp file -> END - yield this.destroyTempFile(lfFile.tempPath); - return [true, false]; - } - else { - if (response.commandResponse.includes('412')) { - return yield this.etagMismatch(session, commandParameters, lfFile); - //returns [uploaded, canceled] - } - } - } - catch (err) { - if (err.errorCode && err.errorCode == etagMismatchCode) { - return yield this.etagMismatch(session, commandParameters, lfFile); - } - } - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red((response === null || response === void 0 ? void 0 : response.errorMessage) + - 'Command terminated. Issue uploading stash. Temp file will persist'), - causeErrors: response === null || response === void 0 ? void 0 : response.errorMessage - }); - }); - } - /** - * When changes occur in the remote file, user will have to overwrite remote or account for the discrepancy between files - * @param {AbstractSession} session - the session object generated from the connected profile - * @param {IHandlerParameters} commandParameters - parameters supplied by args - * @param {ILocalFile} lfFile - object containing pertinent information about the local file during the editing process - * @returns {Promise} - returns a boolean where true means command is canceled and false means continue - * @memberof EditUtilities - */ - static etagMismatch(session, commandParameters, lfFile) { - return __awaiter(this, void 0, void 0, function* () { - lfFile.conflict = true; - try { - //alert user that the version of document they've been editing has changed - //ask if they want to see changes on the remote file before continuing - const viewUpdatedRemote = yield this.promptUser(Prompt.viewUpdatedRemote, lfFile.conflict); - if (viewUpdatedRemote) { - yield this.fileComparison(session, commandParameters, lfFile); - } - //ask if they want to keep editing or upload despite changes to remote - const continueToUpload = yield this.promptUser(Prompt.continueToUpload, lfFile.conflict); - // refresh etag, keep stash - yield this.localDownload(session, lfFile, true); - if (!continueToUpload) { - // create more edits & open stash/lf in editor - const readyToUpload = yield this.makeEdits(lfFile, commandParameters.arguments.editor); - if (readyToUpload) { - return yield EditUtilities.uploadEdits(session, commandParameters, lfFile); - } - else { - return [false, true]; //[uploaded, canceled] - } - } - return [false, false]; //[uploaded, canceled] - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: imperative_1.TextUtils.chalk.red('Command terminated. Issue with etag. Temp file will persist.'), - causeErrors: err - }); - } - }); - } - /** - * Destroy path of temporary local file (remove stash) - * @param {string} tempPath - unique file path for local file (stash) - * @memberof EditUtilities - */ - static destroyTempFile(tempPath) { - return __awaiter(this, void 0, void 0, function* () { - try { - (0, fs_1.unlinkSync)(tempPath); - } - catch (err) { - throw new imperative_1.ImperativeError({ - msg: 'Temporary file could not be deleted: ${tempPath}', - causeErrors: err - }); - } - }); - } -} -exports.EditUtilities = EditUtilities; -//# sourceMappingURL=Edit.utils.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/Edit.utils.js.map b/lib/zosfiles/edit/Edit.utils.js.map deleted file mode 100644 index 1667136f94..0000000000 --- a/lib/zosfiles/edit/Edit.utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Edit.utils.js","sourceRoot":"","sources":["../../../src/zosfiles/edit/Edit.utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAEF,yEAAqH;AACrH,iDACoE;AACpE,oEAAiE;AACjE,2BAA4C;AAC5C,2BAA4B;AAC5B,6BAA6B;AAC7B,wFAAgF;AAChF,iFAAyE;AAGzE;;;;GAIG;AACH,IAAY,MAMX;AAND,WAAY,MAAM;IACd,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,yDAAe,CAAA;IACf,6DAAiB,CAAA;IACjB,2DAAgB,CAAA;AACpB,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAwBD;;;;GAIG;AACH,MAAa,aAAa;IACtB;;;;;;;OAOG;IACI,MAAM,CAAO,aAAa,CAAC,MAAkB,EAAE,iBAAqC;;;YACvF,sDAAsD;YACtD,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,QAAQ,KAAK,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,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IAAA,eAAU,EAAC,QAAQ,CAAC,CAAC;aACxB;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,kDAAkD;oBACvD,WAAW,EAAE,GAAG;iBACnB,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AA9SD,sCA8SC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/ds/Dataset.definition.d.ts b/lib/zosfiles/edit/ds/Dataset.definition.d.ts deleted file mode 100644 index f236389be7..0000000000 --- a/lib/zosfiles/edit/ds/Dataset.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Edit data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/ds/Dataset.definition.js b/lib/zosfiles/edit/ds/Dataset.definition.js deleted file mode 100644 index d77cdc987a..0000000000 --- a/lib/zosfiles/edit/ds/Dataset.definition.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DatasetDefinition = void 0; -const Edit_options_1 = require("../Edit.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.EDIT; -/** - * Edit data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DatasetDefinition = { - name: "data-set", - aliases: ["ds"], - summary: strings.ACTIONS.DATA_SET.SUMMARY, - description: strings.ACTIONS.DATA_SET.DESCRIPTION, - type: "command", - handler: __dirname + "/../Edit.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "dataSetName", - description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME, - type: "string", - required: true - }, - ], - options: [ - Edit_options_1.EditOptions.editor, - Edit_options_1.EditOptions.extension - ], - examples: [ - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, - options: `ibmuser.cntl(iefbr14) --editor notepad` - }, - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, - options: `ibmuser.cntl(iefbr14) --editor C:\\Windows\\System32\\Notepad.exe` - }, - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, - options: `ibmuser.jcl(iefbr14) --editor notepad --extension jcl` - } - ] -}; -//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/ds/Dataset.definition.js.map b/lib/zosfiles/edit/ds/Dataset.definition.js.map deleted file mode 100644 index 32854d156c..0000000000 --- a/lib/zosfiles/edit/ds/Dataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/edit/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW;YAC7D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,SAAS;KACxB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,wCAAwC;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,mEAAmE;SAC/E;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,uDAAuD;SACnE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/edit/uss/USSFile.definition.d.ts b/lib/zosfiles/edit/uss/USSFile.definition.d.ts deleted file mode 100644 index 96a2e822eb..0000000000 --- a/lib/zosfiles/edit/uss/USSFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Edit USS file content command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/edit/uss/USSFile.definition.js b/lib/zosfiles/edit/uss/USSFile.definition.js deleted file mode 100644 index fdb2a8d3b8..0000000000 --- a/lib/zosfiles/edit/uss/USSFile.definition.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.USSFileDefinition = void 0; -const Edit_options_1 = require("../Edit.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.EDIT; -/** - * Edit USS file content command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.USSFileDefinition = { - name: "uss-file", - aliases: ["uss", "uf"], - summary: strings.ACTIONS.USS_FILE.SUMMARY, - description: strings.ACTIONS.USS_FILE.DESCRIPTION, - type: "command", - handler: __dirname + "/../Edit.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "ussFilePath", - description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILEPATH, - type: "string", - required: true - }, - ], - options: [ - Edit_options_1.EditOptions.editor - ], - examples: [ - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, - options: `/a/ibmuser/my_text.txt --editor notepad` - }, - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, - options: `/a/ibmuser/my_text.txt --editor C:\\Windows\\System32\\Notepad.exe` - } - ] -}; -//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/edit/uss/USSFile.definition.js.map b/lib/zosfiles/edit/uss/USSFile.definition.js.map deleted file mode 100644 index 1e9dff66d8..0000000000 --- a/lib/zosfiles/edit/uss/USSFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/edit/uss/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW;YAC7D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;KACrB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,yCAAyC;SACrD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,oEAAoE;SAChF;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.d.ts b/lib/zosfiles/hMigrate/HMigrate.definition.d.ts deleted file mode 100644 index 2128308885..0000000000 --- a/lib/zosfiles/hMigrate/HMigrate.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * hMigrate group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const HMigrateDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.js b/lib/zosfiles/hMigrate/HMigrate.definition.js deleted file mode 100644 index cda38aff48..0000000000 --- a/lib/zosfiles/hMigrate/HMigrate.definition.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HMigrateDefinition = void 0; -const Ds_definition_1 = require("./ds/Ds.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const { DESCRIPTION } = require("../-strings-/en").default.HMIGRATE; -/** - * hMigrate group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.HMigrateDefinition = { - name: "migrate", - aliases: ["hmigr", "hMigrate"], - type: "group", - description: DESCRIPTION, - children: [ - Ds_definition_1.DsDefinition - ] -}; -//# sourceMappingURL=HMigrate.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/HMigrate.definition.js.map b/lib/zosfiles/hMigrate/HMigrate.definition.js.map deleted file mode 100644 index 956cb04851..0000000000 --- a/lib/zosfiles/hMigrate/HMigrate.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HMigrate.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/hMigrate/HMigrate.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,EAAE,WAAW,EAAE,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,QAAQ,CAAC;AAE5F;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;IAC9B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts b/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts deleted file mode 100644 index bdc580965f..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.js b/lib/zosfiles/hMigrate/ds/Ds.definition.js deleted file mode 100644 index 378e35a422..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.definition.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default; -const dSStrings = strings.HMIGRATE.ACTIONS.DATA_SET; -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: dSStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/Ds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: dSStrings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - { - name: "wait", - aliases: ["w"], - description: strings.HMIGRATE.OPTIONS.WAIT, - type: "boolean", - defaultValue: false, - required: false - } - ], - examples: [ - { - description: dSStrings.EXAMPLES.EX1, - options: `"USER.DATA.SET"` - } - ] -}; -//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.definition.js.map b/lib/zosfiles/hMigrate/ds/Ds.definition.js.map deleted file mode 100644 index aadb5c232a..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/hMigrate/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEvC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;YAC1C,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts b/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts deleted file mode 100644 index ed9f9f474f..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to migrate a Data Set - */ -export default class DSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.js b/lib/zosfiles/hMigrate/ds/Ds.handler.js deleted file mode 100644 index d26ca2623b..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to migrate a Data Set - */ -class DSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const { options } = commandParameters.arguments; - return zos_files_for_zowe_sdk_1.HMigrate.dataSet(session, commandParameters.arguments.dataSetName, options); - }); - } -} -exports.default = DSHandler; -//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/hMigrate/ds/Ds.handler.js.map b/lib/zosfiles/hMigrate/ds/Ds.handler.js.map deleted file mode 100644 index 431fedc3d7..0000000000 --- a/lib/zosfiles/hMigrate/ds/Ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/hMigrate/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA2E;AAC3E,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,iCAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACvF,CAAC;KAAA;CACJ;AAVD,4BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/HRecall.definition.d.ts b/lib/zosfiles/hRecall/HRecall.definition.d.ts deleted file mode 100644 index c2cca0039e..0000000000 --- a/lib/zosfiles/hRecall/HRecall.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * hRecall group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const HRecallDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hRecall/HRecall.definition.js b/lib/zosfiles/hRecall/HRecall.definition.js deleted file mode 100644 index 1a004225fb..0000000000 --- a/lib/zosfiles/hRecall/HRecall.definition.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HRecallDefinition = void 0; -const Ds_definition_1 = require("./ds/Ds.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const { DESCRIPTION } = require("../-strings-/en").default.HRECALL; -/** - * hRecall group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.HRecallDefinition = { - name: "recall", - aliases: ["hrec", "hRecall"], - type: "group", - description: DESCRIPTION, - children: [ - Ds_definition_1.DsDefinition - ] -}; -//# sourceMappingURL=HRecall.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/HRecall.definition.js.map b/lib/zosfiles/hRecall/HRecall.definition.js.map deleted file mode 100644 index e40a685a7e..0000000000 --- a/lib/zosfiles/hRecall/HRecall.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HRecall.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/hRecall/HRecall.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,EAAE,WAAW,EAAE,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAE3F;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC5B,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.d.ts b/lib/zosfiles/hRecall/ds/Ds.definition.d.ts deleted file mode 100644 index bdc580965f..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.js b/lib/zosfiles/hRecall/ds/Ds.definition.js deleted file mode 100644 index e0eea3529c..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.definition.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default; -const dSStrings = strings.HRECALL.ACTIONS.DATA_SET; -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: dSStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/Ds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: dSStrings.POSITIONALS.DATASETNAME, - required: true - } - ], - options: [ - { - name: "wait", - aliases: ["w"], - description: strings.HRECALL.OPTIONS.WAIT, - type: "boolean", - defaultValue: false, - required: false - } - ], - examples: [ - { - description: dSStrings.EXAMPLES.EX1, - options: `"USER.DATA.SET"` - } - ] -}; -//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.definition.js.map b/lib/zosfiles/hRecall/ds/Ds.definition.js.map deleted file mode 100644 index d0ada8f0b0..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/hRecall/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEtC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YACzC,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,KAAK;YACnB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.d.ts b/lib/zosfiles/hRecall/ds/Ds.handler.d.ts deleted file mode 100644 index bdbbb1f30b..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to rename a Data Set - */ -export default class DSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.js b/lib/zosfiles/hRecall/ds/Ds.handler.js deleted file mode 100644 index eb6f2b2022..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to rename a Data Set - */ -class DSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const { options } = commandParameters.arguments; - return zos_files_for_zowe_sdk_1.HRecall.dataSet(session, commandParameters.arguments.dataSetName, options); - }); - } -} -exports.default = DSHandler; -//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/hRecall/ds/Ds.handler.js.map b/lib/zosfiles/hRecall/ds/Ds.handler.js.map deleted file mode 100644 index 22d893b7d9..0000000000 --- a/lib/zosfiles/hRecall/ds/Ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/hRecall/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA0E;AAC1E,qEAAiE;AACjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAC3B,iBAAqC,EACrC,OAAwB;;YAGxB,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAEhD,OAAO,gCAAO,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtF,CAAC;KAAA;CACJ;AAVD,4BAUC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/Invoke.definition.d.ts b/lib/zosfiles/invoke/Invoke.definition.d.ts deleted file mode 100644 index 55b1f4d568..0000000000 --- a/lib/zosfiles/invoke/Invoke.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Invoke group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const InvokeDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/Invoke.definition.js b/lib/zosfiles/invoke/Invoke.definition.js deleted file mode 100644 index e5a3840f35..0000000000 --- a/lib/zosfiles/invoke/Invoke.definition.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InvokeDefinition = void 0; -const AmsStatements_definition_1 = require("./amsStatements/AmsStatements.definition"); -const AmsFile_definition_1 = require("./amsFile/AmsFile.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.INVOKE; -/** - * Invoke group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.InvokeDefinition = { - name: "invoke", - aliases: ["call"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - AmsStatements_definition_1.AmsStatementsDefinition, - AmsFile_definition_1.AmsFileDefinition - ] -}; -//# sourceMappingURL=Invoke.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/Invoke.definition.js.map b/lib/zosfiles/invoke/Invoke.definition.js.map deleted file mode 100644 index c2732fa231..0000000000 --- a/lib/zosfiles/invoke/Invoke.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Invoke.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/invoke/Invoke.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,uFAAmF;AACnF,qEAAiE;AAIjE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,kDAAuB;QACvB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts b/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts deleted file mode 100644 index c8ce4f518e..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * AMS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const AmsFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js deleted file mode 100644 index 6ef9e7652c..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AmsFileDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.INVOKE.ACTIONS.AMS; -/** - * AMS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.AmsFileDefinition = { - name: "ams-file", - aliases: ["af"], - summary: strings.FILE_CMD.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "AmsFile.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "controlStatementsFile", - description: strings.FILE_CMD.POSITIONAL, - type: "string", - required: true - } - ], - examples: [ - { - description: strings.FILE_CMD.EXAMPLES.EX1, - options: `"./path/to/file/MyControlStatements.idcams"` - } - ] -}; -//# sourceMappingURL=AmsFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map b/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map deleted file mode 100644 index 9383fea4de..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AmsFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsFile/AmsFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACjC,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC;IAC3C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,UAAU;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAC1C,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts b/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts deleted file mode 100644 index bf30f80062..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a PDS data set - * @export - */ -export default class AmsFileHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js deleted file mode 100644 index 16f3a78811..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a PDS data set - * @export - */ -class AmsFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - const response = yield zos_files_for_zowe_sdk_1.Invoke.ams(session, commandParameters.arguments.controlStatementsFile, zosFilesOptions); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse)); - return response; - }); - } -} -exports.default = AmsFileHandler; -//# sourceMappingURL=AmsFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map b/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map deleted file mode 100644 index 8ed29e0201..0000000000 --- a/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AmsFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsFile/AmsFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAA2F;AAC3F,qEAAiE;AACjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,MAAM,QAAQ,GAAsB,MAAM,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAAqB,EAAE,eAAe,CAAC,CAAC;YAClI,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YACnF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAPD,iCAOC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts deleted file mode 100644 index ccb0745c38..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * AMS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const AmsStatementsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js deleted file mode 100644 index 0e2328f09e..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AmsStatementsDefinition = void 0; -const path_1 = require("path"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.INVOKE.ACTIONS.AMS; -/** - * AMS command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.AmsStatementsDefinition = { - name: "ams-statements", - aliases: ["as"], - summary: strings.STATEMENTS_CMD.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: (0, path_1.join)(__dirname, "AmsStatements.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "controlStatements", - description: strings.STATEMENTS_CMD.POSITIONAL, - type: "string", - required: true - } - ], - examples: [ - { - description: strings.STATEMENTS_CMD.EXAMPLES.EX1, - options: `"DEFINE CLUSTER ( NAME (DUMMY.VSAM.CLUSTER) CYL(1 1))"` - }, - { - description: strings.STATEMENTS_CMD.EXAMPLES.EX2, - options: `"DELETE DUMMY.VSAM.CLUSTER CLUSTER"` - } - ] -}; -//# sourceMappingURL=AmsStatements.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map b/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map deleted file mode 100644 index cf35a5b2ba..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AmsStatements.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsStatements/AmsStatements.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+BAA4B;AAG5B,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AAEjG;;;GAGG;AACU,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,OAAO;IACvC,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,uBAAuB,CAAC;IACjD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,UAAU;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;YAChD,OAAO,EAAE,wDAAwD;SACpE;QACD;YACI,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;YAChD,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts deleted file mode 100644 index 4c095ae50d..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to create a PDS data set - * @export - */ -export default class AmsStatementsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js deleted file mode 100644 index d1557b796e..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to create a PDS data set - * @export - */ -class AmsStatementsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - const statements = imperative_1.TextUtils - .wordWrap(commandParameters.arguments.controlStatements, zos_files_for_zowe_sdk_1.ZosFilesConstants.MAX_AMS_LINE - zos_files_for_zowe_sdk_1.ZosFilesConstants.MAX_AMS_BUFFER) - .split(/\r?\n/); - for (let stIdx = 0; stIdx < statements.length - 1; ++stIdx) { - statements[stIdx] += " -"; - } - const response = yield zos_files_for_zowe_sdk_1.Invoke.ams(session, statements, zosFilesOptions); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse)); - return response; - }); - } -} -exports.default = AmsStatementsHandler; -//# sourceMappingURL=AmsStatements.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map b/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map deleted file mode 100644 index bbbc7cc44f..0000000000 --- a/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AmsStatements.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/invoke/amsStatements/AmsStatements.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAA8G;AAC9G,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACpD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YAEzG,MAAM,UAAU,GAAG,sBAAS;iBACvB,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,iBAAiB,EAAE,0CAAiB,CAAC,YAAY,GAAG,0CAAiB,CAAC,cAAc,CAAC;iBAC1H,KAAK,CAAC,OAAO,CAAC,CAAC;YACpB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE;gBACxD,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;aAC7B;YAED,MAAM,QAAQ,GAAsB,MAAM,+BAAM,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;YAC3F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YAEnF,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAhBD,uCAgBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/List.definition.d.ts b/lib/zosfiles/list/List.definition.d.ts deleted file mode 100644 index 54f0997f20..0000000000 --- a/lib/zosfiles/list/List.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/List.definition.js b/lib/zosfiles/list/List.definition.js deleted file mode 100644 index ed2a9f18f1..0000000000 --- a/lib/zosfiles/list/List.definition.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDefinition = void 0; -const AllMembers_definition_1 = require("./am/AllMembers.definition"); -const DataSet_definition_1 = require("./ds/DataSet.definition"); -const UssFile_definition_1 = require("./uss/UssFile.definition"); -const Fs_definition_1 = require("./fs/Fs.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.LIST; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.ListDefinition = { - name: "list", - aliases: ["ls"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - AllMembers_definition_1.AllMembersDefinition, - DataSet_definition_1.DataSetDefinition, - UssFile_definition_1.USSFileDefinition, - Fs_definition_1.FsDefinition - ] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/List.definition.js.map b/lib/zosfiles/list/List.definition.js.map deleted file mode 100644 index 7783e40cc4..0000000000 --- a/lib/zosfiles/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sEAAkE;AAClE,gEAA4D;AAC5D,iEAA6D;AAC7D,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4CAAoB;QACpB,sCAAiB;QACjB,sCAAiB;QACjB,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/List.options.d.ts b/lib/zosfiles/list/List.options.d.ts deleted file mode 100644 index 59d88728cd..0000000000 --- a/lib/zosfiles/list/List.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the List data-set/member API - */ -export declare const ListOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/list/List.options.js b/lib/zosfiles/list/List.options.js deleted file mode 100644 index e31b2408d3..0000000000 --- a/lib/zosfiles/list/List.options.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.LIST.OPTIONS; -/** - * Object containing all options to be used by the List data-set/member API - */ -exports.ListOptions = { - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volume: { - name: "volume-serial", - aliases: ["vs"], - description: strings.VOLUME, - type: "string", - stringLengthRange: [1, 6] // eslint-disable-line @typescript-eslint/no-magic-numbers - }, - /** - * The indicator that we want to show more attributes - * @type {ICommandOptionDefinition} - */ - attributes: { - name: "attributes", - aliases: ["a"], - description: strings.ATTRIBUTES, - type: "boolean" - }, - /** - * The indicator of how many lines will the list have, the default is 0 which means all the data sets. - * @type {ICommandOptionDefinition} - */ - maxLength: { - name: "max-length", - aliases: ["max"], - description: strings.MAXLENGTH, - type: "number" - }, - /** - * The pattern to match against a list of members in a data set. - * @type {ICommandOptionDefinition} - */ - pattern: { - name: "pattern", - description: strings.PATTERN, - type: "string" - }, - /** - * The indicator that where ti file syste is mounted. - * @type {ICommandOptionDefinition} - */ - path: { - name: "path", - aliases: ["p"], - description: strings.PATH, - type: "string" - }, - /** - * The indicator that where the name of mounted. - * @type {ICommandOptionDefinition} - */ - fsname: { - name: "fsname", - aliases: ["f"], - description: strings.FSNAME, - type: "string", - conflictsWith: ["path"] - }, - /** - * An optional search parameter that specifies the first data set name to return in the response document. - */ - start: { - name: "start", - aliases: ["s"], - description: strings.START, - type: "string" - }, - /** - * An optional USS search parameter for a file or directory name - */ - name: { - name: "name", - description: strings.NAME, - type: "string" - }, - /** - * An optional USS search parameter to filter by group name or number - */ - group: { - name: "group", - description: strings.GROUP, - type: "string" - }, - /** - * An optional USS search parameter to filter by owner name or number - */ - owner: { - name: "owner", - description: strings.OWNER, - type: "string" - }, - /** - * An optional USS search parameter to filter by modified time in number of days - */ - mtime: { - name: "mtime", - description: strings.MTIME, - type: "string" - }, - /** - * An optional USS search parameter to filter by file size - */ - size: { - name: "size", - description: strings.SIZE, - type: "string" - }, - /** - * An optional USS search parameter to filter by permission octal string - */ - perm: { - name: "perm", - description: strings.PERM, - type: "string" - }, - /** - * An optional USS search parameter to filter by the type of file, directory, device, or special file - */ - type: { - name: "type", - description: strings.TYPE, - type: "string", - allowableValues: { values: ["f", "d", "l", "p", "s"], caseSensitive: true } - }, - /** - * An optional USS search parameter to limit the depth of the file and directory search - */ - depth: { - name: "depth", - description: strings.DEPTH, - type: "number" - }, - /** - * An optional USS search parameter to determine whether or not to search all filesystems - */ - filesys: { - name: "filesys", - description: strings.FILESYS, - type: "boolean" - }, - /** - * An optional USS search parameter to determine whether or not to follow symlinks - */ - symlinks: { - name: "symlinks", - description: strings.SYMLINKS, - type: "boolean" - } -}; -//# sourceMappingURL=List.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/List.options.js.map b/lib/zosfiles/list/List.options.js.map deleted file mode 100644 index a201d93371..0000000000 --- a/lib/zosfiles/list/List.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.options.js","sourceRoot":"","sources":["../../../src/zosfiles/list/List.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,C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AAI,EAAE,UAAU;QAChB,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.definition.d.ts b/lib/zosfiles/list/am/AllMembers.definition.d.ts deleted file mode 100644 index 01a4f9cb9f..0000000000 --- a/lib/zosfiles/list/am/AllMembers.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * List all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const AllMembersDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/am/AllMembers.definition.js b/lib/zosfiles/list/am/AllMembers.definition.js deleted file mode 100644 index 7a51993b72..0000000000 --- a/lib/zosfiles/list/am/AllMembers.definition.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllMembersDefinition = void 0; -const List_options_1 = require("../List.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.LIST.ACTIONS.ALL_MEMBERS; -/** - * List all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.AllMembersDefinition = { - name: "all-members", - aliases: ["am"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/AllMembers.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - List_options_1.ListOptions.attributes, - List_options_1.ListOptions.maxLength, - List_options_1.ListOptions.pattern - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.asm"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.cntl" -a` - }, - { - description: strings.EXAMPLES.EX3, - options: `"ibmuser.cntl" --max 5` - }, - { - description: strings.EXAMPLES.EX4, - options: `"sys1.maclib" --pattern IJK* --max 4` - } - ] -}; -//# sourceMappingURL=AllMembers.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.definition.js.map b/lib/zosfiles/list/am/AllMembers.definition.js.map deleted file mode 100644 index 9a36fa7a6a..0000000000 --- a/lib/zosfiles/list/am/AllMembers.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllMembers.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/am/AllMembers.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;AAEvG;;;GAGG;AACU,QAAA,oBAAoB,GAAuB;IACpD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,UAAU;QACtB,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,OAAO;KACtB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.handler.d.ts b/lib/zosfiles/list/am/AllMembers.handler.d.ts deleted file mode 100644 index 16035feea0..0000000000 --- a/lib/zosfiles/list/am/AllMembers.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to list a data set members - * @export - */ -export default class AllMembersHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/list/am/AllMembers.handler.js b/lib/zosfiles/list/am/AllMembers.handler.js deleted file mode 100644 index ff2ff17825..0000000000 --- a/lib/zosfiles/list/am/AllMembers.handler.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to list a data set members - * @export - */ -class AllMembersHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield zos_files_for_zowe_sdk_1.List.allMembers(session, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - attributes: commandParameters.arguments.attributes, - maxLength: commandParameters.arguments.maxLength, - pattern: commandParameters.arguments.pattern, - responseTimeout: commandParameters.arguments.responseTimeout - }); - if (commandParameters.arguments.attributes && response.apiResponse.items.length > 0) { - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse.items)); - } - else { - const memberList = response.apiResponse.items.map((mem) => mem.member); - commandParameters.response.console.log(memberList.join("\n")); - } - return response; - }); - } -} -exports.default = AllMembersHandler; -//# sourceMappingURL=AllMembers.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/am/AllMembers.handler.js.map b/lib/zosfiles/list/am/AllMembers.handler.js.map deleted file mode 100644 index c2b9cc5228..0000000000 --- a/lib/zosfiles/list/am/AllMembers.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllMembers.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/am/AllMembers.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAAuE;AACvE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,iBAAkB,SAAQ,0CAAmB;IACjD,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrF,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,UAAU,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBAClD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO;gBAC5C,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEH,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;aAC5F;iBAAM;gBACH,MAAM,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC5E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjE;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,oCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.definition.d.ts b/lib/zosfiles/list/ds/DataSet.definition.d.ts deleted file mode 100644 index 2da35483bc..0000000000 --- a/lib/zosfiles/list/ds/DataSet.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * List data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/ds/DataSet.definition.js b/lib/zosfiles/list/ds/DataSet.definition.js deleted file mode 100644 index b2b1bd6d8e..0000000000 --- a/lib/zosfiles/list/ds/DataSet.definition.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataSetDefinition = void 0; -const path = require("path"); -const List_options_1 = require("../List.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.LIST.ACTIONS.DATA_SET; -/** - * List data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DataSetDefinition = { - name: "data-set", - aliases: ["ds"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "DataSet.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - List_options_1.ListOptions.attributes, - List_options_1.ListOptions.maxLength, - List_options_1.ListOptions.volume, - List_options_1.ListOptions.start - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.asm"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.cntl" -a` - }, - { - description: strings.EXAMPLES.EX3, - options: `"ibmuser.*"` - }, - { - description: strings.EXAMPLES.EX4, - options: `"ibmuser.*" -a` - }, - { - description: strings.EXAMPLES.EX5, - options: `"ibmuser.cntl" --max 5` - } - ] -}; -//# sourceMappingURL=DataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.definition.js.map b/lib/zosfiles/list/ds/DataSet.definition.js.map deleted file mode 100644 index 342a50e70a..0000000000 --- a/lib/zosfiles/list/ds/DataSet.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/ds/DataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,UAAU;QACtB,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,KAAK;KACpB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mBAAmB;SAC/B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,gBAAgB;SAC5B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.handler.d.ts b/lib/zosfiles/list/ds/DataSet.handler.d.ts deleted file mode 100644 index f7e4a912a2..0000000000 --- a/lib/zosfiles/list/ds/DataSet.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to list a data sets - * @export - */ -export default class DataSetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/list/ds/DataSet.handler.js b/lib/zosfiles/list/ds/DataSet.handler.js deleted file mode 100644 index 5180bfb5c5..0000000000 --- a/lib/zosfiles/list/ds/DataSet.handler.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to list a data sets - * @export - */ -class DataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield zos_files_for_zowe_sdk_1.List.dataSet(session, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - attributes: commandParameters.arguments.attributes, - maxLength: commandParameters.arguments.maxLength, - responseTimeout: commandParameters.arguments.responseTimeout, - start: commandParameters.arguments.start - }); - if (commandParameters.arguments.attributes && response.apiResponse.items.length > 0) { - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson(response.apiResponse.items)); - } - else { - const dsnameList = response.apiResponse.items.map((mem) => mem.dsname); - commandParameters.response.console.log(dsnameList.join("\n")); - } - return response; - }); - } -} -exports.default = DataSetHandler; -//# sourceMappingURL=DataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/ds/DataSet.handler.js.map b/lib/zosfiles/list/ds/DataSet.handler.js.map deleted file mode 100644 index 5865bb3e57..0000000000 --- a/lib/zosfiles/list/ds/DataSet.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/ds/DataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAkF;AAClF,yEAAuE;AACvE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBAClF,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,UAAU,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU;gBAClD,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;aAC3C,CAAC,CAAC;YAEH,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjF,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;aAC5F;iBAAM;gBACH,MAAM,UAAU,GAAG,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAC5E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjE;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,iCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.definition.d.ts b/lib/zosfiles/list/fs/Fs.definition.d.ts deleted file mode 100644 index 76aca7f399..0000000000 --- a/lib/zosfiles/list/fs/Fs.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * List data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/fs/Fs.definition.js b/lib/zosfiles/list/fs/Fs.definition.js deleted file mode 100644 index 9304aabfa3..0000000000 --- a/lib/zosfiles/list/fs/Fs.definition.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FsDefinition = void 0; -const path = require("path"); -const List_options_1 = require("../List.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.LIST.ACTIONS.FS; -/** - * List data sets command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.FsDefinition = { - name: "file-system", - aliases: ["fs"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - outputFormatOptions: true, - handler: path.join(__dirname, "Fs.handler"), - profile: { - optional: ["zosmf"] - }, - options: [ - List_options_1.ListOptions.maxLength, - List_options_1.ListOptions.fsname, - List_options_1.ListOptions.path - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: "" - }, - { - description: strings.EXAMPLES.EX2, - options: "-p /a/ibmuser" - }, - { - description: strings.EXAMPLES.EX3, - options: "-f MY.ZFS" - } - ] -}; -//# sourceMappingURL=Fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.definition.js.map b/lib/zosfiles/list/fs/Fs.definition.js.map deleted file mode 100644 index 97bc078cec..0000000000 --- a/lib/zosfiles/list/fs/Fs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/fs/Fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAE9F;;;GAGG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,mBAAmB,EAAE,IAAI;IACzB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC;IAC3C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,SAAS;QACrB,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,IAAI;KACnB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,eAAe;SAC3B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,WAAW;SACvB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.handler.d.ts b/lib/zosfiles/list/fs/Fs.handler.d.ts deleted file mode 100644 index d2face9e51..0000000000 --- a/lib/zosfiles/list/fs/Fs.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to list a data sets - * @export - */ -export default class FsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/list/fs/Fs.handler.js b/lib/zosfiles/list/fs/Fs.handler.js deleted file mode 100644 index 27707dba48..0000000000 --- a/lib/zosfiles/list/fs/Fs.handler.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to list a data sets - * @export - */ -class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - let response; - if (commandParameters.arguments.path) { - response = yield zos_files_for_zowe_sdk_1.List.fsWithPath(session, { - path: commandParameters.arguments.path, - fsname: null, - maxLength: commandParameters.arguments.maxLength, - responseTimeout: commandParameters.arguments.responseTimeout - }); - } - else { - response = yield zos_files_for_zowe_sdk_1.List.fs(session, { - path: null, - fsname: commandParameters.arguments.fsname, - maxLength: commandParameters.arguments.maxLength, - responseTimeout: commandParameters.arguments.responseTimeout - }); - } - commandParameters.response.data.setObj(response); - commandParameters.response.format.output({ - fields: ["name", "mountpoint"], - output: response.apiResponse.items, - format: "table" - }); - return response; - }); - } -} -exports.default = FsHandler; -//# sourceMappingURL=Fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/fs/Fs.handler.js.map b/lib/zosfiles/list/fs/Fs.handler.js.map deleted file mode 100644 index cacaa1beb7..0000000000 --- a/lib/zosfiles/list/fs/Fs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list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deleted file mode 100644 index 2433752c02..0000000000 --- a/lib/zosfiles/list/uss/UssFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * List all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/list/uss/UssFile.definition.js b/lib/zosfiles/list/uss/UssFile.definition.js deleted file mode 100644 index 3c14d958b9..0000000000 --- a/lib/zosfiles/list/uss/UssFile.definition.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.USSFileDefinition = void 0; -const List_options_1 = require("../List.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.LIST.ACTIONS.USS_FILE; -/** - * List all members command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.USSFileDefinition = { - name: "uss-files", - aliases: ["uf", "uss"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: __dirname + "/UssFile.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "path", - description: strings.POSITIONALS.PATH, - type: "string", - required: true - } - ], - options: [ - List_options_1.ListOptions.maxLength - ], - outputFormatOptions: true, - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"/u/ibmuser"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"/u/ibmuser" --rff name` - }, - { - description: strings.EXAMPLES.EX3, - options: `"/u/ibmuser" --rfh` - } - ] -}; -//# sourceMappingURL=UssFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.definition.js.map b/lib/zosfiles/list/uss/UssFile.definition.js.map deleted file mode 100644 index 0bc0603c57..0000000000 --- a/lib/zosfiles/list/uss/UssFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/uss/UssFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAI9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;AAEpG;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI;YACrC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,SAAS;KACxB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,cAAc;SAC1B;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;SAChC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.handler.d.ts b/lib/zosfiles/list/uss/UssFile.handler.d.ts deleted file mode 100644 index 7663b1b08d..0000000000 --- a/lib/zosfiles/list/uss/UssFile.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to list a unix directory - * @param {IHandlerParameters} params - Command handler parameters - */ -export default class USSFileHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/list/uss/UssFile.handler.js b/lib/zosfiles/list/uss/UssFile.handler.js deleted file mode 100644 index bf2cc95127..0000000000 --- a/lib/zosfiles/list/uss/UssFile.handler.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to list a unix directory - * @param {IHandlerParameters} params - Command handler parameters - */ -class USSFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield zos_files_for_zowe_sdk_1.List.fileList(session, commandParameters.arguments.path, { - maxLength: commandParameters.arguments.maxLength, - responseTimeout: commandParameters.arguments.responseTimeout - }); - // Populate the response object - commandParameters.response.data.setObj(response); - commandParameters.response.data.setMessage(`Returned list of UNIX files and directories in path "${commandParameters.arguments.path}"`); - // Format the output with the default fields - commandParameters.response.format.output({ - fields: ["name", "mode", "size", "uid", "user"], - output: response.apiResponse.items, - format: "table" - }); - return response; - }); - } -} -exports.default = USSFileHandler; -//# sourceMappingURL=UssFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/list/uss/UssFile.handler.js.map b/lib/zosfiles/list/uss/UssFile.handler.js.map deleted file mode 100644 index be7734b5cf..0000000000 --- a/lib/zosfiles/list/uss/UssFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UssFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/list/uss/UssFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAuE;AACvE,qEAAiE;AACjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAE3F,MAAM,QAAQ,GAAG,MAAM,6BAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAAE;gBAC5E,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS;gBAChD,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEH,+BAA+B;YAC/B,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACjD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,wDAAwD,iBAAiB,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,CAAC;YACxI,4CAA4C;YAC5C,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;gBAC/C,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,KAAK;gBAClC,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAnBD,iCAmBC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/Mount.definition.d.ts b/lib/zosfiles/mount/Mount.definition.d.ts deleted file mode 100644 index 1a540d1b30..0000000000 --- a/lib/zosfiles/mount/Mount.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const MountDefinition: ICommandDefinition; diff --git a/lib/zosfiles/mount/Mount.definition.js b/lib/zosfiles/mount/Mount.definition.js deleted file mode 100644 index 5038ca61df..0000000000 --- a/lib/zosfiles/mount/Mount.definition.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MountDefinition = void 0; -const fs_definition_1 = require("./fs/fs.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.MOUNT; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.MountDefinition = { - name: "mount", - aliases: [], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - fs_definition_1.FsDefinition - ] -}; -//# sourceMappingURL=Mount.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/Mount.definition.js.map b/lib/zosfiles/mount/Mount.definition.js.map deleted file mode 100644 index 65757ec7a2..0000000000 --- a/lib/zosfiles/mount/Mount.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Mount.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/mount/Mount.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC;AAEjF;;;GAGG;AACU,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.definition.d.ts b/lib/zosfiles/mount/fs/fs.definition.d.ts deleted file mode 100644 index 1cf2d0a853..0000000000 --- a/lib/zosfiles/mount/fs/fs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/mount/fs/fs.definition.js b/lib/zosfiles/mount/fs/fs.definition.js deleted file mode 100644 index 01add9de37..0000000000 --- a/lib/zosfiles/mount/fs/fs.definition.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FsDefinition = void 0; -const fs_options_1 = require("./fs.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const fsStrings = fileStrings.MOUNT.ACTIONS.FS; -exports.FsDefinition = { - name: "file-system", - aliases: ["fs"], - summary: fsStrings.SUMMARY, - description: fsStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/fs.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fileSystemName", - type: "string", - description: fsStrings.POSITIONALS.FILESYSTEMNAME, - required: true - }, - { - name: "mountPoint", - type: "string", - description: fsStrings.POSITIONALS.MOUNTPOINT, - required: true - } - ], - options: [ - fs_options_1.FsMountOptions.fsType, - fs_options_1.FsMountOptions.mode - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: fsStrings.EXAMPLES.EX1, - options: "MY.ZFS /a/ibmuser/mountdir" - }, - { - description: fsStrings.EXAMPLES.EX2, - options: "MY.HFS /a/ibmuser/mountdir --ft HFS -m rdwr" - } - ] -}; -//# sourceMappingURL=fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.definition.js.map b/lib/zosfiles/mount/fs/fs.definition.js.map deleted file mode 100644 index 63c263d845..0000000000 --- a/lib/zosfiles/mount/fs/fs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6CAA8C;AAI9C,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;AAElC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,cAAc;YACjD,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,UAAU;YAC7C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,2BAAc,CAAC,MAAM;QACrB,2BAAc,CAAC,IAAI;KACtB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,4BAA4B;SACxC;QACD;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,6CAA6C;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.handler.d.ts b/lib/zosfiles/mount/fs/fs.handler.d.ts deleted file mode 100644 index 3333629c18..0000000000 --- a/lib/zosfiles/mount/fs/fs.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to mount a Unix file system - */ -export default class FsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/mount/fs/fs.handler.js b/lib/zosfiles/mount/fs/fs.handler.js deleted file mode 100644 index 1214def409..0000000000 --- a/lib/zosfiles/mount/fs/fs.handler.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to mount a Unix file system - */ -class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - // collect the options from our command line arguments into an object - const mountFsOptions = { - "fs-type": commandParameters.arguments.fsType, - "mode": commandParameters.arguments.mode, - responseTimeout: commandParameters.arguments.responseTimeout - }; - return zos_files_for_zowe_sdk_1.Mount.fs(session, commandParameters.arguments.fileSystemName, commandParameters.arguments.mountPoint, mountFsOptions); - }); - } -} -exports.default = FsHandler; -//# sourceMappingURL=fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.handler.js.map b/lib/zosfiles/mount/fs/fs.handler.js.map deleted file mode 100644 index adce3959c0..0000000000 --- a/lib/zosfiles/mount/fs/fs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAAyF;AACzF,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,qEAAqE;YACrE,MAAM,cAAc,GAA6B;gBAC7C,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC7C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC;YAEF,OAAO,8BAAK,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjI,CAAC;KAAA;CACJ;AAXD,4BAWC"} \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.options.d.ts b/lib/zosfiles/mount/fs/fs.options.d.ts deleted file mode 100644 index fd024053a4..0000000000 --- a/lib/zosfiles/mount/fs/fs.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all extra options to be used by the Mount API - */ -export declare const FsMountOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/mount/fs/fs.options.js b/lib/zosfiles/mount/fs/fs.options.js deleted file mode 100644 index ae0fcf9d9a..0000000000 --- a/lib/zosfiles/mount/fs/fs.options.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FsMountOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.MOUNT.ACTIONS.FS.OPTIONS; -/** - * Object containing all extra options to be used by the Mount API - */ -exports.FsMountOptions = { - /** - * The file system type to mount - * @type {ICommandOptionDefinition} - */ - fsType: { - name: "fs-type", - aliases: ["ft"], - description: strings.FSTYPE, - type: "string", - defaultValue: "ZFS" - }, - /** - * The read/write mode for the file system - * @type {ICommandOptionDefinition} - */ - mode: { - name: "mode", - aliases: ["m"], - description: strings.MODE, - type: "string", - defaultValue: "rdonly", - allowableValues: { - values: ["rdonly", "rdwr"], - caseSensitive: true - } - } -}; -//# sourceMappingURL=fs.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/mount/fs/fs.options.js.map b/lib/zosfiles/mount/fs/fs.options.js.map deleted file mode 100644 index 646ef3f35a..0000000000 --- a/lib/zosfiles/mount/fs/fs.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.options.js","sourceRoot":"","sources":["../../../../src/zosfiles/mount/fs/fs.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;AAEvG;;GAEG;AACU,QAAA,cAAc,GAAgD;IACvE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,KAAK;KACtB;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,QAAQ;QACtB,eAAe,EAAE;YACb,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;YAC1B,aAAa,EAAE,IAAI;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/Rename.definition.d.ts b/lib/zosfiles/rename/Rename.definition.d.ts deleted file mode 100644 index a8bb499f9f..0000000000 --- a/lib/zosfiles/rename/Rename.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Rename group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const RenameDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/Rename.definition.js b/lib/zosfiles/rename/Rename.definition.js deleted file mode 100644 index 3f3bf579a7..0000000000 --- a/lib/zosfiles/rename/Rename.definition.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RenameDefinition = void 0; -const Ds_definition_1 = require("./ds/Ds.definition"); -const Dsm_definition_1 = require("./dsm/Dsm.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.RENAME; -/** - * Rename group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.RenameDefinition = { - name: "rename", - aliases: [], - type: "group", - description: strings.DESCRIPTION, - children: [ - Ds_definition_1.DsDefinition, - Dsm_definition_1.DsmDefinition - ] -}; -//# sourceMappingURL=Rename.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/Rename.definition.js.map b/lib/zosfiles/rename/Rename.definition.js.map deleted file mode 100644 index 94bce0c210..0000000000 --- a/lib/zosfiles/rename/Rename.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Rename.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/rename/Rename.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAClD,yDAAqD;AAIrD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;QACZ,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.definition.d.ts b/lib/zosfiles/rename/ds/Ds.definition.d.ts deleted file mode 100644 index bdc580965f..0000000000 --- a/lib/zosfiles/rename/ds/Ds.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/ds/Ds.definition.js b/lib/zosfiles/rename/ds/Ds.definition.js deleted file mode 100644 index 688f61ff84..0000000000 --- a/lib/zosfiles/rename/ds/Ds.definition.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default; -const dsStrings = strings.RENAME.ACTIONS.DATA_SET; -exports.DsDefinition = { - name: "data-set", - aliases: ["ds"], - description: dsStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/Ds.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "beforeDataSetName", - type: "string", - description: dsStrings.POSITIONALS.BEFOREDSNAME, - required: true - }, - { - name: "afterDataSetName", - type: "string", - description: dsStrings.POSITIONALS.AFTERDSNAME, - required: true - } - ], - examples: [ - { - description: dsStrings.EXAMPLES.EX1, - options: '"USER.BEFORE.SET" "USER.AFTER.SET"' - } - ] -}; -//# sourceMappingURL=Ds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.definition.js.map b/lib/zosfiles/rename/ds/Ds.definition.js.map deleted file mode 100644 index f64ea82587..0000000000 --- a/lib/zosfiles/rename/ds/Ds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/ds/Ds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;AAErC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,YAAY;YAC/C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,WAAW;YAC9C,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,oCAAoC;SAChD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.handler.d.ts b/lib/zosfiles/rename/ds/Ds.handler.d.ts deleted file mode 100644 index a72c6f2336..0000000000 --- a/lib/zosfiles/rename/ds/Ds.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Handler to rename a data set - */ -export default class DsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/rename/ds/Ds.handler.js b/lib/zosfiles/rename/ds/Ds.handler.js deleted file mode 100644 index a129a8dc53..0000000000 --- a/lib/zosfiles/rename/ds/Ds.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -/** - * Handler to rename a data set - */ -class DsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const { beforeDataSetName, afterDataSetName } = commandParameters.arguments; - return zos_files_for_zowe_sdk_1.Rename.dataSet(session, beforeDataSetName, afterDataSetName); - }); - } -} -exports.default = DsHandler; -//# sourceMappingURL=Ds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/ds/Ds.handler.js.map b/lib/zosfiles/rename/ds/Ds.handler.js.map deleted file mode 100644 index 6c389f7d1d..0000000000 --- a/lib/zosfiles/rename/ds/Ds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/ds/Ds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAAyE;AAEzE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YAC5E,OAAO,+BAAM,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAC;QACxE,CAAC;KAAA;CACJ;AALD,4BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.d.ts b/lib/zosfiles/rename/dsm/Dsm.definition.d.ts deleted file mode 100644 index 55ef403037..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DsmDefinition: ICommandDefinition; diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.js b/lib/zosfiles/rename/dsm/Dsm.definition.js deleted file mode 100644 index e059f8ab6e..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.definition.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DsmDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default; -const dsmStrings = strings.RENAME.ACTIONS.DATA_SET_MEMBER; -exports.DsmDefinition = { - name: "data-set-member", - aliases: ["dsm"], - description: dsmStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/Dsm.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - type: "string", - description: dsmStrings.POSITIONALS.DSNAME, - required: true - }, - { - name: "beforeMemberName", - type: "string", - description: dsmStrings.POSITIONALS.BEFOREMEMBERNAME, - required: true - }, - { - name: "afterMemberName", - type: "string", - description: dsmStrings.POSITIONALS.AFTERMEMBERNAME, - required: true - } - ], - examples: [ - { - description: dsmStrings.EXAMPLES.EX1, - options: '"USER.DATA.SET" "MEM1" "MEM2' - } - ] -}; -//# sourceMappingURL=Dsm.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.definition.js.map b/lib/zosfiles/rename/dsm/Dsm.definition.js.map deleted file mode 100644 index 299644585a..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dsm.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/dsm/Dsm.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAC9E,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;AAE7C,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,MAAM;YAC1C,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,gBAAgB;YACpD,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,eAAe;YACnD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG;YACpC,OAAO,EAAE,8BAA8B;SAC1C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.d.ts b/lib/zosfiles/rename/dsm/Dsm.handler.d.ts deleted file mode 100644 index 31bc5683db..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -/** - * Handler to rename a data set member - */ -export default class DsmHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.js b/lib/zosfiles/rename/dsm/Dsm.handler.js deleted file mode 100644 index da3d39eeea..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -/** - * Handler to rename a data set member - */ -class DsmHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const { dataSetName, beforeMemberName, afterMemberName } = commandParameters.arguments; - return zos_files_for_zowe_sdk_1.Rename.dataSetMember(session, dataSetName, beforeMemberName, afterMemberName); - }); - } -} -exports.default = DsmHandler; -//# sourceMappingURL=Dsm.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/rename/dsm/Dsm.handler.js.map b/lib/zosfiles/rename/dsm/Dsm.handler.js.map deleted file mode 100644 index e9f5c3e43f..0000000000 --- a/lib/zosfiles/rename/dsm/Dsm.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dsm.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/rename/dsm/Dsm.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAiE;AACjE,yEAAyE;AAEzE;;GAEG;AACH,MAAqB,UAAW,SAAQ,0CAAmB;IAC1C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC;YACvF,OAAO,+BAAM,CAAC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,CAAC;KAAA;CACJ;AALD,6BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/Unmount.definition.d.ts b/lib/zosfiles/unmount/Unmount.definition.d.ts deleted file mode 100644 index dc91b9f453..0000000000 --- a/lib/zosfiles/unmount/Unmount.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const UnmountDefinition: ICommandDefinition; diff --git a/lib/zosfiles/unmount/Unmount.definition.js b/lib/zosfiles/unmount/Unmount.definition.js deleted file mode 100644 index 74da98c43f..0000000000 --- a/lib/zosfiles/unmount/Unmount.definition.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnmountDefinition = void 0; -const fs_definition_1 = require("./fs/fs.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.UNMOUNT; -/** - * Download group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.UnmountDefinition = { - name: "unmount", - aliases: ["umount"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - fs_definition_1.FsDefinition - ] -}; -//# sourceMappingURL=Unmount.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/Unmount.definition.js.map b/lib/zosfiles/unmount/Unmount.definition.js.map deleted file mode 100644 index ae3d238082..0000000000 --- a/lib/zosfiles/unmount/Unmount.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Unmount.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/unmount/Unmount.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,OAAO,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,4BAAY;KACf;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.definition.d.ts b/lib/zosfiles/unmount/fs/fs.definition.d.ts deleted file mode 100644 index 1cf2d0a853..0000000000 --- a/lib/zosfiles/unmount/fs/fs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const FsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/unmount/fs/fs.definition.js b/lib/zosfiles/unmount/fs/fs.definition.js deleted file mode 100644 index 52b6627a69..0000000000 --- a/lib/zosfiles/unmount/fs/fs.definition.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FsDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const fileStrings = require("../../-strings-/en").default; -const fsStrings = fileStrings.UNMOUNT.ACTIONS.FS; -exports.FsDefinition = { - name: "file-system", - aliases: ["fs"], - summary: fsStrings.SUMMARY, - description: fsStrings.DESCRIPTION, - type: "command", - handler: __dirname + "/fs.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "fileSystemName", - type: "string", - description: fsStrings.POSITIONALS.FILESYSTEMNAME, - required: true - } - ], - examples: [ - { - description: fsStrings.EXAMPLES.EX1, - options: "MY.FS" - } - ] -}; -//# sourceMappingURL=fs.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.definition.js.map b/lib/zosfiles/unmount/fs/fs.definition.js.map deleted file mode 100644 index 7114688aef..0000000000 --- a/lib/zosfiles/unmount/fs/fs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/unmount/fs/fs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,WAAW,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC;AAClF,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;AAEpC,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,aAAa;IAClC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,cAAc;YACjD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnC,OAAO,EAAE,OAAO;SACnB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.handler.d.ts b/lib/zosfiles/unmount/fs/fs.handler.d.ts deleted file mode 100644 index 6672475223..0000000000 --- a/lib/zosfiles/unmount/fs/fs.handler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to unmount a Unix file system - */ -export default class FsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/unmount/fs/fs.handler.js b/lib/zosfiles/unmount/fs/fs.handler.js deleted file mode 100644 index f7ad36a617..0000000000 --- a/lib/zosfiles/unmount/fs/fs.handler.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to unmount a Unix file system - */ -class FsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const zosFilesOptions = { responseTimeout: commandParameters.arguments.responseTimeout }; - return zos_files_for_zowe_sdk_1.Unmount.fs(session, commandParameters.arguments.fileSystemName, zosFilesOptions); - }); - } -} -exports.default = FsHandler; -//# sourceMappingURL=fs.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/unmount/fs/fs.handler.js.map b/lib/zosfiles/unmount/fs/fs.handler.js.map deleted file mode 100644 index 6dfa5ca7ce..0000000000 --- a/lib/zosfiles/unmount/fs/fs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/unmount/fs/fs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,yEAA4F;AAC5F,qEAAiE;AAEjE;;GAEG;AACH,MAAqB,SAAU,SAAQ,0CAAmB;IACzC,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,eAAe,GAAqB,EAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe,EAAC,CAAC;YACzG,OAAO,gCAAO,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC5F,CAAC;KAAA;CACJ;AALD,4BAKC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.definition.d.ts b/lib/zosfiles/upload/Upload.definition.d.ts deleted file mode 100644 index bc99d967c6..0000000000 --- a/lib/zosfiles/upload/Upload.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const UploadDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/Upload.definition.js b/lib/zosfiles/upload/Upload.definition.js deleted file mode 100644 index bd5f339060..0000000000 --- a/lib/zosfiles/upload/Upload.definition.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UploadDefinition = void 0; -const FileToDataSet_definition_1 = require("./ftds/FileToDataSet.definition"); -const StdinToDataSet_definition_1 = require("./stds/StdinToDataSet.definition"); -const DirToPds_definition_1 = require("./dtp/DirToPds.definition"); -const FileToUSS_definition_1 = require("./ftu/FileToUSS.definition"); -const DirToUSSDir_definition_1 = require("./dtu/DirToUSSDir.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.UPLOAD; -/** - * Upload group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.UploadDefinition = { - name: "upload", - aliases: ["ul"], - type: "group", - description: strings.DESCRIPTION, - children: [ - FileToDataSet_definition_1.FileToDataSetDefinition, - StdinToDataSet_definition_1.StdinToDataSetDefinition, - DirToPds_definition_1.DirToPdsDefinition, - FileToUSS_definition_1.FileToUSSDefinition, - DirToUSSDir_definition_1.DirToUSSDirDefinition - ] -}; -//# sourceMappingURL=Upload.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.definition.js.map b/lib/zosfiles/upload/Upload.definition.js.map deleted file mode 100644 index bfd806623b..0000000000 --- a/lib/zosfiles/upload/Upload.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Upload.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/upload/Upload.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,8EAA0E;AAC1E,gFAA4E;AAC5E,mEAA+D;AAE/D,qEAAiE;AACjE,yEAAqE;AAErE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAElF;;;GAGG;AACU,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,kDAAuB;QACvB,oDAAwB;QACxB,wCAAkB;QAClB,0CAAmB;QACnB,8CAAqB;KACxB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.options.d.ts b/lib/zosfiles/upload/Upload.options.d.ts deleted file mode 100644 index 5a3a02bee1..0000000000 --- a/lib/zosfiles/upload/Upload.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the Upload API - */ -export declare const UploadOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/upload/Upload.options.js b/lib/zosfiles/upload/Upload.options.js deleted file mode 100644 index b48a22a9f9..0000000000 --- a/lib/zosfiles/upload/Upload.options.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UploadOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.UPLOAD.OPTIONS; -const maxConcurrentRequestsMaxValue = 99999; -/** - * Object containing all options to be used by the Upload API - */ -exports.UploadOptions = { - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volume: { - name: "volume-serial", - aliases: ["vs"], - description: strings.VOLUME, - type: "string" - }, - /** - * The binary option - * @type {ICommandOptionDefinition} - */ - binary: { - name: "binary", - aliases: ["b"], - description: strings.BINARY, - type: "boolean" - }, - /** - * The record option - * @type {ICommandOptionDefinition} - */ - record: { - name: "record", - aliases: ["r"], - description: strings.RECORD, - type: "boolean", - conflictsWith: ["binary"] - }, - /** - * The encoding option - * @type {ICommandOptionDefinition} - */ - encoding: { - name: "encoding", - aliases: ["ec"], - description: strings.ENCODING, - type: "string" - }, - /** - * The migrated recall option - * @type {ICommandOptionDefinition} - */ - recall: { - name: "migrated-recall", - aliases: ["mr"], - description: strings.RECALL, - type: "string", - defaultValue: "nowait" - }, - /** - * The recursive option - * @type {ICommandOptionDefinition} - */ - recursive: { - name: "recursive", - aliases: ["r"], - description: strings.RECURSIVE, - type: "boolean" - }, - /** - * The binary-files option - * @type {ICommandOptionDefinition} - */ - binaryFiles: { - name: "binary-files", - aliases: ["bf"], - description: strings.BINARY_FILES, - type: "string", - conflictsWith: ["ascii-files"] - }, - /** - * The ascii-files option - * @type {ICommandOptionDefinition} - */ - asciiFiles: { - name: "ascii-files", - aliases: ["af"], - description: strings.ASCII_FILES, - type: "string", - conflictsWith: ["binary-files"] - }, - /** - * The attributes option - * @type {ICommandOptionDefinition} - */ - attributes: { - name: "attributes", - aliases: ["attrs"], - description: strings.ATTRIBUTES, - type: "string", - conflictsWith: ["ascii-files, binary-files"] - }, - /** - * The maximum concurrent requests for upload - * @type {ICommandOptionDefinition} - */ - maxConcurrentRequests: { - name: "max-concurrent-requests", - aliases: ["mcr"], - description: strings.MAX_CONCURRENT_REQUESTS, - type: "number", - defaultValue: 1, - numericValueRange: [0, maxConcurrentRequestsMaxValue] - }, - /** - * The include hidden option for upload - */ - includeHidden: { - name: "include-hidden", - aliases: ["ih"], - description: strings.INCLUDE_HIDDEN, - type: "boolean" - } -}; -//# sourceMappingURL=Upload.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/Upload.options.js.map b/lib/zosfiles/upload/Upload.options.js.map deleted file mode 100644 index 1f6e61a480..0000000000 --- a/lib/zosfiles/upload/Upload.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Upload.options.js","sourceRoot":"","sources":["../../../src/zosfiles/upload/Upload.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAE1F,MAAM,6BAA6B,GAAG,KAAK,CAAC;AAE5C;;GAEG;AACU,QAAA,aAAa,GAA8C;IACpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,QAAQ;KACzB;IAED;;;OAGG;IACH,SAAS,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,SAAS;QAC9B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,WAAW,EAAE;QACT,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,YAAY;QACjC,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,aAAa,CAAC;KACjC;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,cAAc,CAAC;KAClC;IAED;;;OAGG;IACH,UAAU,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC,UAAU;QAC/B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,2BAA2B,CAAC;KAC/C;IAED;;;OAGG;IACH,qBAAqB,EAAE;QACnB,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC,uBAAuB;QAC5C,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,CAAC;QACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,6BAA6B,CAAC;KACxD;IAED;;OAEG;IACH,aAAa,EAAE;QACX,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,cAAc;QACnC,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts b/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts deleted file mode 100644 index 7b7112ec12..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload dir-to-pds command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DirToPdsDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.js b/lib/zosfiles/upload/dtp/DirToPds.definition.js deleted file mode 100644 index 19482ca4b1..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.definition.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DirToPdsDefinition = void 0; -const path = require("path"); -const Upload_options_1 = require("../Upload.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.DIR_TO_PDS; -/** - * Upload dir-to-pds command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DirToPdsDefinition = { - name: "dir-to-pds", - aliases: ["dtp"], - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "/DirToPds.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "inputdir", - description: strings.POSITIONALS.INPUTDIR, - type: "string", - required: true - }, - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - Upload_options_1.UploadOptions.volume, - Upload_options_1.UploadOptions.binary, - Upload_options_1.UploadOptions.record, - Upload_options_1.UploadOptions.recall, - Upload_options_1.UploadOptions.encoding - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"src" "ibmuser.src"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"src" "ibmuser.src" --mr wait` - } - ] -}; -//# sourceMappingURL=DirToPds.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.definition.js.map b/lib/zosfiles/upload/dtp/DirToPds.definition.js.map deleted file mode 100644 index 2815afdc49..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DirToPds.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtp/DirToPds.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;AAExG;;;GAGG;AACU,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qBAAqB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+BAA+B;SAC3C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts b/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts deleted file mode 100644 index f6edf66021..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to upload content of a directory to a PDS - * @export - */ -export default class DirToPdsHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.js b/lib/zosfiles/upload/dtp/DirToPds.handler.js deleted file mode 100644 index 7492ce7271..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.handler.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to upload content of a directory to a PDS - * @export - */ -class DirToPdsHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const status = { - statusMessage: "Uploading directory to PDS", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task: status }); - const response = yield zos_files_for_zowe_sdk_1.Upload.dirToPds(session, commandParameters.arguments.inputdir, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - encoding: commandParameters.arguments.encoding, - task: status, - responseTimeout: commandParameters.arguments.responseTimeout - }); - if (response.apiResponse) { - let skipCount = 0; - let successCount = 0; - let errorCount = 0; - response.apiResponse.forEach((element) => { - if (element.success === true) { - const formatMessage = imperative_1.TextUtils.prettyJson(element); - commandParameters.response.console.log(formatMessage); - successCount++; - } - else if (element.success === false) { - const formatMessage = imperative_1.TextUtils.prettyJson(element); - commandParameters.response.console.error(imperative_1.TextUtils.chalk.red(formatMessage)); - errorCount++; - } - else { - skipCount++; - } - }); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson({ - file_to_upload: response.apiResponse.length, - success: successCount, - error: errorCount, - skipped: skipCount - })); - } - return response; - }); - } -} -exports.default = DirToPdsHandler; -//# sourceMappingURL=DirToPds.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtp/DirToPds.handler.js.map b/lib/zosfiles/upload/dtp/DirToPds.handler.js.map deleted file mode 100644 index 1198b66078..0000000000 --- a/lib/zosfiles/upload/dtp/DirToPds.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DirToPds.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtp/DirToPds.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAwF;AACxF,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,eAAgB,SAAQ,0CAAmB;IAC/C,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,MAAM,GAAoB;gBAC5B,aAAa,EAAE,4BAA4B;gBAC3C,eAAe,EAAE,CAAC;gBAClB,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC,CAAC;YAC7D,MAAM,QAAQ,GAAG,MAAM,+BAAM,CAAC,QAAQ,CAClC,OAAO,EACP,iBAAiB,CAAC,SAAS,CAAC,QAAQ,EACpC,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC;gBACI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI,EAAE,MAAM;gBACZ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CACJ,CAAC;YAEF,IAAI,QAAQ,CAAC,WAAW,EAAE;gBACtB,IAAI,SAAS,GAAW,CAAC,CAAC;gBAC1B,IAAI,YAAY,GAAW,CAAC,CAAC;gBAC7B,IAAI,UAAU,GAAW,CAAC,CAAC;gBAC3B,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAsB,EAAE,EAAE;oBACpD,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE;wBAC1B,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBACpD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBACtD,YAAY,EAAE,CAAC;qBAClB;yBAAM,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE;wBAElC,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBACpD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;wBAC7E,UAAU,EAAE,CAAC;qBAChB;yBAAM;wBACH,SAAS,EAAE,CAAC;qBACf;gBACL,CAAC,CAAC,CAAC;gBAEH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC;oBACxD,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM;oBAC3C,OAAO,EAAE,YAAY;oBACrB,KAAK,EAAE,UAAU;oBACjB,OAAO,EAAE,SAAS;iBACrB,CAAC,CAAC,CAAC;aACP;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AArDD,kCAqDC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts deleted file mode 100644 index 9c46501e9c..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload dir-to-uss command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DirToUSSDirDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js deleted file mode 100644 index 848d83e9c3..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DirToUSSDirDefinition = void 0; -const path = require("path"); -const Upload_options_1 = require("../Upload.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.DIR_TO_USS; -/** - * Upload dir-to-uss command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DirToUSSDirDefinition = { - name: "dir-to-uss", - aliases: ["dtu"], - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "/DirToUSSDir.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "inputDir", - description: strings.POSITIONALS.INPUTDIR, - type: "string", - required: true - }, - { - name: "USSDir", - description: strings.POSITIONALS.USSDIR, - type: "string", - required: true - } - ], - options: [ - Upload_options_1.UploadOptions.binary, - Upload_options_1.UploadOptions.recursive, - Upload_options_1.UploadOptions.binaryFiles, - Upload_options_1.UploadOptions.asciiFiles, - Upload_options_1.UploadOptions.attributes, - Upload_options_1.UploadOptions.maxConcurrentRequests, - Upload_options_1.UploadOptions.includeHidden - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"local_dir" "/a/ibmuser/my_dir"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"local_dir" "/a/ibmuser/my_dir" --recursive` - }, - { - description: strings.EXAMPLES.EX3, - options: `"local_dir" "/a/ibmuser/my_dir" --binary-files "myFile1.exe,myFile2.exe,myFile3.exe"` - }, - { - description: strings.EXAMPLES.EX4, - options: `"local_dir" "/a/ibmuser/my_dir" --binary --ascii-files "myFile1.txt,myFile2.txt,myFile3.txt"` - }, - { - description: strings.EXAMPLES.EX5, - options: `"local_dir" "/a/ibmuser/my_dir" --recursive --attributes my_global_attributes` - } - ] -}; -//# sourceMappingURL=DirToUSSDir.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map b/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map deleted file mode 100644 index ab5f4567da..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DirToUSSDir.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtu/DirToUSSDir.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;AAExG;;;GAGG;AACU,QAAA,qBAAqB,GAAuB;IACrD,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC;IACrD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ;YACzC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,MAAM;YACvC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,SAAS;QACvB,8BAAa,CAAC,WAAW;QACzB,8BAAa,CAAC,UAAU;QACxB,8BAAa,CAAC,UAAU;QACxB,8BAAa,CAAC,qBAAqB;QACnC,8BAAa,CAAC,aAAa;KAC9B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,iCAAiC;SAC7C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,6CAA6C;SACzD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,sFAAsF;SAClG;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,8FAA8F;SAC1G;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+EAA+E;SAC3F;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts deleted file mode 100644 index e2abd22215..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to upload content from a local directory to a USS directory - * @export - */ -export default class DirToUSSDirHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; - private buildFilesMap; -} diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js deleted file mode 100644 index f323bcab81..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -const path = require("path"); -/** - * Handler to upload content from a local directory to a USS directory - * @export - */ -class DirToUSSDirHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const status = { - statusMessage: "Uploading all files", - percentComplete: 0, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - let inputDir; - // resolving to full path if local path passed is not absolute - if (path.isAbsolute(commandParameters.arguments.inputDir)) { - inputDir = commandParameters.arguments.inputDir; - } - else { - inputDir = path.resolve(commandParameters.arguments.inputDir); - } - const uploadOptions = { - binary: commandParameters.arguments.binary, - maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests, - task: status, - responseTimeout: commandParameters.arguments.responseTimeout, - includeHidden: commandParameters.arguments.includeHidden - }; - const attributes = zos_files_for_zowe_sdk_1.ZosFilesAttributes.loadFromFile(commandParameters.arguments.attributes, inputDir); - if (attributes != null) { - uploadOptions.attributes = attributes; - } - else { - uploadOptions.filesMap = this.buildFilesMap(commandParameters); - } - const uploadApi = commandParameters.arguments.recursive ? zos_files_for_zowe_sdk_1.Upload.dirToUSSDirRecursive : zos_files_for_zowe_sdk_1.Upload.dirToUSSDir; - const response = yield uploadApi.bind(zos_files_for_zowe_sdk_1.Upload)(session, inputDir, commandParameters.arguments.USSDir, uploadOptions); - const formatMessage = imperative_1.TextUtils.prettyJson(response.apiResponse); - commandParameters.response.console.log(formatMessage); - return response; - }); - } - buildFilesMap(commandParameters) { - let filesMap = null; - // checking if binary-files or ascii-files are used, and update filesMap argument - if (commandParameters.arguments.binaryFiles) { - filesMap = { - binary: true, - fileNames: commandParameters.arguments.binaryFiles.split(",").map((fileName) => fileName.trim()) - }; - } - if (commandParameters.arguments.asciiFiles) { - filesMap = { - binary: false, - fileNames: commandParameters.arguments.asciiFiles.split(",").map((fileName) => fileName.trim()) - }; - } - return filesMap; - } -} -exports.default = DirToUSSDirHandler; -//# sourceMappingURL=DirToUSSDir.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map b/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map deleted file mode 100644 index 1c10a80f43..0000000000 --- a/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DirToUSSDir.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/dtu/DirToUSSDir.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyH;AACzH,qEAAiE;AACjE,6BAA6B;AAE7B;;;GAGG;AAEH,MAAqB,kBAAmB,SAAQ,0CAAmB;IAClD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,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C,MAAM,EAAE,aAAa,CAAC,CAAC;YAEpH,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YACtD,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;IAEO,aAAa,CAAC,iBAAqC;QACvD,IAAI,QAAQ,GAAe,IAAI,CAAC;QAEhC,iFAAiF;QACjF,IAAI,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;YACzC,QAAQ,GAAG;gBACP,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aAC3G,CAAC;SACL;QACD,IAAI,iBAAiB,CAAC,SAAS,CAAC,UAAU,EAAE;YACxC,QAAQ,GAAG;gBACP,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aAC1G,CAAC;SACL;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AA5DD,qCA4DC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts b/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts deleted file mode 100644 index 3c09e1fac6..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload file-to-data-set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const FileToDataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js deleted file mode 100644 index 85dcffa788..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileToDataSetDefinition = void 0; -const path = require("path"); -const Upload_options_1 = require("../Upload.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.FILE_TO_DATA_SET; -/** - * Upload file-to-data-set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.FileToDataSetDefinition = { - name: "file-to-data-set", - aliases: ["ftds"], - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "/FileToDataSet.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "inputfile", - description: strings.POSITIONALS.INPUTFILE, - type: "string", - required: true - }, - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - Upload_options_1.UploadOptions.volume, - Upload_options_1.UploadOptions.binary, - Upload_options_1.UploadOptions.record, - Upload_options_1.UploadOptions.recall, - Upload_options_1.UploadOptions.encoding - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"file.txt" "ibmuser.ps"` - }, - { - description: strings.EXAMPLES.EX2, - options: `"file.txt" "ibmuser.pds(mem)"` - }, - { - description: strings.EXAMPLES.EX3, - options: `"file.txt" "ibmuser.ps" --mr wait` - } - ] -}; -//# sourceMappingURL=FileToDataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map b/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map deleted file mode 100644 index f5995f62ac..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileToDataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftds/FileToDataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC;AAE9G;;;GAGG;AACU,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC;IACvD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,yBAAyB;SACrC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,+BAA+B;SAC3C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,mCAAmC;SAC/C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts b/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts deleted file mode 100644 index c3619d4f06..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to upload content from a file to a data set - * @export - */ -export default class FileToDataSetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js deleted file mode 100644 index 12f28dfbbf..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to upload content from a file to a data set - * @export - */ -class FileToDataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Uploading to data set", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - const response = yield zos_files_for_zowe_sdk_1.Upload.fileToDataset(session, commandParameters.arguments.inputfile, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - encoding: commandParameters.arguments.encoding, - task, - responseTimeout: commandParameters.arguments.responseTimeout - }); - if (response.apiResponse) { - let skipCount = 0; - let successCount = 0; - let errorCount = 0; - response.apiResponse.forEach((element) => { - if (element.success === true) { - const formatMessage = imperative_1.TextUtils.prettyJson(element); - commandParameters.response.console.log(formatMessage); - successCount++; - } - else if (element.success === false) { - const formatMessage = imperative_1.TextUtils.prettyJson(element); - commandParameters.response.console.error(imperative_1.TextUtils.chalk.red(formatMessage)); - errorCount++; - } - else { - skipCount++; - } - }); - commandParameters.response.console.log(imperative_1.TextUtils.prettyJson({ - file_to_upload: response.apiResponse.length, - success: successCount, - error: errorCount, - skipped: skipCount - })); - } - return response; - }); - } -} -exports.default = FileToDataSetHandler; -//# sourceMappingURL=FileToDataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map b/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map deleted file mode 100644 index 4ad82f3c47..0000000000 --- a/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileToDataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftds/FileToDataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAwF;AACxF,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,oBAAqB,SAAQ,0CAAmB;IACpD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,uBAAuB;gBACtC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YACrD,MAAM,QAAQ,GAAG,MAAM,+BAAM,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,EACtF,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACvC;gBACI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEP,IAAI,QAAQ,CAAC,WAAW,EAAE;gBACtB,IAAI,SAAS,GAAW,CAAC,CAAC;gBAC1B,IAAI,YAAY,GAAW,CAAC,CAAC;gBAC7B,IAAI,UAAU,GAAW,CAAC,CAAC;gBAC3B,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAsB,EAAE,EAAE;oBACpD,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE;wBAC1B,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBACpD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBACtD,YAAY,EAAE,CAAC;qBAClB;yBAAM,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE;wBAElC,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;wBACpD,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;wBAC7E,UAAU,EAAE,CAAC;qBAChB;yBAAM;wBACH,SAAS,EAAE,CAAC;qBACf;gBACL,CAAC,CAAC,CAAC;gBAEH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAS,CAAC,UAAU,CAAC;oBACxD,cAAc,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM;oBAC3C,OAAO,EAAE,YAAY;oBACrB,KAAK,EAAE,UAAU;oBACjB,OAAO,EAAE,SAAS;iBACrB,CAAC,CAAC,CAAC;aACP;YAED,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAlDD,uCAkDC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts b/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts deleted file mode 100644 index 3b1b410e61..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload file-to-uss command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const FileToUSSDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.js b/lib/zosfiles/upload/ftu/FileToUSS.definition.js deleted file mode 100644 index 87d936ecd7..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.definition.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileToUSSDefinition = void 0; -const path = require("path"); -const Upload_options_1 = require("../Upload.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.FILE_TO_USS; -/** - * Upload file-to-uss command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.FileToUSSDefinition = { - name: "file-to-uss", - aliases: ["ftu"], - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "/FileToUSS.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "inputfile", - description: strings.POSITIONALS.INPUTFILE, - type: "string", - required: true - }, - { - name: "USSFileName", - description: strings.POSITIONALS.USSFILENAME, - type: "string", - required: true - } - ], - options: [ - Upload_options_1.UploadOptions.binary, - Upload_options_1.UploadOptions.encoding - ], - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"file.txt" "/a/ibmuser/my_text.txt"` - } - ] -}; -//# sourceMappingURL=FileToUSS.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map b/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map deleted file mode 100644 index 62001bca29..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileToUSS.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftu/FileToUSS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAIlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;AAEzG;;;GAGG;AACU,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACnD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,QAAQ;KACzB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,qCAAqC;SACjD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts b/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts deleted file mode 100644 index b18296aa68..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to upload content from a local file to a USS file - * @export - */ -export default class FileToUSSHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.js b/lib/zosfiles/upload/ftu/FileToUSS.handler.js deleted file mode 100644 index f0b5424b83..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.handler.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to upload content from a local file to a USS file - * @export - */ -class FileToUSSHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Uploading USS file", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - const response = yield zos_files_for_zowe_sdk_1.Upload.fileToUssFile(session, commandParameters.arguments.inputfile, commandParameters.arguments.USSFileName, { - binary: commandParameters.arguments.binary, - encoding: commandParameters.arguments.encoding, - task, - responseTimeout: commandParameters.arguments.responseTimeout - }); - const formatMessage = imperative_1.TextUtils.prettyJson(response.apiResponse); - commandParameters.response.console.log(formatMessage); - return response; - }); - } -} -exports.default = FileToUSSHandler; -//# sourceMappingURL=FileToUSS.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map b/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map deleted file mode 100644 index 64ac44e8b6..0000000000 --- a/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileToUSS.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/ftu/FileToUSS.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyE;AACzE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,gBAAiB,SAAQ,0CAAmB;IAChD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YACxB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,oBAAoB;gBACnC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAEvD,MAAM,QAAQ,GAAG,MAAM,+BAAM,CAAC,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,SAAS,EACtF,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEP,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YACtD,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;CACJ;AAtBD,mCAsBC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts b/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts deleted file mode 100644 index 68f6da0efd..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Upload stdin-to-data-set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const StdinToDataSetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js deleted file mode 100644 index 20adb4b5d3..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StdinToDataSetDefinition = void 0; -const path = require("path"); -const Upload_options_1 = require("../Upload.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.UPLOAD.ACTIONS.STDIN_TO_DATA_SET; -/** - * Upload stdin-to-data-set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.StdinToDataSetDefinition = { - name: "stdin-to-data-set", - aliases: ["stds"], - description: strings.DESCRIPTION, - type: "command", - handler: path.join(__dirname, "/StdinToDataSet.handler"), - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "dataSetName", - description: strings.POSITIONALS.DATASETNAME, - type: "string", - required: true - } - ], - options: [ - Upload_options_1.UploadOptions.volume, - Upload_options_1.UploadOptions.binary, - Upload_options_1.UploadOptions.record, - Upload_options_1.UploadOptions.recall - ].sort((a, b) => a.name.localeCompare(b.name)), - examples: [ - { - description: strings.EXAMPLES.EX1, - options: `"ibmuser.ps"`, - prefix: `echo "hello world" |` - }, - { - description: strings.EXAMPLES.EX2, - options: `"ibmuser.pds(mem)"`, - prefix: `echo "hello world" |` - }, - { - description: strings.EXAMPLES.EX3, - options: `"ibmuser.ps" --mr wait`, - prefix: `echo "hello world" |` - } - ] -}; -//# sourceMappingURL=StdinToDataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map b/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map deleted file mode 100644 index 7899f38ccf..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StdinToDataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/stds/StdinToDataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,6BAA6B;AAE7B,sDAAkD;AAGlD,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;AAE/G;;;GAGG;AACU,QAAA,wBAAwB,GAAuB;IACxD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,yBAAyB,CAAC;IACxD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,WAAW;YAC5C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;QACpB,8BAAa,CAAC,MAAM;KACvB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,cAAc;YACvB,MAAM,EAAE,sBAAsB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,oBAAoB;YAC7B,MAAM,EAAE,sBAAsB;SACjC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG;YACjC,OAAO,EAAE,wBAAwB;YACjC,MAAM,EAAE,sBAAsB;SACjC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts b/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts deleted file mode 100644 index d8fd329453..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to stream data from stdin to a data set - * @export - */ -export default class StdinToDataSetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js deleted file mode 100644 index 9f2bdd05d5..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to stream data from stdin to a data set - * @export - */ -class StdinToDataSetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Uploading stdin to data set", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - const result = yield zos_files_for_zowe_sdk_1.Upload.streamToDataSet(session, commandParameters.stdin, commandParameters.arguments.dataSetName, { - volume: commandParameters.arguments.volumeSerial, - binary: commandParameters.arguments.binary, - record: commandParameters.arguments.record, - task, - responseTimeout: commandParameters.arguments.responseTimeout - }); - if (result.success) { - const formatMessage = imperative_1.TextUtils.prettyJson({ - success: result.success, - from: "stdin", - to: commandParameters.arguments.dataSetName - }); - commandParameters.response.console.log(formatMessage); - } - return result; - }); - } -} -exports.default = StdinToDataSetHandler; -//# sourceMappingURL=StdinToDataSet.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map b/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map deleted file mode 100644 index 1eada02bdd..0000000000 --- a/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StdinToDataSet.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/upload/stds/StdinToDataSet.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAA8G;AAC9G,yEAAyE;AACzE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,qBAAsB,SAAQ,0CAAmB;IACrD,kBAAkB,CAAC,iBAAqC,EACjE,OAAwB;;YAExB,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,6BAA6B;gBAC5C,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,MAAM,GAAG,MAAM,+BAAM,CAAC,eAAe,CAAC,OAAO,EAC/C,iBAAiB,CAAC,KAAK,EACvB,iBAAiB,CAAC,SAAS,CAAC,WAAW,EAAE;gBACrC,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,IAAI;gBACJ,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;aAC/D,CAAC,CAAC;YAEP,IAAI,MAAM,CAAC,OAAO,EAAE;gBAChB,MAAM,aAAa,GAAG,sBAAS,CAAC,UAAU,CAAC;oBACvC,OAAO,EAAE,MAAM,CAAC,OAAO;oBACvB,IAAI,EAAE,OAAO;oBACb,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW;iBAC9C,CAAC,CAAC;gBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;aACzD;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ;AA/BD,wCA+BC"} \ No newline at end of file diff --git a/lib/zosfiles/view/View.definition.d.ts b/lib/zosfiles/view/View.definition.d.ts deleted file mode 100644 index 8c78bb625e..0000000000 --- a/lib/zosfiles/view/View.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * View group definition containing its description and children - * @type {ICommandDefinition} - */ -export declare const ViewDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/View.definition.js b/lib/zosfiles/view/View.definition.js deleted file mode 100644 index 1fac48ee3b..0000000000 --- a/lib/zosfiles/view/View.definition.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ViewDefinition = void 0; -const Dataset_definition_1 = require("./ds/Dataset.definition"); -const USSFile_definition_1 = require("./uss/USSFile.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.VIEW; -/** - * View group definition containing its description and children - * @type {ICommandDefinition} - */ -exports.ViewDefinition = { - name: "view", - aliases: ["vw"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Dataset_definition_1.DatasetDefinition, - USSFile_definition_1.USSFileDefinition - ], -}; -//# sourceMappingURL=View.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/View.definition.js.map b/lib/zosfiles/view/View.definition.js.map deleted file mode 100644 index af97e81877..0000000000 --- a/lib/zosfiles/view/View.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"View.definition.js","sourceRoot":"","sources":["../../../src/zosfiles/view/View.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,gEAA0D;AAG1D,iEAA2D;AAE3D,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEhF;;;GAGG;AACU,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/View.options.d.ts b/lib/zosfiles/view/View.options.d.ts deleted file mode 100644 index 6be5655e3b..0000000000 --- a/lib/zosfiles/view/View.options.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ICommandOptionDefinition } from "@zowe/imperative"; -/** - * Object containing all options to be used by the View API - */ -export declare const ViewOptions: { - [key: string]: ICommandOptionDefinition; -}; diff --git a/lib/zosfiles/view/View.options.js b/lib/zosfiles/view/View.options.js deleted file mode 100644 index 10a6af8581..0000000000 --- a/lib/zosfiles/view/View.options.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ViewOptions = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.VIEW.OPTIONS; -/** - * Object containing all options to be used by the View API - */ -exports.ViewOptions = { - /** - * The binary option - * @type {ICommandOptionDefinition} - */ - binary: { - name: "binary", - aliases: ["b"], - description: strings.BINARY, - type: "boolean" - }, - /** - * The encoding option - * @type {ICommandOptionDefinition} - */ - encoding: { - name: "encoding", - aliases: ["ec"], - description: strings.ENCODING, - type: "string", - conflictsWith: ["binary", "record"] - }, - /** - * The record option - * @type {ICommandOptionDefinition} - */ - record: { - name: "record", - aliases: ["r"], - description: strings.RECORD, - type: "boolean", - conflictsWith: ["binary"] - }, - /** - * The volume serial - * @type {ICommandOptionDefinition} - */ - volume: { - name: "volume-serial", - aliases: ["vs"], - description: strings.VOLUME, - type: "string" - }, - /** - * The range of records to return - * @type {ICommandOptionDefinition} - */ - range: { - name: "range", - aliases: ["R"], - description: strings.RANGE, - type: "string" - } -}; -//# sourceMappingURL=View.options.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/View.options.js.map b/lib/zosfiles/view/View.options.js.map deleted file mode 100644 index c83627e584..0000000000 --- a/lib/zosfiles/view/View.options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"View.options.js","sourceRoot":"","sources":["../../../src/zosfiles/view/View.options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC,OAAO,CAAC;AAExF;;GAEG;AACU,QAAA,WAAW,GAAgD;IAEpE;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;KAClB;IAED;;;OAGG;IACH,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,QAAQ;QAC7B,IAAI,EAAE,QAAQ;QACd,aAAa,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;KACtC;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,CAAC,QAAQ,CAAC;KAC5B;IAED;;;OAGG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,OAAO,CAAC,MAAM;QAC3B,IAAI,EAAE,QAAQ;KACjB;IAED;;;OAGG;IACH,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,CAAC,GAAG,CAAC;QACd,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,IAAI,EAAE,QAAQ;KACjB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.definition.d.ts b/lib/zosfiles/view/ds/Dataset.definition.d.ts deleted file mode 100644 index 3840e87c40..0000000000 --- a/lib/zosfiles/view/ds/Dataset.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * View data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const DatasetDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/ds/Dataset.definition.js b/lib/zosfiles/view/ds/Dataset.definition.js deleted file mode 100644 index 0e8c676f7d..0000000000 --- a/lib/zosfiles/view/ds/Dataset.definition.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DatasetDefinition = void 0; -const View_options_1 = require("../View.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.VIEW; -/** - * View data set command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.DatasetDefinition = { - name: "data-set", - aliases: ["ds"], - summary: strings.ACTIONS.DATA_SET.SUMMARY, - description: strings.ACTIONS.DATA_SET.DESCRIPTION, - type: "command", - handler: __dirname + "/Dataset.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "dataSetName", - description: strings.ACTIONS.DATA_SET.POSITIONALS.DATASETNAME, - type: "string", - required: true - }, - ], - options: [ - View_options_1.ViewOptions.binary, - View_options_1.ViewOptions.encoding, - View_options_1.ViewOptions.record, - View_options_1.ViewOptions.volume, - View_options_1.ViewOptions.range - ], - examples: [ - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX1, - options: `"ibmuser.cntl(iefbr14)"` - }, - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX2, - options: `"ibmuser.test.loadlib(main)" --binary` - }, - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX3, - options: `"ibmuser.cntl(iefbr14)" --range 0,2` - }, - { - description: strings.ACTIONS.DATA_SET.EXAMPLES.EX4, - options: `"ibmuser.cntl(iefbr14)" --range 5-7` - } - ] -}; -//# sourceMappingURL=Dataset.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.definition.js.map b/lib/zosfiles/view/ds/Dataset.definition.js.map deleted file mode 100644 index 59a464ba16..0000000000 --- a/lib/zosfiles/view/ds/Dataset.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/ds/Dataset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CA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ler.d.ts b/lib/zosfiles/view/ds/Dataset.handler.d.ts deleted file mode 100644 index 747d63b02e..0000000000 --- a/lib/zosfiles/view/ds/Dataset.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to view a data set's content - * @export - */ -export default class DatasetHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/view/ds/Dataset.handler.js b/lib/zosfiles/view/ds/Dataset.handler.js deleted file mode 100644 index b73a6ef3d9..0000000000 --- a/lib/zosfiles/view/ds/Dataset.handler.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to view a data set's content - * @export - */ -class DatasetHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Retrieving data set", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - const dsContentBuf = yield zos_files_for_zowe_sdk_1.Get.dataSet(session, commandParameters.arguments.dataSetName, { binary: commandParameters.arguments.binary, - encoding: commandParameters.arguments.encoding, - record: commandParameters.arguments.record, - volume: commandParameters.arguments.volumeSerial, - range: commandParameters.arguments.range, - responseTimeout: commandParameters.arguments.responseTimeout, - task: task - }); - return { - success: true, - commandResponse: dsContentBuf.toString(), - apiResponse: {} - }; - }); - } -} -exports.default = DatasetHandler; -//# sourceMappingURL=Dataset.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/ds/Dataset.handler.js.map b/lib/zosfiles/view/ds/Dataset.handler.js.map deleted file mode 100644 index eba20ba17a..0000000000 --- a/lib/zosfiles/view/ds/Dataset.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Dataset.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/ds/Dataset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAsE;AACtE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,qBAAqB;gBACpC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,YAAY,GAAG,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,WAAW,EACnF,EAAI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,YAAY;gBAChD,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,IAAI,EAAE,IAAI;aACb,CACJ,CAAC;YACF,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,YAAY,CAAC,QAAQ,EAAE;gBACxC,WAAW,EAAE,EAAE;aAClB,CAAC;QACN,CAAC;KAAA;CACJ;AAzBD,iCAyBC"} \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.definition.d.ts b/lib/zosfiles/view/uss/USSFile.definition.d.ts deleted file mode 100644 index c064d2aa86..0000000000 --- a/lib/zosfiles/view/uss/USSFile.definition.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * View USS file content command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosfiles/view/uss/USSFile.definition.js b/lib/zosfiles/view/uss/USSFile.definition.js deleted file mode 100644 index 0def2d5d44..0000000000 --- a/lib/zosfiles/view/uss/USSFile.definition.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.USSFileDefinition = void 0; -const View_options_1 = require("../View.options"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.VIEW; -/** - * View USS file content command definition containing its description, examples and/or options - * @type {ICommandDefinition} - */ -exports.USSFileDefinition = { - name: "uss-file", - aliases: ["uf"], - summary: strings.ACTIONS.USS_FILE.SUMMARY, - description: strings.ACTIONS.USS_FILE.DESCRIPTION, - type: "command", - handler: __dirname + "/USSFile.handler", - profile: { - optional: ["zosmf"], - }, - positionals: [ - { - name: "file", - description: strings.ACTIONS.USS_FILE.POSITIONALS.USSFILE, - type: "string", - required: true - }, - ], - options: [ - View_options_1.ViewOptions.binary, - View_options_1.ViewOptions.encoding, - View_options_1.ViewOptions.range - ], - examples: [ - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX1, - options: `"/a/ibmuser/my_text.txt"` - }, - { - description: strings.ACTIONS.USS_FILE.EXAMPLES.EX2, - options: `"/a/ibmuser/MyJavaClass.class" --binary` - } - ] -}; -//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.definition.js.map b/lib/zosfiles/view/uss/USSFile.definition.js.map deleted file mode 100644 index a1c53977a0..0000000000 --- a/lib/zosfiles/view/uss/USSFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/uss/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA8C;AAG9C,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,IAAI,CAAC;AAEnF;;;GAGG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;YACzD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL,0BAAW,CAAC,MAAM;QAClB,0BAAW,CAAC,QAAQ;QACpB,0BAAW,CAAC,KAAK;KACpB;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,0BAA0B;SACtC;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG;YAClD,OAAO,EAAE,yCAAyC;SACrD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.handler.d.ts b/lib/zosfiles/view/uss/USSFile.handler.d.ts deleted file mode 100644 index 9469c10e5a..0000000000 --- a/lib/zosfiles/view/uss/USSFile.handler.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractSession, IHandlerParameters } from "@zowe/imperative"; -import { IZosFilesResponse } from "@zowe/zos-files-for-zowe-sdk"; -import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler"; -/** - * Handler to view USS file content - * @export - */ -export default class USSFileHandler extends ZosFilesBaseHandler { - processWithSession(commandParameters: IHandlerParameters, session: AbstractSession): Promise; -} diff --git a/lib/zosfiles/view/uss/USSFile.handler.js b/lib/zosfiles/view/uss/USSFile.handler.js deleted file mode 100644 index 5e6225017d..0000000000 --- a/lib/zosfiles/view/uss/USSFile.handler.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const ZosFilesBase_handler_1 = require("../../ZosFilesBase.handler"); -/** - * Handler to view USS file content - * @export - */ -class USSFileHandler extends ZosFilesBase_handler_1.ZosFilesBaseHandler { - processWithSession(commandParameters, session) { - return __awaiter(this, void 0, void 0, function* () { - const task = { - percentComplete: 0, - statusMessage: "Retrieving USS file", - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - commandParameters.response.progress.startBar({ task }); - const dsContentBuf = yield zos_files_for_zowe_sdk_1.Get.USSFile(session, commandParameters.arguments.file, { - binary: commandParameters.arguments.binary, - encoding: commandParameters.arguments.encoding, - record: commandParameters.arguments.record, - range: commandParameters.arguments.range, - responseTimeout: commandParameters.arguments.responseTimeout, - task: task - }); - return { - success: true, - commandResponse: dsContentBuf.toString(), - apiResponse: {} - }; - }); - } -} -exports.default = USSFileHandler; -//# sourceMappingURL=USSFile.handler.js.map \ No newline at end of file diff --git a/lib/zosfiles/view/uss/USSFile.handler.js.map b/lib/zosfiles/view/uss/USSFile.handler.js.map deleted file mode 100644 index fcc97a1139..0000000000 --- a/lib/zosfiles/view/uss/USSFile.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USSFile.handler.js","sourceRoot":"","sources":["../../../../src/zosfiles/view/uss/USSFile.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAmG;AACnG,yEAAsE;AACtE,qEAAiE;AAEjE;;;GAGG;AACH,MAAqB,cAAe,SAAQ,0CAAmB;IAC9C,kBAAkB,CAAC,iBAAqC,EAAE,OAAwB;;YAC3F,MAAM,IAAI,GAAoB;gBAC1B,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,qBAAqB;gBACpC,SAAS,EAAE,sBAAS,CAAC,WAAW;aACnC,CAAC;YACF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC;YAErD,MAAM,YAAY,GAAG,MAAM,4BAAG,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI,EAC5E;gBACI,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,QAAQ;gBAC9C,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,MAAM;gBAC1C,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK;gBACxC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,eAAe;gBAC5D,IAAI,EAAE,IAAI;aACb,CACJ,CAAC;YACF,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,YAAY,CAAC,QAAQ,EAAE;gBACxC,WAAW,EAAE,EAAE;aAClB,CAAC;QACN,CAAC;KAAA;CACJ;AAzBD,iCAyBC"} \ No newline at end of file diff --git a/lib/zosjobs/-strings-/en.d.ts b/lib/zosjobs/-strings-/en.d.ts deleted file mode 100644 index ecf6c3ee27..0000000000 --- a/lib/zosjobs/-strings-/en.d.ts +++ /dev/null @@ -1,182 +0,0 @@ -declare const _default: { - CANCEL: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - JOB: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - JOB_ID: string; - }; - OPTIONS: {}; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - }; - }; - MODIFY: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - JOB: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - JOB_ID: string; - }; - OPTIONS: { - JOB_CLASS: string; - HOLD: string; - RELEASE: string; - }; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX3: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - }; - }; - DELETE: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - JOB: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - JOB_ID: string; - }; - OPTIONS: {}; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - OLD_JOBS: { - SUMMARY: string; - DESCRIPTION: string; - OPTIONS: { - PREFIX: string; - MAX_CONCURRENT_REQUESTS: string; - }; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - }; - }; - DOWNLOAD: {}; - LIST: {}; - OPTIONS: { - MODIFY_VERSION: string; - }; - SUBMIT: { - SUMMARY: string; - DESCRIPTION: string; - ACTIONS: { - COMMON_OPT: { - WAIT_FOR_ACTIVE: string; - WAIT_FOR_OUTPUT: string; - VIEW_ALL_SPOOL_CONTENT: string; - DIRECTORY: string; - EXTENSION: string; - JCL_SYMBOLS: string; - }; - DATA_SET: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - DATASET: string; - }; - OPTIONS: { - VOLUME: string; - }; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - USS_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - USSFILE: string; - }; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - LOCAL_FILE: { - SUMMARY: string; - DESCRIPTION: string; - POSITIONALS: { - NAME: string; - }; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - }; - }; - STDIN: { - SUMMARY: string; - DESCRIPTION: string; - EXAMPLES: { - EX1: { - DESCRIPTION: string; - OPTIONS: string; - }; - EX2: { - DESCRIPTION: string; - OPTIONS: string; - PREFIX: string; - }; - }; - }; - }; - }; - VIEW: {}; -}; -export default _default; diff --git a/lib/zosjobs/-strings-/en.js b/lib/zosjobs/-strings-/en.js deleted file mode 100644 index 3d68620f47..0000000000 --- a/lib/zosjobs/-strings-/en.js +++ /dev/null @@ -1,229 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -// Todo: migrate strings into here for other JOBS commands -exports.default = { - CANCEL: { - SUMMARY: "Cancel a z/OS job", - DESCRIPTION: "Cancel a single job by job ID. This cancels the job if it is running or on input.", - ACTIONS: { - JOB: { - SUMMARY: "Cancel a single job by job ID", - DESCRIPTION: "Cancel a single job by job ID", - POSITIONALS: { - JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + - "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + - "the job ID if desired. You can use, for example \"J123\"." - }, - OPTIONS: {}, - EXAMPLES: { - EX1: { - DESCRIPTION: "Cancel job with job ID JOB03456", - OPTIONS: "JOB03456" - }, - EX2: { - DESCRIPTION: "Cancel job with job ID JOB03456 synchronously", - OPTIONS: "JOB03456 --modify-version \"2.0\"" - } - } - } - } - }, - MODIFY: { - SUMMARY: "Modify a z/OS job", - DESCRIPTION: "Modify the job class or the hold status of a job.", - ACTIONS: { - JOB: { - SUMMARY: "Modify the job class or the hold status of a job", - DESCRIPTION: "Modify the job class or the hold status of a job.", - POSITIONALS: { - JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + - "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + - "the job ID if desired. You can use, for example \"J123\".", - }, - OPTIONS: { - JOB_CLASS: "The job class (e.g. 'A', 'B', ...) assigned to the job.", - HOLD: "Setting this flag will prevent a job from executing until " + - "entering a second command with the '--release' flag", - RELEASE: "Flag that releases a held a job for execution", - }, - EXAMPLES: { - EX1: { - DESCRIPTION: "Modify class of job with job ID JOB0000", - OPTIONS: "JOB0000 --jobclass A", - }, - EX2: { - DESCRIPTION: "Hold job with job ID JOB0000", - OPTIONS: "JOB0000 --hold", - }, - EX3: { - DESCRIPTION: "Release job with job ID JOB0000", - OPTIONS: "JOB0000 --release", - }, - } - } - } - }, - DELETE: { - SUMMARY: "Delete a z/OS job or jobs", - DESCRIPTION: "Delete a single job by job ID or delete multiple jobs in OUTPUT status.", - ACTIONS: { - JOB: { - SUMMARY: "Delete a single job by job ID", - DESCRIPTION: "Delete a single job by job ID", - POSITIONALS: { - JOB_ID: "The job ID (e.g. JOB00123) of the job. Job ID is a unique identifier for z/OS batch jobs " + - "-- no two jobs on one system can have the same ID. Note: z/OS allows you to abbreviate " + - "the job ID if desired. You can use, for example \"J123\"." - }, - OPTIONS: {}, - EXAMPLES: { - EX1: { - DESCRIPTION: "Delete job with job ID JOB03456", - OPTIONS: "JOB03456" - }, - EX2: { - DESCRIPTION: "Delete job with job ID JOB03456 synchronously", - OPTIONS: "JOB03456 --modify-version \"2.0\"" - } - } - }, - OLD_JOBS: { - SUMMARY: "Delete multiple jobs in OUTPUT status", - DESCRIPTION: "Delete (purge) jobs in OUTPUT status. Defaults to deleting all jobs owned by your user ID that are in output status.", - OPTIONS: { - PREFIX: "Only delete jobs with job names that match this prefix. " + - "Defaults to deleting all jobs owned by your user ID that are in output status.", - MAX_CONCURRENT_REQUESTS: "Specifies the maximum number of concurrent z/OSMF REST API requests to delete jobs. " + - "Increasing the value makes the command run faster. " + - "However, increasing the value increases resource consumption on z/OS and can be prone to errors caused by making too " + - "many concurrent requests. " + - "When you specify 0, Zowe CLI attempts to delete all jobs at once without a maximum number of concurrent requests." - }, - EXAMPLES: { - EX1: { - DESCRIPTION: "Delete all of your jobs in output status with a job name starting with \"ibmuser\"", - OPTIONS: "-p \"ibmuser*\"" - } - } - } - } - }, - DOWNLOAD: {}, - LIST: {}, - OPTIONS: { - MODIFY_VERSION: "Using this option to set X-IBM-Job-Modify-Version to \"1.0\" will make the delete job API aynchronous. " + - "Otherwise, it will be synchronous by default." - }, - SUBMIT: { - SUMMARY: "Submit a z/OS job", - DESCRIPTION: "Submit a job (JCL).", - ACTIONS: { - COMMON_OPT: { - WAIT_FOR_ACTIVE: "Wait for the job to enter ACTIVE status before completing the command.", - WAIT_FOR_OUTPUT: "Wait for the job to enter OUTPUT status before completing the command.", - VIEW_ALL_SPOOL_CONTENT: "Print all spool output." + - " If you use this option you will wait for the job to complete.", - DIRECTORY: "The local directory you would like to download the output of the job." + - " Creates a subdirectory using the jobID as the name and files are titled based on DD names." + - " If you use this option you will wait for the job to complete.", - EXTENSION: "A file extension to save the job output with. Default is '.txt'.", - JCL_SYMBOLS: "A string of JCL symbols to use for substitution. " + - "For symbol values with no spaces: \"symbol1=value1 symbol2=value2 ...\". " + - "When a value contains spaces, enclose the value in single quotes: " + - "\"symbol1='value 1 with spaces' symbol2='value 2 with spaces' ...\". " + - "To embed a single quote in a value, use two single quotes: \"NAME=O''Brian\"." - }, - DATA_SET: { - SUMMARY: "Submit a job contained in a data set", - DESCRIPTION: "Submit a job (JCL) contained in a data set. The data set may be of type physical sequential or a " + - "PDS member. The command does not pre-validate the data set name. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + - "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", - POSITIONALS: { - DATASET: "The z/OS data set containing the JCL to submit. " + - "You can specify a physical sequential data set (for example, \"DATA.SET\") " + - "or a partitioned data set qualified by a member (for example, \"DATA.SET(MEMBER)\")." - }, - OPTIONS: { - VOLUME: "The volume serial (VOLSER) where the data set resides. The option is required only when the data set is not" + - " catalogued on the system." - }, - EXAMPLES: { - EX1: { - DESCRIPTION: "Submit the JCL in the data set \"ibmuser.cntl(deploy)\"", - OPTIONS: "\"ibmuser.cntl(deploy)\"" - }, - EX2: { - DESCRIPTION: "Submit the JCL in the data set \"ibmuser.cntl(deploy)\", wait for the job to " + - "complete and print all output from the job", - OPTIONS: "\"ibmuser.cntl(deploy)\" --vasc" - } - } - }, - USS_FILE: { - SUMMARY: "Submit a job contained in a USS file", - DESCRIPTION: "Submit a job (JCL) contained in a USS file. The command does not pre-validate the USS file path. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + - "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", - POSITIONALS: { - USSFILE: "Path to the USS file that contains the JCL to submit." - }, - EXAMPLES: { - EX1: { - DESCRIPTION: "Submit the JCL in the USS file \"/a/ibmuser/compile.jcl\"", - OPTIONS: "\"/a/ibmuser/compile.jcl\"" - }, - EX2: { - DESCRIPTION: "Submit the JCL in the USS file \"/a/ibmuser/compile.jcl\", wait for the job to " + - "complete and print all output from the job", - OPTIONS: "\"/a/ibmuser/compile.jcl\" --vasc" - } - } - }, - LOCAL_FILE: { - SUMMARY: "Submit a job contained in a local file", - DESCRIPTION: "Submit a job (JCL) contained in a local file. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + - "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", - POSITIONALS: { - NAME: "The local file containing the JCL to submit." - }, - EXAMPLES: { - EX1: { - DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\"", - OPTIONS: "\"iefbr14.txt\"" - } - } - }, - STDIN: { - SUMMARY: "Submit a job read from standard in", - DESCRIPTION: "Submit a job (JCL) passed to the command via the stdin stream. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints. " + - "For more information about z/OSMF Jobs API errors, see the z/OSMF Jobs API REST documentation.", - EXAMPLES: { - EX1: { - DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\" via standard in", - OPTIONS: "< iefbr14.txt" - }, - EX2: { - DESCRIPTION: "Submit the JCL in the file \"iefbr14.txt\" via standard in from the output of another command", - OPTIONS: "", - PREFIX: "cat iefbr14.txt |" - } - } - } - } - }, - VIEW: {} -}; -//# sourceMappingURL=en.js.map \ No newline at end of file diff --git a/lib/zosjobs/-strings-/en.js.map b/lib/zosjobs/-strings-/en.js.map deleted file mode 100644 index f1bb882d1b..0000000000 --- a/lib/zosjobs/-strings-/en.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../src/zosjobs/-strings-/en.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;AAEF,0DAA0D;AAE1D,kBAAe;IACX,MAAM,EAAE;QACJ,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,mFAAmF;QAChG,OAAO,EAAE;YACL,GAAG,EAAE;gBACD,OAAO,EAAE,+BAA+B;gBACxC,WAAW,EAAE,+BAA+B;gBAC5C,WAAW,EAAE;oBACT,MAAM,EAAE,2FAA2F;wBAC/F,yFAAyF;wBACzF,2DAA2D;iBAClE;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE;oBACN,GAAG,EAAE;wBACD,WAAW,EAAE,iCAAiC;wBAC9C,OAAO,EAAE,UAAU;qBACtB;oBACD,GAAG,EAAE;wBACD,WAAW,EAAE,+CAA+C;wBAC5D,OAAO,EAAE,mCAAmC;qBAC/C;iBACJ;aACJ;SACJ;KACJ;IACD,MAAM,EAAE;QACJ,OAAO,EA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ACN,OAAO,EAAE,sCAAsC;gBAC/C,WAAW,EAAE,mGAAmG;oBAC5G,4EAA4E;oBAC5E,gGAAgG;gBACpG,WAAW,EAAE;oBACT,OAAO,EAAE,uDAAuD;iBACnE;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE;wBACD,WAAW,EAAE,2DAA2D;wBACxE,OAAO,EAAE,4BAA4B;qBACxC;oBACD,GAAG,EAAE;wBACD,WAAW,EAAE,iFAAiF;4BAC9F,4CAA4C;wBAC5C,OAAO,EAAE,mCAAmC;qBAC/C;iBACJ;aACJ;YACD,UAAU,EAAE;gBACR,OAAO,EAAE,wCAAwC;gBACjD,WAAW,EAAE,gDAAgD;oBACzD,4EAA4E;oBAC5E,gGAAgG;gBACpG,WAAW,EAAE;oBACT,IAAI,EAAE,8CAA8C;iBACvD;gBACD,QAAQ,EAAE;oBACN,GAAG,EAAE;wBACD,WAAW,EAAE,4CAA4C;wBACzD,OAAO,EAAE,iBAAiB;qBAC7B;iBACJ;aACJ;YACD,KAAK,EAAE;gBACH,OAAO,EAAE,oCAAoC;gBAC7C,WAAW,EAAE,iEAAiE;oBAC1E,4EAA4E;oBAC5E,gGAAgG;gBACpG,QAAQ,EAAE;oBACN,GAAG,EAAE;wBACD,WAAW,EAAE,4DAA4D;wBACzE,OAAO,EAAE,eAAe;qBAC3B;oBACD,GAAG,EAAE;wBACD,WAAW,EAAE,+FAA+F;wBAC5G,OAAO,EAAE,EAAE;wBACX,MAAM,EAAE,mBAAmB;qBAC9B;iBACJ;aACJ;SACJ;KACJ;IACD,IAAI,EAAE,EACL;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/Cancel.definition.d.ts b/lib/zosjobs/cancel/Cancel.definition.d.ts deleted file mode 100644 index 7276ec821a..0000000000 --- a/lib/zosjobs/cancel/Cancel.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const CancelDefinition: ICommandDefinition; diff --git a/lib/zosjobs/cancel/Cancel.definition.js b/lib/zosjobs/cancel/Cancel.definition.js deleted file mode 100644 index 42aed10f0e..0000000000 --- a/lib/zosjobs/cancel/Cancel.definition.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CancelDefinition = void 0; -const Job_definition_1 = require("./job/Job.definition"); -const strings = require("../-strings-/en").default.CANCEL; -exports.CancelDefinition = { - name: "cancel", - aliases: ["can"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Job_definition_1.JobDefinition - ] -}; -//# sourceMappingURL=Cancel.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/Cancel.definition.js.map b/lib/zosjobs/cancel/Cancel.definition.js.map deleted file mode 100644 index 6d3cf347dd..0000000000 --- a/lib/zosjobs/cancel/Cancel.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Cancel.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/cancel/Cancel.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAIrD,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.definition.d.ts b/lib/zosjobs/cancel/job/Job.definition.d.ts deleted file mode 100644 index 216ba02bb1..0000000000 --- a/lib/zosjobs/cancel/job/Job.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/cancel/job/Job.definition.js b/lib/zosjobs/cancel/job/Job.definition.js deleted file mode 100644 index 00a3823406..0000000000 --- a/lib/zosjobs/cancel/job/Job.definition.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JobDefinition = void 0; -const ZosJobs_options_1 = require("../../ZosJobs.options"); -const strings = require("../../-strings-/en").default.CANCEL; -exports.JobDefinition = { - name: "job", - type: "command", - summary: strings.ACTIONS.JOB.SUMMARY, - description: strings.ACTIONS.JOB.DESCRIPTION, - handler: __dirname + "/Job.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, - type: "string", - required: true - } - ], - options: [ZosJobs_options_1.ZosJobsOptions.modifyVersion], - examples: [ - { - description: strings.ACTIONS.JOB.EXAMPLES.EX1.DESCRIPTION, - options: strings.ACTIONS.JOB.EXAMPLES.EX1.OPTIONS - }, - { - description: strings.ACTIONS.JOB.EXAMPLES.EX2.DESCRIPTION, - options: strings.ACTIONS.JOB.EXAMPLES.EX2.OPTIONS - } - ] -}; -//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.definition.js.map b/lib/zosjobs/cancel/job/Job.definition.js.map deleted file mode 100644 index 3c6f0109f7..0000000000 --- a/lib/zosjobs/cancel/job/Job.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/cancel/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAIvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG,CAAC,gCAAc,CAAC,aAAa,CAAC;IACxC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.handler.d.ts b/lib/zosjobs/cancel/job/Job.handler.d.ts deleted file mode 100644 index 48cb2097ca..0000000000 --- a/lib/zosjobs/cancel/job/Job.handler.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs cancel job" command handler. Cancel a job by ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -export default class JobHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof JobHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs cancel job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/cancel/job/Job.handler.js b/lib/zosjobs/cancel/job/Job.handler.js deleted file mode 100644 index b8102e303a..0000000000 --- a/lib/zosjobs/cancel/job/Job.handler.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs cancel job" command handler. Cancel a job by ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs cancel job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - // Force yargs `jobid` parameter to be a string - const jobid = this.arguments.jobid + ""; - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); - // Cancel the job - const response = yield zos_jobs_for_zowe_sdk_1.CancelJobs.cancelJobForJob(this.mSession, job, this.arguments.modifyVersion); - let message; - if (this.arguments.modifyVersion == null || this.arguments.modifyVersion === "1.0") { - message = `Successfully submitted request to cancel job ${job.jobname} (${jobid})`; - } - else if (this.arguments.modifyVersion === "2.0" && (response === null || response === void 0 ? void 0 : response.status) === "0") { - message = `Successfully canceled job ${job.jobname} (${jobid})`; - } - else { - throw new imperative_1.ImperativeError({ - msg: `Failed to cancel job ${job.jobname} (${jobid})`, - additionalDetails: response === null || response === void 0 ? void 0 : response.message, - errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] - }); - } - // Print message to console - this.console.log(message); - // Return as an object when using --response-format-json - this.data.setMessage(message); - this.data.setObj(job); - }); - } -} -exports.default = JobHandler; -//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/cancel/job/Job.handler.js.map b/lib/zosjobs/cancel/job/Job.handler.js.map deleted file mode 100644 index db230fda0f..0000000000 --- a/lib/zosjobs/cancel/job/Job.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/cancel/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,uEAAwE;AACxE,i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O,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAE1B,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;KAAA;CACJ;AA9CD,6BA8CC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/Delete.definition.d.ts b/lib/zosjobs/delete/Delete.definition.d.ts deleted file mode 100644 index c62fc727d5..0000000000 --- a/lib/zosjobs/delete/Delete.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DeleteDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/Delete.definition.js b/lib/zosjobs/delete/Delete.definition.js deleted file mode 100644 index c2b1acd0a3..0000000000 --- a/lib/zosjobs/delete/Delete.definition.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteDefinition = void 0; -const Job_definition_1 = require("./job/Job.definition"); -const OldJobs_definition_1 = require("./old-jobs/OldJobs.definition"); -const strings = require("../-strings-/en").default.DELETE; -exports.DeleteDefinition = { - name: "delete", - aliases: ["del"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Job_definition_1.JobDefinition, - OldJobs_definition_1.OldJobsDefinition - ] -}; -//# sourceMappingURL=Delete.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/Delete.definition.js.map b/lib/zosjobs/delete/Delete.definition.js.map deleted file mode 100644 index 393c3a11eb..0000000000 --- a/lib/zosjobs/delete/Delete.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Delete.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/delete/Delete.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AACrD,sEAAkE;AAIlE,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;QACb,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.definition.d.ts b/lib/zosjobs/delete/job/Job.definition.d.ts deleted file mode 100644 index 216ba02bb1..0000000000 --- a/lib/zosjobs/delete/job/Job.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/job/Job.definition.js b/lib/zosjobs/delete/job/Job.definition.js deleted file mode 100644 index 69a38f042e..0000000000 --- a/lib/zosjobs/delete/job/Job.definition.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JobDefinition = void 0; -const ZosJobs_options_1 = require("../../ZosJobs.options"); -const strings = require("../../-strings-/en").default.DELETE; -exports.JobDefinition = { - name: "job", - type: "command", - summary: strings.ACTIONS.JOB.SUMMARY, - description: strings.ACTIONS.JOB.DESCRIPTION, - handler: __dirname + "/Job.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, - type: "string", - required: true - } - ], - options: [ZosJobs_options_1.ZosJobsOptions.modifyVersion], - examples: [ - { - description: strings.ACTIONS.JOB.EXAMPLES.EX1.DESCRIPTION, - options: strings.ACTIONS.JOB.EXAMPLES.EX1.OPTIONS - }, - { - description: strings.ACTIONS.JOB.EXAMPLES.EX2.DESCRIPTION, - options: strings.ACTIONS.JOB.EXAMPLES.EX2.OPTIONS - } - ] -}; -//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.definition.js.map b/lib/zosjobs/delete/job/Job.definition.js.map deleted file mode 100644 index bac079a553..0000000000 --- a/lib/zosjobs/delete/job/Job.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAGvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG,CAAC,gCAAc,CAAC,aAAa,CAAC;IACxC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;QACD;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACzD,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACpD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.handler.d.ts b/lib/zosjobs/delete/job/Job.handler.d.ts deleted file mode 100644 index 2e7b2e3dbc..0000000000 --- a/lib/zosjobs/delete/job/Job.handler.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs delete job" command handler. Delete (purge) a job by ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -export default class JobHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof JobHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/delete/job/Job.handler.js b/lib/zosjobs/delete/job/Job.handler.js deleted file mode 100644 index c956d93864..0000000000 --- a/lib/zosjobs/delete/job/Job.handler.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs delete job" command handler. Delete (purge) a job by ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - // Force yargs `jobid` parameter to be a string - const jobid = this.arguments.jobid + ""; - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); - // Delete the job - const response = yield zos_jobs_for_zowe_sdk_1.DeleteJobs.deleteJobForJob(this.mSession, job, this.arguments.modifyVersion); - let message; - if (this.arguments.modifyVersion == null || this.arguments.modifyVersion === "1.0") { - message = `Successfully submitted request to delete job ${job.jobname} (${jobid})`; - } - else if (this.arguments.modifyVersion === "2.0" && (response === null || response === void 0 ? void 0 : response.status) === "0") { - message = `Successfully deleted job ${job.jobname} (${jobid})`; - } - else { - throw new imperative_1.ImperativeError({ - msg: `Failed to delete job ${job.jobname} (${jobid})`, - additionalDetails: response === null || response === void 0 ? void 0 : response.message, - errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] - }); - } - // Print message to console - this.console.log(message); - // Return as an object when using --response-format-json - this.data.setMessage(message); - this.data.setObj(job); - }); - } -} -exports.default = JobHandler; -//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/job/Job.handler.js.map b/lib/zosjobs/delete/job/Job.handler.js.map deleted file mode 100644 index a6d7c2a4c4..0000000000 --- a/lib/zosjobs/delete/job/Job.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,uEAAwE;AACxE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,UAAW,SAAQ,qCAAgB;IASpD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,+CAA+C;YAC/C,MAAM,KAAK,GAAW,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC;YAEhD,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC7D,iBAAiB;YACjB,MAAM,QAAQ,GAAG,MAAM,kCAAU,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;YAEpG,IAAI,OAAe,CAAC;YACpB,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,KAAK,KAAK,EAAE;gBAChF,OAAO,GAAG,gDAAgD,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG,CAAC;aACtF;iBAAM,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,KAAK,KAAK,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,MAAK,GAAG,EAAE;gBAC3E,OAAO,GAAG,4BAA4B,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG,CAAC;aAClE;iBAAM;gBACH,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,wBAAwB,GAAG,CAAC,OAAO,KAAK,KAAK,GAAG;oBACrD,iBAAiB,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO;oBACpC,SAAS,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,eAAe,CAAC;iBACzC,CAAC,CAAC;aACN;YAED,2BAA2B;YAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAE1B,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;KAAA;CACJ;AA9CD,6BA8CC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts b/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts deleted file mode 100644 index 774a2e945b..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const OldJobsDefinition: ICommandDefinition; diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js deleted file mode 100644 index fbb03c09f1..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OldJobsDefinition = void 0; -const ZosJobs_options_1 = require("../../ZosJobs.options"); -const strings = require("../../-strings-/en").default.DELETE; -exports.OldJobsDefinition = { - name: "old-jobs", - aliases: ["oj"], - type: "command", - summary: strings.ACTIONS.OLD_JOBS.SUMMARY, - description: strings.ACTIONS.OLD_JOBS.DESCRIPTION, - handler: __dirname + "/OldJobs.handler", - profile: { - optional: ["zosmf"] - }, - options: [ - { - name: "prefix", - aliases: ["p"], - description: strings.ACTIONS.OLD_JOBS.OPTIONS.PREFIX, - type: "string" - }, - { - name: "max-concurrent-requests", - aliases: ["mcr"], - description: strings.ACTIONS.OLD_JOBS.OPTIONS.MAX_CONCURRENT_REQUESTS, - type: "number", - defaultValue: 1 - }, - ZosJobs_options_1.ZosJobsOptions.modifyVersion, - ], - examples: [ - { - description: strings.ACTIONS.OLD_JOBS.EXAMPLES.EX1.DESCRIPTION, - options: strings.ACTIONS.OLD_JOBS.EXAMPLES.EX1.OPTIONS - } - ] -}; -//# sourceMappingURL=OldJobs.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map b/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map deleted file mode 100644 index 02e66bc631..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OldJobs.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/old-jobs/OldJobs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2DAAuD;AAIvD,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACzC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW;IACjD,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;YACpD,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,uBAAuB;YACrE,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,CAAC;SAClB;QACD,gCAAc,CAAC,aAAa;KAC/B;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YAC9D,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SACzD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts b/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts deleted file mode 100644 index 39d06afcc7..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.handler.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs delete old-jobs" command handler. Delete (purge) multiple jobs in OUTPUT status. - * @export - * @class OldJobsHandler - * @implements {ICommandHandler} - */ -export default class OldJobsHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof OldJobsHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof OldJobsHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js deleted file mode 100644 index a3d6169e18..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const core_for_zowe_sdk_1 = require("@zowe/core-for-zowe-sdk"); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs delete old-jobs" command handler. Delete (purge) multiple jobs in OUTPUT status. - * @export - * @class OldJobsHandler - * @implements {ICommandHandler} - */ -class OldJobsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs delete job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof OldJobsHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - // Retrieve the list of user's jobs - const prefix = this.arguments.prefix || zos_jobs_for_zowe_sdk_1.JobsConstants.DEFAULT_PREFIX; - const jobs = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJobsByPrefix(this.mSession, prefix); - // Handle no jobs - if (jobs.length === 0) { - let notFoundMessage = "No jobs found"; - if (prefix != null && prefix.length > 0) { - notFoundMessage += ` with prefix ${prefix}`; - } - this.console.log(notFoundMessage); - return; - } - // Loop through the jobs and delete those in OUTPUT status - const deletedJobs = []; - for (const job of jobs) { - if (job.status === zos_jobs_for_zowe_sdk_1.JOB_STATUS.OUTPUT) { - deletedJobs.push(job); - } - } - const deleteJobPromise = (job) => __awaiter(this, void 0, void 0, function* () { - const response = yield zos_jobs_for_zowe_sdk_1.DeleteJobs.deleteJobForJob(this.mSession, job, this.arguments.modifyVersion); - if (response != null && response.status !== "0") { - throw new imperative_1.ImperativeError({ - msg: `Failed to delete job ${job.jobname} (${job.jobid})`, - additionalDetails: response === null || response === void 0 ? void 0 : response.message, - errorCode: response === null || response === void 0 ? void 0 : response["internal-code"] - }); - } - }); - if (this.arguments.maxConcurrentRequests === 0) { - yield Promise.all(deletedJobs.map(deleteJobPromise)); - } - else { - yield (0, core_for_zowe_sdk_1.asyncPool)(this.arguments.maxConcurrentRequests, deletedJobs, deleteJobPromise); - } - const message = `Successfully deleted ${deletedJobs.length} job${deletedJobs.length === 1 ? "" : "s"}`; - // Format the output - this.console.log(message); - params.response.format.output({ - fields: ["jobname", "jobid", "status"], - output: deletedJobs, - format: "table" - }); - // Return as an object when using --response-format-json - this.data.setMessage(message); - this.data.setObj(deletedJobs); - }); - } -} -exports.default = OldJobsHandler; -//# sourceMappingURL=OldJobs.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map b/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map deleted file mode 100644 index e35ff8c162..0000000000 --- a/lib/zosjobs/delete/old-jobs/OldJobs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OldJobs.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/delete/old-jobs/OldJobs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,+DAAoD;AACpD,uEAAmG;AACnG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,cAAe,SAAQ,qCAAgB;IASxD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,mCAAmC;YACnC,MAAM,MAAM,GAAW,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,qCAAa,CAAC,cAAc,CAAC;YAC7E,MAAM,IAAI,GAAW,MAAM,+BAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAE1E,iBAAiB;YACjB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;gBACnB,IAAI,eAAe,GAAW,eAAe,CAAC;gBAC9C,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;oBACrC,eAAe,IAAI,gBAAgB,MAAM,EAAE,CAAC;iBAC/C;gBACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;gBAClC,OAAO;aACV;YAED,0DAA0D;YAC1D,MAAM,WAAW,GAAW,EAAE,CAAC;YAC/B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;gBACpB,IAAI,GAAG,CAAC,MAAM,KAAK,kCAAU,CAAC,MAAM,EAAE;oBAClC,W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tC,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;YAEH,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAClC,CAAC;KAAA;CACJ;AApED,iCAoEC"} \ No newline at end of file diff --git a/lib/zosjobs/download/Download.definition.d.ts b/lib/zosjobs/download/Download.definition.d.ts deleted file mode 100644 index 36d9e2b1a1..0000000000 --- a/lib/zosjobs/download/Download.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DownloadDefinition: ICommandDefinition; diff --git a/lib/zosjobs/download/Download.definition.js b/lib/zosjobs/download/Download.definition.js deleted file mode 100644 index e1773dc22f..0000000000 --- a/lib/zosjobs/download/Download.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DownloadDefinition = void 0; -const Output_definition_1 = require("./download-output/Output.definition"); -exports.DownloadDefinition = { - name: "download", - aliases: ["dl"], - type: "group", - summary: "Download job output", - description: "Download the output of a job as separate files.", - children: [ - Output_definition_1.OutputDefinition - ] -}; -//# sourceMappingURL=Download.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/Download.definition.js.map b/lib/zosjobs/download/Download.definition.js.map deleted file mode 100644 index c9e924ff9f..0000000000 --- a/lib/zosjobs/download/Download.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Download.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/download/Download.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,2EAAuE;AAG1D,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,qBAAqB;IAC9B,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE;QACN,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.definition.d.ts b/lib/zosjobs/download/download-output/Output.definition.d.ts deleted file mode 100644 index 07c1e012a1..0000000000 --- a/lib/zosjobs/download/download-output/Output.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const OutputDefinition: ICommandDefinition; diff --git a/lib/zosjobs/download/download-output/Output.definition.js b/lib/zosjobs/download/download-output/Output.definition.js deleted file mode 100644 index f2a8765828..0000000000 --- a/lib/zosjobs/download/download-output/Output.definition.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OutputDefinition = void 0; -exports.OutputDefinition = { - name: "output", - aliases: ["o"], - type: "command", - summary: "Download all job output to a directory", - description: "Download all job output to a local directory. " + - "Each spool DD will be downloaded to its own file in the directory.", - handler: __dirname + "/Output.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: "The z/OS JOBID of the job containing the spool files you want to view. " + - "No pre-validation of the JOBID is performed.", - type: "string", - required: true - } - ], - options: [ - { - name: "directory", - aliases: ["d", "dir"], - description: "The local directory you would like to download the output for the job to.", - type: "string" - }, - { - name: "extension", - aliases: ["e"], - description: "A file extension to save the job output with. Defaults to '.txt'.", - type: "string" - }, - { - name: "omit-jobid-directory", - aliases: ["ojd"], - description: "If specified, job output will be saved directly to the specified " + - "directory rather than creating a subdirectory named after the ID of the job.", - type: "boolean" - }, - { - name: "binary", - aliases: ["b"], - description: "If specified, job output will be downloaded in binary format instead " + - "of performing text conversion. Conflicts with record.", - type: "boolean" - }, - { - name: "record", - aliases: ["r"], - description: "If specified, job output will be downloaded in record format instead " + - "of performing text conversion. Conflicts with binary.", - type: "boolean", - conflictsWith: ["binary"] - } - ], - examples: [ - { - description: "Download all the output of the job with job ID JOB00234 to an automatically generated directory.", - options: "JOB00234" - } - ] -}; -//# sourceMappingURL=Output.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.definition.js.map b/lib/zosjobs/download/download-output/Output.definition.js.map deleted file mode 100644 index 7f61c4e231..0000000000 --- a/lib/zosjobs/download/download-output/Output.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Output.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/download/download-output/Output.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,GAAG,CAAC;IACd,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,wCAAwC;IACjD,WAAW,EAAE,gDAAgD;QACzD,oEAAoE;IACxE,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yEAAyE;gBACtF,8CAA8C;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;YACrB,WAAW,EAAE,2EAA2E;YACxF,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,mEAAmE;YAChF,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,sBAAsB;YAC5B,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,WAAW,EAAE,mEAAmE;gBAC5E,8EAA8E;YAClF,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,uEAAuE;gBAChF,uDAAuD;YAC3D,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,uEAAuE;gBAChF,uDAAuD;YAC3D,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,CAAC,QAAQ,CAAC;SAC5B;KAC2B;IAChC,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kGAAkG;YAC/G,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.handler.d.ts b/lib/zosjobs/download/download-output/Output.handler.d.ts deleted file mode 100644 index 4068bfe32e..0000000000 --- a/lib/zosjobs/download/download-output/Output.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs download output" command handler. Download each spool DD to a separate file. - * @export - * @class OutputHandler - * @implements {ICommandHandler} - */ -export default class OutputHandler extends ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs download output" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof OutputHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/download/download-output/Output.handler.js b/lib/zosjobs/download/download-output/Output.handler.js deleted file mode 100644 index 9e638d98f1..0000000000 --- a/lib/zosjobs/download/download-output/Output.handler.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs download output" command handler. Download each spool DD to a separate file. - * @export - * @class OutputHandler - * @implements {ICommandHandler} - */ -class OutputHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs download output" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof OutputHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - const response = {}; - const jobid = this.mArguments.jobid + ""; - const outDir = this.mArguments.directory; - const omitJobidDirectory = !!this.mArguments.ojd; - const extension = this.mArguments.extension; - const binary = this.mArguments.binary; - const record = this.mArguments.record; - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); - const options = { - jobname: job.jobname, - jobid, - outDir, - omitJobidDirectory, - extension, - binary, - record - }; - // Download 'em all - yield zos_jobs_for_zowe_sdk_1.DownloadJobs.downloadAllSpoolContentCommon(this.mSession, options); - if (options.outDir == null) { - options.outDir = zos_jobs_for_zowe_sdk_1.DownloadJobs.DEFAULT_JOBS_OUTPUT_DIR; - } - this.console.log(`Successfully downloaded the job output\nDestination: ${options.outDir}`); - // Return as an object when using --response-format-json - this.data.setObj(response); - }); - } -} -exports.default = OutputHandler; -//# sourceMappingURL=Output.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/download/download-output/Output.handler.js.map b/lib/zosjobs/download/download-output/Output.handler.js.map deleted file mode 100644 index 391ad98e9f..0000000000 --- a/lib/zosjobs/download/download-output/Output.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Output.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/download/download-output/Output.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAyG;AACzG,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,aAAc,SAAQ,qCAAgB;IACvD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,MAAM,QAAQ,GAAQ,EAAE,CAAC;YACzB,MAAM,KAAK,GAAW,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC;YACjD,MAAM,MAAM,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjD,MAAM,kBAAkB,GAAY,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YAC1D,MAAM,SAAS,GAAW,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACpD,MAAM,MAAM,GAAY,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/C,MAAM,MAAM,GAAY,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC/C,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC7D,MAAM,OAAO,GAAkC;gBAC3C,OAAO,EAAE,GAAG,CAAC,OAAO;gBACpB,KAAK;gBACL,MAAM;gBACN,kBAAkB;gBAClB,SAAS;gBACT,MAAM;gBACN,MAAM;aACT,CAAC;YACF,mBAAmB;YACnB,MAAM,oCAAY,CAAC,6BAA6B,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAEzE,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,EAAE;gBACxB,OAAO,CAAC,MAAM,GAAG,oCAAY,CAAC,uBAAuB,CAAC;aACzD;YAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wDAAwD,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YAE3F,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;KAAA;CACJ;AAtCD,gCAsCC"} \ No newline at end of file diff --git a/lib/zosjobs/list/List.definition.d.ts b/lib/zosjobs/list/List.definition.d.ts deleted file mode 100644 index f80abb94cf..0000000000 --- a/lib/zosjobs/list/List.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/List.definition.js b/lib/zosjobs/list/List.definition.js deleted file mode 100644 index 8c67c03c0b..0000000000 --- a/lib/zosjobs/list/List.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDefinition = void 0; -const SpoolFilesByJobid_definition_1 = require("./spool-files-by-jobid/SpoolFilesByJobid.definition"); -const Jobs_definition_1 = require("./jobs/Jobs.definition"); -exports.ListDefinition = { - name: "list", - aliases: ["ls"], - type: "group", - summary: "List jobs and spool files", - description: "List z/OS jobs and list the spool files (DDs) for a z/OS job on the JES/spool queues.", - children: [SpoolFilesByJobid_definition_1.SpoolFilesByJobidDefinition, - Jobs_definition_1.JobsDefinition] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/List.definition.js.map b/lib/zosjobs/list/List.definition.js.map deleted file mode 100644 index a04f7140f1..0000000000 --- a/lib/zosjobs/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sGAAkG;AAClG,4DAAwD;AAE3C,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,uFAAuF;IACpG,QAAQ,EAAE,CAAC,0DAA2B;QAClC,gCAAc,CAAC;CACtB,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.definition.d.ts b/lib/zosjobs/list/jobs/Jobs.definition.d.ts deleted file mode 100644 index eac4817a69..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const JobsDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/jobs/Jobs.definition.js b/lib/zosjobs/list/jobs/Jobs.definition.js deleted file mode 100644 index deb0b10e46..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.definition.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JobsDefinition = void 0; -exports.JobsDefinition = { - name: "jobs", - aliases: ["js"], - summary: "List z/OS jobs on JES spool/queues", - description: "List jobs on JES spool/queues. " + - "By default, the command lists jobs owned (owner) by the user specified in your z/OSMF profile." + - " The default for prefix is \"*\". " + - "The command does not prevalidate your user ID. " + - "The command surfaces errors verbatim from the z/OSMF Jobs REST endpoints.", - type: "command", - handler: __dirname + "/Jobs.handler", - options: [ - { - name: "owner", aliases: ["o"], - description: "Specify the owner of the jobs you want to list. " + - "The owner is the individual/user who submitted the job OR the user ID assigned to the job. " + - "The command does not prevalidate the owner. " + - "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + - "which is usually in the form \"USER*\".", - type: "string" - }, - { - name: "prefix", aliases: ["p"], - description: "Specify the job name prefix of the jobs you want to list. " + - "The command does not prevalidate the owner. " + - "You can specify a wildcard according to the z/OSMF Jobs REST endpoint documentation, " + - "which is usually in the form \"JOB*\".", - type: "string" - }, - { - name: "exec-data", aliases: ["ed"], - description: "Use this option to retrieve execution data for jobs via the z/OSMF REST API.", - type: "boolean", - default: false - } - ], - profile: { - optional: ["zosmf"] - }, - examples: [ - { - options: "", - description: "List all jobs with default settings." + - " The command returns jobs owned by your user ID with any job name" - }, - { - options: "-o \"ibmu*\" -p \"myjo*\"", - description: "List all jobs owned by user IDs starting with 'ibmu' and job names starting with 'myjo'" - }, - { - options: "--rff jobid --rft table", - description: "List all jobs with default owner and prefix settings, displaying only the job ID of each job" - }, - { - options: "--exec-data", - description: "List all jobs and return job execution data along with the default information" - }, - { - options: "-o \"ibmu*\" --exec-data", - description: "List all jobs owned by user IDs starting with 'ibmu' and return job execution data along with the default information" - }, - { - options: "-o \"ibmu*\" -p \"myjo*\" --exec-data", - description: "List all jobs owned by user IDs starting with 'ibmu' and job names starting with 'myjo' and \ - return job execution data along with the default information" - } - ], - outputFormatOptions: true -}; -//# sourceMappingURL=Jobs.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.definition.js.map b/lib/zosjobs/list/jobs/Jobs.definition.js.map deleted file mode 100644 index bd48574dc2..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Jobs.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/jobs/Jobs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,iCAAiC;QAC1C,gGAAgG;QAChG,oCAAoC;QACpC,iDAAiD;QACjD,2EAA2E;IAC/E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAG;QACN;YACI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YAC7B,WAAW,EAAE,kDAAkD;gBAC3D,6FAA6F;gBAC7F,8CAA8C;gBAC9C,uFAAuF;gBACvF,yCAAyC;YAC7C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YAC9B,WAAW,EAAE,4DAA4D;gBACrE,8CAA8C;gBAC9C,uFAAuF;gBACvF,wCAAwC;YAC5C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC;YAClC,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;KAC2B;IAChC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,sCAAsC;gBAC/C,mEAAmE;SAC1E;QACD;YACI,OAAO,EAAE,2BAA2B;YACpC,WAAW,EAAE,yFAAyF;SACzG;QACD;YACI,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,8FAA8F;SAC9G;QACD;YACI,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,gFAAgF;SAChG;QACD;YACI,OAAO,EAAE,0BAA0B;YACnC,WAAW,EAAE,uHAAuH;SACvI;QACD;YACI,OAAO,EAAE,uCAAuC;YAChD,WAAW,EAAE;yFAC4D;SAC5E;KACJ;IACL,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.handler.d.ts b/lib/zosjobs/list/jobs/Jobs.handler.d.ts deleted file mode 100644 index 285c44e37d..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.handler.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler for the "zos-jobs list jobs" command. - * @export - * @class JobsHandler - * @implements {ICommandHandler} - */ -export default class JobsHandler extends ZosmfBaseHandler { - /** - * Handler for the "zos-jobs list jobs" command. Produces a tabular list of jobs on spool based on - * the input parameters. - * @param {IHandlerParameters} params - see interface for details - * @returns {Promise} - promise to fulfill or reject when the command is complete - * @memberof JobsHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/list/jobs/Jobs.handler.js b/lib/zosjobs/list/jobs/Jobs.handler.js deleted file mode 100644 index a5538ff6e3..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.handler.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler for the "zos-jobs list jobs" command. - * @export - * @class JobsHandler - * @implements {ICommandHandler} - */ -class JobsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Handler for the "zos-jobs list jobs" command. Produces a tabular list of jobs on spool based on - * the input parameters. - * @param {IHandlerParameters} params - see interface for details - * @returns {Promise} - promise to fulfill or reject when the command is complete - * @memberof JobsHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - // Obtain the list of jobs - by default uses the session user and * for owner and prefix. - const owner = (params.arguments.owner != null) ? params.arguments.owner : null; - const prefix = (params.arguments.prefix != null) ? params.arguments.prefix : zos_jobs_for_zowe_sdk_1.JobsConstants.DEFAULT_PREFIX; - const execData = params.arguments.execData; - const jobs = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJobsCommon(this.mSession, { owner, prefix, execData }); - // Populate the response object - params.response.data.setObj(jobs); - params.response.data.setMessage(`List of jobs returned for prefix "${prefix}" and owner "${owner}"`); - if (!params.arguments.execData) { - // Format the output with the default fields - params.response.format.output({ - fields: ["jobid", "retcode", "jobname", "status"], - output: jobs, - format: "table" - }); - } - else { - // Format the output with the fields showing execution data - params.response.format.output({ - fields: ["jobid", "retcode", "jobname", "status", "exec-system", "exec-member", "exec-submitted", "exec-started", "exec-ended"], - output: jobs, - format: "table", - header: true - }); - } - }); - } -} -exports.default = JobsHandler; -//# sourceMappingURL=Jobs.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/jobs/Jobs.handler.js.map b/lib/zosjobs/list/jobs/Jobs.handler.js.map deleted file mode 100644 index 3f1b79b722..0000000000 --- a/lib/zosjobs/list/jobs/Jobs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Jobs.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/jobs/Jobs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA2E;AAC3E,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,WAAY,SAAQ,qCAAgB;IACrD;;;;;;OAMG;IACU,UAAU,CAAC,MAA0B;;YAE9C,yFAAyF;YACzF,MAAM,KAAK,GAAW,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACvF,MAAM,MAAM,GAAW,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,qCAAa,CAAC,cAAc,CAAC;YAClH,MAAM,QAAQ,GAAY,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;YACpD,MAAM,IAAI,GAAW,MAAM,+BAAO,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAC,CAAC,CAAC;YAE3F,+BAA+B;YAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAClC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,qCAAqC,MAAM,gBAAgB,KAAK,GAAG,CAAC,CAAC;YAErG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE;gBAC5B,4CAA4C;gBAC5C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;oBACjD,MAAM,EAAE,IAAI;oBACZ,MAAM,EAAE,OAAO;iBAClB,CAAC,CAAC;aACN;iBACI;gBACD,2DAA2D;gBAC3D,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;oBAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,CAAC;oBAC/H,MAAM,EAAE,IAAI;oBACZ,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,IAAI;iBACf,CAAC,CAAC;aACN;QACL,CAAC;KAAA;CACJ;AAtCD,8BAsCC"} \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts deleted file mode 100644 index bc1a9e7785..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SpoolFilesByJobidDefinition: ICommandDefinition; diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js deleted file mode 100644 index 664426e5af..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SpoolFilesByJobidDefinition = void 0; -exports.SpoolFilesByJobidDefinition = { - name: "spool-files-by-jobid", - aliases: ["sfbj"], - type: "command", - summary: "List spool files of a z/OS job", - description: "Given a z/OS job JOBID, list the spool files (DDs) for a z/OS job on the JES/spool queues. " + - "The command does not pre-validate the JOBID. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", - handler: __dirname + "/SpoolFilesByJobid.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: "The z/OS JOBID of the job with the spool files you want to list. " + - "No pre-validation of the JOBID is performed.", - type: "string", - required: true - } - ], - outputFormatOptions: true, - examples: [ - { - options: "job00123", - description: "List the spool files of the job with JOBID JOB00123" - } - ] -}; -//# sourceMappingURL=SpoolFilesByJobid.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map deleted file mode 100644 index eeed557c3d..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpoolFilesByJobid.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,2BAA2B,GAAuB;IAC3D,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,6FAA6F;QACtG,+CAA+C;QAC/C,2EAA2E;IAC/E,OAAO,EAAE,SAAS,GAAG,4BAA4B;IACjD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,mEAAmE;gBAC5E,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,qDAAqD;SACrE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts deleted file mode 100644 index da07be86d9..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs list spool-files" command handler. Outputs a table of spool files. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -export default class SpoolFilesHandler extends ZosmfBaseHandler { - /** - * The z/OSMF profile for this command - * @private - * @type {*} - * @memberof JobHandler - */ - private profile; - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof JobHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs list spool-files" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js deleted file mode 100644 index 26105148f1..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs list spool-files" command handler. Outputs a table of spool files. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -class SpoolFilesHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs list spool-files" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - // First obtain the details for the job (to acquire JOBNAME), then get the list of output spool files - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.arguments.jobid); - const files = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolFilesForJob(this.mSession, job); - // Set the object, message, and log the prettified object - this.data.setObj(files); - this.data.setMessage(`"${files.length}" spool files obtained for job "${job.jobname}(${job.jobid})"`); - // Format & print the response - params.response.format.output({ - fields: ["id", "ddname", "procstep", "stepname"], - output: files, - format: "table" - }); - }); - } -} -exports.default = SpoolFilesHandler; -//# sourceMappingURL=SpoolFilesByJobid.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map b/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map deleted file mode 100644 index 279a587336..0000000000 --- a/lib/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpoolFilesByJobid.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/list/spool-files-by-jobid/SpoolFilesByJobid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAAsE;AACtE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,iBAAkB,SAAQ,qCAAgB;IAiB3D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,qGAAqG;YACrG,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC5E,MAAM,KAAK,GAAe,MAAM,+BAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YAEhF,yDAAyD;YACzD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,mCAAmC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;YAEtG,8BAA8B;YAC9B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC;gBAChD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,OAAO;aAClB,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA1CD,oCA0CC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/Modify.definition.d.ts b/lib/zosjobs/modify/Modify.definition.d.ts deleted file mode 100644 index b4cc878f7e..0000000000 --- a/lib/zosjobs/modify/Modify.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ModifyDefinition: ICommandDefinition; diff --git a/lib/zosjobs/modify/Modify.definition.js b/lib/zosjobs/modify/Modify.definition.js deleted file mode 100644 index 06ee1aeb98..0000000000 --- a/lib/zosjobs/modify/Modify.definition.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModifyDefinition = void 0; -const Job_definition_1 = require("./job/Job.definition"); -const strings = require("../-strings-/en").default.MODIFY; -exports.ModifyDefinition = { - name: "modify", - aliases: ["mod"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - Job_definition_1.JobDefinition - ] -}; -//# sourceMappingURL=Modify.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/Modify.definition.js.map b/lib/zosjobs/modify/Modify.definition.js.map deleted file mode 100644 index b8d76a0d8d..0000000000 --- a/lib/zosjobs/modify/Modify.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Modify.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/modify/Modify.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAIrD,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,8BAAa;KAChB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.definition.d.ts b/lib/zosjobs/modify/job/Job.definition.d.ts deleted file mode 100644 index 216ba02bb1..0000000000 --- a/lib/zosjobs/modify/job/Job.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const JobDefinition: ICommandDefinition; diff --git a/lib/zosjobs/modify/job/Job.definition.js b/lib/zosjobs/modify/job/Job.definition.js deleted file mode 100644 index cd201a18d5..0000000000 --- a/lib/zosjobs/modify/job/Job.definition.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JobDefinition = void 0; -const strings = require("../../-strings-/en").default.MODIFY; -exports.JobDefinition = { - name: "job", - type: "command", - summary: strings.ACTIONS.JOB.SUMMARY, - description: strings.ACTIONS.JOB.DESCRIPTION, - handler: __dirname + "/Job.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: strings.ACTIONS.JOB.POSITIONALS.JOB_ID, - type: "string", - required: true - }, - ], - options: [ - { - name: "jobclass", - description: strings.ACTIONS.JOB.OPTIONS.JOB_CLASS, - type: "string", - defaultValue: undefined, - required: false, - }, - { - name: "hold", - description: strings.ACTIONS.JOB.OPTIONS.HOLD, - type: "boolean", - defaultValue: undefined, - required: false, - conflictsWith: ["release"] - }, - { - name: "release", - description: strings.ACTIONS.JOB.OPTIONS.RELEASE, - type: "boolean", - defaultValue: undefined, - required: false, - } - ], - examples: Object.values(strings.ACTIONS.JOB.EXAMPLES).map((item) => ({ - description: item.DESCRIPTION, - options: item.OPTIONS - })) -}; -//# sourceMappingURL=Job.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.definition.js.map b/lib/zosjobs/modify/job/Job.definition.js.map deleted file mode 100644 index 6a70519292..0000000000 --- a/lib/zosjobs/modify/job/Job.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/modify/job/Job.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAMF,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAExE,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO;IACpC,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW;IAC5C,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS;YAClD,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI;YAC7C,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;YACf,aAAa,EAAE,CAAC,SAAS,CAAC;SAC7B;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO;YAChD,IAAI,EAAE,SAAS;YACf,YAAY,EAAE,SAAS;YACvB,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;QACtE,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;KACxB,CAAC,CAAC;CACN,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.handler.d.ts b/lib/zosjobs/modify/job/Job.handler.d.ts deleted file mode 100644 index 2ce1e9c40d..0000000000 --- a/lib/zosjobs/modify/job/Job.handler.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs modify job" command handler. Modify a job by name and ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -export default class JobHandler extends ZosmfBaseHandler { - /** - * Command line arguments passed - * @private - * @type {*} - * @memberof JobHandler - */ - private arguments; - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs modify job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/modify/job/Job.handler.js b/lib/zosjobs/modify/job/Job.handler.js deleted file mode 100644 index eac9dfc0e0..0000000000 --- a/lib/zosjobs/modify/job/Job.handler.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs modify job" command handler. Modify a job by name and ID. - * @export - * @class JobHandler - * @implements {ICommandHandler} - */ -class JobHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs modify job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof JobHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - this.arguments = params.arguments; - // Force yargs parameters to be proper types - const jobid = this.arguments.jobid + ""; - const hold = this.arguments.hold; - const release = this.arguments.release; - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, jobid); - // Modify the job and print output - const response = yield zos_jobs_for_zowe_sdk_1.ModifyJobs.modifyJob(this.mSession, { jobname: job.jobname, jobid }, { jobclass: this.arguments.jobclass, hold, release }); - imperative_1.ImperativeExpect.toNotBeNullOrUndefined(response, "You must specify at least one option to modify your job with."); - this.data.setObj(job); - let mergedMessage = ""; - if (this.arguments.jobclass) { - if (response.message.includes("Job class invalid")) { - mergedMessage = "\nUnsuccessful. Job class '" + this.arguments.jobclass + "' invalid"; - } - else { - mergedMessage = "\nSuccessful. Class Change: " + job.class + " -> " + this.arguments.jobclass; - } - } - if (this.arguments.hold || this.arguments.release) { - if (this.arguments.hold) { - mergedMessage = mergedMessage + "\nSuccessful. Job Held"; - } - else { - mergedMessage = mergedMessage + "\nSuccessful. Job Released"; - } - } - this.console.log(mergedMessage); - }); - } -} -exports.default = JobHandler; -//# sourceMappingURL=Job.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/modify/job/Job.handler.js.map b/lib/zosjobs/modify/job/Job.handler.js.map deleted file mode 100644 index 3387519856..0000000000 --- a/lib/zosjobs/modify/job/Job.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Job.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/modify/job/Job.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAwE;AACxE,uEAAwE;AACxE,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,UAAW,SAAQ,qCAAgB;IASpD;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAC9C,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAElC,4CAA4C;YAC5C,MAAM,KAAK,GAAW,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC;YAChD,MAAM,IAAI,GAAY,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1C,MAAM,OAAO,GAAY,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAEhD,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAE7D,kCAAkC;YAClC,MAAM,QAAQ,GAAG,MAAM,kCAAU,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,EAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAC,CAAC,CAAC;YAC9I,6BAAgB,CAAC,sBAAsB,CAAC,QAAQ,EAC5C,+DAA+D,CAAC,CAAC;YACrE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,aAAa,GAAW,EAAE,CAAC;YAC/B,IAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAC;gBACvB,IAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAC;oBAC9C,aAAa,GAAG,6BAA6B,GAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAC,WAAW,CAAC;iBACrF;qBAAI;oBACD,aAAa,GAAG,8BAA8B,GAAG,GAAG,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;iBACjG;aACJ;YACD,IAAG,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAC;gBAC7C,IAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAC;oBACnB,aAAa,GAAG,aAAa,GAAG,wBAAwB,CAAC;iBAC5D;qBAAI;oBACD,aAAa,GAAG,aAAa,GAAG,4BAA4B,CAAC;iBAChE;aACJ;YACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACpC,CAAC;KAAA;CACJ;AAhDD,6BAgDC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.definition.d.ts b/lib/zosjobs/submit/Submit.definition.d.ts deleted file mode 100644 index 91171eaae1..0000000000 --- a/lib/zosjobs/submit/Submit.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SubmitDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/Submit.definition.js b/lib/zosjobs/submit/Submit.definition.js deleted file mode 100644 index 4e5735e2b9..0000000000 --- a/lib/zosjobs/submit/Submit.definition.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SubmitDefinition = void 0; -const DataSet_definition_1 = require("./data-set/DataSet.definition"); -const localFile_definition_1 = require("./local-file/localFile.definition"); -const stdin_definition_1 = require("./stdin/stdin.definition"); -const USSFile_definition_1 = require("./uss-file/USSFile.definition"); -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../-strings-/en").default.SUBMIT; -exports.SubmitDefinition = { - name: "submit", - aliases: ["sub"], - type: "group", - summary: strings.SUMMARY, - description: strings.DESCRIPTION, - children: [ - DataSet_definition_1.DataSetDefinition, - localFile_definition_1.LocalFileDefinition, - stdin_definition_1.StdinDefinition, - USSFile_definition_1.USSFileDefinition - ] -}; -//# sourceMappingURL=Submit.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.definition.js.map b/lib/zosjobs/submit/Submit.definition.js.map deleted file mode 100644 index 150bde8a41..0000000000 --- a/lib/zosjobs/submit/Submit.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Submit.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/submit/Submit.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,sEAAkE;AAClE,4EAAwE;AACxE,+DAA2D;AAG3D,sEAAkE;AAElE,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC;AAErE,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,OAAO,CAAC,WAAW;IAChC,QAAQ,EAAE;QACN,sCAAiB;QACjB,0CAAmB;QACnB,kCAAe;QACf,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.shared.handler.d.ts b/lib/zosjobs/submit/Submit.shared.handler.d.ts deleted file mode 100644 index ef5173d7c6..0000000000 --- a/lib/zosjobs/submit/Submit.shared.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs submit data-set" command handler. Submits a job (JCL) contained within a z/OS data set (PS or PDS member). - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -export default class SharedSubmitHandler extends ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs submit data-set" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/submit/Submit.shared.handler.js b/lib/zosjobs/submit/Submit.shared.handler.js deleted file mode 100644 index a99deefc3c..0000000000 --- a/lib/zosjobs/submit/Submit.shared.handler.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const fs = require("fs"); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zos_files_for_zowe_sdk_1 = require("@zowe/zos-files-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const getStream = require("get-stream"); -/** - * "zos-jobs submit data-set" command handler. Submits a job (JCL) contained within a z/OS data set (PS or PDS member). - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -class SharedSubmitHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs submit data-set" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - const status = { - statusMessage: "Submitting job", - percentComplete: imperative_1.TaskProgress.TEN_PERCENT, - stageName: imperative_1.TaskStage.IN_PROGRESS - }; - // Save the needed parameters for convenience - const parms = { - jclSource: undefined, - viewAllSpoolContent: this.mArguments.viewAllSpoolContent, - directory: this.mArguments.directory, - extension: this.mArguments.extension, - volume: this.mArguments.volume, - waitForActive: this.mArguments.waitForActive, - waitForOutput: this.mArguments.waitForOutput, - task: status, - jclSymbols: this.mArguments.jclSymbols - }; - const options = {}; - params.response.progress.startBar({ task: status }); - // Determine the positional parameter specified and invoke the correct API - // TODO: More will be added with additional commands - let sourceType; - if (this.mArguments.dataset) { - sourceType = "dataset"; - } - else if (this.mArguments.file) { - sourceType = "uss-file"; - } - else if (this.mArguments.localFile) { - sourceType = "local-file"; - } - else if (params.definition.name === "stdin") { - sourceType = "stdin"; - } - let response; // Response from Submit Job - let apiObj; // API Object to set in the command JSON response - let spoolFilesResponse; // Response from view all spool content option - let source; // The actual JCL source (i.e. data-set name, file name, etc.) - let directory = this.mArguments.directory; // Path where to download spool content - // Process depending on the source type - switch (sourceType) { - // Submit the JCL from a data set - case "dataset": - // If the data set is not in catalog and volume option is provided - if (parms.volume) { - options.volume = parms.volume; - // Get JCL from data set or member - const getJcl = yield zos_files_for_zowe_sdk_1.Get.dataSet(this.mSession, this.mArguments.dataset, options); - source = this.mArguments.dataset; - apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, getJcl.toString(), parms); - if (parms.viewAllSpoolContent) { - spoolFilesResponse = apiObj; - } - break; - } - else { - response = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJobCommon(this.mSession, { jobDataSet: this.mArguments.dataset, - jclSymbols: this.mArguments.jclSymbols }); - apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.checkSubmitOptions(this.mSession, parms, response); - source = this.mArguments.dataset; - if (parms.viewAllSpoolContent) { - spoolFilesResponse = apiObj; - } - } - break; - // Submit JCL from a USS file - case "uss-file": - response = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJobCommon(this.mSession, { jobUSSFile: this.mArguments.file, - jclSymbols: this.mArguments.jclSymbols }); - apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.checkSubmitOptions(this.mSession, parms, response); - source = this.mArguments.ussfile; - if (parms.viewAllSpoolContent) { - spoolFilesResponse = apiObj; - } - break; - // Submit the JCL from a local file - case "local-file": { - parms.jclSource = this.mArguments.localFile; - const JclString = fs.readFileSync(this.mArguments.localFile).toString(); - apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, JclString, parms); - source = this.mArguments.localFile; - if (parms.viewAllSpoolContent) { - spoolFilesResponse = apiObj; - } - break; - } - // Submit the JCL piped in on stdin - case "stdin": { - const Jcl = yield getStream(params.stdin); - apiObj = yield zos_jobs_for_zowe_sdk_1.SubmitJobs.submitJclString(this.mSession, Jcl, parms); - source = "stdin"; - if (parms.viewAllSpoolContent) { - spoolFilesResponse = apiObj; - } - break; - } - default: - throw new imperative_1.ImperativeError({ - msg: `Internal submit error: Unable to determine the JCL source. ` + - `Please contact support.`, - additionalDetails: JSON.stringify(params) - }); - } - // Print the response to the command - if (spoolFilesResponse == null) { - params.response.format.output({ - fields: ["jobid", "retcode", "jobname", "status"], - output: apiObj, - format: "object" - }); - // Set the API object to the correct - this.data.setObj(apiObj); - // Print data from spool content - } - else { - for (const spoolFile of spoolFilesResponse) { - if (spoolFile.procName != null && spoolFile.procName.length > 0) { - this.console.log("Spool file: %s (ID #%d, Step: %s, ProcStep: %s)", spoolFile.ddName, spoolFile.id, spoolFile.stepName, spoolFile.procName); - } - else { - this.console.log("Spool file: %s (ID #%d, Step: %s)", spoolFile.ddName, spoolFile.id, spoolFile.stepName); - } - this.console.log(spoolFile.data); - } - // Set the API object to the correct - this.data.setObj(spoolFilesResponse); - } - // Print path where spool content was downloaded - if (directory != null && spoolFilesResponse == null) { - directory = directory.includes("./") ? directory : `./${directory}`; - params.response.console.log(`Successfully downloaded output to ${directory}/${apiObj.jobid}`); - } - params.response.progress.endBar(); - this.data.setMessage(`Submitted JCL contained in "${sourceType}": "${source}"`); - }); - } -} -exports.default = SharedSubmitHandler; -//# sourceMappingURL=Submit.shared.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/Submit.shared.handler.js.map b/lib/zosjobs/submit/Submit.shared.handler.js.map deleted file mode 100644 index ef963cc9f1..0000000000 --- a/lib/zosjobs/submit/Submit.shared.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Submit.shared.handler.js","sourceRoot":"","sources":["../../../src/z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IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAChD,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;qBAC3D;oBACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;iBACpC;gBAED,oCAAoC;gBACpC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;aACxC;YAED,gDAAgD;YAChD,IAAI,SAAS,IAAI,IAAI,IAAI,kBAAkB,IAAI,IAAI,EAAE;gBACjD,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;gBACpE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,SAAS,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;aACjG;YACD,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,+BAA+B,UAAU,OAAO,MAAM,GAAG,CAAC,CAAC;QACpF,CAAC;KAAA;CACJ;AA3JD,sCA2JC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.d.ts b/lib/zosjobs/submit/data-set/DataSet.definition.d.ts deleted file mode 100644 index e3f908f4a8..0000000000 --- a/lib/zosjobs/submit/data-set/DataSet.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const DataSetDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.js b/lib/zosjobs/submit/data-set/DataSet.definition.js deleted file mode 100644 index d89049d759..0000000000 --- a/lib/zosjobs/submit/data-set/DataSet.definition.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataSetDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; -exports.DataSetDefinition = { - name: "data-set", - aliases: ["ds"], - type: "command", - summary: strings.DATA_SET.SUMMARY, - description: strings.DATA_SET.DESCRIPTION, - handler: __dirname + "/../Submit.shared.handler", - positionals: [ - { - name: "dataset", - description: strings.DATA_SET.POSITIONALS.DATASET, - type: "string", - required: true - } - ], - options: [ - { - name: "volume", aliases: ["vol"], - description: strings.DATA_SET.OPTIONS.VOLUME, - type: "string" - }, - { - name: "wait-for-active", aliases: ["wfa"], - description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, - type: "boolean", - conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] - }, - { - name: "wait-for-output", aliases: ["wfo"], - description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, - type: "boolean" - }, - { - name: "view-all-spool-content", aliases: ["vasc"], - description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, - type: "boolean" - }, - { - name: "directory", aliases: ["d"], - description: strings.COMMON_OPT.DIRECTORY, - type: "string" - }, - { - name: "extension", aliases: ["e"], - description: strings.COMMON_OPT.EXTENSION, - implies: ["directory"], - type: "string" - }, - { - name: "jcl-symbols", aliases: ["js"], - description: strings.COMMON_OPT.JCL_SYMBOLS, - type: "string" - } - ], - profile: { - optional: ["zosmf"] - }, - outputFormatOptions: true, - examples: [ - { - options: strings.DATA_SET.EXAMPLES.EX1.OPTIONS, - description: strings.DATA_SET.EXAMPLES.EX1.DESCRIPTION - }, - { - options: strings.DATA_SET.EXAMPLES.EX2.OPTIONS, - description: strings.DATA_SET.EXAMPLES.EX2.DESCRIPTION - } - ] -}; -//# sourceMappingURL=DataSet.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/data-set/DataSet.definition.js.map b/lib/zosjobs/submit/data-set/DataSet.definition.js.map deleted file mode 100644 index 0337cba735..0000000000 --- a/lib/zosjobs/submit/data-set/DataSet.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataSet.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/data-set/DataSet.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACjC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;IACzC,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YAChC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;YAC5C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,WAAW,CAAC;SAC5E;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osjobs/submit/local-file/localFile.definition.d.ts b/lib/zosjobs/submit/local-file/localFile.definition.d.ts deleted file mode 100644 index 67b0e2376f..0000000000 --- a/lib/zosjobs/submit/local-file/localFile.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const LocalFileDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/local-file/localFile.definition.js b/lib/zosjobs/submit/local-file/localFile.definition.js deleted file mode 100644 index 5980ddf0e0..0000000000 --- a/lib/zosjobs/submit/local-file/localFile.definition.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LocalFileDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; -exports.LocalFileDefinition = { - name: "local-file", - aliases: ["lf"], - type: "command", - summary: strings.LOCAL_FILE.SUMMARY, - description: strings.LOCAL_FILE.DESCRIPTION, - handler: __dirname + "/../Submit.shared.handler", - positionals: [ - { - name: "localFile", - description: strings.LOCAL_FILE.POSITIONALS.NAME, - type: "string", - required: true - } - ], - options: [ - { - name: "wait-for-active", aliases: ["wfa"], - description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, - type: "boolean", - conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] - }, - { - name: "wait-for-output", aliases: ["wfo"], - description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, - type: "boolean" - }, - { - name: "view-all-spool-content", aliases: ["vasc"], - description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, - type: "boolean" - }, - { - name: "directory", aliases: ["d"], - description: strings.COMMON_OPT.DIRECTORY, - type: "string" - }, - { - name: "extension", aliases: ["e"], - description: strings.COMMON_OPT.EXTENSION, - type: "string" - }, - { - name: "jcl-symbols", aliases: ["js"], - description: strings.COMMON_OPT.JCL_SYMBOLS, - type: "string" - } - ], - profile: { - optional: ["zosmf"] - }, - outputFormatOptions: true, - examples: [ - { - options: strings.LOCAL_FILE.EXAMPLES.EX1.OPTIONS, - description: strings.LOCAL_FILE.EXAMPLES.EX1.DESCRIPTION - } - ] -}; -//# sourceMappingURL=localFile.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/local-file/localFile.definition.js.map b/lib/zosjobs/submit/local-file/localFile.definition.js.map deleted file mode 100644 index 227acf5d69..0000000000 --- a/lib/zosjobs/submit/local-file/localFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"localFile.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/local-file/localFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO;IACnC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;IAC3C,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI;YAChD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,WAAW,CAAC;SAC5E;QACD;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC;YACjD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,sBAAsB;YACtD,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YACjC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;YACzC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YACjC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;YACzC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC;YACpC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;YAC3C,IAAI,EAAE,QAAQ;SACjB;KAC0B;IAC/B,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAChD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;SAC3D;KACJ;CACR,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/stdin/stdin.definition.d.ts b/lib/zosjobs/submit/stdin/stdin.definition.d.ts deleted file mode 100644 index 0c66ca5d72..0000000000 --- a/lib/zosjobs/submit/stdin/stdin.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const StdinDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/stdin/stdin.definition.js b/lib/zosjobs/submit/stdin/stdin.definition.js deleted file mode 100644 index 980383522f..0000000000 --- a/lib/zosjobs/submit/stdin/stdin.definition.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StdinDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; -exports.StdinDefinition = { - name: "stdin", - aliases: ["in"], - type: "command", - summary: strings.STDIN.SUMMARY, - description: strings.STDIN.DESCRIPTION, - handler: __dirname + "/../Submit.shared.handler", - options: [ - { - name: "wait-for-active", aliases: ["wfa"], - description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, - type: "boolean", - conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] - }, - { - name: "wait-for-output", aliases: ["wfo"], - description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, - type: "boolean" - }, - { - name: "view-all-spool-content", aliases: ["vasc"], - description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, - type: "boolean" - }, - { - name: "directory", aliases: ["d"], - description: strings.COMMON_OPT.DIRECTORY, - type: "string" - }, - { - name: "extension", aliases: ["e"], - description: strings.COMMON_OPT.EXTENSION, - type: "string" - }, - { - name: "jcl-symbols", aliases: ["js"], - description: strings.COMMON_OPT.JCL_SYMBOLS, - type: "string" - } - ], - profile: { - optional: ["zosmf"] - }, - outputFormatOptions: true, - examples: [ - { - description: strings.STDIN.EXAMPLES.EX1.DESCRIPTION, - options: strings.STDIN.EXAMPLES.EX1.OPTIONS - }, - { - description: strings.STDIN.EXAMPLES.EX2.DESCRIPTION, - options: strings.STDIN.EXAMPLES.EX2.OPTIONS, - prefix: strings.STDIN.EXAMPLES.EX2.PREFIX - } - ] -}; -//# sourceMappingURL=stdin.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/stdin/stdin.definition.js.map b/lib/zosjobs/submit/stdin/stdin.definition.js.map deleted file mode 100644 index 63beb3ef1e..0000000000 --- a/lib/zosjobs/submit/stdin/stdin.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stdin.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/stdin/stdin.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,eAAe,GAAuB;IAC/C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;IAC9B,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,WAAW;IACtC,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,SAAS;YACf,aAAa,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,WAAW,CAAC;SAC5E;QACD;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC;YACjD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,sBAAsB;YACtD,IAAI,EAAE,SAAS;SAClB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YACjC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;YACzC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;YACjC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;YACzC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC;YACpC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;YAC3C,IAAI,EAAE,QAAQ;SACjB;KAC2B;IAChC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,mBAAmB,EAAE,IAAI;IACzB,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACnD,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;SAC9C;QACD;YACI,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW;YACnD,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;YAC3C,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM;SAC5C;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts b/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts deleted file mode 100644 index 8742d5c1f2..0000000000 --- a/lib/zosjobs/submit/uss-file/USSFile.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const USSFileDefinition: ICommandDefinition; diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.js b/lib/zosjobs/submit/uss-file/USSFile.definition.js deleted file mode 100644 index a3c04027c4..0000000000 --- a/lib/zosjobs/submit/uss-file/USSFile.definition.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.USSFileDefinition = void 0; -// Does not use the import in anticipation of some internationalization work to be done later. -const strings = require("../../-strings-/en").default.SUBMIT.ACTIONS; -exports.USSFileDefinition = { - name: "uss-file", - aliases: ["uf", "uss"], - type: "command", - summary: strings.USS_FILE.SUMMARY, - description: strings.USS_FILE.DESCRIPTION, - handler: __dirname + "/../Submit.shared.handler", - positionals: [ - { - name: "file", - description: strings.USS_FILE.POSITIONALS.USSFILE, - type: "string", - required: true - } - ], - options: [ - { - name: "wait-for-active", aliases: ["wfa"], - description: strings.COMMON_OPT.WAIT_FOR_ACTIVE, - type: "boolean", - conflictsWith: ["wait-for-output", "view-all-spool-content", "directory"] - }, - { - name: "wait-for-output", aliases: ["wfo"], - description: strings.COMMON_OPT.WAIT_FOR_OUTPUT, - type: "boolean" - }, - { - name: "view-all-spool-content", aliases: ["vasc"], - description: strings.COMMON_OPT.VIEW_ALL_SPOOL_CONTENT, - type: "boolean" - }, - { - name: "directory", aliases: ["d"], - description: strings.COMMON_OPT.DIRECTORY, - type: "string" - }, - { - name: "extension", aliases: ["e"], - description: strings.COMMON_OPT.EXTENSION, - implies: ["directory"], - type: "string" - }, - { - name: "jcl-symbols", aliases: ["js"], - description: strings.COMMON_OPT.JCL_SYMBOLS, - type: "string" - } - ], - profile: { - optional: ["zosmf"] - }, - outputFormatOptions: true, - examples: [ - { - options: strings.USS_FILE.EXAMPLES.EX1.OPTIONS, - description: strings.USS_FILE.EXAMPLES.EX1.DESCRIPTION - }, - { - options: strings.USS_FILE.EXAMPLES.EX2.OPTIONS, - description: strings.USS_FILE.EXAMPLES.EX2.DESCRIPTION - } - ] -}; -//# sourceMappingURL=USSFile.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/submit/uss-file/USSFile.definition.js.map b/lib/zosjobs/submit/uss-file/USSFile.definition.js.map deleted file mode 100644 index c2b18e568b..0000000000 --- a/lib/zosjobs/submit/uss-file/USSFile.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"USSFile.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/submit/uss-file/USSFile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF,8FAA8F;AAC9F,MAAM,OAAO,GAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAA8B,CAAC,MAAM,CAAC,OAAO,CAAC;AAIhF,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACtB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACjC,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW;IACzC,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;YAC/C,IAAI,EAAE,S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AQ,CAAC,GAAG,CAAC,WAAW;SACzD;KACJ;CACR,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/View.definition.d.ts b/lib/zosjobs/view/View.definition.d.ts deleted file mode 100644 index 5b1f78ee33..0000000000 --- a/lib/zosjobs/view/View.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ViewDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/View.definition.js b/lib/zosjobs/view/View.definition.js deleted file mode 100644 index 1f6b6df764..0000000000 --- a/lib/zosjobs/view/View.definition.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ViewDefinition = void 0; -const AllSpoolContent_definition_1 = require("./all-spool-content/AllSpoolContent.definition"); -const JobStatusByJobid_definition_1 = require("./job-status-by-jobid/JobStatusByJobid.definition"); -const SpoolFileById_definition_1 = require("./spool-file-by-id/SpoolFileById.definition"); -exports.ViewDefinition = { - name: "view", - aliases: ["vw"], - type: "group", - summary: "View details of a z/OS job", - description: "View details of z/OS jobs on spool/JES queues.", - children: [ - AllSpoolContent_definition_1.AllSpoolContentDefinition, - JobStatusByJobid_definition_1.JobStatusByJobidDefinition, - SpoolFileById_definition_1.SpoolFileByIdDefinition - ] -}; -//# sourceMappingURL=View.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/View.definition.js.map b/lib/zosjobs/view/View.definition.js.map deleted file mode 100644 index c589ed8b03..0000000000 --- a/lib/zosjobs/view/View.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"View.definition.js","sourceRoot":"","sources":["../../../src/zosjobs/view/View.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,+FAA2F;AAC3F,mGAA+F;AAC/F,0FAAsF;AAEzE,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE;QACN,sDAAyB;QACzB,wDAA0B;QAC1B,kDAAuB;KAC1B;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts deleted file mode 100644 index 1a4084682b..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const AllSpoolContentDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js deleted file mode 100644 index 0b86e9b382..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AllSpoolContentDefinition = void 0; -exports.AllSpoolContentDefinition = { - name: "all-spool-content", - aliases: ["asc"], - type: "command", - summary: "View all spool content for a specified job ID", - description: "View the contents of each spool file from a z/OS job on spool/JES queues. " + - "The command does not pre-validate the JOBID. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", - handler: __dirname + "/AllSpoolContent.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: "The z/OS JOBID of the job containing the spool files you want to view. " + - "No pre-validation of the JOBID is performed.", - type: "string", - required: true - }, - ], - examples: [ - { - description: "View all spool files for the job with job ID JOB00234", - options: "JOB00234" - } - ] -}; -//# sourceMappingURL=AllSpoolContent.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map b/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map deleted file mode 100644 index 0d0aba3982..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllSpoolContent.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,yBAAyB,GAAuB;IACzD,IAAI,EAAE,mBAAmB;IACzB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,+CAA+C;IACxD,WAAW,EAAE,4EAA4E;QACzF,+CAA+C;QAC/C,2EAA2E;IAC3E,OAAO,EAAE,SAAS,GAAG,0BAA0B;IAC/C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yEAAyE;gBACtF,8CAA8C;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,UAAU;SACtB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts deleted file mode 100644 index 36100ca944..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -export default class AllSpoolContentHandler extends ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js deleted file mode 100644 index d928c42847..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs view all-spool-content" command handler. Outputs details regarding a z/OS job. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -class AllSpoolContentHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view all-spool-content" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); - // Get spool files - const spoolFiles = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolFilesForJob(this.mSession, job); - const responseArray = []; - for (const spoolFile of spoolFiles) { - const spoolContent = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContent(this.mSession, spoolFile); - if (spoolFile.procstep != null && spoolFile.procstep.length > 0) { - this.console.log("Spool file: %s (ID #%d, Step: %s, ProcStep: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname, spoolFile.procstep); - } - else { - this.console.log("Spool file: %s (ID #%d, Step: %s)", spoolFile.ddname, spoolFile.id, spoolFile.stepname); - } - this.console.log(spoolContent); - responseArray.push({ - id: spoolFile.id, - ddName: spoolFile.ddname, - stepName: spoolFile.stepname, - procName: spoolFile.procstep, - data: spoolContent.toString(), - }); - } - // Return as an object when using --response-format-json - // This differs from the initial implementation, but we should probably return more then the last spool file. - this.data.setObj(responseArray); - }); - } -} -exports.default = AllSpoolContentHandler; -//# sourceMappingURL=AllSpoolContent.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map b/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map deleted file mode 100644 index bf4de92455..0000000000 --- a/lib/zosjobs/view/all-spool-content/AllSpoolContent.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AllSpoolContent.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/all-spool-content/AllSpoolContent.handler.ts"],"names":[],"mappings":";AAAA;;;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,EAAE,SAAS,CAAC,QAAQ;oBAC5B,IAAI,EAAE,YAAY,CAAC,QAAQ,EAAE;iBAChC,CAAC,CAAC;aACN;YAED,wDAAwD;YACxD,6GAA6G;YAC7G,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACpC,CAAC;KAAA;CACJ;AAvCD,yCAuCC"} \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts deleted file mode 100644 index a7ec471c8b..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const JobStatusByJobidDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js deleted file mode 100644 index 9ebc827dc6..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JobStatusByJobidDefinition = void 0; -exports.JobStatusByJobidDefinition = { - name: "job-status-by-jobid", - aliases: ["jsbj"], - type: "command", - summary: "View status details of a z/OS job", - description: "View status details of a single z/OS job on spool/JES queues. " + - "The command does not prevalidate the JOBID. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints (expect for \"no jobs found\").", - handler: __dirname + "/JobStatusByJobid.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: "The z/OS JOBID of the job you want to view." + - " No prevalidation of the JOBID is performed.", - type: "string", - required: true - } - ], - examples: [ - { - options: "j123", - description: "View status and other details of the job with the job ID JOB00123" - }, - { - options: "j123 --rff status --rft string", - description: "Print only the status (for example, \"OUTPUT\" or \"ACTIVE\") of the job with the job ID JOB00123" - } - ], - outputFormatOptions: true -}; -//# sourceMappingURL=JobStatusByJobid.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map deleted file mode 100644 index c6496f06e8..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"JobStatusByJobid.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/job-status-by-jobid/JobStatusByJobid.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,0BAA0B,GAAuB;IAC1D,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,gEAAgE;QACzE,8CAA8C;QAC9C,0GAA0G;IAC9G,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,6CAA6C;gBACtD,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EACJ;QACI;YACI,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,mEAAmE;SACnF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,mGAAmG;SACnH;KACJ;IACL,mBAAmB,EAAE,IAAI;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts deleted file mode 100644 index 0dd6f9b436..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs view job-status-by-jobid" command handler. Outputs details regarding a z/OS job. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -export default class JobStatusByJobidHandler extends ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view job-status-by-jobid" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js deleted file mode 100644 index 19f946e46b..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs view job-status-by-jobid" command handler. Outputs details regarding a z/OS job. - * @export - * @class SubmitJobHandler - * @implements {ICommandHandler} - */ -class JobStatusByJobidHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view job-status-by-jobid" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - // Get the job details - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); - // Set the object, message, and log the prettified object - this.data.setObj(job); - this.data.setMessage(`Details obtained for job ${this.mArguments.jobid}`); - // // Format the output with the default fields - params.response.format.output({ - fields: ["jobid", "retcode", "jobname", "status"], - output: job, - format: "object" - }); - }); - } -} -exports.default = JobStatusByJobidHandler; -//# sourceMappingURL=JobStatusByJobid.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map b/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map deleted file mode 100644 index fed58e1016..0000000000 --- a/lib/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"JobStatusByJobid.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/job-status-by-jobid/JobStatusByJobid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA4D;AAC5D,iEAA4D;AAE5D;;;;;GAKG;AACH,MAAqB,uBAAwB,SAAQ,qCAAgB;IAEjE;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sBAAsB;YACtB,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAE7E,yDAAyD;YACzD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,4BAA4B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;YAE1E,+CAA+C;YAC/C,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBAC1B,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACjD,MAAM,EAAE,GAAG;gBACX,MAAM,EAAE,QAAQ;aACnB,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAxBD,0CAwBC"} \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts deleted file mode 100644 index 1b75975c7a..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SpoolFileByIdDefinition: ICommandDefinition; diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js deleted file mode 100644 index 4904c01869..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SpoolFileByIdDefinition = void 0; -const Constants_1 = require("../../../Constants"); -exports.SpoolFileByIdDefinition = { - name: "spool-file-by-id", - aliases: ["sfbi"], - type: "command", - summary: "View a spool file from a z/OS job", - description: "View the contents of a spool file from a z/OS job on spool/JES queues. " + - "The command does not pre-validate the JOBID or spool ID. " + - "The command presents errors verbatim from the z/OSMF Jobs REST endpoints.", - handler: __dirname + "/SpoolFileById.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "jobid", - description: "The z/OS JOBID of the job containing the spool file you want to view. " + - "No pre-validation of the JOBID is performed.", - type: "string", - required: true - }, - { - name: "spoolfileid", - description: "The spool file ID number for the spool file to view. " + - `Use the "${Constants_1.Constants.BINARY_NAME} zos-jobs list spool-files-by-jobid" command to obtain spool ID numbers.` + - "No pre-validation of the ID is performed.", - type: "number", - required: true - } - ], - examples: [ - { - description: "View the spool file with ID 4 for the job with job ID JOB00123", - options: "JOB00123 4" - } - ] -}; -//# sourceMappingURL=SpoolFileById.definition.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map deleted file mode 100644 index 7e23b5b24e..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpoolFileById.definition.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/spool-file-by-id/SpoolFileById.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,uBAAuB,GAAuB;IACvD,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,yEAAyE;QAClF,2DAA2D;QAC3D,2EAA2E;IAC/E,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wEAAwE;gBACjF,8CAA8C;YAClD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,uDAAuD;gBAChE,YAAY,qBAAS,CAAC,WAAW,0EAA0E;gBAC3G,2CAA2C;YAC/C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts deleted file mode 100644 index 661fded5fe..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * "zos-jobs view spool-by-id" command handler. Outputs a single spool DD contents. - * @export - * @class SubmitJobHandler - */ -export default class SpoolFileByIdHandler extends ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js deleted file mode 100644 index c61d484f6e..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_jobs_for_zowe_sdk_1 = require("@zowe/zos-jobs-for-zowe-sdk"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * "zos-jobs view spool-by-id" command handler. Outputs a single spool DD contents. - * @export - * @class SubmitJobHandler - */ -class SpoolFileByIdHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - /** - * Command handler process - invoked by the command processor to handle the "zos-jobs view job" - * @param {IHandlerParameters} params - Command handler parameters - * @returns {Promise} - Fulfilled when the command completes successfully OR rejected with imperative error - * @memberof SubmitDataSetHandler - */ - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - // Get the job details and spool files - const job = yield zos_jobs_for_zowe_sdk_1.GetJobs.getJob(this.mSession, this.mArguments.jobid); - // Get the content, set the JSON response object, and print - const content = yield zos_jobs_for_zowe_sdk_1.GetJobs.getSpoolContentById(this.mSession, job.jobname, job.jobid, this.mArguments.spoolfileid); - this.data.setObj(content); - this.data.setMessage(`Spool file "${this.mArguments.spoolfileid}" content obtained for job "${job.jobname}(${job.jobid})"`); - this.console.log(Buffer.from(content)); - }); - } -} -exports.default = SpoolFileByIdHandler; -//# sourceMappingURL=SpoolFileById.handler.js.map \ No newline at end of file diff --git a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map b/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map deleted file mode 100644 index 803e78e3ee..0000000000 --- a/lib/zosjobs/view/spool-file-by-id/SpoolFileById.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SpoolFileById.handler.js","sourceRoot":"","sources":["../../../../src/zosjobs/view/spool-file-by-id/SpoolFileById.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,uEAA4D;AAC5D,iEAA4D;AAE5D;;;;GAIG;AACH,MAAqB,oBAAqB,SAAQ,qCAAgB;IAC9D;;;;;OAKG;IACU,UAAU,CAAC,MAA0B;;YAE9C,sCAAsC;YACtC,MAAM,GAAG,GAAS,MAAM,+BAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAE7E,2DAA2D;YAC3D,MAAM,OAAO,GAAW,MAAM,+BAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAC9H,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,WAAW,+BAA+B,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC;YAC5H,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3C,CAAC;KAAA;CACJ;AAlBD,uCAkBC"} \ No newline at end of file diff --git a/lib/zoslogs/list/List.definition.d.ts b/lib/zoslogs/list/List.definition.d.ts deleted file mode 100644 index f80abb94cf..0000000000 --- a/lib/zoslogs/list/List.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ListDefinition: ICommandDefinition; diff --git a/lib/zoslogs/list/List.definition.js b/lib/zoslogs/list/List.definition.js deleted file mode 100644 index 5692beecf0..0000000000 --- a/lib/zoslogs/list/List.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDefinition = void 0; -const Logs_definition_1 = require("./logs/Logs.definition"); -exports.ListDefinition = { - name: "list", - aliases: ["ls"], - type: "group", - summary: "List z/OS logs", - description: "List z/OS logs by invoking z/OSMF REST API.", - children: [Logs_definition_1.LogsDefinition] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/List.definition.js.map b/lib/zoslogs/list/List.definition.js.map deleted file mode 100644 index b6e8616921..0000000000 --- a/lib/zoslogs/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zoslogs/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,4DAAwD;AAE3C,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,CAAC,gCAAc,CAAC;CAC7B,CAAC"} \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.definition.d.ts b/lib/zoslogs/list/logs/Logs.definition.d.ts deleted file mode 100644 index 36ec39828e..0000000000 --- a/lib/zoslogs/list/logs/Logs.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const LogsDefinition: ICommandDefinition; diff --git a/lib/zoslogs/list/logs/Logs.definition.js b/lib/zoslogs/list/logs/Logs.definition.js deleted file mode 100644 index e4f58bff0f..0000000000 --- a/lib/zoslogs/list/logs/Logs.definition.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogsDefinition = void 0; -const Constants_1 = require("../../../Constants"); -exports.LogsDefinition = { - name: "logs", - aliases: [], - summary: "List z/OS operlog or syslog within a time range", - description: `List z/OS operlog within a time range.` + - `\n\n` + - `Use this operation to get the z/OS operations logs. It invokes z/OSMF REST API to retrieve logs.` + - `\n\n` + - `Executing '${Constants_1.Constants.BINARY_NAME} zos-logs list logs' will by default return logs from current time and backwards to 10 minutes before.` + - `\n\n` + - `Note: OPERLOG needs to be configured on z/OS server.`, - type: "command", - handler: __dirname + "/Logs.handler", - profile: { - optional: ["zosmf"] - }, - options: [ - { - name: "start-time", - aliases: ["st"], - description: `Specify the time in ISO-8601 time format from when z/OSMF will start to retrieve the logs. For example, ` + - `'2021-01-26T03:33:18.065Z', '2021-01-26T11:33:18.065+08:00'. Default is the current time.`, - type: "string" - }, - { - name: "direction", - aliases: ["d"], - description: `Specify the direction when retrieving the message log. Either 'forward' or 'backward' is valid, case insensitive.`, - type: "string", - defaultValue: "backward", - allowableValues: { values: ["forward", "backward"] } - }, - { - name: "range", - aliases: ["r"], - description: `Specify a time range in which the logs will be retrieved. The format is like nnnu, nnn is 1-999, u is one ` + - `of 's', 'm', 'h', for example, '999s', '20m', '3h'.`, - type: "string", - defaultValue: "10m" - } - ], - examples: [ - { - description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later", - options: "--start-time 2021-07-26T03:38:37.098Z --range 5m --direction forward" - }, - { - description: "List logs starting from '2021-07-26T03:38:37.098Z' and forwards to 5 minutes later. Alias version of the above command", - options: "--st 2021-07-26T03:38:37.098Z -r 5m -d forward" - }, - { - description: "List logs starting from '2021-07-26T03:38:37.098Z' and backwards to 5 minutes before", - options: "--start-time 2021-07-26T03:38:37.098Z --range 5m" - } - ] -}; -//# sourceMappingURL=Logs.definition.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.definition.js.map b/lib/zoslogs/list/logs/Logs.definition.js.map deleted file mode 100644 index 39a394cdfb..0000000000 --- a/lib/zoslogs/list/logs/Logs.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Logs.definition.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kDAA+C;AAElC,QAAA,cAAc,GAAuB;IAC9C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,iDAAiD;IAC1D,WAAW,EACP,wCAAwC;QACxC,MAAM;QACN,kGAAkG;QAClG,MAAM;QACN,cAAc,qBAAS,CAAC,WAAW,wGAAwG;QAC3I,MAAM;QACN,sDAAsD;IAC1D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,eAAe;IACpC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,WAAW,EAAE,0GAA0G;gBACvH,2FAA2F;YAC3F,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,mHAAmH;YAChI,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,UAAU;YACxB,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE;SACvD;QACD;YACI,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,WAAW,EAAE,4GAA4G;gBACzH,qDAAqD;YACrD,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,KAAK;SACtB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oFAAoF;YACjG,OAAO,EAAE,sEAAsE;SAClF;QACD;YACI,WAAW,EAAE,wHAAwH;YACrI,OAAO,EAAE,gDAAgD;SAC5D;QACD;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,kDAAkD;SAC9D;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.handler.d.ts b/lib/zoslogs/list/logs/Logs.handler.d.ts deleted file mode 100644 index 17063e3b46..0000000000 --- a/lib/zoslogs/list/logs/Logs.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handle to get logs from z/OSMF restful api - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class LogsHandler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zoslogs/list/logs/Logs.handler.js b/lib/zoslogs/list/logs/Logs.handler.js deleted file mode 100644 index d4390e8793..0000000000 --- a/lib/zoslogs/list/logs/Logs.handler.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const zos_logs_for_zowe_sdk_1 = require("@zowe/zos-logs-for-zowe-sdk"); -/** - * Handle to get logs from z/OSMF restful api - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class LogsHandler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const outputHeader = "Retrieved %s messages from %s, starts from %s, ends at %s. "; - let startTime = new Date().toISOString(); - if (commandParameters.arguments.startTime !== undefined) { - startTime = commandParameters.arguments.startTime; - // in case the input is milliseconds format, which is a long number - if (!isNaN(commandParameters.arguments.startTime)) { - startTime = new Date(+startTime).toISOString(); - } - } - const zosLogParms = { - startTime, - direction: commandParameters.arguments.direction, - range: commandParameters.arguments.range - }; - try { - const resp = yield zos_logs_for_zowe_sdk_1.GetZosLog.getZosLog(this.mSession, zosLogParms); - const logItems = resp.items; - if (logItems === undefined || logItems.length === 0) { - commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, 0, "logs", startTime, new Date(resp.nextTimestamp).toISOString())); - return; - } - // remove control characters, except \u000A(\n) and \u000D(\r) - for (const logItem of logItems) { - logItem.message = logItem.message. - replace(/[\u0000-\u0009\u000B\u000C\u000E-\u001F\u007F-\u009F]/g, ""); // eslint-disable-line no-control-regex - } - // Return as an object in the response 'data' field when using --response-format-json - commandParameters.response.data.setObj(resp); - commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(outputHeader, resp.totalitems, resp.source, startTime, new Date(resp.nextTimestamp).toISOString())); - commandParameters.response.console.log(""); - const memberList = logItems.map((logItem) => new Date(logItem.timestamp).toISOString() + " " + logItem.message.replace(/\r/g, "\n")); - commandParameters.response.console.log(memberList.join("\n")); - } - catch (err) { - if (err.mMessage !== undefined && err.mMessage.includes('status 404')) { - commandParameters.response.console.log("Note: This feature dependents on z/OSMF version 2.4 or higher. Ensure that the z/OSMF" + - " Operations Log Support is available via APAR and associated PTFs: https://www.ibm.com/support/pages/apar/PH35930. \n"); - } - throw err; - } - }); - } -} -exports.default = LogsHandler; -//# sourceMappingURL=Logs.handler.js.map \ No newline at end of file diff --git a/lib/zoslogs/list/logs/Logs.handler.js.map b/lib/zoslogs/list/logs/Logs.handler.js.map deleted file mode 100644 index 973eba38d5..0000000000 --- a/lib/zoslogs/list/logs/Logs.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Logs.handler.js","sourceRoot":"","sources":["../../../../src/zoslogs/list/logs/Logs.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iEAA4D;AAC5D,uEAAoG;AACpG;;;;;GAKG;AACH,MAAqB,WAAY,SAAQ,qCAAgB;IACxC,UAAU,CAAC,iBAAqC;;YACzD,MAAM,YAAY,GAAG,6DAA6D,CAAC;YAEnF,IAAI,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACzC,IAAI,iBAAiB,CAAC,SAAS,CAAC,SAAS,KAAK,SAAS,EAAE;gBACrD,SAAS,GAAG,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC;gBAClD,mEAAmE;gBACnE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;oBAC/C,SAAS,GAAG,IAAI,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,CAAC;iBAClD;aACJ;YAED,MAAM,WAAW,GAAiB;gBAC9B,SAAS;gBACT,SAAS,EAAE,iBA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C7C,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC7F,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aAEjE;YAAC,OAAO,GAAG,EAAE;gBACV,IAAG,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAC;oBACjE,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uFAAuF;wBAC9H,uHAAuH,CAAC,CAAC;iBAC5H;gBACD,MAAM,GAAG,CAAC;aACb;QACL,CAAC;KAAA;CACJ;AAxDD,8BAwDC"} \ No newline at end of file diff --git a/lib/zosmf/check/Check.definition.d.ts b/lib/zosmf/check/Check.definition.d.ts deleted file mode 100644 index cb90274553..0000000000 --- a/lib/zosmf/check/Check.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const CheckCommand: ICommandDefinition; diff --git a/lib/zosmf/check/Check.definition.js b/lib/zosmf/check/Check.definition.js deleted file mode 100644 index 16dde57259..0000000000 --- a/lib/zosmf/check/Check.definition.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CheckCommand = void 0; -const Status_definition_1 = require("./status/Status.definition"); -exports.CheckCommand = { - name: "check", - type: "group", - description: "Confirm that z/OSMF is running on a specified system " + - "and gather information about the z/OSMF server for diagnostic purposes. ", - children: [ - Status_definition_1.StatusDefinition - ] -}; -//# sourceMappingURL=Check.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/check/Check.definition.js.map b/lib/zosmf/check/Check.definition.js.map deleted file mode 100644 index b2445442da..0000000000 --- a/lib/zosmf/check/Check.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Check.definition.js","sourceRoot":"","sources":["../../../src/zosmf/check/Check.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,kEAA8D;AAEjD,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,uDAAuD;QAChE,0EAA0E;IAC9E,QAAQ,EAAE;QACN,oCAAgB;KACnB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.definition.d.ts b/lib/zosmf/check/status/Status.definition.d.ts deleted file mode 100644 index f032b128b9..0000000000 --- a/lib/zosmf/check/status/Status.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const StatusDefinition: ICommandDefinition; diff --git a/lib/zosmf/check/status/Status.definition.js b/lib/zosmf/check/status/Status.definition.js deleted file mode 100644 index af4717d03a..0000000000 --- a/lib/zosmf/check/status/Status.definition.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StatusDefinition = void 0; -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -exports.StatusDefinition = { - name: "status", - description: "Confirm that z/OSMF is running on a system specified in your profile and gather " + - "information about the z/OSMF server for diagnostic purposes. The command outputs properties " + - "of the z/OSMF server such as version, hostname, and installed plug-ins.", - type: "command", - handler: __dirname + "/Status.handler", - profile: { - optional: ["zosmf"] - }, - options: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS, - examples: [ - { - description: "Report the status of the z/OSMF server that you specified " + - "in your default z/OSMF profile", - options: "" - }, - { - description: "Report the status of the z/OSMF server that you specified " + - "in a supplied z/OSMF profile", - options: "--zosmf-profile SomeZosmfProfileName" - }, - { - description: "Report the status of the z/OSMF server that you specified manually via command line", - options: "--host myhost --port 443 --user myuser --password mypass" - } - ] -}; -//# sourceMappingURL=Status.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.definition.js.map b/lib/zosmf/check/status/Status.definition.js.map deleted file mode 100644 index 44247c924b..0000000000 --- a/lib/zosmf/check/status/Status.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Status.definition.js","sourceRoot":"","sources":["../../../../src/zosmf/check/status/Status.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iEAAwD;AAE3C,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,kFAAkF;QAC3F,8FAA8F;QAC9F,yEAAyE;IAC7E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,iBAAiB;IACtC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,iCAAY,CAAC,wBAAwB;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,4DAA4D;gBACrE,gCAAgC;YACpC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,4DAA4D;gBACrE,8BAA8B;YAClC,OAAO,EAAE,sCAAsC;SAClD;QACD;YACI,WAAW,EAAE,qFAAqF;YAClG,OAAO,EAAE,0DAA0D;SACtE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.handler.d.ts b/lib/zosmf/check/status/Status.handler.d.ts deleted file mode 100644 index 03b3a0cfbf..0000000000 --- a/lib/zosmf/check/status/Status.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to show zosmf information - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zosmf/check/status/Status.handler.js b/lib/zosmf/check/status/Status.handler.js deleted file mode 100644 index 8f061fa03b..0000000000 --- a/lib/zosmf/check/status/Status.handler.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -const CheckStatus_messages_1 = require("../../constants/CheckStatus.messages"); -/** - * Handler to show zosmf information - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - // our getZosmfInfo API does all of the work - const zosResponse = yield zosmf_for_zowe_sdk_1.CheckStatus.getZosmfInfo(this.mSession); - /* After a successful retrieval, collect the zosmf response object - * into an object that provides a better display. - */ - const mainZosmfProps = { - zosmf_port: zosResponse.zosmf_port, - zosmf_saf_realm: zosResponse.zosmf_saf_realm, - zos_version: zosResponse.zos_version, - zosmf_full_version: zosResponse.zosmf_full_version, - api_version: zosResponse.api_version - }; - // display the information that we got - let userToDisplay; - if (this.mSession.ISession.user === undefined || - this.mSession.ISession.user === null || - this.mSession.ISession.user.length === 0) { - userToDisplay = "with a token"; - } - else { - userToDisplay = this.mSession.ISession.user; - } - commandParameters.response.console.log(imperative_1.TextUtils.formatMessage(CheckStatus_messages_1.CheckStatusMessages.cmdSucceeded.message, { - userName: userToDisplay, - hostName: zosResponse.zosmf_hostname, - mainZosmfProps: imperative_1.TextUtils.prettyJson(mainZosmfProps), - pluginStatus: imperative_1.TextUtils.prettyJson(zosResponse.plugins) - })); - // Return the original zosResponse when using --response-format-json - commandParameters.response.data.setObj(zosResponse); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Status.handler.js.map \ No newline at end of file diff --git a/lib/zosmf/check/status/Status.handler.js.map b/lib/zosmf/check/status/Status.handler.js.map deleted file mode 100644 index 47f7f6181c..0000000000 --- a/lib/zosmf/check/status/Status.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Status.handler.js","sourceRoot":"","sources":["../../../../src/zosmf/check/status/Status.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAiE;AACjE,iEAA6F;AAC7F,+EAA2E;AAE3E;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,4CAA4C;YAC5C,MAAM,WAAW,GAAuB,MAAM,gCAAW,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEtF;;eAEG;YACH,MAAM,cAAc,GAAG;gBACnB,UAAU,EAAE,WAAW,CAAC,UAAU;gBAClC,eAAe,EAAE,WAAW,CAAC,eAAe;gBAC5C,WAAW,EAAE,WAAW,CAAC,WAAW;gBACpC,kBAAkB,EAAE,WAAW,CAAC,kBAAkB;gBAClD,WAAW,EAAE,WAAW,CAAC,WAAW;aACvC,CAAC;YAEF,sCAAsC;YACtC,IAAI,aAAqB,CAAC;YAC1B,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;gBACzC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,IAAI;gBACpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAC5C;gBACI,aAAa,GAAG,cAAc,CAAC;aAClC;iBAAM;gBACH,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;aAC/C;YAED,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAClC,sBAAS,CAAC,aAAa,CAAC,0CAAmB,CAAC,YAAY,CAAC,OAAO,EAAE;gBAC9D,QAAQ,EAAE,aAAa;gBACvB,QAAQ,EAAE,WAAW,CAAC,cAAc;gBACpC,cAAc,EAAE,sBAAS,CAAC,UAAU,CAAC,cAAc,CAAC;gBACpD,YAAY,EAAE,sBAAS,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;aAC1D,CAAC,CACL,CAAC;YAEF,oEAAoE;YACpE,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxD,CAAC;KAAA;CACJ;AAzCD,0BAyCC"} \ No newline at end of file diff --git a/lib/zosmf/constants/CheckStatus.messages.d.ts b/lib/zosmf/constants/CheckStatus.messages.d.ts deleted file mode 100644 index bdcd437e4c..0000000000 --- a/lib/zosmf/constants/CheckStatus.messages.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { IMessageDefinition } from "@zowe/imperative"; -/** - * Messages displayed by the zosmf check status command - * @type {object.} - */ -export declare const CheckStatusMessages: { - [key: string]: IMessageDefinition; -}; diff --git a/lib/zosmf/constants/CheckStatus.messages.js b/lib/zosmf/constants/CheckStatus.messages.js deleted file mode 100644 index c2ff4d2089..0000000000 --- a/lib/zosmf/constants/CheckStatus.messages.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CheckStatusMessages = void 0; -/** - * Messages displayed by the zosmf check status command - * @type {object.} - */ -exports.CheckStatusMessages = { - /** - * Displayed when checkStatus succeeds and returns status information. - * @type {IMessageDefinition} - */ - cmdSucceeded: { - message: "The user {{userName}} successfully connected to z/OSMF on " + - "'{{hostName}}'.\n{{mainZosmfProps}}" + - "z/OSMF Plug-ins that are installed on '{{hostName}}':\n{{pluginStatus}}" - } -}; -//# sourceMappingURL=CheckStatus.messages.js.map \ No newline at end of file diff --git a/lib/zosmf/constants/CheckStatus.messages.js.map b/lib/zosmf/constants/CheckStatus.messages.js.map deleted file mode 100644 index 189447dfa4..0000000000 --- a/lib/zosmf/constants/CheckStatus.messages.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CheckStatus.messages.js","sourceRoot":"","sources":["../../../src/zosmf/constants/CheckStatus.messages.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIF;;;GAGG;AACU,QAAA,mBAAmB,GAA0C;IACtE;;;OAGG;IACH,YAAY,EAAE;QACV,OAAO,EACH,4DAA4D;YAC5D,qCAAqC;YACrC,yEAAyE;KAChF;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/List.definition.d.ts b/lib/zosmf/list/List.definition.d.ts deleted file mode 100644 index b6eca2222f..0000000000 --- a/lib/zosmf/list/List.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const ListCommand: ICommandDefinition; diff --git a/lib/zosmf/list/List.definition.js b/lib/zosmf/list/List.definition.js deleted file mode 100644 index 2c29630a88..0000000000 --- a/lib/zosmf/list/List.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListCommand = void 0; -const Systems_definition_1 = require("./systems/Systems.definition"); -exports.ListCommand = { - name: "list", - type: "group", - description: "Obtain a list of systems that are defined to a z/OSMF instance.", - children: [ - Systems_definition_1.SystemsDefinition - ] -}; -//# sourceMappingURL=List.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/list/List.definition.js.map b/lib/zosmf/list/List.definition.js.map deleted file mode 100644 index edfbd47c37..0000000000 --- a/lib/zosmf/list/List.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"List.definition.js","sourceRoot":"","sources":["../../../src/zosmf/list/List.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,iEAAiE;IAC9E,QAAQ,EAAE;QACN,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.definition.d.ts b/lib/zosmf/list/systems/Systems.definition.d.ts deleted file mode 100644 index 253b8da966..0000000000 --- a/lib/zosmf/list/systems/Systems.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SystemsDefinition: ICommandDefinition; diff --git a/lib/zosmf/list/systems/Systems.definition.js b/lib/zosmf/list/systems/Systems.definition.js deleted file mode 100644 index fa3c136807..0000000000 --- a/lib/zosmf/list/systems/Systems.definition.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SystemsDefinition = void 0; -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -exports.SystemsDefinition = { - name: "systems", - description: "Obtain a list of systems that are defined to a z/OSMF instance.", - type: "command", - handler: __dirname + "/Systems.handler", - profile: { - optional: ["zosmf"] - }, - options: zosmf_for_zowe_sdk_1.ZosmfSession.ZOSMF_CONNECTION_OPTIONS, - examples: [ - { - description: "Obtain a list of systems defined to a z/OSMF instance " + - "with your default z/OSMF profile", - options: "" - }, - { - description: "Obtain a list of systems defined to a z/OSMF instance " + - "for the specified z/OSMF profile", - options: "--zosmf-profile SomeZosmfProfileName" - }, - { - description: "Obtain a list of the systems defined to a z/OSMF instance that you specified in the command line", - options: "--host myhost --port 443 --user myuser --password mypass" - } - ] -}; -//# sourceMappingURL=Systems.definition.js.map \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.definition.js.map b/lib/zosmf/list/systems/Systems.definition.js.map deleted file mode 100644 index 4cce1cca0c..0000000000 --- a/lib/zosmf/list/systems/Systems.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Systems.definition.js","sourceRoot":"","sources":["../../../../src/zosmf/list/systems/Systems.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iEAAwD;AAE3C,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,iEAAiE;IAC9E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,OAAO,EAAE,iCAAY,CAAC,wBAAwB;IAC9C,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,wDAAwD;gBACjE,kCAAkC;YACtC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,wDAAwD;gBACjE,kCAAkC;YACtC,OAAO,EAAE,sCAAsC;SAClD;QACD;YACI,WAAW,EAAE,kGAAkG;YAC/G,OAAO,EAAE,0DAA0D;SACtE;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.handler.d.ts b/lib/zosmf/list/systems/Systems.handler.d.ts deleted file mode 100644 index 03b3a0cfbf..0000000000 --- a/lib/zosmf/list/systems/Systems.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosmfBaseHandler } from "@zowe/zosmf-for-zowe-sdk"; -/** - * Handler to show zosmf information - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosmfBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zosmf/list/systems/Systems.handler.js b/lib/zosmf/list/systems/Systems.handler.js deleted file mode 100644 index 2384586bfa..0000000000 --- a/lib/zosmf/list/systems/Systems.handler.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zosmf_for_zowe_sdk_1 = require("@zowe/zosmf-for-zowe-sdk"); -/** - * Handler to show zosmf information - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zosmf_for_zowe_sdk_1.ZosmfBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const zosResponse = yield zosmf_for_zowe_sdk_1.ListDefinedSystems.listDefinedSystems(this.mSession); - commandParameters.response.format.output({ - fields: ["systemNickName", "systemName", "url", "jesMemberName"], - output: zosResponse.items, - format: "table", - header: true - }); - // Return the original zosResponse when using --response-format-json - commandParameters.response.data.setObj(zosResponse); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Systems.handler.js.map \ No newline at end of file diff --git a/lib/zosmf/list/systems/Systems.handler.js.map b/lib/zosmf/list/systems/Systems.handler.js.map deleted file mode 100644 index a00723cf2c..0000000000 --- a/lib/zosmf/list/systems/Systems.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Systems.handler.js","sourceRoot":"","sources":["../../../../src/zosmf/list/systems/Systems.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,iEAAkH;AAElH;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAgB;IAEpC,UAAU,CAAC,iBAAqC;;YAEzD,MAAM,WAAW,GAAqC,MAAM,uCAAkB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEjH,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;gBACrC,MAAM,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,CAAE;gBACjE,MAAM,EAAE,WAAW,CAAC,KAAK;gBACzB,MAAM,EAAE,OAAO;gBACf,MAAM,EAAE,IAAI;aACf,CAAC,CAAC;YAEH,oEAAoE;YACpE,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QACxD,CAAC;KAAA;CACJ;AAhBD,0BAgBC"} \ No newline at end of file diff --git a/lib/zostso/constants/ZosTso.constants.d.ts b/lib/zostso/constants/ZosTso.constants.d.ts deleted file mode 100644 index b2d4d7dff8..0000000000 --- a/lib/zostso/constants/ZosTso.constants.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_GROUP: string; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_ACCOUNT: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_ACCOUNT_PROFILE: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_CHAR_SET: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_CODE_PAGE: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_COLUMNS: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_LOGON_PROCEDURE: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_REGION_SIZE: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_OPTION_ROWS: import("@zowe/imperative").ICommandOptionDefinition; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -export declare const TSO_PROFILE_OPTIONS: import("@zowe/imperative").ICommandOptionDefinition[]; diff --git a/lib/zostso/constants/ZosTso.constants.js b/lib/zostso/constants/ZosTso.constants.js deleted file mode 100644 index 6fcdf8e6df..0000000000 --- a/lib/zostso/constants/ZosTso.constants.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSO_PROFILE_OPTIONS = exports.TSO_OPTION_ROWS = exports.TSO_OPTION_REGION_SIZE = exports.TSO_OPTION_LOGON_PROCEDURE = exports.TSO_OPTION_COLUMNS = exports.TSO_OPTION_CODE_PAGE = exports.TSO_OPTION_CHAR_SET = exports.TSO_OPTION_ACCOUNT_PROFILE = exports.TSO_OPTION_ACCOUNT = exports.TSO_OPTION_GROUP = void 0; -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_GROUP = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_GROUP; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_ACCOUNT = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ACCOUNT; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_ACCOUNT_PROFILE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ACCOUNT_PROFILE; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_CHAR_SET = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_CHAR_SET; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_CODE_PAGE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_CODE_PAGE; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_COLUMNS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_COLUMNS; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_LOGON_PROCEDURE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_LOGON_PROCEDURE; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_REGION_SIZE = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_REGION_SIZE; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_OPTION_ROWS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_OPTION_ROWS; -/** - * @deprecated Please use this constant from the @zowe/zos-tso-for-zowe-sdk - */ -exports.TSO_PROFILE_OPTIONS = zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS; -//# sourceMappingURL=ZosTso.constants.js.map \ No newline at end of file diff --git a/lib/zostso/constants/ZosTso.constants.js.map b/lib/zostso/constants/ZosTso.constants.js.map deleted file mode 100644 index bd641303de..0000000000 --- a/lib/zostso/constants/ZosTso.constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ZosTso.constants.js","sourceRoot":"","sources":["../../../src/zostso/constants/ZosTso.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,qEAAiE;AAEjE;;GAEG;AACU,QAAA,gBAAgB,GAAG,0CAAmB,CAAC,gBAAgB,CAAC;AAErE;;GAEG;AACU,QAAA,kBAAkB,GAAG,0CAAmB,CAAC,kBAAkB,CAAC;AAEzE;;GAEG;AACU,QAAA,0BAA0B,GAAG,0CAAmB,CAAC,0BAA0B,CAAC;AAEzF;;GAEG;AACU,QAAA,mBAAmB,GAAG,0CAAmB,CAAC,mBAAmB,CAAC;AAE3E;;GAEG;AACU,QAAA,oBAAoB,GAAG,0CAAmB,CAAC,oBAAoB,CAAC;AAE7E;;GAEG;AACU,QAAA,kBAAkB,GAAG,0CAAmB,CAAC,kBAAkB,CAAC;AAEzE;;GAEG;AACU,QAAA,0BAA0B,GAAG,0CAAmB,CAAC,0BAA0B,CAAC;AAEzF;;GAEG;AACU,QAAA,sBAAsB,GAAG,0CAAmB,CAAC,sBAAsB,CAAC;AAEjF;;GAEG;AACU,QAAA,eAAe,GAAG,0CAAmB,CAAC,eAAe,CAAC;AAEnE;;GAEG;AACU,QAAA,mBAAmB,GAAG,0CAAmB,CAAC,mBAAmB,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/Issue.definition.d.ts b/lib/zostso/issue/Issue.definition.d.ts deleted file mode 100644 index ce4e61d6de..0000000000 --- a/lib/zostso/issue/Issue.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zostso/issue/Issue.definition.js b/lib/zostso/issue/Issue.definition.js deleted file mode 100644 index 010e9c838c..0000000000 --- a/lib/zostso/issue/Issue.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IssueCommand = void 0; -const Command_definition_1 = require("./command/Command.definition"); -exports.IssueCommand = { - name: "issue", - aliases: [], - type: "group", - summary: "Issue TSO commands", - description: "Issue TSO commands.", - children: [ - Command_definition_1.CommandDefinition - ] -}; -//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zostso/issue/Issue.definition.js.map b/lib/zostso/issue/Issue.definition.js.map deleted file mode 100644 index 57626b8100..0000000000 --- a/lib/zostso/issue/Issue.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zostso/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAEsC;AAEzB,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE;QACN,sCAAiB;KACpB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.definition.d.ts b/lib/zostso/issue/command/Command.definition.d.ts deleted file mode 100644 index d1dd1c998c..0000000000 --- a/lib/zostso/issue/command/Command.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const CommandDefinition: ICommandDefinition; diff --git a/lib/zostso/issue/command/Command.definition.js b/lib/zostso/issue/command/Command.definition.js deleted file mode 100644 index 2a800e55f9..0000000000 --- a/lib/zostso/issue/command/Command.definition.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CommandDefinition = void 0; -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -exports.CommandDefinition = { - name: "command", - aliases: ["cmd"], - summary: "Issue a TSO command", - description: "Creates a TSO address space, issues a TSO command through the newly created address space, " + - "waits for the READY prompt to print the response, and terminates the TSO address space. All response data" + - " are returned to the user up to (but not including) the TSO 'READY' prompt.", - type: "command", - handler: __dirname + "/Command.handler", - profile: { - optional: ["zosmf", "tso"] - }, - positionals: [ - { - name: "commandText", - type: "string", - description: "The TSO command to issue.", - required: true - } - ], - options: [ - { - name: "suppress-startup-messages", - aliases: ["ssm"], - type: "boolean", - description: "Suppress console messages from start of address space." - } - ].concat(zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS), - examples: [ - { - description: 'Issue the TSO command "status" to display information about jobs for your user ID.', - options: "\"status\"" - } - ] -}; -//# sourceMappingURL=Command.definition.js.map \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.definition.js.map b/lib/zostso/issue/command/Command.definition.js.map deleted file mode 100644 index 7d8922b6d0..0000000000 --- a/lib/zostso/issue/command/Command.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Command.definition.js","sourceRoot":"","sources":["../../../../src/zostso/issue/command/Command.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,qBAAqB;IAC9B,WAAW,EAAE,6FAA6F;QAC1G,2GAA2G;QAC3G,6EAA6E;IAC7E,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;KAC7B;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAG;QACN;YACI,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,CAAC,KAAK,CAAC;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wDAAwD;SACxE;KAC2B,CAAC,MAAM,CAAC,0CAAmB,CAAC,mBAAmB,CAAC;IAChF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,oFAAoF;YACjG,OAAO,EAAE,YAAY;SACxB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.handler.d.ts b/lib/zostso/issue/command/Command.handler.d.ts deleted file mode 100644 index c1d1a155f4..0000000000 --- a/lib/zostso/issue/command/Command.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; -/** - * Handler to issue command to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosTsoBaseHandler { - processCmd(params: IHandlerParameters): Promise; -} diff --git a/lib/zostso/issue/command/Command.handler.js b/lib/zostso/issue/command/Command.handler.js deleted file mode 100644 index 39e239648c..0000000000 --- a/lib/zostso/issue/command/Command.handler.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -/** - * Handler to issue command to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { - // Process the command and produce the TSO response - processCmd(params) { - return __awaiter(this, void 0, void 0, function* () { - // Issue the TSO command - const response = yield zos_tso_for_zowe_sdk_1.IssueTso.issueTsoCommand(this.mSession, params.arguments.account, params.arguments.commandText, this.mTsoStart); - // If requested, suppress the startup - if (!params.arguments.suppressStartupMessages) { - this.console.log(response.startResponse.messages); - } - this.console.log(response.commandResponse); - // Return as an object when using --response-format-json - this.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=Command.handler.js.map \ No newline at end of file diff --git a/lib/zostso/issue/command/Command.handler.js.map b/lib/zostso/issue/command/Command.handler.js.map deleted file mode 100644 index fd22f22db9..0000000000 --- a/lib/zostso/issue/command/Command.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Command.handler.js","sourceRoot":"","sources":["../../../../src/zostso/issue/command/Command.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAyF;AAEzF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,mDAAmD;IACtC,UAAU,CAAC,MAA0B;;YAE9C,wBAAwB;YACxB,MAAM,QAAQ,GAAmB,MAAM,+BAAQ,CAAC,eAAe,CAC3D,IAAI,CAAC,QAAQ,EACb,MAAM,CAAC,SAAS,CAAC,OAAO,EACxB,MAAM,CAAC,SAAS,CAAC,WAAW,EAC5B,IAAI,CAAC,SAAS,CAAC,CAAC;YAEpB,qCAAqC;YACrC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,uBAAuB,EAAE;gBAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;aACrD;YACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAC3C,wDAAwD;YACxD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;KAAA;CACJ;AApBD,0BAoBC"} \ No newline at end of file diff --git a/lib/zostso/ping/Ping.definition.d.ts b/lib/zostso/ping/Ping.definition.d.ts deleted file mode 100644 index b4919411cf..0000000000 --- a/lib/zostso/ping/Ping.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const PingCommand: ICommandDefinition; diff --git a/lib/zostso/ping/Ping.definition.js b/lib/zostso/ping/Ping.definition.js deleted file mode 100644 index c76de983c8..0000000000 --- a/lib/zostso/ping/Ping.definition.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PingCommand = void 0; -const PingAddressSpace_definition_1 = require("./address_space/PingAddressSpace.definition"); -exports.PingCommand = { - name: "ping", - aliases: [], - type: "group", - summary: "Ping a TSO address space", - description: "Ping a TSO address space, from which " + - "you previously started and received a token (a.k.a 'servelet-key').", - children: [ - PingAddressSpace_definition_1.PingAddressSpaceCommandDefinition - ] -}; -//# sourceMappingURL=Ping.definition.js.map \ No newline at end of file diff --git a/lib/zostso/ping/Ping.definition.js.map b/lib/zostso/ping/Ping.definition.js.map deleted file mode 100644 index 97d853b212..0000000000 --- a/lib/zostso/ping/Ping.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ping.definition.js","sourceRoot":"","sources":["../../../src/zostso/ping/Ping.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,6FAAgG;AAEnF,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,uCAAuC;QACpD,qEAAqE;IACrE,QAAQ,EAAE;QACN,+DAAiC;KACpC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts b/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts deleted file mode 100644 index 9c2a2072b8..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const PingAddressSpaceCommandDefinition: ICommandDefinition; diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.js b/lib/zostso/ping/address_space/PingAddressSpace.definition.js deleted file mode 100644 index 2a26bd8ed3..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.definition.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PingAddressSpaceCommandDefinition = void 0; -exports.PingAddressSpaceCommandDefinition = { - name: "address-space", - aliases: ["as"], - summary: "Ping TSO address space", - description: "Ping a TSO address space, from which " + - "you previously started and received a token (a.k.a 'servlet-key').", - type: "command", - handler: __dirname + "/PingAddressSpace.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "servletKey", - type: "string", - description: "The servlet key from a previously started TSO address space.", - required: true - } - ], - examples: [ - { - description: "Ping the TSO address space identified by IBMUSER-329-aafkaaoc", - options: "IBMUSER-329-aafkaaoc" - } - ] -}; -//# sourceMappingURL=PingAddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map b/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map deleted file mode 100644 index 597405c77e..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PingAddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/ping/address_space/PingAddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,iCAAiC,GAAuB;IACjE,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,uCAAuC;QACpD,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,2BAA2B;IAChD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts b/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts deleted file mode 100644 index a234d8a848..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; -/** - * Handler to Send data to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosTsoBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.js b/lib/zostso/ping/address_space/PingAddressSpace.handler.js deleted file mode 100644 index c96b49eadc..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.handler.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -/** - * Handler to Send data to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { - // Process the command and produce the ping response - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - // Ping the address space - const response = yield zos_tso_for_zowe_sdk_1.PingTso.ping(this.mSession, commandParameters.arguments.servletKey); - // Print out the response - commandParameters.response.console.log("TSO address space pinged successfully, key was: " + response.servletKey); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=PingAddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map b/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map deleted file mode 100644 index 6947f47e9f..0000000000 --- a/lib/zostso/ping/address_space/PingAddressSpace.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PingAddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/ping/address_space/PingAddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAuF;AAEvF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,oDAAoD;IACvC,UAAU,CAAC,iBAAqC;;YACzD,yBAAyB;YACzB,MAAM,QAAQ,GAAkB,MAAM,8BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAE1G,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kDAAkD,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;YAEjH,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,0BAaC"} \ No newline at end of file diff --git a/lib/zostso/send/Send.definition.d.ts b/lib/zostso/send/Send.definition.d.ts deleted file mode 100644 index 3c7f9d8271..0000000000 --- a/lib/zostso/send/Send.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SendCommand: ICommandDefinition; diff --git a/lib/zostso/send/Send.definition.js b/lib/zostso/send/Send.definition.js deleted file mode 100644 index 804c89f74b..0000000000 --- a/lib/zostso/send/Send.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SendCommand = void 0; -const SendToAddressSpace_definition_1 = require("./address_space/SendToAddressSpace.definition"); -exports.SendCommand = { - name: "send", - aliases: [], - type: "group", - summary: "Send data to TSO", - description: "Send data to TSO and collect responses until the prompt is reached.", - children: [ - SendToAddressSpace_definition_1.SendToAddressSpaceCommandDefinition - ] -}; -//# sourceMappingURL=Send.definition.js.map \ No newline at end of file diff --git a/lib/zostso/send/Send.definition.js.map b/lib/zostso/send/Send.definition.js.map deleted file mode 100644 index edc482afd1..0000000000 --- a/lib/zostso/send/Send.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Send.definition.js","sourceRoot":"","sources":["../../../src/zostso/send/Send.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,iGAEuD;AAE1C,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,qEAAqE;IAClF,QAAQ,EAAE;QACN,mEAAmC;KACtC;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts b/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts deleted file mode 100644 index 226abc15a4..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SendToAddressSpaceCommandDefinition: ICommandDefinition; diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.js b/lib/zostso/send/address_space/SendToAddressSpace.definition.js deleted file mode 100644 index b8e0ffa625..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.definition.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SendToAddressSpaceCommandDefinition = void 0; -exports.SendToAddressSpaceCommandDefinition = { - name: "address-space", - aliases: ["as"], - summary: "Send data to a TSO address space", - description: "Send data to the TSO address space, from which " + - "you previously started and received a token (a.k.a 'servlet-key').", - type: "command", - handler: __dirname + "/SendToAddressSpace.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "servletKey", - type: "string", - description: "The servlet key from a previously started TSO address space.", - required: true - } - ], - options: [ - { - name: "data", - required: true, - description: "The data to which we want to send to the TSO address space represented " + - "by the servlet key.", - type: "string" - } - ], - examples: [ - { - description: `"Send the TIME TSO command to the TSO address space identified by IBMUSER-329-aafkaaoc"`, - options: "IBMUSER-329-aafkaaoc --data \"TIME\"" - } - ] -}; -//# sourceMappingURL=SendToAddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map b/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map deleted file mode 100644 index a0b5328ba2..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendToAddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/send/address_space/SendToAddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,mCAAmC,GAAuB;IACnE,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,iDAAiD;QAC9D,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,6BAA6B;IAClD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,yEAAyE;gBACtF,qBAAqB;YACrB,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,yFAAyF;YACtG,OAAO,EAAE,sCAAsC;SAClD;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts b/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts deleted file mode 100644 index a234d8a848..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; -/** - * Handler to Send data to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosTsoBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.js b/lib/zostso/send/address_space/SendToAddressSpace.handler.js deleted file mode 100644 index dd655ac929..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.handler.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -/** - * Handler to Send data to TSO address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { - // Process the command - send data to the address space and produce the response - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - const response = yield zos_tso_for_zowe_sdk_1.SendTso.sendDataToTSOCollect(this.mSession, commandParameters.arguments.servletKey, commandParameters.arguments.data); - // Print out the response - commandParameters.response.console.log(response.commandResponse); - // Return as an object when using --response-format-json - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=SendToAddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map b/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map deleted file mode 100644 index ccdf93cd79..0000000000 --- a/lib/zostso/send/address_space/SendToAddressSpace.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendToAddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/send/address_space/SendToAddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAuF;AAEvF;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,gFAAgF;IACnE,UAAU,CAAC,iBAAqC;;YACzD,MAAM,QAAQ,GAAkB,MAAM,8BAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAC5E,iBAAiB,CAAC,SAAS,CAAC,UAAU,EACtC,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAEtC,yBAAyB;YACzB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAEjE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAdD,0BAcC"} \ No newline at end of file diff --git a/lib/zostso/start/Start.definition.d.ts b/lib/zostso/start/Start.definition.d.ts deleted file mode 100644 index e1c9190f51..0000000000 --- a/lib/zostso/start/Start.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const StartCommand: ICommandDefinition; diff --git a/lib/zostso/start/Start.definition.js b/lib/zostso/start/Start.definition.js deleted file mode 100644 index a2db972100..0000000000 --- a/lib/zostso/start/Start.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartCommand = void 0; -const AddressSpace_definition_1 = require("./address-space/AddressSpace.definition"); -exports.StartCommand = { - name: "start", - aliases: ["st"], - type: "group", - summary: "Start TSO/E address space", - description: "Start TSO/E address space.", - children: [ - AddressSpace_definition_1.AddressSpaceDefinition - ] -}; -//# sourceMappingURL=Start.definition.js.map \ No newline at end of file diff --git a/lib/zostso/start/Start.definition.js.map b/lib/zostso/start/Start.definition.js.map deleted file mode 100644 index 6fbd25888c..0000000000 --- a/lib/zostso/start/Start.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/zostso/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qFAAiF;AAEpE,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE;QACN,gDAAsB;KACzB;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.definition.d.ts b/lib/zostso/start/address-space/AddressSpace.definition.d.ts deleted file mode 100644 index 8d56d30721..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const AddressSpaceDefinition: ICommandDefinition; diff --git a/lib/zostso/start/address-space/AddressSpace.definition.js b/lib/zostso/start/address-space/AddressSpace.definition.js deleted file mode 100644 index f6cb62e999..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.definition.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AddressSpaceDefinition = void 0; -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -exports.AddressSpaceDefinition = { - name: "address-space", - aliases: ["as"], - description: "Start a TSO address space, from which " + - "you will receive a token (a.k.a 'servlet-key') for further address space interaction " + - "(e.g. termination).", - type: "command", - handler: __dirname + "/AddressSpace.handler", - profile: { - optional: ["zosmf", "tso"] - }, - options: zos_tso_for_zowe_sdk_1.TsoProfileConstants.TSO_PROFILE_OPTIONS.concat([ - { - name: "servlet-key-only", aliases: ["sko"], - description: "Specify this option to print only the servlet key", - type: "boolean" - } - ]), - examples: [ - { - description: "Start TSO/E address space", - options: "" - }, - { - description: "Start TSO/E address space, and receive response in JSON format", - options: "--rfj" - }, - { - description: "Start TSO/E address space, and print only the servlet key", - options: "--sko" - } - ] -}; -//# sourceMappingURL=AddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.definition.js.map b/lib/zostso/start/address-space/AddressSpace.definition.js.map deleted file mode 100644 index 4b74cbc66c..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/start/address-space/AddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qEAAiE;AAEpD,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,wCAAwC;QACjD,uFAAuF;QACvF,qBAAqB;IACzB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,uBAAuB;IAC5C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;KAC7B;IACD,OAAO,EAAE,0CAAmB,CAAC,mBAAmB,CAAC,MAAM,CAAC;QACpD;YACI,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;YAC1C,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,SAAS;SAClB;KACJ,CAAC;IACF,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,EAAE;SACd;QACD;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,OAAO;SACnB;QACD;YACI,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,OAAO;SACnB;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.handler.d.ts b/lib/zostso/start/address-space/AddressSpace.handler.d.ts deleted file mode 100644 index a2d0c7c788..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.handler.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; -/** - * Handler to start an address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends ZosTsoBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zostso/start/address-space/AddressSpace.handler.js b/lib/zostso/start/address-space/AddressSpace.handler.js deleted file mode 100644 index 26a8f9f3fc..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.handler.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const imperative_1 = require("@zowe/imperative"); -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -/** - * Handler to start an address space - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { - // Process the command and produce the start response (returns servlet) - processCmd(commandParameters) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const response = yield zos_tso_for_zowe_sdk_1.StartTso.start(this.mSession, this.mArguments.account, this.mTsoStart); - commandParameters.response.data.setObj(response); - if (response.success) { - if (commandParameters.arguments.servletKeyOnly) { - commandParameters.response.console.log(response.servletKey); - } - else { - commandParameters.response.console.log(`TSO address space began successfully, key is: ${response.servletKey}\n`); - commandParameters.response.console.log(response.messages); - } - } - else { - throw new imperative_1.ImperativeError({ - msg: `TSO address space failed to start.`, - additionalDetails: (_a = response.failureResponse) === null || _a === void 0 ? void 0 : _a.message - }); - } - }); - } -} -exports.default = Handler; -//# sourceMappingURL=AddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/start/address-space/AddressSpace.handler.js.map b/lib/zostso/start/address-space/AddressSpace.handler.js.map deleted file mode 100644 index 3164ca7ad8..0000000000 --- a/lib/zostso/start/address-space/AddressSpace.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/start/address-space/AddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAEF,iDAAuE;AACvE,qEAAyE;AAEzE;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,uEAAuE;IAC1D,UAAU,CAAC,iBAAqC;;;YACzD,MAAM,QAAQ,GAAG,MAAM,+BAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC9F,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEjD,IAAI,QAAQ,CAAC,OAAO,EAAE;gBAClB,IAAI,iBAAiB,CAAC,SAAS,CAAC,cAAc,EAAE;oBAC5C,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;iBAC/D;qBAAM;oBACH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iDAAiD,QAAQ,CAAC,UAAU,IAAI,CAAC,CAAC;oBACjH,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;iBAC7D;aAEJ;iBAAM;gBACH,MAAM,IAAI,4BAAe,CAAC;oBACtB,GAAG,EAAE,oCAAoC;oBACzC,iBAAiB,EAAE,MAAA,QAAQ,CAAC,eAAe,0CAAE,OAAO;iBACvD,CAAC,CAAC;aACN;;KACJ;CACJ;AAtBD,0BAsBC"} \ No newline at end of file diff --git a/lib/zostso/stop/Stop.definition.d.ts b/lib/zostso/stop/Stop.definition.d.ts deleted file mode 100644 index 6f3fa61638..0000000000 --- a/lib/zostso/stop/Stop.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const StopCommand: ICommandDefinition; diff --git a/lib/zostso/stop/Stop.definition.js b/lib/zostso/stop/Stop.definition.js deleted file mode 100644 index dddd183871..0000000000 --- a/lib/zostso/stop/Stop.definition.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StopCommand = void 0; -const AddressSpace_definition_1 = require("./address-space/AddressSpace.definition"); -exports.StopCommand = { - name: "stop", - aliases: ["sp"], - type: "group", - summary: "Stop TSO/E address space", - description: "Stop TSO/E address space.", - children: [AddressSpace_definition_1.AddressSpaceDefinition] -}; -//# sourceMappingURL=Stop.definition.js.map \ No newline at end of file diff --git a/lib/zostso/stop/Stop.definition.js.map b/lib/zostso/stop/Stop.definition.js.map deleted file mode 100644 index 13715d7e98..0000000000 --- a/lib/zostso/stop/Stop.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/zostso/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,qFAAiF;AAEpE,QAAA,WAAW,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,0BAA0B;IACnC,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,CAAC,gDAAsB,CAAC;CACrC,CAAC"} \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.d.ts b/lib/zostso/stop/address-space/AddressSpace.definition.d.ts deleted file mode 100644 index 8d56d30721..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const AddressSpaceDefinition: ICommandDefinition; diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.js b/lib/zostso/stop/address-space/AddressSpace.definition.js deleted file mode 100644 index 5fea3cb08e..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.definition.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AddressSpaceDefinition = void 0; -exports.AddressSpaceDefinition = { - name: "address-space", - aliases: ["as"], - description: "Stop a TSO address space, from which " + - "you previously started and received a token (a.k.a 'servlet-key').", - type: "command", - handler: __dirname + "/AddressSpace.handler", - profile: { - optional: ["zosmf"] - }, - positionals: [ - { - name: "servletkey", - required: true, - type: "string", - description: "The servlet key from a previously started TSO address space." - } - ], - examples: [ - { - description: "Stop the TSO address space identified by IBMUSER-329-aafkaaoc", - options: "IBMUSER-329-aafkaaoc" - } - ] -}; -//# sourceMappingURL=AddressSpace.definition.js.map \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.definition.js.map b/lib/zostso/stop/address-space/AddressSpace.definition.js.map deleted file mode 100644 index 8617963364..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressSpace.definition.js","sourceRoot":"","sources":["../../../../src/zostso/stop/address-space/AddressSpace.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,sBAAsB,GAAuB;IACtD,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,uCAAuC;QACpD,oEAAoE;IACpE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,uBAAuB;IAC5C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;KACtB;IACD,WAAW,EAAE;QACT;YACI,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8DAA8D;SAC9E;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,sBAAsB;SAClC;KACJ;CACJ,CAAC"} \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.d.ts b/lib/zostso/stop/address-space/AddressSpace.handler.d.ts deleted file mode 100644 index 5749447b16..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.handler.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { ZosTsoBaseHandler } from "@zowe/zos-tso-for-zowe-sdk"; -export default class Handler extends ZosTsoBaseHandler { - processCmd(commandParameters: IHandlerParameters): Promise; -} diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.js b/lib/zostso/stop/address-space/AddressSpace.handler.js deleted file mode 100644 index f4e1827111..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.handler.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_tso_for_zowe_sdk_1 = require("@zowe/zos-tso-for-zowe-sdk"); -class Handler extends zos_tso_for_zowe_sdk_1.ZosTsoBaseHandler { - // Stop the tso address space associated with the servlet key - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - // Stop the address space - const servletKey = commandParameters.arguments.servletkey; - const response = yield zos_tso_for_zowe_sdk_1.StopTso.stop(this.mSession, servletKey); - // Print response and return as an object when using --response-format-json - commandParameters.response.console.log(`TSO address space ended successfully, key was: ${response.servletKey}`); - commandParameters.response.data.setObj(response); - }); - } -} -exports.default = Handler; -//# sourceMappingURL=AddressSpace.handler.js.map \ No newline at end of file diff --git a/lib/zostso/stop/address-space/AddressSpace.handler.js.map b/lib/zostso/stop/address-space/AddressSpace.handler.js.map deleted file mode 100644 index 1e7b5702ac..0000000000 --- a/lib/zostso/stop/address-space/AddressSpace.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddressSpace.handler.js","sourceRoot":"","sources":["../../../../src/zostso/stop/address-space/AddressSpace.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAwE;AAExE,MAAqB,OAAQ,SAAQ,wCAAiB;IAElD,6DAA6D;IAChD,UAAU,CAAC,iBAAqC;;YAEzD,yBAAyB;YACzB,MAAM,UAAU,GAAG,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC;YAC1D,MAAM,QAAQ,GAAG,MAAM,8BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YAE/D,2EAA2E;YAC3E,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,kDAAkD,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;YAChH,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CACJ;AAbD,0BAaC"} \ No newline at end of file diff --git a/lib/zosuss/issue/Issue.definition.d.ts b/lib/zosuss/issue/Issue.definition.d.ts deleted file mode 100644 index 9053752a84..0000000000 --- a/lib/zosuss/issue/Issue.definition.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -/** - * Definition for the "issue" group of commands under the Shell plugin - */ -export declare const IssueCommand: ICommandDefinition; diff --git a/lib/zosuss/issue/Issue.definition.js b/lib/zosuss/issue/Issue.definition.js deleted file mode 100644 index 4231996f00..0000000000 --- a/lib/zosuss/issue/Issue.definition.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IssueCommand = void 0; -const Ssh_definition_1 = require("./ssh/Ssh.definition"); -/** - * Definition for the "issue" group of commands under the Shell plugin - */ -exports.IssueCommand = { - name: "issue", aliases: ["iss"], - summary: "Issue a command", - description: "Issue a z/OS USS command.", - type: "group", - children: [Ssh_definition_1.SshDefinition] -}; -//# sourceMappingURL=Issue.definition.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/Issue.definition.js.map b/lib/zosuss/issue/Issue.definition.js.map deleted file mode 100644 index 3d836fadba..0000000000 --- a/lib/zosuss/issue/Issue.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Issue.definition.js","sourceRoot":"","sources":["../../../src/zosuss/issue/Issue.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAGF,yDAAqD;AAErD;;GAEG;AACU,QAAA,YAAY,GAAuB;IAC5C,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC;IAC/B,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,2BAA2B;IACxC,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,8BAAa,CAAC;CAC5B,CAAC"} \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.definition.d.ts b/lib/zosuss/issue/ssh/Ssh.definition.d.ts deleted file mode 100644 index 3eafd495bb..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.definition.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ICommandDefinition } from "@zowe/imperative"; -export declare const SshDefinition: ICommandDefinition; diff --git a/lib/zosuss/issue/ssh/Ssh.definition.js b/lib/zosuss/issue/ssh/Ssh.definition.js deleted file mode 100644 index 0bb87cc9af..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.definition.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SshDefinition = void 0; -exports.SshDefinition = { - name: "command", - aliases: ["cmd", "ssh"], - description: "Issue a z/OS USS command\n\n" + - "Note: The common CLI 'Base Connection Options' of token-type and token-value are not applicable to " + - "the ssh command, since the ssh service is not accessible through APIML.", - handler: __dirname + "/Ssh.handler", - type: "command", - positionals: [{ - name: "command", - description: "z/OS USS command to issue", - type: "string", - required: true - }], - options: [ - { - name: "cwd", - description: "Working directory in which to execute the command", - type: "string" - } - ], - profile: { - optional: ["ssh"] - }, - examples: [{ - description: "Issue a simple command, giving the working directory", - options: "\"npm install express\" --cwd /u/cicprov/mnt/CICPY01I/bundles/myapp " - }] -}; -//# sourceMappingURL=Ssh.definition.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.definition.js.map b/lib/zosuss/issue/ssh/Ssh.definition.js.map deleted file mode 100644 index 687f99dcab..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ssh.definition.js","sourceRoot":"","sources":["../../../../src/zosuss/issue/ssh/Ssh.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAIW,QAAA,aAAa,GAAuB;IAC7C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvB,WAAW,EAAE,8BAA8B;QAC9B,qGAAqG;QACrG,yEAAyE;IACtF,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB,CAAC;IACF,OAAO,EAAE;QACL;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,QAAQ;SACjB;KAAC;IACN,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,QAAQ,EAAE,CAAC;YACP,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,sEAAsE;SAClF,CAAC;CACL,CAAC"} \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.handler.d.ts b/lib/zosuss/issue/ssh/Ssh.handler.d.ts deleted file mode 100644 index 22cb665a0d..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.handler.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { IHandlerParameters } from "@zowe/imperative"; -import { SshBaseHandler } from "@zowe/zos-uss-for-zowe-sdk"; -/** - * Handle to issue an USS ssh command - * @export - * @class Handler - * @implements {ICommandHandler} - */ -export default class Handler extends SshBaseHandler { - private parameters; - processCmd(commandParameters: IHandlerParameters): Promise; - handleStdout(data: string): void; -} diff --git a/lib/zosuss/issue/ssh/Ssh.handler.js b/lib/zosuss/issue/ssh/Ssh.handler.js deleted file mode 100644 index 60c9a397e4..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.handler.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -/* -* This program and the accompanying materials are made available under the terms of the -* Eclipse Public License v2.0 which accompanies this distribution, and is available at -* https://www.eclipse.org/legal/epl-v20.html -* -* SPDX-License-Identifier: EPL-2.0 -* -* Copyright Contributors to the Zowe Project. -* -*/ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const zos_uss_for_zowe_sdk_1 = require("@zowe/zos-uss-for-zowe-sdk"); -/** - * Handle to issue an USS ssh command - * @export - * @class Handler - * @implements {ICommandHandler} - */ -class Handler extends zos_uss_for_zowe_sdk_1.SshBaseHandler { - processCmd(commandParameters) { - return __awaiter(this, void 0, void 0, function* () { - let rc; - this.parameters = commandParameters; - if (commandParameters.arguments.cwd) { - rc = yield zos_uss_for_zowe_sdk_1.Shell.executeSshCwd(this.mSession, commandParameters.arguments.command, commandParameters.arguments.cwd, this.handleStdout.bind(this)); - } - else { - rc = yield zos_uss_for_zowe_sdk_1.Shell.executeSsh(this.mSession, commandParameters.arguments.command, this.handleStdout.bind(this)); - } - commandParameters.response.data.setExitCode(rc); - }); - } - handleStdout(data) { - this.parameters.response.console.log(Buffer.from(data)); - } -} -exports.default = Handler; -//# sourceMappingURL=Ssh.handler.js.map \ No newline at end of file diff --git a/lib/zosuss/issue/ssh/Ssh.handler.js.map b/lib/zosuss/issue/ssh/Ssh.handler.js.map deleted file mode 100644 index 9d37bdc6b4..0000000000 --- a/lib/zosuss/issue/ssh/Ssh.handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Ssh.handler.js","sourceRoot":"","sources":["../../../../src/zosuss/issue/ssh/Ssh.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;AAGF,qEAAmE;AAEnE;;;;;GAKG;AACH,MAAqB,OAAQ,SAAQ,qCAAc;IAIlC,UAAU,CAAC,iBAAqC;;YACzD,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;YACpC,IAAI,iBAAiB,CAAC,SAAS,CAAC,GAAG,EAAE;gBACjC,EAAE,GAAG,MAAM,4BAAK,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,EAC9G,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACrC;iBAAM;gBACH,EAAE,GAAG,MAAM,4BAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aACjH;YACD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;KAAA;IAEM,YAAY,CAAC,IAAY;QAC5B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC;CACJ;AAnBD,0BAmBC"} \ No newline at end of file