-
-
Notifications
You must be signed in to change notification settings - Fork 285
remove preview command #1367
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
remove preview command #1367
Conversation
|
bors try |
tryBuild succeeded |
|
I think this will close #996 |
|
bors r+ |
1367: remove preview command r=KristofferC a=KristofferC `preview` had good intentions. By allowing to check what happened when executing a command without it taking effect, it was intended for the user to avoid pkg commands that mess up their project. However, in practice, no one think they will do a mistake so no one uses preview. It is also quite invasive in the code base. You constantly need to think if you are running things in preview mode and in that case try to emulate the normal usage but at the same time don't do any persistent mutations. What is needed is instead `undo` + `redo`. This just removes `preview` and I will implement `undo` + `redo` to replace it (unless someone beats me to it) Co-authored-by: Kristoffer Carlsson <kcarlsson89@gmail.com>
|
For what is worth, I religiously used preview to see the versions of updated packages and whether or not potential updates introduced breaking changes. Can this be achieved any other way? As for undo/redo wouldn't that be just versioning Manifest.toml (potentially using Git)? |
|
With the undo redo it would just be It would be "versioning" but in memory and not as painful as having to commit all the time. |
previewhad good intentions. By allowing to check what happened when executing a command without it taking effect, it was intended for the user to avoid pkg commands that mess up their project. However, in practice, no one think they will do a mistake so no one uses preview. It is also quite invasive in the code base. You constantly need to think if you are running things in preview mode and in that case try to emulate the normal usage but at the same time don't do any persistent mutations.What is needed is instead
undo+redo. This just removespreviewand I will implementundo+redoto replace it (unless someone beats me to it)