Sha256: 6387b64cdc0aa7f8f3b3db6dfaf2477354cae22c1a609cc3e7609f90f815d345

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

require 'thor'
require_relative '../lib/compare'

# Command Line Program that  takes two directories and creates a MD5 hash for every file contained within.
# It then builds a result set that compares files with the same name and allows for them to be outputted
# as a csv string
module HashThatTree
  class CLI < Thor
  	option :recurse
  
    desc "compare FOLDER1 FOLDER2", "Create a hash of all files in the folders, compare them and output the results in CSV format"
    def compare(folder1, folder2)
      htt = CompareMD5.new(folder1, folder2)
      htt.compare
      htt.display_results       
    end
  end
  
  CLI.start(ARGV)
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hash-that-tree-0.0.7 bin/hashthattree
hash-that-tree-0.0.6 bin/hashthattree