Class: Duple::CLI::Root

Inherits:
Thor
  • Object
show all
Includes:
Helpers
Defined in:
lib/duple/cli/root.rb

Overview

Configures the high-level structure of the CLI sub-commands.

Class Method Summary collapse

Methods included from Helpers

included

Class Method Details

.register(klass, task_name, description) ⇒ Object

HACK Override register to handle class_options for groups properly.



21
22
23
24
# File 'lib/duple/cli/root.rb', line 21

def self.register(klass, task_name, description)
  super(klass, task_name, task_name, description)
  tasks[task_name].options = klass.class_options
end