class Gzr::Commands::SubCommandBase

Public Class Methods

banner(command, namespace = nil, subcommand = false) click to toggle source

Workaround so that help displays the right name base on this link github.com/erikhuda/thor/issues/261#issuecomment-69327685

subcommand_prefix() click to toggle source
# File lib/gzr/commands/subcommandbase.rb, line 36
def self.subcommand_prefix
  self.name.gsub(%r{.*::}, '').gsub(%r{^[A-Z]}) { |match| match[0].downcase }.gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" }
end