Module: Kiba::Extend::Command::Reg

Defined in:
lib/kiba/extend/command/reg.rb,
lib/kiba/extend/command/reg/list.rb

Defined Under Namespace

Modules: List

Class Method Summary collapse

Class Method Details

.listObject



9
10
11
# File 'lib/kiba/extend/command/reg.rb', line 9

def list
  puts Kiba::Extend::Registry::RegistryList.new
end

.tagsObject



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/kiba/extend/command/reg.rb', line 13

def tags
  Kiba::Extend.registry
    ._container
    .values
    .map { |entry| entry.item.tags }
    .compact
    .reject(&:empty?)
    .flatten
    .uniq
    .sort
end

.validateObject



25
26
27
# File 'lib/kiba/extend/command/reg.rb', line 25

def validate
  Kiba::Extend::Registry::RegistryValidator.new.report
end