mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
- based on abstract class `Cask::CLI::InternalUseBase` - interal-use class file names follow `internal_<verb>.rb`, but the "internal" is dropped for the CLI - internal-use verbs start with underscore at CLI - internal-use verbs are invisible in the usage document
9 lines
157 B
Ruby
9 lines
157 B
Ruby
class Cask::CLI::InternalUseBase < Cask::CLI::Base
|
|
def self.command_name
|
|
super.sub(%r{^internal_}i, '_')
|
|
end
|
|
|
|
def self.visible
|
|
false
|
|
end
|
|
end
|