# File lib/bee_console.rb, line 291
      def format_task(task)
        if task.kind_of?(String)
          source = task
        elsif task.kind_of?(Hash)
          if task.key?('rb')
            source = "rb: #{task['rb']}"
          else
            source = YAML::dump(task)
            source = source.sub(/---/, '')
          end
        end
        formatted = '- ' + source.strip.gsub(/\n/, "\n. ")
        styled = style(formatted,
                       @style[:task_style], 
                       @style[:task_foreground],
                       @style[:task_background])
        return styled
      end