rudo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dun +15 -0
- data/bin/rad +21 -0
- data/bin/walk +21 -0
- metadata +9 -3
data/bin/dun
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rudo'
|
3
|
+
require 'trollop'
|
4
|
+
|
5
|
+
init_options = Trollop::options do
|
6
|
+
opt :file_path, "Alternate path to list, default ~/rudo.yml", :default => '~/rudo.yml'
|
7
|
+
end
|
8
|
+
|
9
|
+
print_options = Trollop::options do
|
10
|
+
opt :color, "Print with colors", :default => true
|
11
|
+
end
|
12
|
+
|
13
|
+
r = Rudo.new(init_options)
|
14
|
+
r.remove(ARGV[0])
|
15
|
+
r.print(print_options)
|
data/bin/rad
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rudo'
|
3
|
+
require 'trollop'
|
4
|
+
|
5
|
+
init_options = Trollop::options do
|
6
|
+
opt :file_path, "Alternate path to list, default ~/rudo.yml", :default => '~/rudo.yml'
|
7
|
+
end
|
8
|
+
|
9
|
+
print_options = Trollop::options do
|
10
|
+
opt :color, "Print with colors", :default => true
|
11
|
+
end
|
12
|
+
|
13
|
+
begin
|
14
|
+
position = Integer(ARGV[1]) - 1
|
15
|
+
rescue
|
16
|
+
position = 0
|
17
|
+
end
|
18
|
+
|
19
|
+
r = Rudo.new(init_options)
|
20
|
+
r.add(ARGV[0], position)
|
21
|
+
r.print(print_options)
|
data/bin/walk
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rudo'
|
3
|
+
require 'trollop'
|
4
|
+
|
5
|
+
init_options = Trollop::options do
|
6
|
+
opt :file_path, "Alternate path to list, default ~/rudo.yml", :default => '~/rudo.yml'
|
7
|
+
end
|
8
|
+
|
9
|
+
print_options = Trollop::options do
|
10
|
+
opt :color, "Print with colors", :default => true
|
11
|
+
end
|
12
|
+
|
13
|
+
begin
|
14
|
+
steps = Integer(ARGV[1])
|
15
|
+
rescue
|
16
|
+
steps = 1
|
17
|
+
end
|
18
|
+
|
19
|
+
r = Rudo.new(init_options)
|
20
|
+
r.walk(steps)
|
21
|
+
r.print(print_options)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rudo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Robert Fletcher
|
@@ -23,6 +23,9 @@ description: Tasks are saved in ~/rudo.yml
|
|
23
23
|
email: lobatifricha@gmail.com
|
24
24
|
executables:
|
25
25
|
- rudo
|
26
|
+
- rad
|
27
|
+
- dun
|
28
|
+
- walk
|
26
29
|
extensions: []
|
27
30
|
|
28
31
|
extra_rdoc_files: []
|
@@ -30,6 +33,9 @@ extra_rdoc_files: []
|
|
30
33
|
files:
|
31
34
|
- lib/rudo.rb
|
32
35
|
- bin/rudo
|
36
|
+
- bin/rad
|
37
|
+
- bin/dun
|
38
|
+
- bin/walk
|
33
39
|
has_rdoc: true
|
34
40
|
homepage: https://github.com/mockdeep/rudo
|
35
41
|
licenses: []
|