ant-design-blazor/site/AntDesign.Docs.Build.CLI/Extensions/ProcessExtensions.cs

13 lines
314 B
C#
Raw Normal View History

using System.Diagnostics;
namespace AntDesign.Docs.Build.CLI.Extensions
{
public static class ProcessExtensions
{
public static void Exec(this Process process, string command)
{
if (!process.HasExited)
process.StandardInput.WriteLine(command);
}
}
}