Skip to content

Commit 92daf49

Browse files
committed
Display protocol version for extract command when options are used
1 parent abb5eff commit 92daf49

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

bin/tls-map

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ begin
112112
cliext = TLSmap::CLI::Extended.new
113113
v.each do |alg|
114114
ci = TLSmap::App::Cipher.new(:iana, alg, enhanced_data: cliext.enhanced_data)
115-
puts Paint[alg, :white] if (args['--only-weak'] && !ci.should_i_use?) ||
116-
(args['--hide-weak'] && ci.should_i_use?)
115+
next unless (args['--only-weak'] && !ci.should_i_use?) ||
116+
(args['--hide-weak'] && ci.should_i_use?)
117+
118+
print Paint["#{k} ", :blue] unless v.empty?
119+
puts Paint[alg, :white]
117120
end
118121
else
119122
puts Paint[k, :blue] unless v.empty?

docs/CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
## [Unreleased]
44

5+
Enhancements:
6+
7+
- Display protocol version for extract command when options are used [#54](https://github.com/noraj/tls-map/issues/54)
8+
9+
Chore:
10+
511
- **Breaking changes**:
612
- Drop support for Ruby 3.0 as they are EOL
7-
- Chore:
8-
- Add support for Ruby 3.4
13+
- Add support for Ruby 3.4
914

1015
## [3.0.0]
1116

0 commit comments

Comments
 (0)