lib/icarus/mod/cli/list.rb in Icarus-Mod-Tools-1.7.1 vs lib/icarus/mod/cli/list.rb in Icarus-Mod-Tools-1.8.0

- old
+ new

@@ -8,12 +8,19 @@ module CLI # Sync CLI command definitions class List < SubcommandBase desc "modinfo", "Displays data from 'meta/modinfo/list'" def modinfo - modinfos = Firestore.new.list(:modinfo) - puts modinfos - puts "Total: #{modinfos.count}" if verbose > 1 + modinfo_array = Firestore.new.list(:modinfo) + puts modinfo_array + puts "Total: #{modinfo_array.count}" if verbose > 1 + end + + desc "proginfo", "Displays data from 'meta/proginfo/list'" + def proginfo + proginfo_array = Firestore.new.list(:proginfo) + puts proginfo_array + puts "Total: #{proginfo_array.count}" if verbose > 1 end desc "repos", "Displays data from 'meta/repos/list'" def repos repos = Firestore.new.list(:repositories)