-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Better message when mdbook clean
is run on clean workspace
#1046
Comments
How about replacing If it is done, the error due to nonexistence of the build directory will not occur, because it will not be removed once created. |
@rnitta Thank you. I would like to know if it is ok to not remove the build directory? If you see, as an example, |
I think it would be good if it didn't print anything if the output directory doesn't exist, and exited 0. Also, unless you see a reason, I think it would be fine to just delete the directory, too, I don't see a reason to keep an empty directory around. That is, just wrap the |
@ehuss I think that is also consistent with |
Currently, if you run
mdbook clean
twice, you get the following error:Would it make sense to show a better message to the user when running
mdbook clean
on an already clean workspace?If you think this proposal makes sense, I could perhaps do this but I would need suggestions from you. If you think I am missing something and this is not a good idea, please close this issue.
Thank you.
The text was updated successfully, but these errors were encountered: