Skip to content

Commit

Permalink
Merge pull request #3158 from gautamdsheth/feature/remove-alias-page-…
Browse files Browse the repository at this point in the history
…cmdlet

Removed alias from page cmdlets
  • Loading branch information
KoenZomers authored Jun 5, 2023
2 parents 503241f + c6535a6 commit b4db94b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Removed

- Removed alias `Get-PnPSiteCollectionAppCatalogs` for `Get-PnPSiteCollectionAppCatalog` [#2305](https://github.com/pnp/powershell/pull/3025)
- Removed alias `Export-PnPClientSidePage`, please use `Export-PnPPage` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)
- Removed alias `Export-PnPClientSidePageMapping`, please use `Export-PnPPageMapping` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)
- Removed alias `Get-PnPClientSideComponent`, please use `Get-PnPPageComponent` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)
- Removed alias `Remove-PnPClientSideComponent`, please use `Remove-PnPPageComponent` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)
- Removed alias `Set-PnPClientSideText`, please use `Set-PnPPageTextPart` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)
- Removed alias `Set-PnPClientSideWebPart`, please use `Set-PnPPageWebPart` cmdlet. [#3158](https://github.com/pnp/powershell/pull/3158)

### Contributors

Expand Down
5 changes: 1 addition & 4 deletions src/Commands/Pages/ExportPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

namespace PnP.PowerShell.Commands.Provisioning.Tenant
{
[Cmdlet(VerbsData.Export, "PnPPage")]
[Alias("Export-PnPClientSidePage")]
[WriteAliasWarning("Please use 'Export-PnPPage'. The alias 'Export-PnPClientSidePage' will be removed in the 1.5.0 release")]

[Cmdlet(VerbsData.Export, "PnPPage")]
public class ExportPage : PnPWebCmdlet
{
[Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)]
Expand Down
5 changes: 1 addition & 4 deletions src/Commands/Pages/ExportPageMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@

namespace PnP.PowerShell.Commands.Pages
{
[Cmdlet(VerbsData.Export, "PnPPageMapping")]
[Alias("Export-PnPClientSidePageMapping")]
[WriteAliasWarning("Please use 'Export-PnPPageMapping'. The alias 'Export-PnPClientSidePageMapping' will be removed in the 1.5.0 release")]

[Cmdlet(VerbsData.Export, "PnPPageMapping")]
public class ExportPageMapping : PnPWebCmdlet
{
private Assembly sitesCoreAssembly;
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Pages/GetPageComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace PnP.PowerShell.Commands.Pages
{
[Cmdlet(VerbsCommon.Get, "PnPPageComponent")]
[Alias("Get-PnPClientSideComponent")]
[WriteAliasWarning("Please use 'Get-PnPPageComponent'. The alias 'Get-PnPClientSideComponent' will be removed in the 1.5.0 release")]
public class GetPageComponent : PnPWebCmdlet
{
[Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)]
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Pages/RemovePageComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace PnP.PowerShell.Commands.Pages
{
[Cmdlet(VerbsCommon.Remove, "PnPPageComponent")]
[Alias("Remove-PnPClientSideComponent")]
[WriteAliasWarning("Please use 'Remove-PnPPageComponent'. The alias 'Remove-PnPClientSidecComponent' will be removed in the 1.5.0 release")]
public class RemovePageComponent : PnPWebCmdlet
{
[Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)]
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Pages/SetPageTextPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace PnP.PowerShell.Commands.Pages
{
[Cmdlet(VerbsCommon.Set, "PnPPageTextPart")]
[Alias("Set-PnPClientSideText")]
[WriteAliasWarning("Please use 'Set-PnPPageTextPart'. The alias 'Set-PnPClientSideText' will be removed in the 1.5.0 release")]
public class SetClientSideText : PnPWebCmdlet
{
[Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)]
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Pages/SetPageWebPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
namespace PnP.PowerShell.Commands.Pages
{
[Cmdlet(VerbsCommon.Set, "PnPPageWebPart")]
[Alias("Set-PnPClientSideWebPart")]
[WriteAliasWarning("Please use 'Set-PnPPageWebPart'. The alias 'Set-PnPClientSideWebPart' will be removed in the 1.5.0 release")]
public class SetClientSideWebPart : PnPWebCmdlet
{
[Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0)]
Expand Down

0 comments on commit b4db94b

Please sign in to comment.