-
Notifications
You must be signed in to change notification settings - Fork 284
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
quarto use
support for non-empty directories
#8764
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Don’t prevent the user from using the current directory if there are files present. Instead, just ask whether to create a subdirectory and use the proper defaulting of the answer.
Before template files are overwritten, prompt whether they should be overwritten
Use the internal extension installation information to confirm the installation of extensions. Allow user to abort if they don’t want to overwrite.
dragonstyle
force-pushed
the
feature/use-overwrite
branch
from
February 16, 2024 23:05
21e1c5d
to
9245856
Compare
cderv
added a commit
that referenced
this pull request
Apr 3, 2024
`quarto use template` can be used to copy files from a remote even if it does not have extension Tweaks from #8764 regarding installation of extension only needs to happen if there is an `_extension` folder
cderv
added a commit
that referenced
this pull request
Jun 4, 2024
`quarto use template` can be used to copy files from a remote even if it does not have extension Tweaks from #8764 regarding installation of extension only needs to happen if there is an `_extension` folder
cderv
added a commit
that referenced
this pull request
Jun 4, 2024
`quarto use template` can be used to copy files from a remote even if it does not have extension Tweaks from #8764 regarding installation of extension only needs to happen if there is an `_extension` folder
cderv
added a commit
to cderv/quarto-cli
that referenced
this pull request
Jun 10, 2024
`quarto use template` can be used to copy files from a remote even if it does not have extension Tweaks from quarto-dev#8764 regarding installation of extension only needs to happen if there is an `_extension` folder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add for executing the
quarto use
command in non-empty directories. This requires some additional improvements to the overall installation process as outlined below. (Fixes #8595)When prompting is enabled
qmd
(e.g. a folder named my-article will contain the file my-article.qmd once the template has been used).When prompting is not enabled
quarto use
will error when attempting to use a template in a non-empty directory. It the responsibility of the calling script to ensure that the working directory forquarto use
is empty.Tests
This PR adds tests that verify
Example Session
The following example shell session uses two different templates in the same working directory: