33 lines
532 B
Go
33 lines
532 B
Go
//go:build !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
type cliDashboard struct{
|
|
cfg configGetter
|
|
}
|
|
|
|
func NewCLIDashboard(cfg configGetter) *cliDashboard {
|
|
return &cliDashboard{
|
|
cfg: cfg,
|
|
}
|
|
}
|
|
|
|
func (cli cliDashboard) NewCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "dashboard",
|
|
DisableAutoGenTag: true,
|
|
Run: func(_ *cobra.Command, _ []string) {
|
|
log.Infof("Dashboard command is disabled on %s", runtime.GOOS)
|
|
},
|
|
}
|
|
|
|
return cmd
|
|
}
|