Class: Arethusa::CLI::Subcommand
- Inherits:
-
Thor
- Object
- Thor
- Arethusa::CLI::Subcommand
- Defined in:
- lib/arethusa/cli/subcommand.rb
Direct Known Subclasses
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.(command, namespace = nil, subcommand = false) "#{basename} #{@namespace} #{command.usage}" end end |
.banner(command, namespace = nil, subcommand = false) ⇒ Object
6 7 8 |
# File 'lib/arethusa/cli/subcommand.rb', line 6 def self.(command, namespace = nil, subcommand = false) "#{basename} #{@namespace} #{command.usage}" end |