Skip to content

Commit

Permalink
link
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Jun 11, 2024
1 parent d8d2167 commit beea707
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]",
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/")
},
}

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 @@ -378,12 +378,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 beea707

Please sign in to comment.