Skip to content

Commit

Permalink
fix: Fix argument order with --topleft (DEV-4481) (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
siers authored Jan 17, 2025
1 parent 83185e9 commit d9a74a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/swiss/dasch/domain/SipiClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object SipiCommand {
(for {
abs1 <- fileIn.toAbsolutePath
abs2 <- fileOut.toAbsolutePath
} yield List(flag(), "--topleft", outputFormat.toCliString, abs1.toString, abs2.toString)).orDie
} yield List(flag(), outputFormat.toCliString, "--topleft", abs1.toString, abs2.toString)).orDie
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object SipiCommandSpec extends ZIOSpecDefault {
check(Gen.fromIterable(SipiImageFormat.all)) { format =>
for {
cmd <- FormatArgument(format, Path("/tmp/example"), Path("/tmp/example2")).render()
} yield assertTrue(cmd == List("--format", "--topleft", format.toCliString, "/tmp/example", "/tmp/example2"))
} yield assertTrue(cmd == List("--format", format.toCliString, "--topleft", "/tmp/example", "/tmp/example2"))
}
},
test("should assemble query command") {
Expand Down

0 comments on commit d9a74a1

Please sign in to comment.