15 lines
446 B
C#
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>();
|
|
}
|
|
} |