module StandupMD::Cli::Helpers
Module responsible for reading and writing standup files.
Public Instance Methods
print(entry)
click to toggle source
Print an entry to the command line.
@param [StandupMD::Entry] entry
@return [nil]
# File lib/standup_md/cli/helpers.rb, line 14 def print(entry) if entry.nil? puts "No record found for #{config.cli.date}" return end puts header(entry) config.file.sub_header_order.each do |header_type| tasks = entry.public_send(header_type) next if !tasks || tasks.empty? puts sub_header(header_type) tasks.each { |task| puts config.file.bullet_character + ' ' + task } end puts end