mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Use pry in rake console task
pry is a *much* better REPL than irb, with much nicer formatting and debugging tools to boot!
This commit is contained in:
@@ -3,6 +3,8 @@ require 'rake/testtask'
|
||||
require 'rspec/core/rake_task'
|
||||
require 'rubocop/rake_task'
|
||||
|
||||
$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
|
||||
|
||||
Coveralls::RakeTask.new
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
@@ -21,6 +23,12 @@ end
|
||||
task :test => [:minitest, :spec, 'coveralls:push']
|
||||
task :default => [:test, :rubocop]
|
||||
|
||||
desc 'Open a REPL for debugging and experimentation'
|
||||
task :console do
|
||||
sh 'irb -Ilib -rvendor/homebrew-fork/global -rhbc'
|
||||
require 'pry'
|
||||
require 'pry-byebug'
|
||||
require 'vendor/homebrew-fork/global'
|
||||
require 'hbc'
|
||||
ARGV.clear
|
||||
Hbc.pry
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user