thor_tasks 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -3
- data/lib/tasks/apt.thor +2 -2
- data/lib/thor_tasks/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -83,13 +83,14 @@ These tasks are helpers for apt-cache in Linux.
|
|
83
83
|
|
84
84
|
=== apt:search
|
85
85
|
|
86
|
-
|
86
|
+
Pretty-prints the output from apt-cache search.
|
87
87
|
|
88
|
-
|
88
|
+
thor apt:search "terms" # or thor apt:s
|
89
89
|
|
90
90
|
=== apt:show
|
91
91
|
|
92
|
+
Cleans up the output from apt-cache show.
|
93
|
+
|
92
94
|
thor apt:show "package" # or thor apt:w
|
93
95
|
thor apt:show "package --desc # to only show the description
|
94
96
|
|
95
|
-
Cleans up the output from apt-cache show.
|
data/lib/tasks/apt.thor
CHANGED
@@ -71,9 +71,9 @@ class Apt < Thor
|
|
71
71
|
print params["Description"].foreground(:green).bright.underline + "\n\n"
|
72
72
|
|
73
73
|
# print the long description
|
74
|
-
print desc.foreground(:white).bright + "\n\n"
|
74
|
+
print desc.foreground(:white).bright + "\n\n" unless desc.nil?
|
75
75
|
# print the footnote
|
76
|
-
print ftn.foreground(:blue) + "\n\n"
|
76
|
+
print ftn.foreground(:blue) + "\n\n" unless ftn.nil?
|
77
77
|
|
78
78
|
# ommit the details if we only want the description
|
79
79
|
unless options[:desc]
|
data/lib/thor_tasks/version.rb
CHANGED