mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
19 lines
544 B
Ruby
19 lines
544 B
Ruby
class Cask::CLI::InternalHelp < Cask::CLI::InternalUseBase
|
|
def self.run(*_ignored)
|
|
max_command_len = Cask::CLI.commands.map(&:length).max
|
|
puts "Unstable Internal-use Commands:\n\n"
|
|
Cask::CLI.command_classes.each do |klass|
|
|
next if klass.visible
|
|
puts " #{klass.command_name.ljust(max_command_len)} #{help_for(klass)}"
|
|
end
|
|
puts "\n"
|
|
end
|
|
|
|
def self.help_for(klass)
|
|
klass.respond_to?(:help) ? klass.help : nil
|
|
end
|
|
|
|
def self.help
|
|
"Print help strings for unstable internal-use commands"
|
|
end
|
|
end
|