Method: Jets::Commands::Base.banner

Defined in:
lib/jets/commands/base.rb

Use Jets banner instead of Thor to account for namespaces in commands.



92
93
94
95
96
97
98
# File 'lib/jets/commands/base.rb', line 92

def banner(command, namespace = nil, subcommand = false)
  namespace = namespace_from_class(self)
  command_name = command.usage # set with desc when defining tht Thor class
  namespaced_command = [namespace, command_name].compact.join(':')

  "jets #{namespaced_command}"
end