Write generated file to current working directory #1

Merged
Sven merged 7 commits from workdir into main 2020-12-30 13:56:39 +00:00
Showing only changes of commit d3a1cf54e2 - Show all commits

View file

@ -76,7 +76,8 @@ public final class MakeColors: ParsableCommand, Context {
if let output = output {
return URL(fileURLWithPath: output)
} else {
return URL(fileURLWithPath: input).deletingPathExtension().appendingPathExtension(`extension`)
let basename = URL(fileURLWithPath: input).deletingPathExtension().lastPathComponent
return URL(fileURLWithPath: basename).appendingPathExtension(`extension`)
}
}
}