Skip to content

Commit a9c1509

Browse files
committed
Params passing fix. Fixed output encoding to console.
1 parent 261d030 commit a9c1509

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/tailwindcss-dotnet/Infrastructure/ProcessExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal static partial class ProcessUtil
44
{
55
public static Task<int> ExecuteAsync(string[] command, string? workingDirectory = null)
66
{
7-
return ExecuteAsync(command[0], string.Join(" ", command.Skip(0)), workingDirectory);
7+
return ExecuteAsync(command[0], string.Join(" ", command.Skip(1)), workingDirectory);
88
}
99

1010
public static async Task<int> ExecuteAsync(string fileName, string? arguments = null, string? workingDirectory = null)
@@ -13,9 +13,9 @@ public static async Task<int> ExecuteAsync(string fileName, string? arguments =
1313
{
1414
WorkingDirectory = workingDirectory ?? Directory.GetCurrentDirectory(),
1515
Arguments = arguments ?? "",
16-
OnOutputData = Console.Out.Write,
17-
OnErrorData = Console.Error.Write,
18-
InheritEnv = false,
16+
OnOutputData = Console.Out.WriteLine,
17+
OnErrorData = Console.Error.WriteLine,
18+
InheritEnv = true,
1919
};
2020

2121
var (result, _) = ProcessUtil.Run(procSpec);

src/tailwindcss-dotnet/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
using Tailwindcss.DotNetTool.Cli;
55
using Tailwindcss.DotNetTool.Commands;
66

7+
Console.OutputEncoding = System.Text.Encoding.UTF8;
8+
79
var appContext = new AppInvocationContext();
810
CommandLineBuilder builder = new CommandLineBuilder
911
{

0 commit comments

Comments
 (0)