Skip to content

Commit

Permalink
#1109 : Renamed Commandlets to Commands.
Browse files Browse the repository at this point in the history
That word has always annoyed me.
  • Loading branch information
michaellwest committed May 25, 2019
1 parent b68f94b commit 19901fe
Show file tree
Hide file tree
Showing 209 changed files with 436 additions and 436 deletions.
2 changes: 1 addition & 1 deletion Spe/Client/Applications/PowerShellMultiValuePrompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
using Sitecore.Web.UI.WebControls;
using Spe.Abstractions.VersionDecoupling.Interfaces;
using Spe.Client.Controls;
using Spe.Commandlets.Interactive.Messages;
using Spe.Commands.Interactive.Messages;
using Spe.Core.Diagnostics;
using Spe.Core.Extensions;
using Spe.Core.Host;
Expand Down
2 changes: 1 addition & 1 deletion Spe/Client/Applications/PowerShellResultViewerList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Sitecore.Web.UI.Sheer;
using Sitecore.Web.UI.WebControls.Ribbons;
using Spe.Client.Controls;
using Spe.Commandlets.Interactive;
using Spe.Commands.Interactive;
using Spe.Core.Extensions;
using Spe.Core.Host;
using Spe.Core.Settings;
Expand Down
4 changes: 2 additions & 2 deletions Spe/Client/Controls/PowerShellListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Sitecore.StringExtensions;
using Sitecore.Web.UI.HtmlControls;
using Sitecore.Web.UI.Sheer;
using Spe.Commandlets.Interactive;
using Spe.Commandlets.Interactive.Messages;
using Spe.Commands.Interactive;
using Spe.Commands.Interactive.Messages;

namespace Spe.Client.Controls
{
Expand Down
2 changes: 1 addition & 1 deletion Spe/Client/Controls/RibbonActionScriptsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Sitecore.Shell.Framework.Commands;
using Sitecore.Shell.Web.UI.WebControls;
using Sitecore.Web.UI.WebControls.Ribbons;
using Spe.Commandlets.Interactive;
using Spe.Commands.Interactive;
using Spe.Core.Modules;
using Spe.Core.Settings;
using Spe.Core.Utility;
Expand Down
2 changes: 1 addition & 1 deletion Spe/Client/Controls/RibbonExportScriptsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Sitecore.Shell.Framework.Commands;
using Sitecore.Shell.Web.UI.WebControls;
using Sitecore.Web.UI.WebControls.Ribbons;
using Spe.Commandlets.Interactive;
using Spe.Commands.Interactive;
using Spe.Core.Modules;
using Spe.Core.Settings;
using Spe.Core.Utility;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Spe.Core.Utility;
using Spe.Core.VersionDecoupling;

namespace Spe.Commandlets
namespace Spe.Commands
{
public class BaseCommand : PSCmdlet
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.ContentSearch;
using Spe.Core.Validation;

namespace Spe.Commandlets
namespace Spe.Commands
{
public class BaseIndexCommand : BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Sitecore.Data.Items;
using Spe.Core.Validation;

namespace Spe.Commandlets
namespace Spe.Commands
{
public abstract class BaseItemCommand : BaseLanguageAgnosticItemCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Management.Automation;
using Sitecore.Data.Items;

namespace Spe.Commandlets
namespace Spe.Commands
{
public abstract class BaseItemRecursiveCommand : BaseItemCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Data;
using System.Management.Automation;
using Sitecore.Data.Items;
using Spe.Commandlets.Interactive;
using Spe.Commands.Interactive;
using Spe.Core.Validation;

namespace Spe.Commandlets
namespace Spe.Commands
{
public abstract class BaseLanguageAgnosticItemCommand : BaseShellCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Sitecore.Data.Items;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Add, "BaseTemplate", SupportsShouldProcess = true)]
public class AddBaseTemplateCommand : BaseTemplateItemCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Spe.Core.Utility;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Add, "ItemVersion", SupportsShouldProcess = true)]
[OutputType(typeof (Item), ParameterSetName = new[] {"Item from Pipeline", "Item from Path", "Item from ID"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Spe.Core.Utility;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
public abstract class BaseTemplateItemCommand : BaseLanguageAgnosticItemCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.Data.Clones;
using Sitecore.Data.Items;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
public abstract class BaseItemCloneNotificationCommand : BaseItemCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.Exceptions;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Cmdlet(VerbsData.ConvertFrom, "ItemClone", SupportsShouldProcess = true)]
[OutputType(typeof (Item), ParameterSetName = new[] {"Item from Pipeline", "Item from Path", "Item from ID"})]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Management.Automation;
using Sitecore.Data.Items;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Cmdlet(VerbsCommon.Get, "ItemClone")]
[OutputType(typeof (Item), ParameterSetName = new[] {"Item from Pipeline", "Item from Path", "Item from ID"})]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Management.Automation;
using Sitecore.Data.Clones;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Cmdlet(VerbsCommon.Get, "ItemCloneNotification", SupportsShouldProcess = true)]
[OutputType(typeof(Notification), ParameterSetName = new[] { "Item from Pipeline", "Item from Path", "Item from ID" })]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Sitecore.Data.Items;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Cmdlet("New", "ItemClone", SupportsShouldProcess = true)]
[OutputType(typeof (Item), ParameterSetName = new[] {"Item from Pipeline", "Item from Path", "Item from ID"})]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
public enum NotificationAction
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Flags]
public enum NotificationType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Sitecore.Data.Items;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data.Clones
namespace Spe.Commands.Data.Clones
{
[Cmdlet(VerbsCommunications.Receive, "ItemCloneNotification", SupportsShouldProcess = true)]
public class ReceiveItemCloneNotificationCommand : BaseItemCloneNotificationCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.Configuration;
using Sitecore.Data;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
public abstract class DatabaseContextBaseCommand : BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Sitecore.Data.Items;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsData.Expand, "Token", SupportsShouldProcess = true)]
[OutputType(typeof (Item))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.Data;
using Sitecore.Data.Archiving;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "Archive")]
[OutputType(typeof (Archive))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Sitecore.Data;
using Sitecore.Data.Archiving;
using Sitecore.Security.Accounts;
using Spe.Commandlets.Security;
using Spe.Commands.Security;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "ArchiveItem", DefaultParameterSetName = "Everything")]
[OutputType(typeof (ArchiveEntry))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Sitecore.Data;
using Sitecore.Data.Items;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "Database")]
[OutputType(typeof (Database))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Sitecore.Data.Managers;
using Sitecore.Data.Templates;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "ItemField")]
[OutputType(typeof (TemplateField), typeof (string), typeof (Field),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Spe.Core.Extensions;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "ItemReference")]
[OutputType(typeof (Item),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Spe.Core.Extensions;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "ItemReferrer")]
[OutputType(typeof (Item), ParameterSetName = new[] {"Item from Pipeline, return Item", "Item from Path, return Item", "Item from ID, return Item"})]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Management.Automation;
using Sitecore.Data.Items;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Get, "ItemTemplate")]
[OutputType(typeof (TemplateItem))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Sitecore.ContentSearch.SearchTypes;
using Sitecore.Data.Items;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsData.Initialize, "Item")]
[OutputType(typeof (Item))]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Management.Automation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.New, "UsingBlock")]
public class NewUsingBlockCommand : BaseCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using Spe.Core.Utility;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsData.Publish, "Item", SupportsShouldProcess = true)]
[OutputType(new Type[] { }, ParameterSetName = new[] { "Item from Pipeline", "Item from Path", "Item from ID" })]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Sitecore.Data;
using Sitecore.Data.Archiving;
using Sitecore.Security.Accounts;
using Spe.Commandlets.Security;
using Spe.Commands.Security;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Remove, "ArchiveItem", DefaultParameterSetName = "Everything", SupportsShouldProcess = true)]
public class RemoveArchiveItemCommand : BaseCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Sitecore.Data.Items;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Remove, "BaseTemplate", SupportsShouldProcess = true)]
public class RemoveBaseTemplateCommand : BaseTemplateItemCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Spe.Core.Utility;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Remove, "ItemVersion", SupportsShouldProcess = true)]
public class RemoveItemVersionCommand : BaseItemCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Sitecore.Data.Managers;
using Spe.Core.Utility;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsCommon.Reset, "ItemField", SupportsShouldProcess = true)]
public class ResetItemFieldCommand : BaseItemCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Sitecore.Data;
using Sitecore.Data.Archiving;
using Sitecore.Security.Accounts;
using Spe.Commandlets.Security;
using Spe.Commands.Security;

namespace Spe.Commandlets.Data
namespace Spe.Commands.Data
{
[Cmdlet(VerbsData.Restore, "ArchiveItem", DefaultParameterSetName = "Everything", SupportsShouldProcess = true)]
public class RestoreArchiveItemCommand : BaseCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Sitecore.Rules;
using Spe.Core.Extensions;

namespace Spe.Commandlets.Data.Search
namespace Spe.Commands.Data.Search
{
public class BaseSearchCommand : BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Spe.Commandlets.Data.Search
namespace Spe.Commands.Data.Search
{
public enum FilterType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Spe.Core.Extensions;
using Spe.Core.Validation;

namespace Spe.Commandlets.Data.Search
namespace Spe.Commands.Data.Search
{
[Cmdlet(VerbsCommon.Find, "Item", DefaultParameterSetName = "Criteria")]
[OutputType(typeof(SearchResultItem))]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Management.Automation;
using Sitecore.ContentSearch;

namespace Spe.Commandlets.Data.Search
namespace Spe.Commands.Data.Search
{
[Cmdlet(VerbsCommon.Get, "SearchIndex", DefaultParameterSetName = "Name")]
[OutputType(typeof (ISearchIndex))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Spe.Core.Extensions;
using Spe.Core.VersionDecoupling;

namespace Spe.Commandlets.Data.Search
namespace Spe.Commands.Data.Search
{
[Cmdlet(VerbsData.Initialize, "SearchIndex", DefaultParameterSetName = "Name")]
public class InitializeSearchIndexCommand : BaseIndexCommand
Expand Down
Loading

0 comments on commit 19901fe

Please sign in to comment.