in multiversion/src/main/scala/multiversion/commands/PantsExportCommand.scala [34:56]
def workingDirectory: Path = cwd.getOrElse(app.env.workingDirectory)
def outputPath: Path =
workingDirectory.resolve(".pants.d").resolve("pants-export.json")
def inputPath: Path =
workingDirectory.resolve("3rdparty.yaml")
def run(): Int = app.complete(runResult())
def runResult(): Result[Unit] = {
for {
_ <- runPantsExport()
thirdparty <- runPantsImport()
save <-
save
.copy(
lintCommand = save.lintCommand.copy(
app = app
.withEnv(app.env.withWorkingDirectory(workingDirectory))
)
)
.runResult(thirdparty)
} yield save
}