2023-12-04 10:06:41 +00:00
|
|
|
//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
|
|
|
|
}
|
2023-12-11 09:32:54 +00:00
|
|
|
|
2024-02-01 16:27:15 +00:00
|
|
|
func NewCLIDashboard(getconfig configGetter) *cliDashboard {
|
|
|
|
return &cliDashboard{
|
|
|
|
cfg: getconfig,
|
|
|
|
}
|
2023-12-11 09:32:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (cli cliDashboard) NewCommand() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
2023-12-04 10:06:41 +00:00
|
|
|
Use: "dashboard",
|
|
|
|
DisableAutoGenTag: true,
|
2024-02-01 16:27:15 +00:00
|
|
|
Run: func(_ *cobra.Command, _ []string) {
|
2023-12-04 10:06:41 +00:00
|
|
|
log.Infof("Dashboard command is disabled on %s", runtime.GOOS)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2023-12-11 09:32:54 +00:00
|
|
|
return cmd
|
2023-12-04 10:06:41 +00:00
|
|
|
}
|