Skip to content

Commit

Permalink
even more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Oct 23, 2024
1 parent 45eba8c commit 1dd8c20
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions generator/CSharpReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Runtime.InteropServices;
using System.Text;
using NuGet.Common;
using NuGet.Packaging;

namespace DocGenerator;

Expand Down Expand Up @@ -234,6 +235,8 @@ public static async Task UpdateVpkCliReference(string outputCliReference)

Console.WriteLine("Generating MacOS VPK");
var vpkOsx = await GetVpkHelpForDirective("[osx]", vpkDll);
Console.WriteLine(vpkOsx);

var vpkStringBuilder = new StringBuilder();
var vpkTocSb = new StringBuilder();
AppendVpkCommand(vpkStringBuilder, vpkTocSb, vpkOsx, "vpk", 0);
Expand All @@ -258,7 +261,6 @@ static void AppendVpkCommand(StringBuilder helpsb, StringBuilder tocsb, VpkComma
helpsb.AppendLine(command.HelpText);
helpsb.AppendLine($"```");


// sb.AppendLine($"{new string(' ', depth * 2)}## {command.Name}");
// sb.AppendLine($"{new string(' ', depth * 2)}{command.HelpText}");
// sb.AppendLine();
Expand Down Expand Up @@ -323,11 +325,14 @@ static async Task<string> RunCaptureStdOut(string exePath, string[] args)
{
var psi = new ProcessStartInfo {
FileName = exePath,
Arguments = string.Join(" ", args),
//Arguments = string.Join(" ", args),
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
};
psi.ArgumentList.AddRange(args);

Console.WriteLine($"Running: {exePath} {string.Join(" ", args)}");

return await RunCaptureStdOut(psi);
}
Expand Down

0 comments on commit 1dd8c20

Please sign in to comment.