From 142873a2988c806edc20dc26873b39f3833cc20b Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Wed, 14 Dec 2022 17:11:32 -0500 Subject: [PATCH] execute command arguments = 1 string; more intuitive given that I've been down this road of "why did it explode? oh because it's an array of strings. why is it an array? this should stop" before --- franz.tests/Program.cs | 2 +- franz/gray_messages/directorial/execute_command.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/franz.tests/Program.cs b/franz.tests/Program.cs index 8cc91e5..7b1385d 100644 --- a/franz.tests/Program.cs +++ b/franz.tests/Program.cs @@ -27,7 +27,7 @@ namespace franz.tests System.Threading.Thread.Sleep(15000); Telefranz.Instance.ProduceMessage(new gray_messages.directorial.execute_command(){ command= "a!", - args= new List(){"param 1", "param 2"} + args= "parameters to pass along" }); System.Threading.Thread.Sleep(5000); Console.WriteLine("k."); diff --git a/franz/gray_messages/directorial/execute_command.cs b/franz/gray_messages/directorial/execute_command.cs index dc22133..46613f5 100644 --- a/franz/gray_messages/directorial/execute_command.cs +++ b/franz/gray_messages/directorial/execute_command.cs @@ -15,7 +15,7 @@ namespace gray_messages.directorial public class execute_command : gray_messages.message { public string command { get; set; } - public List args { get; set; } = new List(); + public string args { get; set; } public TimeSpan? timeout { get; set; } } }