mycroforge/MycroForge.PluginTemplate/ExampleCommandPlugin.cs
mdnapo 457429f7ec
All checks were successful
Build and publish MycroForge.CLI / test (push) Has been skipped
Test MycroForge.CLI / test (push) Successful in 5m39s
Improved plugin feature
2024-10-13 13:39:56 +02:00

15 lines
446 B
C#

using Microsoft.Extensions.DependencyInjection;
using MycroForge.Core.Contract;
using RootCommand = MycroForge.Core.RootCommand;
namespace MycroForge.PluginTemplate;
public class ExampleCommandPlugin : ICommandPlugin
{
public string Name => "MycroForge.PluginTemplate";
public void RegisterServices(IServiceCollection services)
{
services.AddScoped<ISubCommandOf<RootCommand>, ExampleCommand>();
}
}