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

Commit

Permalink
Merge pull request #56 from erwinvanhunen/dev
Browse files Browse the repository at this point in the history
Updated cmdlets
  • Loading branch information
erwinvanhunen committed Sep 8, 2015
2 parents 652d4c5 + b7b613f commit 43e17a1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions Commands/Branding/GetProvisioningTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public class GetProvisioningTemplate : SPOWebCmdlet
[Parameter(Mandatory = false, HelpMessage = "If specified, all the site collection term groups will be included. Overridden by IncludeAllTermGroups.")]
public SwitchParameter IncludeSiteCollectionTermGroup;

[Parameter(Mandatory = false, HelpMessage = "If specified all site groups will be included.")]
public SwitchParameter IncludeSiteGroups;

[Parameter(Mandatory = false, HelpMessage = "If specified the files making up the composed look (background image, font file and color file) will be saved.")]
public SwitchParameter PersistComposedLookFiles;

Expand Down Expand Up @@ -120,6 +123,8 @@ private string GetProvisioningTemplateXML(XMLPnPSchemaVersion schema, string pat
var creationInformation = new ProvisioningTemplateCreationInformation(SelectedWeb);

creationInformation.PersistComposedLookFiles = PersistComposedLookFiles;
creationInformation.IncludeSiteGroups = IncludeSiteGroups;

creationInformation.FileConnector = new FileSystemConnector(path, "");

creationInformation.BaseTemplate = this.SelectedWeb.GetBaseTemplate();
Expand Down
14 changes: 7 additions & 7 deletions Commands/Lists/AddView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ public class AddView : SPOWebCmdlet
[Parameter(Mandatory = false, ValueFromPipeline = true, Position = 0, HelpMessage = "The ID or Url of the list.")]
public ListPipeBind List;

[Parameter(Mandatory = true)]
[Parameter(Mandatory = true, HelpMessage = "The title of the view.")]
public string Title;

[Parameter(Mandatory = false)]
[Parameter(Mandatory = false, HelpMessage = "A valid CAML Query.")]
public string Query;

[Parameter(Mandatory = true)]
[Parameter(Mandatory = true, HelpMessage = "A list of fields to add.")]
public string[] Fields;

[Parameter(Mandatory = false)]
[Parameter(Mandatory = false, HelpMessage = "The type of view to add.")]
public ViewType ViewType = ViewType.None;

[Parameter(Mandatory = false)]
[Parameter(Mandatory = false, HelpMessage = "The row limit for the view. Defaults to 30.")]
public uint RowLimit = 30;

[Parameter(Mandatory = false)]
[Parameter(Mandatory = false, HelpMessage = "If specified, a personal view will be created.")]
public SwitchParameter Personal;

[Parameter(Mandatory = false)]
[Parameter(Mandatory = false, HelpMessage = "If specified the view will be set as the default view for the list.")]
public SwitchParameter SetAsDefault;

protected override void ExecuteCmdlet()
Expand Down
18 changes: 9 additions & 9 deletions Documentation/AddSPOView.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Add-SPOView
*Topic automatically generated on: 2015-08-04*
*Topic automatically generated on: 2015-09-09*

Adds a view to a list
##Syntax
Expand All @@ -11,18 +11,18 @@ Add-SPOView -Title <String> [-Query <String>] -Fields <String[]> [-ViewType <Vie
##Parameters
Parameter|Type|Required|Description
---------|----|--------|-----------
|Fields|String[]|True||
|Fields|String[]|True|A list of fields to add.|
|List|ListPipeBind|False|The ID or Url of the list.|
|Personal|SwitchParameter|False||
|Query|String|False||
|RowLimit|UInt32|False||
|SetAsDefault|SwitchParameter|False||
|Title|String|True||
|ViewType|ViewType|False||
|Personal|SwitchParameter|False|If specified, a personal view will be created.|
|Query|String|False|A valid CAML Query.|
|RowLimit|UInt32|False|The row limit for the view. Defaults to 30.|
|SetAsDefault|SwitchParameter|False|If specified the view will be set as the default view for the list.|
|Title|String|True|The title of the view.|
|ViewType|ViewType|False|The type of view to add.|
|Web|WebPipeBind|False|The web to apply the command to. Omit this parameter to use the current web.|
##Examples

###Example 1
Add-SPOView -List "Demo List" -Title "Demo View" -Fields "Title","Address"

<!-- Ref: A1C02537654D1CD76C600B1B8A9A7B7B -->
<!-- Ref: 00EC1D6AB0A5A66362E8C514DF80F34A -->

0 comments on commit 43e17a1

Please sign in to comment.