pomo 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/pomo +7 -1
- data/lib/pomo/version.rb +1 -1
- data/pomo.gemspec +1 -1
- metadata +1 -1
data/bin/pomo
CHANGED
@@ -7,7 +7,9 @@ require 'pomo'
|
|
7
7
|
|
8
8
|
program :version, Pomo::VERSION
|
9
9
|
program :description, 'Pomodoro time management'
|
10
|
-
program :int_message, "\nTerminated
|
10
|
+
program :int_message, "\nTerminated pomo" \
|
11
|
+
"\n * previously running tasks not marked as complete" \
|
12
|
+
"\n * manually complete a task with `$ pomo complete <task>`"
|
11
13
|
|
12
14
|
list = Pomo::List.new '~/.pomo'
|
13
15
|
|
@@ -121,8 +123,12 @@ command :list do |c|
|
|
121
123
|
c.syntax = 'pomo list [options]'
|
122
124
|
c.description = 'List all tasks'
|
123
125
|
c.example 'List all tasks', 'pomo list'
|
126
|
+
c.option '-c', '--complete', 'List only completed tasks'
|
127
|
+
c.option '-i', '--incomplete', 'List only incompleted tasks'
|
124
128
|
c.action do |args, options|
|
125
129
|
list.tasks.each_with_index do |task, i|
|
130
|
+
next if options.complete && !task.complete?
|
131
|
+
next if options.incomplete && task.complete?
|
126
132
|
say ' %s %2d. %-35s : %d minutes' % [task.complete? ? '√' : ' ', i, task.to_s, task.length]
|
127
133
|
end
|
128
134
|
end
|
data/lib/pomo/version.rb
CHANGED
data/pomo.gemspec
CHANGED