From e06650f30cc4aa02b76333a4f987f657867e9c6f Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Tue, 28 Nov 2023 13:11:11 -0500 Subject: [PATCH] if your command is a bash script, dotnet gets confused if you try to run it - so you'll have to do, for example, {"name":"grab 1 video now", "shell": "bash grab1vidnow.sh"} but the way I did that, I have to split up and rejoin the spaces... so now when you send it args, i'm adding a space. old and busted: {"type": "gray_messages.directorial.execute_command", "command":"grab 1 video now", "args": " https://www.youtube.com/watch?v=OnNyPS2iaLo"} new hotness: {"type": "gray_messages.directorial.execute_command", "command":"grab 1 video now", "args": "https://www.youtube.com/watch?v=OnNyPS2iaLo"} --- Program.cs | 2 +- directors-assistant.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index cebab37..803ca40 100644 --- a/Program.cs +++ b/Program.cs @@ -37,7 +37,7 @@ namespace directors_assistant var justArgs = string.Join(' ', cmdAndArgs.Skip(1).ToList()); if(!string.IsNullOrWhiteSpace(ec.args)) { - justArgs += ec.args; + justArgs += " " + ec.args; } var commandPath = cmdAndArgs[0]; var commandArguments = String.Join(' ', justArgs); diff --git a/directors-assistant.csproj b/directors-assistant.csproj index 72f4630..9f9db4d 100644 --- a/directors-assistant.csproj +++ b/directors-assistant.csproj @@ -11,7 +11,7 @@ - +