@@ -66,7 +66,8 @@ public async Task<CommandResult> ExecuteCommandLineTool(CommandLineToolOptions o
6666 exitCode : 0 ,
6767 runTime : TimeSpan . Zero ,
6868 standardOutput : "Dummy Output Response" ,
69- standardError : "Dummy Error Response"
69+ standardError : "Dummy Error Response" ,
70+ command . WorkingDirPath
7071 ) ;
7172
7273 return new CommandResult ( command ) ;
@@ -116,10 +117,11 @@ private async Task<CommandResult> Of(CliWrap.Command command,
116117
117118 _commandLogger . Log ( options : options ,
118119 inputToLog : inputToLog ,
119- result . ExitCode ,
120- result . RunTime ,
121- standardOutput ,
122- standardError
120+ exitCode : result . ExitCode ,
121+ runTime : result . RunTime ,
122+ standardOutput : standardOutput ,
123+ standardError : standardError ,
124+ commandWorkingDirPath : command . WorkingDirPath
123125 ) ;
124126
125127 if ( result . ExitCode != 0 && options . ThrowOnNonZeroExitCode )
@@ -134,21 +136,23 @@ private async Task<CommandResult> Of(CliWrap.Command command,
134136 {
135137 _commandLogger . Log ( options : options ,
136138 inputToLog : inputToLog ,
137- e . ExitCode ,
138- stopwatch . Elapsed ,
139- standardOutput ,
140- standardError
139+ exitCode : e . ExitCode ,
140+ runTime : stopwatch . Elapsed ,
141+ standardOutput : standardOutput ,
142+ standardError : standardError ,
143+ commandWorkingDirPath : command . WorkingDirPath
141144 ) ;
142145 throw ;
143146 }
144147 catch ( Exception e ) when ( e is not CommandExecutionException )
145148 {
146149 _commandLogger . Log ( options : options ,
147150 inputToLog : inputToLog ,
148- - 1 ,
149- stopwatch . Elapsed ,
150- standardOutput ,
151- standardError
151+ exitCode : - 1 ,
152+ runTime : stopwatch . Elapsed ,
153+ standardOutput : standardOutput ,
154+ standardError : standardError ,
155+ commandWorkingDirPath : command . WorkingDirPath
152156 ) ;
153157
154158 throw ;
0 commit comments