lib/troo/cli/main_cli.rb in troo-0.0.6 vs lib/troo/cli/main_cli.rb in troo-0.0.7

- old
+ new

@@ -90,12 +90,12 @@ private attr_reader :id, :type def get_status(type) @id, @type = nil, type - return show if resource_found && resource - return no_default_found if resource_count > 0 + return show_resource_title if resource_found && resource + return no_default_found if resource_count > 0 end def resource_found label = " #{type.to_s.capitalize}s:".ljust(10) say label + plural(resource_count, type.to_s) + " found." @@ -107,10 +107,10 @@ when :list then Troo::List.count when :card then Troo::Card.count end end - def show + def show_resource_title say " #{resource.decorator.title}" end def no_default_found say " " + Esc.red + "No default #{type} set." + Esc.reset