Skip to content

cscli: simplify generic item commands (#2641)

Codecov / codecov/patch succeeded Dec 6, 2023 in 1s

15.77% of diff hit (target 0.00%)

View this Pull Request on Codecov

15.77% of diff hit (target 0.00%)

Annotations

Check warning on line 35 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L34-L35

Added lines #L34 - L35 were not covered by tests

Check warning on line 66 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L65-L66

Added lines #L65 - L66 were not covered by tests

Check warning on line 88 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L87-L88

Added lines #L87 - L88 were not covered by tests

Check warning on line 109 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L108-L109

Added lines #L108 - L109 were not covered by tests

Check warning on line 137 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L122-L137

Added lines #L122 - L137 were not covered by tests

Check warning on line 146 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L139-L146

Added lines #L139 - L146 were not covered by tests

Check warning on line 151 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L151

Added line #L151 was not covered by tests

Check warning on line 165 in cmd/crowdsec-cli/appsec_rules.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/appsec_rules.go#L164-L165

Added lines #L164 - L165 were not covered by tests

Check warning on line 39 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L39

Added line #L39 was not covered by tests

Check warning on line 47 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L44-L47

Added lines #L44 - L47 were not covered by tests

Check warning on line 52 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L49-L52

Added lines #L49 - L52 were not covered by tests

Check warning on line 92 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L92

Added line #L92 was not covered by tests

Check warning on line 105 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L105

Added line #L105 was not covered by tests

Check warning on line 131 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L107-L131

Added lines #L107 - L131 were not covered by tests

Check warning on line 146 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L133-L146

Added lines #L133 - L146 were not covered by tests

Check warning on line 149 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L148-L149

Added lines #L148 - L149 were not covered by tests

Check warning on line 153 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L151-L153

Added lines #L151 - L153 were not covered by tests

Check warning on line 171 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L155-L171

Added lines #L155 - L171 were not covered by tests

Check warning on line 219 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L219

Added line #L219 was not covered by tests

Check warning on line 224 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L224

Added line #L224 was not covered by tests

Check warning on line 233 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L233

Added line #L233 was not covered by tests

Check warning on line 249 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L248-L249

Added lines #L248 - L249 were not covered by tests

Check warning on line 371 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L371

Added line #L371 was not covered by tests

Check warning on line 394 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L394

Added line #L394 was not covered by tests

Check warning on line 396 in cmd/crowdsec-cli/hubtest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/hubtest.go#L396

Added line #L396 was not covered by tests