crowdsec
crowdsec copied to clipboard
[wip] new tables
This depends on https://github.com/crowdsecurity/crowdsec/pull/1762
I kept the styling as similar as possible to the old ones, the terminal width is only detected when the io.Writer which is passed to the constructor is os.Stdout - this requires yet another little change (hence the reason for the wip). Except for the width, I think I have tested everything.
Codecov Report
Merging #1763 (ec6cd79) into master (0708073) will decrease coverage by
3.34%. The diff coverage is44.60%.
@@ Coverage Diff @@
## master #1763 +/- ##
==========================================
- Coverage 52.57% 49.22% -3.35%
==========================================
Files 138 127 -11
Lines 19665 17707 -1958
==========================================
- Hits 10338 8717 -1621
+ Misses 8181 7978 -203
+ Partials 1146 1012 -134
| Flag | Coverage Δ | |
|---|---|---|
| func-crowdsec | 45.84% <ø> (ø) |
|
| func-cscli | 42.25% <44.60%> (+0.59%) |
:arrow_up: |
| unit-linux | ? |
|
| unit-windows | 53.40% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| 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.24% <0.00%> (+1.96%) |
: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/parsers.go | 48.93% <0.00%> (+0.34%) |
:arrow_up: |
| cmd/crowdsec-cli/postoverflows.go | 47.82% <0.00%> (+0.34%) |
:arrow_up: |
| cmd/crowdsec-cli/scenarios.go | 47.82% <0.00%> (+0.34%) |
:arrow_up: |
| ... and 59 more |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more