mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
14 lines
384 B
C#
14 lines
384 B
C#
using System;
|
|
using CliFx.Models;
|
|
|
|
namespace CliFx.Services
|
|
{
|
|
/// <summary>
|
|
/// Default implementation of <see cref="ICommandFactory"/>.
|
|
/// </summary>
|
|
public class CommandFactory : ICommandFactory
|
|
{
|
|
/// <inheritdoc />
|
|
public ICommand CreateCommand(CommandSchema commandSchema) => (ICommand) Activator.CreateInstance(commandSchema.Type);
|
|
}
|
|
} |