mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Find the UI path one earlier.
This commit is contained in:
parent
d38c8b0ff0
commit
0d0c6c186d
@ -87,7 +87,7 @@ guard let aSource = try arguments[1].map(Source.init) else { throw "need source
|
||||
guard let bSource = try arguments[2].map(Source.init) else { throw "need source B" }
|
||||
let temporary = try NSFileManager.defaultManager().URLForDirectory(.ItemReplacementDirectory, inDomain: .UserDomainMask, appropriateForURL: NSURL(fileURLWithPath: Process.arguments[0]).URLByDeletingLastPathComponent!, create: true)
|
||||
let jsonURL = temporary.URLByAppendingPathComponent("diff.json")
|
||||
guard let uiPath = arguments[4] else { throw "need ui path" }
|
||||
guard let uiPath = arguments[3] else { throw "need ui path" }
|
||||
guard aSource.type == bSource.type else { throw "can’t compare files of different types" }
|
||||
guard let parser = Source.languagesByType[aSource.type].map(termWithInput) else { throw "don’t know how to parse files of type \(aSource.type)" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user