crowdsec/cmd/crowdsec-cli/dashboard_unsupported.go

33 lines
532 B
Go
Raw Normal View History

//go:build !linux
package main
import (
"runtime"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
2024-02-01 16:27:15 +00:00
type cliDashboard struct{
cfg configGetter
}
func NewCLIDashboard(cfg configGetter) *cliDashboard {
2024-02-01 16:27:15 +00:00
return &cliDashboard{
cfg: cfg,
2024-02-01 16:27:15 +00:00
}
}
func (cli cliDashboard) NewCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "dashboard",
DisableAutoGenTag: true,
2024-02-01 16:27:15 +00:00
Run: func(_ *cobra.Command, _ []string) {
log.Infof("Dashboard command is disabled on %s", runtime.GOOS)
},
}
return cmd
}