crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

extracted all methods using tablewriter

Open mmetc opened this issue 3 years ago • 1 comments

So we can easily plug in something else. Also the functions were too long anyway.

mmetc avatar Sep 22 '22 14:09 mmetc

Codecov Report

Merging #1762 (e3cacfd) into master (0708073) will increase coverage by 0.15%. The diff coverage is 44.40%.

@@            Coverage Diff             @@
##           master    #1762      +/-   ##
==========================================
+ Coverage   49.07%   49.23%   +0.15%     
==========================================
  Files         117      126       +9     
  Lines       17590    17638      +48     
==========================================
+ Hits         8633     8684      +51     
- Misses       7946     7947       +1     
+ Partials     1011     1007       -4     
Flag Coverage Δ
func-crowdsec 45.84% <ø> (ø)
func-cscli 42.29% <44.40%> (+0.62%) :arrow_up:
unit-windows 53.34% <ø> (-0.06%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/crowdsec-cli/bouncers.go 55.03% <0.00%> (+5.38%) :arrow_up:
cmd/crowdsec-cli/bouncers_table.go 0.00% <0.00%> (ø)
cmd/crowdsec-cli/console.go 27.23% <0.00%> (+2.73%) :arrow_up:
cmd/crowdsec-cli/console_table.go 0.00% <0.00%> (ø)
cmd/crowdsec-cli/hubtest.go 22.75% <0.00%> (+2.47%) :arrow_up:
cmd/crowdsec-cli/hubtest_table.go 0.00% <0.00%> (ø)
cmd/crowdsec-cli/notifications.go 17.07% <0.00%> (+0.85%) :arrow_up:
cmd/crowdsec-cli/notifications_table.go 0.00% <0.00%> (ø)
cmd/crowdsec-cli/utils.go 19.60% <20.00%> (-0.37%) :arrow_down:
cmd/crowdsec-cli/utils_table.go 22.00% <22.00%> (ø)
... and 15 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov-commenter avatar Sep 22 '22 15:09 codecov-commenter