Skip to content
Snippets Groups Projects
Commit e7c05f55 authored by Max Howell's avatar Max Howell
Browse files

String.f convenience function for brew irb

eg. "ack".f
parent 20fdc5cd
No related branches found
No related tags found
No related merge requests found
require 'formula'
require 'keg'
require 'irb'
class String
def f
Formula.factory(self)
end
end
module Homebrew extend self
def irb
if ARGV.include? "--help"
puts "Formula.factory('ace').installed?"
puts "ack.f # => instance of the Ack formula"
else
ohai "Interactive Homebrew Shell"
puts "Example commands available with: brew irb --help"
require 'formula'
require 'keg'
require 'irb'
IRB.start
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment