Skip to content

Commit

Permalink
Merge pull request #7 from ruby/bin_console_type_competor
Browse files Browse the repository at this point in the history
Use ReplTypeCompletor itself for completion in bin/console
  • Loading branch information
tompng authored Dec 6, 2023
2 parents 6d0a9d1 + 8fb126a commit 93c0630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in repl_type_completor.gemspec
gemspec

gem 'irb', '>= 1.10.0'
gem 'rake', '~> 13.0'
gem 'test-unit'
gem 'test-unit-ruby-core'
Expand Down
14 changes: 4 additions & 10 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "repl_type_completor"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start
require 'bundler/setup'
require 'repl_type_completor'
require 'irb'

ENV['IRB_COMPLETOR'] = 'type'
ReplTypeCompletor.preload_rbs
require "irb"
IRB.start(__FILE__)

0 comments on commit 93c0630

Please sign in to comment.