Do not require compat/hbc/cli/update
when —no-compat
is specified.
This commit is contained in:
parent
ddaf17396e
commit
cea1d18f45
@ -19,7 +19,6 @@ require "hbc/cli/reinstall"
|
|||||||
require "hbc/cli/search"
|
require "hbc/cli/search"
|
||||||
require "hbc/cli/style"
|
require "hbc/cli/style"
|
||||||
require "hbc/cli/uninstall"
|
require "hbc/cli/uninstall"
|
||||||
require "compat/hbc/cli/update"
|
|
||||||
require "hbc/cli/zap"
|
require "hbc/cli/zap"
|
||||||
|
|
||||||
require "hbc/cli/internal_use_base"
|
require "hbc/cli/internal_use_base"
|
||||||
@ -77,6 +76,7 @@ module Hbc
|
|||||||
def self.command_classes
|
def self.command_classes
|
||||||
@command_classes ||= constants.map(&method(:const_get))
|
@command_classes ||= constants.map(&method(:const_get))
|
||||||
.select { |sym| sym.respond_to?(:run) }
|
.select { |sym| sym.respond_to?(:run) }
|
||||||
|
.sort_by(&:command_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.commands
|
def self.commands
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
require "tap"
|
||||||
|
|
||||||
module Hbc
|
module Hbc
|
||||||
module Locations
|
module Locations
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
|
@ -1 +1,2 @@
|
|||||||
require "compat/hbc/cask_loader"
|
require "compat/hbc/cask_loader"
|
||||||
|
require "compat/hbc/cli/update"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
require "cask/lib/hbc/cli/base"
|
||||||
|
|
||||||
module Hbc
|
module Hbc
|
||||||
class CLI
|
class CLI
|
||||||
class Update < Base
|
class Update < Base
|
||||||
|
Loading…
x
Reference in New Issue
Block a user