Swift API to launch JuxtaCode's diff tool and merge tool UIs.
let repo = URL(filePath: "/path/to/repository")
try await DiffTool.compare("main", and: "feature", in: repo)
let conflictedFile = URL(filePath: "/path/to/conflicted/file.txt")
let repo = URL(filePath: "/path/to/repository")
let result = try await MergeTool.open(conflictedFile, in: repo)
This package does not make use of JuxtaCode's command line tool and doesn't require the user to have it installed.
The SampleClient project demonstrates how the API can be used.