mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
19 lines
432 B
Go
19 lines
432 B
Go
//go:build !no_cscli_setup
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/crowdsecurity/crowdsec/cmd/crowdsec-cli/clisetup"
|
|
"github.com/crowdsecurity/crowdsec/pkg/cwversion/component"
|
|
"github.com/crowdsecurity/crowdsec/pkg/fflag"
|
|
)
|
|
|
|
func (cli *cliRoot) addSetup(cmd *cobra.Command) {
|
|
if fflag.CscliSetup.IsEnabled() {
|
|
cmd.AddCommand(clisetup.New(cli.cfg).NewCommand())
|
|
}
|
|
|
|
component.Register("cscli_setup")
|
|
}
|