homebrew-cask-versions/lib/cask/cli/internal_use_base.rb
Roland Walker 8163745d4a create "internal use" command verbs
- 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
2014-06-21 09:37:39 -04:00

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