Skip to content

Commit

Permalink
forward WorkingDirectory option
Browse files Browse the repository at this point in the history
  • Loading branch information
IliasP91 committed Oct 6, 2023
1 parent 0a8ae78 commit 9533ab6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Man.Dapr.Sidekick/Process/DaprProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,14 @@ private IProcess StartManagedProcess(TOptions proposedOptions, DaprCancellationT
process.OutputDataReceived += (sender, args) => _daprLogger?.LogData(args.Data);

// Start the managed dapr process
process.Start(proposedOptions.ProcessFile, arguments, Logger, cancellationToken: cancellationToken);
process.Start(new DaprManagedProcessOptions
{
Filename = proposedOptions.ProcessFile,
Arguments = arguments,
Logger = Logger,
CancellationToken = cancellationToken,
WorkingDirectory = proposedOptions.WorkingDirectory
});

// Handle unplanned exit
process.UnplannedExit += (sender, args) =>
Expand Down

0 comments on commit 9533ab6

Please # to comment.