Command diff now properly supports recursive diff

This commit is contained in:
Harshavardhana
2015-05-26 19:21:58 -07:00
parent a65f431004
commit 0674ce8085
3 changed files with 31 additions and 3 deletions
+6 -1
View File
@@ -94,7 +94,12 @@ func runDiffCmd(ctx *cli.Context) {
})
}
}
// TODO recursive is not working yet
if isURLRecursive(secondURL) {
console.Fatals(ErrorMessage{
Message: "Second URL cannot be recursive, diff command is unidirectional",
Error: errInvalidArgument{},
})
}
newFirstURL := stripRecursiveURL(firstURL)
for diff := range doDiffCmd(newFirstURL, secondURL, isURLRecursive(firstURL)) {
if diff.err != nil {