dir-diff icon indicating copy to clipboard operation
dir-diff copied to clipboard

More detailed error reporting

Open epage opened this issue 8 years ago • 6 comments

I've got my own home grown tool for diffing directories but I'd much have a reusable crate.

API Ideas:

  • Enum of LeftExists, RightExists, BothExist(Option<Difference>)
  • diff_dir_list(path, path) provides an iterator of (path, enum(None))
    • doesn't do content diffing allowing people to do custom solutions for #6
  • diff_dir(path, path) provides an iterator of (path, enum)
    • Take advantage of difference like [assert_cli](
  • assert_dir_eq!
    • provides a default policy for failing (whether it be panic on first failure or summarize the all differences)

epage avatar Oct 27 '17 12:10 epage

Hey @epage ! I'm not really working on dir-diff these days, but if you want to hack on it, I'd be happy to give you commit rights, etc 👍

steveklabnik avatar Oct 27 '17 16:10 steveklabnik

That works.

Any vision or implementation goals you had that you'd like me to maintain with my changes?

epage avatar Oct 27 '17 16:10 epage

Not specifically; I had originally created this library as a way of doing testing; you could have a fixture with the directories you planned on creating, run the tests, and diff them. I'm open to whatever though. Adding you as a collaborator right now!

steveklabnik avatar Oct 30 '17 15:10 steveklabnik