Class: Icarus::Mod::CLI::List

Inherits:
SubcommandBase show all
Defined in:
lib/icarus/mod/cli/list.rb

Overview

Sync CLI command definitions

Instance Method Summary collapse

Methods inherited from SubcommandBase

banner, subcommand_prefix

Methods inherited from Base

exit_on_failure?

Instance Method Details

#modinfoObject



12
13
14
15
16
# File 'lib/icarus/mod/cli/list.rb', line 12

def modinfo
  modinfo_array = Firestore.new.send(:modinfo)
  puts modinfo_array
  puts "Total: #{modinfo_array.count}" if verbose > 1
end

#modsObject



35
36
37
# File 'lib/icarus/mod/cli/list.rb', line 35

def mods
  list_for_type(:mods)
end

#reposObject



26
27
28
29
30
# File 'lib/icarus/mod/cli/list.rb', line 26

def repos
  repos = Firestore.new.send(:repositories)
  puts repos
  puts "Total: #{repos.count}" if verbose > 1
end

#toolinfoObject



19
20
21
22
23
# File 'lib/icarus/mod/cli/list.rb', line 19

def toolinfo
  toolinfo_array = Firestore.new.send(:toolinfo)
  puts toolinfo_array
  puts "Total: #{toolinfo_array.count}" if verbose > 1
end

#toolsObject



42
43
44
# File 'lib/icarus/mod/cli/list.rb', line 42

def tools
  list_for_type(:tools)
end