-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run: use -f/--force to overwrite, fix msg #4011
Conversation
@@ -148,19 +146,6 @@ def dump(self, stage, **kwargs): | |||
dump_yaml(self.path, serialize.to_single_stage_file(stage)) | |||
self.repo.scm.track_file(self.relpath) | |||
|
|||
def remove_with_prompt(self, force=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was only being used as force=True
making it equivalent to .remove()
.
Also, makes fixes for `--overwrite` rename to `--force` and also remove `remove_with_prompt` which was only being used with `force\=True` anyway. Fix iterative#4003
Hi, how is this expressed in iterative/dvc.org/issues/1255 ? I'm not seeing it, thanks. |
p.s. probably best to open an individual docs issue. That epic is for very specific 1.0 discrepancies. Let's try to keep the same process as always. |
@jorgeorpinel, many of the commands were changed for 1.0. And, this is a very 1.0 discrepancy. And, it's not too important for |
@jorgeorpinel Same as with my |
I don't see a checkbox for this in the epic actually. But can we please follow the regular process 🙏 sorry if the epic was confusing. For this one I will just incorporate in iterative/dvc.org/pull/1420 since I'm just getting started. Thanks |
not a good idea I think, let's try to keep iterative/dvc.org/pull/1420 focused on |
Sure. But this PR is now part of 1.0 pre-release |
@jorgeorpinel There was: |
I extracted that other one you added into its own issue but it wasn't for this, unless I don't understand how "get rid of -f in run" per #4004 = "run: use -f/--force to overwrite" per this PR. |
Also, makes fixes for
--overwrite
rename to--force
and also remove
remove_with_prompt
which was only beingused with
force=True
anyway.Fix #4003
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.
I'll suggest this on
dvc.org
's WIP PR.iterative/dvc.org#1255
Thank you for the contribution - we'll try to review it as soon as possible. 🙏