class RBS::CLI

def run_paths(args, options)

def run_paths(args, options)
  OptionParser.new do |opts|
    opts.banner = <<EOU
e: rbs paths
 paths to directories where the RBS files are loaded from.
ples:
rbs paths
rbs -r set paths
  end.parse!(args)
  loader = options.loader()
  kind_of = -> (path) {
    # @type var path: Pathname
    case
    when path.file?
      "file"
    when path.directory?
      "dir"
    when !path.exist?
      "absent"
    else
      "unknown"
    end
  }
  loader.each_dir do |source, dir|
    case source
    when :core
      stdout.puts "#{dir} (#{kind_of[dir]}, core)"
    when Pathname
      stdout.puts "#{dir} (#{kind_of[dir]})"
    when EnvironmentLoader::Library
      stdout.puts "#{dir} (#{kind_of[dir]}, library, name=#{source.name})"
    end
  end
end