Module: PagerJudy::CLI::ItemBehaviour

Defined in:
lib/pager_judy/cli/item_behaviour.rb

Overview

Common behaviour for sub-commands that operate on collection members.

Defined Under Namespace

Modules: DataSubcommand

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/pager_judy/cli/item_behaviour.rb', line 10

def self.included(target)
  target.default_subcommand = "data"

  target.subcommand ["data", "d"], "Full details" do
    include DataSubcommand
  end
end