Skip to content

Commit

Permalink
Updated exec yaml command
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuvio committed Jun 27, 2024
1 parent 8ac2d71 commit 0bc64f5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 11 additions & 3 deletions VSDebugCoreLib/Commands/Console/ExecYamlCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ public override void Execute(string text)
return;
}

var yamlFilePath = argv[0];
var yamlFileName = argv[0];
string yamlFilePath;

if (Path.IsPathRooted(yamlFileName))
{
yamlFilePath = yamlFileName;
}
else
{
yamlFilePath = Path.Combine(Context.Settings.GeneralSettings.WorkingDirectory, yamlFileName);
}

string[] args;
if (argv.Length > 1)
Expand Down Expand Up @@ -91,8 +101,6 @@ public override void Execute(string text)
var commandText = $"{renderedArguments}";
Context.ConsoleEngine.Execute(commandText);
}

Context.ConsoleEngine.Write("Executed all commands from the YAML file.");
}
catch (Exception ex)
{
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
VSDebugPro_4-2-2-0
[+] Added yaml file for scripting

VSDebugPro_4-2-1-0
[*] Fix vsix dll includes

Expand Down
2 changes: 2 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@
*
* VSDebugPro UI Element may contain fragments of work from Icon Scout
* https://iconscout.com/licenses#simple_license
*
* VSDebugPro uses UI Elements from https://icons8.com/icons
/

0 comments on commit 0bc64f5

Please sign in to comment.