mirror of
https://github.com/DuendeSoftware/products
synced 2026-05-23 17:08:21 +00:00
24 lines
696 B
C#
24 lines
696 B
C#
// Copyright (c) Duende Software. All rights reserved.
|
|
// See LICENSE in the project root for license information.
|
|
|
|
using System.CommandLine;
|
|
using Duende.Cli.PluginAbstractions;
|
|
|
|
namespace Duende.Cli.TestPlugin;
|
|
|
|
/// <summary>
|
|
/// A minimal CLI plugin used for integration testing the plugin loading infrastructure.
|
|
/// </summary>
|
|
public sealed class TestCliPlugin : ICliPlugin
|
|
{
|
|
/// <inheritdoc />
|
|
public string Name => "test";
|
|
|
|
/// <inheritdoc />
|
|
public Command GetCommand()
|
|
{
|
|
var command = new Command("test", "A test plugin for integration testing.");
|
|
command.Subcommands.Add(new Command("hello", "A sample subcommand."));
|
|
return command;
|
|
}
|
|
}
|