kdeploy 1.1.7 → 1.1.9
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.
- checksums.yaml +4 -4
- data/lib/kdeploy/cli.rb +5 -2
- data/lib/kdeploy/runner.rb +1 -1
- data/lib/kdeploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0413c2007fc2293c3cfe23617b518710ebcd5c44a312206809ee66e42083736
|
4
|
+
data.tar.gz: 87b7423529d7d16a87c0582a3530dc95f14c357124002dd677c23f6d741f3161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6726dfb4f6a3d87054dae9606b674c4d5dc22319c0291d5e98306fda484100d7c314ac2e176f78f0ed1a2692a9506792864bcc5c3d6c0c2fab2fe88f7075f716
|
7
|
+
data.tar.gz: f415915aea776dba5d4184bafbb6e3fb60d667a3ae55c2a4071734e7615f9fd980a0782521219aaa3d4aa34bd296dda305a321f6c024d436c228fa1df2908e73
|
data/lib/kdeploy/cli.rb
CHANGED
@@ -221,13 +221,16 @@ module Kdeploy
|
|
221
221
|
shown[key] = true
|
222
222
|
duration_str = step[:duration] ? pastel.dim(" [#{'%.2f' % step[:duration]}s]") : ''
|
223
223
|
puts pastel.cyan(" [run] #{step[:command].to_s.lines.first.strip}#{duration_str}")
|
224
|
+
# 多行命令内容高亮
|
225
|
+
cmd_lines = step[:command].to_s.lines[1..].map(&:strip).reject(&:empty?)
|
226
|
+
cmd_lines.each { |line| puts pastel.cyan(" > #{line}") } if cmd_lines.any?
|
224
227
|
if step[:output].is_a?(Hash) && step[:output][:stdout]
|
225
228
|
step[:output][:stdout].each_line do |line|
|
226
|
-
puts " #{line.rstrip}" unless line.strip.empty?
|
229
|
+
puts pastel.green(" #{line.rstrip}") unless line.strip.empty?
|
227
230
|
end
|
228
231
|
elsif step[:output].is_a?(String)
|
229
232
|
step[:output].each_line do |line|
|
230
|
-
puts " #{line.rstrip}" unless line.strip.empty?
|
233
|
+
puts pastel.green(" #{line.rstrip}") unless line.strip.empty?
|
231
234
|
end
|
232
235
|
end
|
233
236
|
end
|
data/lib/kdeploy/runner.rb
CHANGED
data/lib/kdeploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kdeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kk
|
@@ -208,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version:
|
211
|
+
version: 2.7.0
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - ">="
|