twdo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -6
- data/VERSION +1 -1
- data/bin/twdo +6 -4
- data/lib/twdo.rb +3 -0
- data/lib/twdo/api.rb +1 -1
- data/twdo.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -68,12 +68,13 @@ Twitter のプロフィールでタスク管理する TwDo コマンド
|
|
68
68
|
Usage:
|
69
69
|
twdo command [task1, task2 ...]
|
70
70
|
Commands:
|
71
|
-
twdo init task1 task2 ...
|
72
|
-
twdo list
|
73
|
-
twdo add
|
74
|
-
twdo del
|
75
|
-
twdo done task1 task2 ...
|
76
|
-
twdo undo task1 task2 ...
|
71
|
+
twdo init task1 task2 ... init with tasks.
|
72
|
+
twdo list list tasks.
|
73
|
+
twdo add task1 task2 ... add tasks.
|
74
|
+
twdo del task1 task2 ... del tasks.
|
75
|
+
twdo done task1 task2 ... mark task as done.
|
76
|
+
twdo undo task1 task2 ... mark task as not done.
|
77
|
+
twdo help show this help.
|
77
78
|
|
78
79
|
インストール
|
79
80
|
-------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/bin/twdo
CHANGED
@@ -29,9 +29,11 @@ end
|
|
29
29
|
|
30
30
|
[:del, :done, :undo].each do |c|
|
31
31
|
cmd c do |args|
|
32
|
-
args.
|
33
|
-
arg
|
34
|
-
|
32
|
+
names = args.map do |arg|
|
33
|
+
arg =~ /^\d+$/ ? @twd.list[arg.to_i][0] : arg
|
34
|
+
end
|
35
|
+
names.each do |name|
|
36
|
+
@twd.send(c, name)
|
35
37
|
end
|
36
38
|
@twd.update!
|
37
39
|
puts 'done.'
|
@@ -44,7 +46,7 @@ Usage:
|
|
44
46
|
twdo command [task1, task2 ...]
|
45
47
|
Commands:
|
46
48
|
twdo init task1 task2 ... init with tasks.
|
47
|
-
twdo list
|
49
|
+
twdo list list tasks.
|
48
50
|
twdo add task1 task2 ... add tasks.
|
49
51
|
twdo del task1 task2 ... del tasks.
|
50
52
|
twdo done task1 task2 ... mark task as done.
|
data/lib/twdo.rb
CHANGED
data/lib/twdo/api.rb
CHANGED
data/twdo.gemspec
CHANGED
metadata
CHANGED