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
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:
parent
f19684964a
commit
e06650f30c
@ -37,7 +37,7 @@ namespace directors_assistant
|
|||||||
var justArgs = string.Join(' ', cmdAndArgs.Skip(1).ToList());
|
var justArgs = string.Join(' ', cmdAndArgs.Skip(1).ToList());
|
||||||
if(!string.IsNullOrWhiteSpace(ec.args))
|
if(!string.IsNullOrWhiteSpace(ec.args))
|
||||||
{
|
{
|
||||||
justArgs += ec.args;
|
justArgs += " " + ec.args;
|
||||||
}
|
}
|
||||||
var commandPath = cmdAndArgs[0];
|
var commandPath = cmdAndArgs[0];
|
||||||
var commandArguments = String.Join(' ', justArgs);
|
var commandArguments = String.Join(' ', justArgs);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" 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="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" />
|
<PackageReference Include="greyn.franz" Version="2.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user