Skip to content

Commit 3fe019f

Browse files
authored
Merge pull request #3 from TALXIS/users/tomas.prokop/components
Add MCP NuGet package
2 parents 5ced082 + 9210dd1 commit 3fe019f

20 files changed

+55
-52
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ jobs:
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v4
2929
- name: Create NuGet package
30-
run: dotnet pack src/TALXIS.CLI/TALXIS.CLI.csproj --configuration Release
30+
run: |
31+
dotnet pack src/TALXIS.CLI/TALXIS.CLI.csproj --configuration Release
32+
dotnet pack src/TALXIS.CLI.MCP/TALXIS.CLI.MCP.csproj --configuration Release
3133
- uses: actions/upload-artifact@v4
3234
with:
3335
name: nuget
3436
if-no-files-found: error
3537
retention-days: 7
36-
path: src/TALXIS.CLI/bin/Release/*.nupkg
38+
path: |
39+
src/TALXIS.CLI/bin/Release/*.nupkg
40+
src/TALXIS.CLI.MCP/bin/Release/*.nupkg
3741
3842
deploy:
3943
needs: [ create_nuget ]

src/TALXIS.CLI.Component/TemplateEngine/AddProjectsToSlnPostActionProcessor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using Microsoft.TemplateEngine.Abstractions;
32

43

src/TALXIS.CLI.Component/TemplateEngine/AddReferencePostActionProcessor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using Microsoft.TemplateEngine.Abstractions;
32

43

src/TALXIS.CLI.Component/TemplateEngine/IPostActionProcessor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using Microsoft.TemplateEngine.Abstractions;
32

43
namespace TALXIS.CLI.Component

src/TALXIS.CLI.Component/TemplateEngine/PostActionDispatcher.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
41
using Microsoft.TemplateEngine.Abstractions;
5-
using TALXIS.CLI.Component;
62

73

84
namespace TALXIS.CLI.Component

src/TALXIS.CLI.Component/TemplateEngine/RunScriptPostActionProcessor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using Microsoft.TemplateEngine.Abstractions;
32

43

src/TALXIS.CLI.Component/TemplateInvoker.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using Microsoft.TemplateEngine.Abstractions;
44
using Microsoft.TemplateEngine.Edge;
55
using Microsoft.TemplateEngine.Edge.Template;
6-
using Microsoft.TemplateEngine.Orchestrator.RunnableProjects;
7-
using System.Text.Json;
86

97
namespace TALXIS.CLI.Component
108
{

src/TALXIS.CLI.Component/TemplateListCliCommand.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
using DotMake.CommandLine;
2-
using System;
3-
using System.Linq;
42

53
namespace TALXIS.CLI.Component;
64

75
/// <summary>
86
/// CLI command to list available templates in the ComponentScaffolder.
97
/// </summary>
108
[CliCommand(
11-
Description = "Lists available component templates.",
9+
Description = "Lists available component templates",
1210
Name = "list"
1311
)]
1412
public class TemplateListCliCommand
@@ -27,7 +25,8 @@ public async Task<int> RunAsync()
2725
Console.WriteLine("Available templates:");
2826
foreach (var template in templates)
2927
{
30-
Console.WriteLine($"- {template.Name} (short name: {string.Join(", ", template.ShortNameList)})");
28+
var description = string.IsNullOrWhiteSpace(template.Description) ? "" : $" - {template.Description}";
29+
Console.WriteLine($"- {template.Name} (short name: {string.Join(", ", template.ShortNameList)}){description}");
3130
}
3231
}
3332
catch (Exception ex)

src/TALXIS.CLI.Component/TemplateParameterListCliCommand.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
using DotMake.CommandLine;
2-
using System;
3-
using System.Linq;
4-
using System.Threading.Tasks;
52

63
namespace TALXIS.CLI.Component;
74

85
/// <summary>
96
/// CLI command to list parameters required for a specific component template.
107
/// </summary>
118
[CliCommand(
12-
Description = "Lists parameters for a specific component template.",
9+
Description = "Lists parameters for a specific component template",
1310
Name = "list"
1411
)]
1512
public class TemplateParameterListCliCommand

src/TALXIS.CLI.Component/TemplateScaffoldCliCommand.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
using DotMake.CommandLine;
2-
using System;
3-
using System.Collections.Generic;
42
using System.CommandLine.Completions;
5-
using System.IO;
6-
using System.Linq;
7-
using System.Threading.Tasks;
83

94
namespace TALXIS.CLI.Component;
10-
11-
/// <summary>
12-
/// CLI command to scaffold a component from a template, passing parameters.
13-
/// </summary>
145
[CliCommand(
15-
Description = "Scaffolds a component from a template and passes parameters.",
6+
Description = "Scaffolds a component from a template and passes parameters",
167
Name = "scaffold")]
178
public class TemplateScaffoldCliCommand : ICliGetCompletions
189
{

0 commit comments

Comments
 (0)