brew/Library/Homebrew/cask/cmd/abstract_internal_command.rb

20 lines
354 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: true
# frozen_string_literal: true
2018-09-06 08:29:14 +02:00
module Cask
2018-09-04 08:45:48 +01:00
class Cmd
2020-08-19 10:34:07 +02:00
# Abstract superclass for all internal `brew cask` commands.
#
# @api private
2017-05-20 19:08:03 +02:00
class AbstractInternalCommand < AbstractCommand
2016-09-24 13:52:43 +02:00
def self.command_name
super.sub(/^internal_/i, "_")
2016-09-24 13:52:43 +02:00
end
2016-08-18 22:11:42 +03:00
2020-04-07 08:32:30 +02:00
def self.visible?
2016-09-24 13:52:43 +02:00
false
end
end
2016-08-18 22:11:42 +03:00
end
end