Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbirmiwal committed Aug 30, 2023
1 parent 5492e34 commit 5814af5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/main/kotlin/com/bazel_diff/bazel/BazelQueryService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class BazelQueryService(
outputFile.deleteOnExit()

queryFile.writeText(query)
logger.i { "Executing Query: $query" }

val cmd: MutableList<String> = ArrayList<String>().apply {
add(bazelPath.toString())
Expand Down Expand Up @@ -128,9 +127,11 @@ class BazelQueryService(
add(queryFile.toString())
}

val command = *cmd.toTypedArray()
logger.i { "Executing Query: $query, Command: $command"}
val result = runBlocking {
process(
*cmd.toTypedArray(),
command,
stdout = Redirect.ToFile(outputFile),
workingDirectory = workingDirectory.toFile(),
stderr = Redirect.PRINT,
Expand Down

0 comments on commit 5814af5

Please sign in to comment.