Sha256: c37382c1bc500d3fb52c97cf2aac6caf454845d5679dfa891eed810c8d906135

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

module Lederhosen
  class CLI

    desc 'make_udb', 'format database for usearch'

    method_option :input,  :type => :string, :required => true
    method_option :output, :type => :string, :required => true

    def make_udb
      input       = options[:input]
      output      = options[:output]
      word_length = options[:word_length]
      db_step     = options[:db_step]

      ohai "making udb w/ #{input}, saving as #{output}."

      cmd = ['usearch',
             "-makeudb_usearch #{input}",
             "-output #{output}",
            ]

      cmd = cmd.join(' ')

      run cmd
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lederhosen-3.2.1 lib/lederhosen/tasks/make_udb.rb
lederhosen-3.2.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-3.1.0 lib/lederhosen/tasks/make_udb.rb