module Bullit
Constants
- VERSION
Public Instance Methods
execute()
click to toggle source
# File lib/bullit.rb, line 16 def execute Bullit::File.generate_today_file(loud?) end
show_tasks()
click to toggle source
# File lib/bullit.rb, line 56 def show_tasks if tasks = Bullit::File.today_tasks tasks = tasks.each_with_index.map{ |t,i| [i,t[:text], t[:complete] == true ? ' ✅' : ' ❌']} puts TTY::Table.new(['#', 'Task', ''], tasks).render(:unicode) elsif tasks == {} puts "There's no tasks for today" end end