Class: Arethusa::CLI::Subcommand

Inherits:
Thor
  • Object
show all
Defined in:
lib/arethusa/cli/subcommand.rb

Direct Known Subclasses

Generator, Transformer

Class Method Summary collapse

Class Method Details

.as_subcommand(subcommand) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/arethusa/cli/subcommand.rb', line 3

def self.as_subcommand(subcommand)
  namespace(subcommand)

  def self.banner(command, namespace = nil, subcommand = false)
    "#{basename} #{@namespace} #{command.usage}"
  end
end


6
7
8
# File 'lib/arethusa/cli/subcommand.rb', line 6

def self.banner(command, namespace = nil, subcommand = false)
  "#{basename} #{@namespace} #{command.usage}"
end