class SubCommandBase

Thor with subcommands that work correctly with help

Public Class Methods

banner(command, _namespace = nil, _subcommand = false) click to toggle source

Set the subcommand banner. rubocop:disable Style/OptionalBooleanParameter

subcommand_prefix() click to toggle source

Set the subcommand prefix.

# File lib/takeltau/lib/subcmd.rb, line 13
def self.subcommand_prefix
  name.gsub(/.*::/, '')
      .gsub(/^[A-Z]/) { |match| match[0].downcase }
      .gsub(/[A-Z]/) { |match| " #{match[0].downcase}" }
end