mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
13 lines
386 B
C#
13 lines
386 B
C#
using Cake.Common;
|
|
using Cake.Core;
|
|
|
|
static class GitTasks
|
|
{
|
|
public static string Git(this ICakeContext ctx, string args, string separator = "")
|
|
{
|
|
using var process = ctx.StartAndReturnProcess("git", new() { Arguments = args, RedirectStandardOutput = true });
|
|
process.WaitForExit();
|
|
return string.Join(separator, process.GetStandardOutput());
|
|
}
|
|
}
|