Sha256: d4259ebd46b6089c40bbe68fa450ebdd0613929d08dd44395680a62f0ea3cbe2

Contents?: true

Size: 562 Bytes

Versions: 9

Compression:

Stored size: 562 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]

      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

9 entries across 9 versions & 1 rubygems

Version Path
lederhosen-2.0.8 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.7 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.6 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.5 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.4 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.3 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.2 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.1 lib/lederhosen/tasks/make_udb.rb
lederhosen-2.0.0 lib/lederhosen/tasks/make_udb.rb