Skip to content

Commit 0cec54e

Browse files
committed
#432 : Updated organization of commands related to ContentSearch.
1 parent 60c5198 commit 0cec54e

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

Cognifide.PowerShell/Cognifide.PowerShell.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@
176176
<Compile Include="Client\Controls\UserPicker.cs" />
177177
<Compile Include="Commandlets\BaseCommand.cs" />
178178
<Compile Include="Commandlets\BaseIndexCommand.cs" />
179-
<Compile Include="Commandlets\Data\InitializeSearchIndexCommand.cs" />
180-
<Compile Include="Commandlets\Data\ResumeSearchIndexCommand.cs" />
181-
<Compile Include="Commandlets\Data\StopSearchIndexCommand.cs" />
182-
<Compile Include="Commandlets\Data\SuspendSearchIndexCommand.cs" />
179+
<Compile Include="Commandlets\Data\Search\InitializeSearchIndexCommand.cs" />
180+
<Compile Include="Commandlets\Data\Search\ResumeSearchIndexCommand.cs" />
181+
<Compile Include="Commandlets\Data\Search\StopSearchIndexCommand.cs" />
182+
<Compile Include="Commandlets\Data\Search\SuspendSearchIndexCommand.cs" />
183183
<Compile Include="Commandlets\Data\TestRuleCommand.cs" />
184184
<Compile Include="Commandlets\Interactive\Messages\ShowModalDialogPsMessage.cs" />
185185
<Compile Include="Commandlets\Packages\NewSecuritySourceCommand.cs" />
@@ -200,7 +200,7 @@
200200
<Compile Include="Commandlets\Data\ExpandTokensCommand.cs" />
201201
<Compile Include="Commandlets\Data\GetArchiveCommand.cs" />
202202
<Compile Include="Commandlets\Data\GetDatabaseCommand.cs" />
203-
<Compile Include="Commandlets\Data\GetSearchIndexCommand.cs" />
203+
<Compile Include="Commandlets\Data\Search\GetSearchIndexCommand.cs" />
204204
<Compile Include="Commandlets\Data\GetItemByUriCommand.cs" />
205205
<Compile Include="Commandlets\Data\GetItemCloneCommand.cs" />
206206
<Compile Include="Commandlets\Data\GetItemFieldCommand.cs" />
@@ -211,7 +211,7 @@
211211
<Compile Include="Commandlets\Data\PublishItemCommand.cs" />
212212
<Compile Include="Commandlets\Data\RemoveItemLanguageCommand.cs" />
213213
<Compile Include="Commandlets\Data\InitializeItemCommand.cs" />
214-
<Compile Include="Commandlets\Data\FindItemCommand.cs" />
214+
<Compile Include="Commandlets\Data\Search\FindItemCommand.cs" />
215215
<Compile Include="Commandlets\Interactive\BaseFormCommand.cs" />
216216
<Compile Include="Commandlets\Interactive\BaseListViewCommand.cs" />
217217
<Compile Include="Commandlets\Interactive\BaseShellCommand.cs" />

Cognifide.PowerShell/Commandlets/Data/FindItemCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/FindItemCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using Sitecore.Data;
1212
using Sitecore.Data.Items;
1313

14-
namespace Cognifide.PowerShell.Commandlets.Data
14+
namespace Cognifide.PowerShell.Commandlets.Data.Search
1515
{
1616
[Cmdlet(VerbsCommon.Find, "Item")]
1717
[OutputType(typeof(Item))]

Cognifide.PowerShell/Commandlets/Data/GetSearchIndexCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/GetSearchIndexCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using System.Linq;
2-
using System.Management.Automation;
1+
using System.Management.Automation;
32
using Sitecore.ContentSearch;
43

5-
namespace Cognifide.PowerShell.Commandlets.Data
4+
namespace Cognifide.PowerShell.Commandlets.Data.Search
65
{
76
[Cmdlet(VerbsCommon.Get, "SearchIndex", DefaultParameterSetName = "Name")]
87
[OutputType(typeof (ISearchIndex))]

Cognifide.PowerShell/Commandlets/Data/InitializeSearchIndexCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/InitializeSearchIndexCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Sitecore.ContentSearch;
55
using Sitecore.ContentSearch.Maintenance;
66

7-
namespace Cognifide.PowerShell.Commandlets.Data
7+
namespace Cognifide.PowerShell.Commandlets.Data.Search
88
{
99
[Cmdlet(VerbsData.Initialize, "SearchIndex", DefaultParameterSetName = "Name")]
1010
public class InitializeSearchIndexCommand : BaseIndexCommand

Cognifide.PowerShell/Commandlets/Data/ResumeSearchIndexCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/ResumeSearchIndexCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Management.Automation;
33
using Sitecore.ContentSearch;
44

5-
namespace Cognifide.PowerShell.Commandlets.Data
5+
namespace Cognifide.PowerShell.Commandlets.Data.Search
66
{
77
[Cmdlet(VerbsLifecycle.Resume, "SearchIndex", DefaultParameterSetName = "Name")]
88
[OutputType(typeof(ISearchIndex))]

Cognifide.PowerShell/Commandlets/Data/StopSearchIndexCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/StopSearchIndexCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Management.Automation;
33
using Sitecore.ContentSearch;
44

5-
namespace Cognifide.PowerShell.Commandlets.Data
5+
namespace Cognifide.PowerShell.Commandlets.Data.Search
66
{
77
[Cmdlet(VerbsLifecycle.Stop, "SearchIndex", DefaultParameterSetName = "Name")]
88
[OutputType(typeof(ISearchIndex))]

Cognifide.PowerShell/Commandlets/Data/SuspendSearchIndexCommand.cs renamed to Cognifide.PowerShell/Commandlets/Data/Search/SuspendSearchIndexCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Management.Automation;
33
using Sitecore.ContentSearch;
44

5-
namespace Cognifide.PowerShell.Commandlets.Data
5+
namespace Cognifide.PowerShell.Commandlets.Data.Search
66
{
77
[Cmdlet(VerbsLifecycle.Suspend, "SearchIndex", DefaultParameterSetName = "Name")]
88
[OutputType(typeof(ISearchIndex))]

0 commit comments

Comments
 (0)