github.com/crowdsecurity/crowdsec@v1.6.1/cmd/crowdsec-cli/dashboard_unsupported.go (about) 1 //go:build !linux 2 3 package main 4 5 import ( 6 "runtime" 7 8 log "github.com/sirupsen/logrus" 9 "github.com/spf13/cobra" 10 ) 11 12 type cliDashboard struct{ 13 cfg configGetter 14 } 15 16 func NewCLIDashboard(cfg configGetter) *cliDashboard { 17 return &cliDashboard{ 18 cfg: cfg, 19 } 20 } 21 22 func (cli cliDashboard) NewCommand() *cobra.Command { 23 cmd := &cobra.Command{ 24 Use: "dashboard", 25 DisableAutoGenTag: true, 26 Run: func(_ *cobra.Command, _ []string) { 27 log.Infof("Dashboard command is disabled on %s", runtime.GOOS) 28 }, 29 } 30 31 return cmd 32 }