Skip to content

Commit

Permalink
Cleaned up and implemented ALC
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvanhunen committed Sep 30, 2020
1 parent 76ef587 commit fd65170
Show file tree
Hide file tree
Showing 496 changed files with 1,054 additions and 866 deletions.
2 changes: 1 addition & 1 deletion Commands/Admin/AddHubSiteAssociation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Base.PipeBinds;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/AddMicrosoft365GroupToSite.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/AddOrgAssetsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using Microsoft.Online.SharePoint.TenantAdministration;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/AddOrgNewsSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Base.PipeBinds;
Expand Down
4 changes: 0 additions & 4 deletions Commands/Admin/AddSiteCollectionAppCatalog.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Base.PipeBinds;

namespace PnP.PowerShell.Commands.Admin
{
[Cmdlet(VerbsCommon.Add, "PnPSiteCollectionAppCatalog")]


[CmdletRelatedLink(Text = "Documentation", Url = "https://docs.microsoft.com/sharepoint/dev/general-development/site-collection-app-catalog#configure-and-manage-site-collection-app-catalogs")]
public class AddSiteCollectionAppCatalog : PnPAdminCmdlet
{
[Parameter(Mandatory = true)]
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/AddTenantCdnOrigin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/AddTenantTheme.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/ClearTenantAppCatalogUrl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;

namespace PnP.PowerShell.Commands
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetHideDefaultThemes.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetHomeSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetHubSiteChild.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetKnowledgeHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetOrgAssetsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetOrgNewsSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetStorageEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Management.Automation;
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Enums;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenant.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Model;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantAppCatalogUrl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;


namespace PnP.PowerShell.Commands
{
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantCdnEnabled.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantCdnOrigin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantCdnPolicies.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantId.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Management.Automation;
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Enums;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantSyncClientRestriction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Model;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTenantTheme.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetTimeZoneId.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using PnP.PowerShell.CmdletHelpAttributes;

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GetWebTemplates.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using PnP.PowerShell.CmdletHelpAttributes;

using Microsoft.SharePoint.Client;
using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/GrantHubSiteRights.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/NewSite.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base.PipeBinds;
using PnP.PowerShell.Commands.Enums;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/NewTenantSite.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.SharePoint.Client;
using PnP.Framework;
using PnP.Framework.Entities;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RegisterAppCatalogSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RegisterHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveHomeSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveHubSiteAssociation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveKnowledgeHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveOrgAssetsLibrary.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveOrgNewsSite.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.PowerShell.Commands.Base.PipeBinds;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveSiteCollectionAppCatalog.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveStorageEntity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Enums;

namespace PnP.PowerShell.Commands
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveTenantCdnOrigin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveTenantSite.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using Resources = PnP.PowerShell.Commands.Properties.Resources;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RemoveTenantTheme.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/RevokeHubSiteRights.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetHideDefaultThemes.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetHomeSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System.Management.Automation;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetKnowledgeHubSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;

Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetStorageEntity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Enums;

namespace PnP.PowerShell.Commands
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetTenant.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using System;
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetTenantAppCatalogUrl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;

namespace PnP.PowerShell.Commands
Expand Down
2 changes: 1 addition & 1 deletion Commands/Admin/SetTenantCdnEnabled.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client;
using PnP.PowerShell.CmdletHelpAttributes;

using PnP.PowerShell.Commands.Base;
using System.Management.Automation;
using PnP.Framework.Sites;
Expand Down
Loading

0 comments on commit fd65170

Please sign in to comment.