Skip to content

Commit

Permalink
link
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jul 31, 2024
1 parent 553f95f commit 08958d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/crowdsec-cli/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (cli *cliDashboard) NewCommand() *cobra.Command {
Short: "Manage your metabase dashboard container [requires local API]",

Check warning on line 25 in cmd/crowdsec-cli/dashboard.go

View check run for this annotation

Codecov / codecov/patch

cmd/crowdsec-cli/dashboard.go#L23-L25

Added lines #L23 - L25 were not covered by tests
DisableAutoGenTag: true,
RunE: func(_ *cobra.Command, _ []string) error {
return errors.New("command 'dashboard' has been removed, please read https://...")
return errors.New("command 'dashboard' has been removed, please read https://docs.crowdsec.net/blog/cscli_dashboard_deprecation/")

Check warning on line 28 in cmd/crowdsec-cli/dashboard.go

View check run for this annotation

Codecov / codecov/patch

cmd/crowdsec-cli/dashboard.go#L28

Added line #L28 was not covered by tests
},
}

Expand Down
3 changes: 1 addition & 2 deletions test/bats/01_cscli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,11 @@ teardown() {
export CROWDSEC_FEATURE_CSCLI_SETUP="true"
rune -0 cscli config feature-flags
assert_line '✓ cscli_setup: Enable cscli setup command (service detection)'

# there are no retired features
rune -0 cscli config feature-flags --retired
}

@test "cscli dashboard" {
rune -1 cscli dashboard xyz
assert_stderr --partial "command 'dashboard' has been removed, please read https://..."
assert_stderr --partial "command 'dashboard' has been removed, please read https://docs.crowdsec.net/blog/cscli_dashboard_deprecation/"
}

0 comments on commit 08958d6

Please sign in to comment.