Class: Rubyists::Opr::Commands::List

Inherits:
Thor
  • Object
show all
Defined in:
lib/rubyists::opr/commands/list.rb,
lib/rubyists::opr/commands/list/items.rb,
lib/rubyists::opr/commands/list/vaults.rb

Overview

List commands

Defined Under Namespace

Classes: Items, Vaults

Instance Method Summary collapse

Instance Method Details

#items(vault = nil) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/rubyists::opr/commands/list.rb', line 18

def items(vault = nil)
  if options[:help]
    invoke :help, ['items']
  else
    require_relative 'list/items'
    Rubyists::Opr::Commands::List::Items.new(vault, options).execute
  end
end

#vaultsObject



30
31
32
33
34
35
36
37
# File 'lib/rubyists::opr/commands/list.rb', line 30

def vaults(*)
  if options[:help]
    invoke :help, ['vaults']
  else
    require_relative 'list/vaults'
    Rubyists::Opr::Commands::List::Vaults.new(options).execute
  end
end