run_kit 0.1.6 → 0.1.7
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/README.md +4 -0
- data/lib/run_kit/core_ext.rb +4 -5
- data/lib/run_kit/options/main.rb +1 -1
- data/lib/run_kit/shell.rb +2 -2
- data/run_kit.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2e261e9ecccb8fd6abcf6708b7e5cf4a31331e1d1c89b89320b58ec64c75b66
|
|
4
|
+
data.tar.gz: 4135324d938c3e29d6ae9ea9a85798b2f8a2211d2f4550bb081eac1630ac8346
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae9fae564b7b9d5534b5166bc0b35b0d465f44064952ea38236eda22259f8656b251c28267f12a1e89713ed98a9c88dbcbf3dacff75313e3f14d0b57aa4e7cff
|
|
7
|
+
data.tar.gz: 07f5af57b5328997f8ab7fdb4b98c1ae255bac63295bd6f351c6680684e69d059f6c6557177b29bac4ec66dccb5d521008148a9414479a980a016e4548ccd8bd
|
data/README.md
CHANGED
|
@@ -145,6 +145,10 @@ Note: There has been some effort to get the Pathname helpers into Ruby itself, w
|
|
|
145
145
|
|
|
146
146
|
### Changelog
|
|
147
147
|
|
|
148
|
+
#### 0.1.7 (Sep 2026)
|
|
149
|
+
|
|
150
|
+
- don't emit hide/show cursor for progbar when `hide: true`
|
|
151
|
+
|
|
148
152
|
#### 0.1.6 (Sep 2026)
|
|
149
153
|
|
|
150
154
|
- default subcommands with `default: true`
|
data/lib/run_kit/core_ext.rb
CHANGED
|
@@ -39,14 +39,13 @@ module RunKit
|
|
|
39
39
|
total: size
|
|
40
40
|
).merge(options)
|
|
41
41
|
|
|
42
|
-
return enum_for(__method__) if !block
|
|
42
|
+
return enum_for(__method__, options) if !block
|
|
43
|
+
return each(&block) if options[:hide]
|
|
43
44
|
|
|
44
|
-
bar =
|
|
45
|
-
ProgressBar.create(options)
|
|
46
|
-
end
|
|
45
|
+
bar = ProgressBar.create(options)
|
|
47
46
|
RunKit::Term.with_hidden_cursor(options[:output]) do
|
|
48
47
|
each do
|
|
49
|
-
bar
|
|
48
|
+
bar.increment
|
|
50
49
|
yield(_1)
|
|
51
50
|
end
|
|
52
51
|
end
|
data/lib/run_kit/options/main.rb
CHANGED
|
@@ -92,7 +92,7 @@ module RunKit
|
|
|
92
92
|
if ex.is_a?(Error)
|
|
93
93
|
warn "#{ctx.full_name}: #{ex.message}"
|
|
94
94
|
warn "#{ctx.full_name}: try '#{ctx.full_name} --help' for more information"
|
|
95
|
-
return exit_fn(
|
|
95
|
+
return exit_fn(2, error: ex.message)
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Inferred help on a bare invocation introduces the whole app.
|
data/lib/run_kit/shell.rb
CHANGED
|
@@ -167,9 +167,9 @@ module RunKit
|
|
|
167
167
|
banner(str, color: :peach)
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
def fatal(str)
|
|
170
|
+
def fatal(str, code: 1)
|
|
171
171
|
banner(str, color: :red)
|
|
172
|
-
exit(
|
|
172
|
+
exit(code)
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
# Ask the user a question via stderr, then return true if they enter YES, yes, y, etc.
|
data/run_kit.gemspec
CHANGED