if your command is a bash script, dotnet gets confused if you try to run it -
Some checks failed
gitea/directors-assistant/pipeline/head There was a failure building this commit

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"}
This commit is contained in:
Adam R Grey 2023-11-28 13:11:11 -05:00
parent f19684964a
commit e06650f30c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -11,7 +11,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="greyn.franz" Version="2.1.0" />
</ItemGroup>