This repository was archived by the owner on Jan 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 658
Feature/new command Add-PnPFilesToProvisioningTemplate #1650
Closed
stevebeauge
wants to merge
9
commits into
pnp:dev
from
solutions-pour-sharepoint:faeture/new-command-add-pnpfilestoprovisionningtemplate
Closed
Feature/new command Add-PnPFilesToProvisioningTemplate #1650
stevebeauge
wants to merge
9
commits into
pnp:dev
from
solutions-pour-sharepoint:faeture/new-command-add-pnpfilestoprovisionningtemplate
Conversation
This file contains hidden or 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
3 tasks
2cea22f
to
41b9ee1
Compare
All commits have been merged to simplify the PR |
…pport-remote-file
…pport-remote-file
…pport-remote-file
Could you consider refactoring this code into the -existing- Add-PnPFileToProvisioningTemplate cmdlet? The goal is to have cmdlets use singular verbs but if needed they can use plural parameters. So in this case you could make it so that the Add-PnPFileToProvisioningTemplate has a SourceFolder parameter which takes all the files and adds them to the template. Please make sure that you take the refactored version of the cmdlet to make sure it works in the various auth scenarios we support. |
@erwinvanhunen , I'll take a look. I'm note, however, when I'll be able to refactor this. |
3 tasks
Closing this PR, because the code base is too old. Replaced by #2290 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/SharePoint/PnP-PowerShell/blob/dev/CONTRIBUTING.md
Type
Related Issues?
Requires PR #1648
What is in this Pull Request ?
This PR contais a new command :
Add-PnPFilesToProvisioningTemplate
.Its objective is similar to the exising
Add-PnPFileToProvisioningTemplate
but deals with folders instead of individual files.It allows to inject a complete folder in one command. It's useful, for example, to import a bunch of files from a local folder (sample documents) or, as it was in my case, a bunch of branding files in the Style Library folder.
It also allows injecting a folder directly from the connected Web (see
SourceFolderUrl
).