-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename main executable project to Kysect.Configuin without .Console
- Loading branch information
Showing
13 changed files
with
88 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Kysect.Configuin.Console.Commands; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Spectre.Console.Cli; | ||
|
||
namespace Kysect.Configuin.Console; | ||
|
||
public static class CommandAppInitializer | ||
{ | ||
public static CommandApp Initialize(IServiceCollection services) | ||
{ | ||
var registrar = new TypeRegistrar(services); | ||
var app = new CommandApp(registrar); | ||
|
||
app.Configure(config => | ||
{ | ||
config.AddCommand<GenerateCodeStyleDocCommand>("generate-styledoc"); | ||
config.AddCommand<EditorConfigApplyPreviewCommand>("preview"); | ||
config.AddCommand<AnalyzeEditorConfigCommand>("analyze"); | ||
config.AddCommand<GenerateEditorConfigTemplateTemplate>("template"); | ||
config.AddCommand<FormatEditorconfigCommand>("format"); | ||
config.AddCommand<GenerateRoslynRuleDocumentationFile>("generate-roslyn-documentation"); | ||
}); | ||
|
||
return app; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...es/Kysect.Configuin.DotnetFormatIntegration.Abstractions/IDotnetFormatPreviewGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Kysect.Configuin.DotnetFormatIntegration.Abstractions; | ||
|
||
public interface IDotnetFormatPreviewGenerator | ||
{ | ||
void GetEditorConfigWarningUpdates(string solutionPath, string newEditorConfig, string sourceEditorConfig); | ||
} |
2 changes: 2 additions & 0 deletions
2
...rmatIntegration.Abstractions/Kysect.Configuin.DotnetFormatIntegration.Abstractions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
</Project> |
3 changes: 2 additions & 1 deletion
3
Sources/Kysect.Configuin.DotnetFormatIntegration/DotnetFormatPreviewGenerator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
.../Kysect.Configuin.DotnetFormatIntegration/Kysect.Configuin.DotnetFormatIntegration.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<PackageReference Include="Kysect.CommonLib" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" /> | ||
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Kysect.Configuin.DotnetFormatIntegration.Abstractions\Kysect.Configuin.DotnetFormatIntegration.Abstractions.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Kysect.Configuin.ConfigurationRoot\Kysect.Configuin.ConfigurationRoot.csproj" /> | ||
<ProjectReference Include="..\Kysect.Configuin.Console\Kysect.Configuin.Console.csproj" /> | ||
</ItemGroup> | ||
</Project> |
22 changes: 4 additions & 18 deletions
22
Sources/Kysect.Configuin.Console/Program.cs → Sources/Kysect.Configuin/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters