lib/habitica_cli/commands/shared.rb in habitica_cli-0.0.1 vs lib/habitica_cli/commands/shared.rb in habitica_cli-0.1.0

- old
+ new

@@ -24,10 +24,11 @@ env.cache.store_tasks( select_attributes(filter_tasks(env, tasks, type)) ) end - def self.display(env, raw_tasks, type) + def self.display(env, body, type) + raw_tasks = body['data'] tasks = cache_tasks(env, raw_tasks, type) puts type.capitalize unless type.nil? tasks.each do |item| output = type.nil? ? "(#{item['type']}) " : '' output += "[#{item['cid']}] #{item['text']}"