lib/rbs2ts/cli.rb in rbs2ts-1.0.0.pre.alpha.2 vs lib/rbs2ts/cli.rb in rbs2ts-1.0.0.pre.alpha.3

- old
+ new

@@ -1,17 +1,19 @@ require "thor" require "rbs2ts/converter" - + module Rbs2ts class Cli < Thor desc "convert rbs to ts", "convert rbs to ts" def convert(path) + ::RBS.logger_level = :error + loader = ::RBS::EnvironmentLoader.new(core_root: nil) loader.add(path: Pathname(path)) env = ::RBS::Environment.from_loader(loader).resolve_type_names - Converter::Declarations::Declarations.new(env.declarations).to_ts + puts Converter::Declarations::Declarations.new(env.declarations).to_ts end end end