Sha256: f39079d4f5c0a0665f22272bb78a0dfd68fe7b6ff9a5aedd45d770c96b6636a7

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

#! /usr/bin/env ruby

$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
require 'digimon_sleuth'

while (command = gets&.strip).downcase != "exit"
  begin
    command, args = command.split(' ', 2)
    args = args.downcase

    case command.downcase
    when "path"
      paths = DigimonSleuth.search_path(args)
      puts "Found #{paths.count} paths:"
      puts paths
    else
      puts "Unknown command '#{command}'"
    end
  rescue DigimonError => e
    puts e.message
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
digimon_sleuth-0.0.3 bin/digimon_sleuth
digimon_sleuth-0.0.2 bin/digimon_sleuth