19 lines
655 B
C#
19 lines
655 B
C#
using System;
|
|
using CommandManager.Attributes;
|
|
|
|
namespace ManagerTester.Commands {
|
|
[Command(Name = "test", Alias = new[]{"test2", "test3"}, Description = "This is a Test Command")]
|
|
public class TestCmd {
|
|
|
|
[CommandArgument(ArgNum = 0, Name = "Vorname", Suggestions = new[]{"Werner", "Alfred"})]
|
|
public string FirstName { get; set; }
|
|
|
|
[CommandArgument(ArgNum = 1, Name = "Nachname", Suggestions = new[]{"Meyer", "Müller"})]
|
|
public string LastName { get; set; }
|
|
|
|
[CommandHandler]
|
|
public void OnCommand() {
|
|
Console.WriteLine(FirstName + " " + LastName);
|
|
}
|
|
}
|
|
} |