15 lines
420 B
C#
15 lines
420 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using MycroForge.Core.Contract;
|
|
using RootCommand = MycroForge.Core.RootCommand;
|
|
|
|
namespace My.Plugin;
|
|
|
|
public class HelloWorldCommandPlugin : ICommandPlugin
|
|
{
|
|
public string Name => "My.Plugin";
|
|
|
|
public void RegisterServices(IServiceCollection services)
|
|
{
|
|
services.AddScoped<ISubCommandOf<RootCommand>, HelloWorldCommand>();
|
|
}
|
|
} |