Move cask to cmd/.

This commit is contained in:
Markus Reiter 2017-03-06 11:39:07 +01:00
parent 29f431e85e
commit 3e7f94d5b5
3 changed files with 10 additions and 15 deletions

View File

@ -53,9 +53,6 @@ begin
ENV["PATH"] += "#{File::PATH_SEPARATOR}#{tap_cmd_dir}"
end
# Add cask commands to PATH.
ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_LIBRARY}/Homebrew/cask/cmd"
# Add SCM wrappers.
ENV["PATH"] += "#{File::PATH_SEPARATOR}#{HOMEBREW_SHIMS_PATH}/scm"

View File

@ -1,12 +0,0 @@
require "pathname"
$LOAD_PATH.unshift(File.expand_path("../../lib", Pathname.new(__FILE__).realpath))
require "hbc"
begin
Hbc::CLI.process(ARGV)
rescue Interrupt
puts
exit 130
end

View File

@ -0,0 +1,10 @@
$LOAD_PATH.unshift("#{HOMEBREW_LIBRARY_PATH}/cask/lib")
require "hbc"
module Homebrew
module_function
def cask
Hbc::CLI.process(ARGV)
end
end