rbbt-util 5.19.31 → 5.19.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/util/simpleopt/doc.rb +1 -1
- data/share/rbbt_commands/workflow/info +13 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b50fdcad01b0985afcfa246e404b061b78f3780
|
4
|
+
data.tar.gz: cf020e8c4f0769534aa863d6643190f45cc2f9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4814fa2681aec355019a329abe37fcb2d432f7a771b6634248cf1e364d67b574e1b33cc780cdd2645332904aa591b7262107f5930fe694de0e8ba30996db3aab
|
7
|
+
data.tar.gz: 68a7b1d97553fa0f4635a90d2fadd2e98fa3e61b402306c1c7c9a3e0a49af83fcc0f0a5818ecd71a5955da2caa8932419a86cf25bb640b913fd4053e5780e136
|
@@ -40,7 +40,7 @@ module SOPT
|
|
40
40
|
else
|
41
41
|
"=<#{ type }>"
|
42
42
|
end
|
43
|
-
extra << " (default
|
43
|
+
extra << " (default: #{Array === default ? (default.length > 3 ? default[0..2]*", " + ', ...' : default*", " ): default})" if default != nil
|
44
44
|
input_str << Log.color(:green, extra)
|
45
45
|
end
|
46
46
|
|
@@ -82,7 +82,7 @@ if inputs and inputs.any?
|
|
82
82
|
when nil
|
83
83
|
puts " " << Misc.format_definition_list_item(input, 'nil', 80, 20, :blue)
|
84
84
|
when Array
|
85
|
-
puts " " << Misc.format_definition_list_item(input, value[0..5]*"\n", 80, 20, :blue)
|
85
|
+
puts " " << Misc.format_definition_list_item(input, (value.length > 6 ? value[0..5]*"\n" << "\n" << "..." : value * "\n" ), 80, 20, :blue)
|
86
86
|
when TrueClass, FalseClass
|
87
87
|
puts " " << Misc.format_definition_list_item(input, value.to_s, 80, 20, :blue)
|
88
88
|
else
|
@@ -129,7 +129,17 @@ if recursive
|
|
129
129
|
deps.concat dep.info[:dependencies].collect{|v| get_step v.last }
|
130
130
|
end
|
131
131
|
|
132
|
-
inputs.each do |
|
133
|
-
|
132
|
+
inputs.each do |input,value|
|
133
|
+
case value
|
134
|
+
when nil
|
135
|
+
puts " " << Misc.format_definition_list_item(input, 'nil', 80, 20, :blue)
|
136
|
+
when Array
|
137
|
+
puts " " << Misc.format_definition_list_item(input, (value.length > 6 ? value[0..5]*"\n" << "\n" << "..." : value * "\n" ), 80, 20, :blue)
|
138
|
+
when TrueClass, FalseClass
|
139
|
+
puts " " << Misc.format_definition_list_item(input, value.to_s, 80, 20, :blue)
|
140
|
+
else
|
141
|
+
text = value.to_s.split("\n")[0..5].compact * "\n\n"
|
142
|
+
puts " " << Misc.format_definition_list_item(input, text, 80, 20, :blue)
|
143
|
+
end
|
134
144
|
end
|
135
145
|
end
|