Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Conversation

stevebeauge
Copy link
Contributor

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

  • Bug Fix
  • New Feature
  • Sample

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).

@stevebeauge stevebeauge changed the title Faeture/new command add pnpfilestoprovisionningtemplate Feature/new command Add-PnPFilesToProvisioningTemplate Jul 16, 2018
@stevebeauge stevebeauge force-pushed the faeture/new-command-add-pnpfilestoprovisionningtemplate branch from 2cea22f to 41b9ee1 Compare August 27, 2018 19:04
@stevebeauge
Copy link
Contributor Author

All commits have been merged to simplify the PR

@erwinvanhunen
Copy link
Member

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.

@stevebeauge
Copy link
Contributor Author

@erwinvanhunen , I'll take a look. I'm note, however, when I'll be able to refactor this.

@stevebeauge
Copy link
Contributor Author

Closing this PR, because the code base is too old.

Replaced by #2290

@stevebeauge stevebeauge closed this Oct 3, 2019
@stevebeauge stevebeauge deleted the faeture/new-command-add-pnpfilestoprovisionningtemplate branch December 9, 2019 08:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants