zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 86 forks source link

copy-ds: The CLI command overwrites the contents instead of prompting the user to confirm #2369

Open zFernand0 opened 4 hours ago

zFernand0 commented 4 hours ago

Describe the bug

zowe files copy ds "HLQ.TEST.PS0" "HLQ.TEST.PS1" doesn't warn about potential data loss

Expected and actual results

To be warned/prompted (using the --replace flag maybe) in case the target/to dataset exists

Describe your environment

Additional context

This was discovered by @pujal0909 (Thank you! 🙏 ) when researching:

github-actions[bot] commented 4 hours ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.