Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to the Zowe CLI package will be documented in this file.

## Recent Changes

- Added support for `--overwrite` option to all Download methods. The default behavior is no longer to always overwrite existing files. [#2620](https://github.com/zowe/zowe-cli/pull/2620)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nitpick) missing BugFix prefix here


## `8.27.4`

- BugFix: Updated minimum supported version of Node from 18 to 20. Added Node 24 support. [#2616](https://github.com/zowe/zowe-cli/pull/2616)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ The maximum number of TSO address spaces have been created. When you specify 0,
],
"type": "number",
},
Object {
"aliases": Array [
"ow",
],
"description": "Overwrite files that already exist in your local environment.",
"name": "overwrite",
"type": "boolean",
},
Object {
"aliases": Array [
"po",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ The maximum number of TSO address spaces have been created. When you specify 0,
],
"type": "number",
},
Object {
"aliases": Array [
"ow",
],
"description": "Overwrite files that already exist in your local environment.",
"name": "overwrite",
"type": "boolean",
},
Object {
"aliases": Array [
"po",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ Array [
"name": "file",
"type": "string",
},
Object {
"aliases": Array [
"ow",
],
"description": "Overwrite files that already exist in your local environment.",
"name": "overwrite",
"type": "boolean",
},
Object {
"aliases": Array [
"po",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ The maximum number of TSO address spaces have been created. When you specify 0,
],
"type": "number",
},
Object {
"aliases": Array [
"ow",
],
"description": "Overwrite files that already exist in your local environment.",
"name": "overwrite",
"type": "boolean",
},
Object {
"aliases": Array [
"po",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ Array [
"name": "file",
"type": "string",
},
Object {
"aliases": Array [
"ow",
],
"description": "Overwrite files that already exist in your local environment.",
"name": "overwrite",
"type": "boolean",
},
]
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/zosfiles/download/Download.options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const DownloadOptions: { [key: string]: ICommandOptionDefinition } = {
},

/**
* The include hidden option for download
* The overwrite option for downloads
*/
overwrite: {
name: "overwrite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const AllMembersDefinition: ICommandDefinition = {
DownloadOptions.extension,
DownloadOptions.maxConcurrentRequests,
DownloadOptions.preserveOriginalLetterCase,
DownloadOptions.failFast
DownloadOptions.failFast,
DownloadOptions.overwrite
].sort((a, b) => a.name.localeCompare(b.name)),
examples: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class AllMembersHandler extends ZosFilesBaseHandler {
maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests,
preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase,
failFast: commandParameters.arguments.failFast,
overwrite: commandParameters.arguments.overwrite,
task: status,
responseTimeout: commandParameters.arguments.responseTimeout
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const AllMembersMatchingDefinition: ICommandDefinition = {
DownloadOptions.excludePattern,
DownloadOptions.maxConcurrentRequests,
DownloadOptions.preserveOriginalLetterCase,
DownloadOptions.failFast
DownloadOptions.failFast,
DownloadOptions.overwrite
].sort((a, b) => a.name.localeCompare(b.name)),
examples: [
{
Expand All @@ -66,4 +67,4 @@ export const AllMembersMatchingDefinition: ICommandDefinition = {
options: `"ibmuser.cntl" "test*,M*" --exclude-patterns "M2*" --directory output`
}
]
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ export default class AllMembersMatchingHandler extends ZosFilesBaseHandler {
maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests,
preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase,
failFast: commandParameters.arguments.failFast,
overwrite: commandParameters.arguments.overwrite,
task: status,
responseTimeout: commandParameters.arguments.responseTimeout,
memberPatternResponse: response.apiResponse,
});
}
}
}
3 changes: 2 additions & 1 deletion packages/cli/src/zosfiles/download/ds/Dataset.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const DatasetDefinition: ICommandDefinition = {
DownloadOptions.binary,
DownloadOptions.record,
DownloadOptions.preserveOriginalLetterCase,
DownloadOptions.encoding
DownloadOptions.encoding,
DownloadOptions.overwrite
].sort((a, b) => a.name.localeCompare(b.name)),
examples: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export const DataSetMatchingDefinition: ICommandDefinition = {
DownloadOptions.extensionMap,
DownloadOptions.maxConcurrentRequests,
DownloadOptions.preserveOriginalLetterCase,
DownloadOptions.failFast
DownloadOptions.failFast,
DownloadOptions.overwrite
].sort((a, b) => a.name.localeCompare(b.name)),
examples: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class DataSetMatchingHandler extends ZosFilesBaseHandler {
maxConcurrentRequests: commandParameters.arguments.maxConcurrentRequests,
preserveOriginalLetterCase: commandParameters.arguments.preserveOriginalLetterCase,
failFast: commandParameters.arguments.failFast,
overwrite: commandParameters.arguments.overwrite,
task: downloadStatus,
responseTimeout: commandParameters.arguments.responseTimeout
};
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/zosfiles/download/uss/UssFile.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export const UssFileDefinition: ICommandDefinition = {
DownloadOptions.attributes,
DownloadOptions.file,
DownloadOptions.binary,
DownloadOptions.encoding
DownloadOptions.encoding,
DownloadOptions.overwrite
].sort((a, b) => a.name.localeCompare(b.name)),
examples: [
{
Expand Down
4 changes: 4 additions & 0 deletions packages/zosfiles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the Zowe z/OS files SDK package will be documented in this file.

## Recent Changes

- BugFix: Fixed all the `Download` methods to now use the `overwrite` option. The default is no longer always overwriting existing files. Added new interfaces `IDownloadAmResult` and `IDownloadAmResponse` to provide detailed results when downloading all members of a PDS. [#2620](https://github.com/zowe/zowe-cli/pull/2620)

## `8.27.4`

- BugFix: Updated minimum supported version of Node from 18 to 20. Added Node 24 support. [#2616](https://github.com/zowe/zowe-cli/pull/2616)
Expand Down
Loading